From 3b2721679c0e9d8e3553be5ab036af14c12160bd Mon Sep 17 00:00:00 2001 From: Shrey Jain <“shreyjain5132@email.com> Date: Wed, 10 Jun 2026 11:42:54 +0530 Subject: [PATCH] feat(stepper): integrate Conductor plugin tabs and dynamic loading of web plugins --- package.json | 7 +- .../js-slang/SourceStepperEvaluator1.js | 75 +++++++++++++++ .../js-slang/SourceStepperEvaluator2.js | 75 +++++++++++++++ .../evaluators/py-slang/PyCseEvaluator1.cjs | 9 ++ public/evaluators/py-slang/PyCseEvaluator1.js | 9 ++ .../evaluators/py-slang/PyCseEvaluator2.cjs | 9 ++ public/evaluators/py-slang/PyCseEvaluator2.js | 9 ++ .../evaluators/py-slang/PyCseEvaluator3.cjs | 9 ++ public/evaluators/py-slang/PyCseEvaluator3.js | 9 ++ .../evaluators/py-slang/PyCseEvaluator4.cjs | 9 ++ public/evaluators/py-slang/PyCseEvaluator4.js | 9 ++ .../evaluators/py-slang/PySvmlEvaluator.cjs | 9 ++ public/evaluators/py-slang/PySvmlEvaluator.js | 9 ++ .../py-slang/PySvmlSinterEvaluator.cjs | 9 ++ .../py-slang/PySvmlSinterEvaluator.js | 9 ++ .../evaluators/py-slang/PyWasmEvaluator.cjs | 11 +++ public/evaluators/py-slang/PyWasmEvaluator.js | 11 +++ .../py-slang/PythonStepperEvaluator1.cjs | 2 + .../py-slang/PythonStepperEvaluator1.js | 2 + public/index.html | 14 +++ public/languages/directory.json | 38 ++++++++ public/plugins/directory.json | 10 ++ public/plugins/stepper/index.mjs | 6 ++ public/shims/blueprintjs-core.mjs | 17 ++++ public/shims/react-jsx-runtime.mjs | 4 + public/shims/react.mjs | 41 +++++++++ src/bootstrap/conductorSharedDeps.ts | 20 ++++ .../sagas/WorkspaceSaga/helpers/evalCode.ts | 91 +++++++++++++------ src/commons/sagas/WorkspaceSaga/index.ts | 6 +- .../sagas/helpers/conductorEvaluatorCache.ts | 53 ++++++++++- src/features/conductor/makePluginTabFrom.tsx | 22 +++++ src/features/conductor/pluginTabRegistry.ts | 76 ++++++++++++++++ src/index.tsx | 2 + src/pages/playground/Playground.tsx | 33 ++++++- src/styles/StepperPopover.scss | 1 + src/styles/_workspace.scss | 5 +- yarn.lock | 31 +++---- 37 files changed, 703 insertions(+), 58 deletions(-) create mode 100644 public/evaluators/js-slang/SourceStepperEvaluator1.js create mode 100644 public/evaluators/js-slang/SourceStepperEvaluator2.js create mode 100644 public/evaluators/py-slang/PyCseEvaluator1.cjs create mode 100644 public/evaluators/py-slang/PyCseEvaluator1.js create mode 100644 public/evaluators/py-slang/PyCseEvaluator2.cjs create mode 100644 public/evaluators/py-slang/PyCseEvaluator2.js create mode 100644 public/evaluators/py-slang/PyCseEvaluator3.cjs create mode 100644 public/evaluators/py-slang/PyCseEvaluator3.js create mode 100644 public/evaluators/py-slang/PyCseEvaluator4.cjs create mode 100644 public/evaluators/py-slang/PyCseEvaluator4.js create mode 100644 public/evaluators/py-slang/PySvmlEvaluator.cjs create mode 100644 public/evaluators/py-slang/PySvmlEvaluator.js create mode 100644 public/evaluators/py-slang/PySvmlSinterEvaluator.cjs create mode 100644 public/evaluators/py-slang/PySvmlSinterEvaluator.js create mode 100644 public/evaluators/py-slang/PyWasmEvaluator.cjs create mode 100644 public/evaluators/py-slang/PyWasmEvaluator.js create mode 100644 public/evaluators/py-slang/PythonStepperEvaluator1.cjs create mode 100644 public/evaluators/py-slang/PythonStepperEvaluator1.js create mode 100644 public/languages/directory.json create mode 100644 public/plugins/directory.json create mode 100644 public/plugins/stepper/index.mjs create mode 100644 public/shims/blueprintjs-core.mjs create mode 100644 public/shims/react-jsx-runtime.mjs create mode 100644 public/shims/react.mjs create mode 100644 src/bootstrap/conductorSharedDeps.ts create mode 100644 src/features/conductor/makePluginTabFrom.tsx create mode 100644 src/features/conductor/pluginTabRegistry.ts diff --git a/package.json b/package.json index a7a873dbf9..c576620655 100644 --- a/package.json +++ b/package.json @@ -46,9 +46,9 @@ "@sentry/react": "^10.5.0", "@sourceacademy/autocomplete": "github:source-academy/autocomplete#e669d9ed98753350a3c8433a92985227eb789663", "@sourceacademy/c-slang": "^1.0.21", - "@sourceacademy/conductor": "https://github.com/source-academy/conductor.git#0.4.0", + "@sourceacademy/conductor": "portal:../conductor", "@sourceacademy/language-directory": "https://github.com/source-academy/language-directory.git#0.0.6", - "@sourceacademy/plugin-directory": "https://github.com/source-academy/plugin-directory.git#0.0.2", + "@sourceacademy/plugin-directory": "portal:../plugin-directory", "@sourceacademy/sharedb-ace": "2.1.1", "@sourceacademy/sling-client": "^0.1.0", "@szhsin/react-menu": "^4.0.0", @@ -196,6 +196,7 @@ }, "resolutions": { "@types/estree": "1.0.9", - "vite": "^8.0.0" + "vite": "^8.0.0", + "js-slang": "portal:/Users/shreyjain/Downloads/source-academy/js-slang" } } diff --git a/public/evaluators/js-slang/SourceStepperEvaluator1.js b/public/evaluators/js-slang/SourceStepperEvaluator1.js new file mode 100644 index 0000000000..a8986d2608 --- /dev/null +++ b/public/evaluators/js-slang/SourceStepperEvaluator1.js @@ -0,0 +1,75 @@ +var global="undefined"!=typeof globalThis?globalThis:self,process="undefined"!=typeof globalThis&&globalThis.process||{env:{NODE_ENV:"production"},argv:[],platform:"browser",version:"",versions:{},nextTick:function(e){Promise.resolve().then(e)},cwd:function(){return"/"},browser:!0};(function(){"use strict";var jsslang=Object.freeze({__proto__:null,get SourceDocumentation(){return SourceDocumentation},get assemble(){return assemble},get compile(){return compile},get compileFiles(){return compileFiles},get createContext(){return createContext},get findDeclaration(){return findDeclaration},get getAllOccurrencesInScope(){return getAllOccurrencesInScope},get getNames(){return getNames},get getScope(){return getScope},get hasDeclaration(){return hasDeclaration},get interrupt(){return interrupt},get parseError(){return parseError},get resume(){return resume},get runFilesInContext(){return runFilesInContext},get runInContext(){return runInContext},get setBreakpointAtLine(){return setBreakpointAtLine}}),R,O,_$1;!function(e){e[e.CALL=0]="CALL",e[e.RETURN=1]="RETURN",e[e.RETURN_ERR=2]="RETURN_ERR"}(R||(R={})),function(e){e[e.PROTOCOL_VERSION=0]="PROTOCOL_VERSION",e[e.PROTOCOL_MIN_VERSION=0]="PROTOCOL_MIN_VERSION",e[e.SETUP_MESSAGES_BUFFER_SIZE=10]="SETUP_MESSAGES_BUFFER_SIZE"}(O||(O={})),function(e){e.UNKNOWN="__unknown",e.INTERNAL="__internal",e.EVALUATOR="__evaluator",e.EVALUATOR_SYNTAX="__evaluator_syntax",e.EVALUATOR_TYPE="__evaluator_type",e.EVALUATOR_RUNTIME="__evaluator_runtime"}(_$1||(_$1={}));let t$5=class e{t=[];i=[];push(e){this.i.push(e)}pop(){if(0===this.t.length){if(0===this.i.length)throw new Error("queue is empty");let e=this.t;this.t=this.i.reverse(),this.i=e}return this.t.pop()}get length(){return this.t.length+this.i.length}clone(){const t=new e;return t.t=[...this.t],t.i=[...this.i],t}},s$3=class{h=new t$5;u=new t$5;push(e){0!==this.u.length?this.u.pop()(e):this.h.push(e)}async pop(){return 0!==this.h.length?this.h.pop():new Promise((e,t)=>{this.u.push(e)})}tryPop(){if(0!==this.h.length)return this.h.pop()}constructor(){this.push=this.push.bind(this)}};class o extends Error{name="ConductorError";errorType=_$1.UNKNOWN;constructor(e){super(e)}}let s$2=class extends o{name="ConductorInternalError";errorType=_$1.INTERNAL;constructor(e){super(e)}},e$2=class{name;t;i=new Set;h=!0;o=[];send(e,t){this.l(),this.t.postMessage(e,t??[])}subscribe(e){if(this.l(),this.i.add(e),this.o){for(const t of this.o)e(t);delete this.o}}unsubscribe(e){this.l(),this.i.delete(e)}close(){this.l(),this.h=!1,this.t?.close()}l(){if(!this.h)throw new s$2(`Channel ${this.name} has been closed`)}_(e){if(this.l(),this.o){if(this.o.length>=O.SETUP_MESSAGES_BUFFER_SIZE)return console.warn("Channel buffer full; message dropped (no subscribers on channel)",e);this.o.push(e)}else for(const t of this.i)t(e)}listenToPort(e){e.addEventListener("message",e=>this._(e.data)),e.start()}replacePort(e){this.l(),this.t?.close(),this.t=e,this.listenToPort(e)}constructor(e,t){this.name=e,this.replacePort(t)}};class h{name;u;p=new s$3;async receive(){return this.p.pop()}tryReceive(){return this.p.tryPop()}send(e,t){this.u.send(e,t)}close(){this.u.unsubscribe(this.p.push)}constructor(e){this.name=e.name,this.u=e,this.u.subscribe(this.p.push)}}let n$1=class{m=!0;C;v;P=new Map;M=new Map;j=[];A(e){const{port1:t,port2:n}=new MessageChannel,r=new e$2(e,t);this.C.postMessage([e,n],[n]),this.P.set(e,r)}l(){if(!this.m)throw new s$2("Conduit already terminated")}registerPlugin(e,...t){this.l();const n=[];for(const t of e.channelAttach)this.P.has(t)||this.A(t),n.push(this.P.get(t));const r=new e(this,n,...t);if(void 0!==r.id){if(this.M.has(r.id))throw new s$2(`Plugin ${r.id} already registered`);this.M.set(r.id,r)}return this.j.push(r),r}unregisterPlugin(e){this.l();let t=0;for(let n=0;n=n;--e)delete this.j[e];e.id&&this.M.delete(e.id),e.destroy?.()}lookupPlugin(e){if(this.l(),!this.M.has(e))throw new s$2(`Plugin ${e} not registered`);return this.M.get(e)}terminate(){this.l();for(const e of this.j)e.destroy?.();this.C.terminate?.(),this.m=!1}$(e){const[t,n]=e;if(this.P.has(t)){const e=this.P.get(t);this.v?e.listenToPort(n):e.replacePort(n)}else{const e=new e$2(t,n);this.P.set(t,e)}}constructor(e,t=!1){this.C=e,e.addEventListener("message",e=>this.$(e.data)),this.v=t}};async function t$4(e){return(await import(e)).plugin}async function r$3(e){return await t$4(e)}let t$3=class{type=R.CALL;data;constructor(e,t,n){this.data={fn:e,args:t,invokeId:n}}},r$2=class{type=R.RETURN_ERR;data;constructor(e,t){this.data={invokeId:e,err:t}}},a$1=class{type=R.RETURN;data;constructor(e,t){this.data={invokeId:e,res:t}}};function s$1(e,t){const n=[];let r=0;return e.subscribe(async r=>{switch(r.type){case R.CALL:{const{fn:n,args:i,invokeId:a}=r.data;try{const r=await t[n](...i);a>0&&e.send(new a$1(a,r))}catch(t){a>0&&e.send(new r$2(a,t))}break}case R.RETURN:{const{invokeId:e,res:t}=r.data;n[e]?.[0]?.(t),delete n[e];break}case R.RETURN_ERR:{const{invokeId:e,err:t}=r.data;n[e]?.[1]?.(t),delete n[e];break}}}),new Proxy({},{get(t,i,a){const o=Reflect.get(t,i,a);if(o)return o;const s="string"==typeof i&&"$"===i.charAt(0)?(...t)=>{e.send(new t$3(i,t,0))}:(...t)=>{const a=++r;return e.send(new t$3(i,t,a)),new Promise((e,t)=>{n[a]=[e,t]})};return Reflect.set(t,i,s,a),s}})}var _,n,a;!function(e){e.CHUNK="__chunk",e.FILE="__file_rpc",e.SERVICE="__service",e.STANDARD_IO="__stdio",e.RESULT="__result",e.ERROR="__error",e.STATUS="__status",e.PLUGIN="__plugin"}(_||(_={})),function(e){e.HOST_MAIN="__host_main",e.RUNNER_MAIN="__runner_main"}(n||(n={})),function(e){e[e.HELLO=0]="HELLO",e[e.ABORT=1]="ABORT",e[e.ENTRY=2]="ENTRY"}(a||(a={}));let t$2=class{type=a.ABORT;data;constructor(e){this.data={minVersion:e}}},e$1=class{type=a.HELLO;data={version:O.PROTOCOL_VERSION}};var N;!function(e){e[e.ONLINE=0]="ONLINE",e[e.EVAL_READY=1]="EVAL_READY",e[e.RUNNING=2]="RUNNING",e[e.WAITING=3]="WAITING",e[e.BREAKPOINT=4]="BREAKPOINT",e[e.STOPPED=5]="STOPPED",e[e.ERROR=6]="ERROR"}(N||(N={}));class p{id=n.RUNNER_MAIN;t;i;o;u;h;l;p;m;_;j;v;C=new Map([[a.HELLO,function(e){e.data.version{this.C.get(e.type)?.call(this,e)}),this.t=new l(this),this.i=this.t.hasDataInterface??!1}}function m(e,t=self){const n=new n$1(t,!1);return{runnerPlugin:n.registerPlugin(p,e),conduit:n}}let r$1=class{conductor;async startEvaluator(e){const t=await this.conductor.requestFile(e);if(!t)throw new s$2("Cannot load entrypoint file");for(this.conductor.sendResult(await this.evaluateFile(e,t));;){const e=await this.conductor.requestChunk();this.conductor.sendResult(await this.evaluateChunk(e))}}async evaluateFile(e,t){return this.evaluateChunk(t)}constructor(e){this.conductor=e}};const r="stepper";class s extends o{name="EvaluatorError";errorType=_$1.EVALUATOR;rawMessage;line;column;fileName;constructor(e,t,n,r){super(`${void 0!==t?`${r?r+":":""}${t}${void 0!==n?":"+n:""}: `:""}${e}`),this.rawMessage=e,this.line=t,this.column=n,this.fileName=r}}let t$1=class extends s{name="EvaluatorSyntaxError";errorType=_$1.EVALUATOR_SYNTAX};var commonjsGlobal="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==global?global:"undefined"!=typeof self?self:{};function getDefaultExportFromCjs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function getAugmentedNamespace(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if("function"==typeof t){var n=function e(){var n=!1;try{n=this instanceof e}catch{}return n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})}),n}var sourceMap={},sourceMapGenerator={},base64Vlq={},base64={},hasRequiredBase64,hasRequiredBase64Vlq;function requireBase64(){if(hasRequiredBase64)return base64;hasRequiredBase64=1;const e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");return base64.encode=function(t){if(0<=t&&t>>=5,i>0&&(n|=32),r+=e.encode(n)}while(i>0);return r},base64Vlq}var util={},global$1=void 0!==global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},maxInt=2147483647,base$2=36,tMin=1,tMax=26,skew=38,damp=700,initialBias=72,initialN=128,delimiter$1="-",regexNonASCII=/[^\x20-\x7E]/,regexSeparators=/[\x2E\u3002\uFF0E\uFF61]/g,errors$1={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},baseMinusTMin=base$2-tMin,floor=Math.floor,stringFromCharCode=String.fromCharCode;function error$9(e){throw new RangeError(errors$1[e])}function map$9(e,t){for(var n=e.length,r=[];n--;)r[n]=t(e[n]);return r}function mapDomain(e,t){var n=e.split("@"),r="";return n.length>1&&(r=n[0]+"@",e=n[1]),r+map$9((e=e.replace(regexSeparators,".")).split("."),t).join(".")}function ucs2decode(e){for(var t,n,r=[],i=0,a=e.length;i=55296&&t<=56319&&i>1,e+=floor(e/t);e>baseMinusTMin*tMax>>1;r+=base$2)e=floor(e/baseMinusTMin);return floor(r+(baseMinusTMin+1)*e/(e+skew))}function encode(e){var t,n,r,i,a,o,s,c,l,u,d,p,m,f,_,h=[];for(p=(e=ucs2decode(e)).length,t=initialN,n=0,a=initialBias,o=0;o=t&&dfloor((maxInt-n)/(m=r+1))&&error$9("overflow"),n+=(s-t)*m,t=s,o=0;omaxInt&&error$9("overflow"),d==t){for(c=n,l=base$2;!(c<(u=l<=a?tMin:l>=a+tMax?tMax:l-a));l+=base$2)_=c-u,f=base$2-u,h.push(stringFromCharCode(digitToBasic(u+_%f,0))),c=floor(_/f);h.push(stringFromCharCode(digitToBasic(c,0))),a=adapt(n,m,r==i),n=0,++r}++n,++t}return h.join("")}function toASCII(e){return mapDomain(e,function(e){return regexNonASCII.test(e)?"xn--"+encode(e):e})}function defaultSetTimout(){throw new Error("setTimeout has not been defined")}function defaultClearTimeout(){throw new Error("clearTimeout has not been defined")}var cachedSetTimeout=defaultSetTimout,cachedClearTimeout=defaultClearTimeout;function runTimeout(e){if(cachedSetTimeout===setTimeout)return setTimeout(e,0);if((cachedSetTimeout===defaultSetTimout||!cachedSetTimeout)&&setTimeout)return cachedSetTimeout=setTimeout,setTimeout(e,0);try{return cachedSetTimeout(e,0)}catch(t){try{return cachedSetTimeout.call(null,e,0)}catch(t){return cachedSetTimeout.call(this,e,0)}}}function runClearTimeout(e){if(cachedClearTimeout===clearTimeout)return clearTimeout(e);if((cachedClearTimeout===defaultClearTimeout||!cachedClearTimeout)&&clearTimeout)return cachedClearTimeout=clearTimeout,clearTimeout(e);try{return cachedClearTimeout(e)}catch(t){try{return cachedClearTimeout.call(null,e)}catch(t){return cachedClearTimeout.call(this,e)}}}"function"==typeof global$1.setTimeout&&(cachedSetTimeout=setTimeout),"function"==typeof global$1.clearTimeout&&(cachedClearTimeout=clearTimeout);var queue=[],draining=!1,currentQueue,queueIndex=-1;function cleanUpNextTick(){draining&¤tQueue&&(draining=!1,currentQueue.length?queue=currentQueue.concat(queue):queueIndex=-1,queue.length&&drainQueue())}function drainQueue(){if(!draining){var e=runTimeout(cleanUpNextTick);draining=!0;for(var t=queue.length;t;){for(currentQueue=queue,queue=[];++queueIndex1)for(var n=1;n0&&s>o&&(s=o);for(var c=0;c=0?(l=m.substr(0,f),u=m.substr(f+1)):(l=m,u=""),d=decodeURIComponent(l),p=decodeURIComponent(u),hasOwnProperty$2(i,d)?isArray$2(i[d])?i[d].push(p):i[d]=[i[d],p]:i[d]=p}return i}const URL$1=global$1.URL,URLSearchParams=global$1.URLSearchParams;var _polyfillNode_url={parse:urlParse,resolve:urlResolve,resolveObject:urlResolveObject,fileURLToPath:urlFileURLToPath,format:urlFormat,Url:Url,URL:URL$1,URLSearchParams:URLSearchParams};function Url(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var protocolPattern=/^([a-z0-9.+-]+:)/i,portPattern=/:[0-9]*$/,simplePathPattern=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,delims=["<",">",'"',"`"," ","\r","\n","\t"],unwise=["{","}","|","\\","^","`"].concat(delims),autoEscape=["'"].concat(unwise),nonHostChars=["%","/","?",";","#"].concat(autoEscape),hostEndingChars=["/","?","#"],hostnameMaxLen=255,hostnamePartPattern=/^[+a-z0-9A-Z_-]{0,63}$/,hostnamePartStart=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,unsafeProtocol={javascript:!0,"javascript:":!0},hostlessProtocol={javascript:!0,"javascript:":!0},slashedProtocol={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function urlParse(e,t,n){if(e&&isObject$1(e)&&e instanceof Url)return e;var r=new Url;return r.parse(e,t,n),r}function parse$8(e,t,n,r){if(!isString$1(t))throw new TypeError("Parameter 'url' must be a string, not "+typeof t);var i=t.indexOf("?"),a=-1!==i&&i127?x+="x":x+=E[S];if(!x.match(hostnamePartPattern)){var C=b.slice(0,l),D=b.slice(l+1),L=E.match(hostnamePartStart);L&&(C.push(L[1]),D.unshift(L[2])),D.length&&(s="/"+D.join(".")+s),e.hostname=C.join(".");break}}}}e.hostname.length>hostnameMaxLen?e.hostname="":e.hostname=e.hostname.toLowerCase(),v||(e.hostname=toASCII(e.hostname)),p=e.port?":"+e.port:"";var A=e.hostname||"";e.host=A+p,e.href+=e.host,v&&(e.hostname=e.hostname.substr(1,e.hostname.length-2),"/"!==s[0]&&(s="/"+s))}if(!unsafeProtocol[f])for(l=0,d=autoEscape.length;l0)&&r.host.split("@"))&&(r.auth=_.shift(),r.host=r.hostname=_.shift())),r.search=e.search,r.query=e.query,isNull(r.pathname)&&isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r;if(!b.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var x=b.slice(-1)[0],S=(r.host||e.host||b.length>1)&&("."===x||".."===x)||""===x,T=0,C=b.length;C>=0;C--)"."===(x=b[C])?b.splice(C,1):".."===x?(b.splice(C,1),T++):T&&(b.splice(C,1),T--);if(!y&&!v)for(;T--;T)b.unshift("..");!y||""===b[0]||b[0]&&"/"===b[0].charAt(0)||b.unshift(""),S&&"/"!==b.join("/").substr(-1)&&b.push("");var D=""===b[0]||b[0]&&"/"===b[0].charAt(0);return E&&(r.hostname=r.host=D?"":b.length?b.shift():"",(_=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=_.shift(),r.host=r.hostname=_.shift())),(y=y||r.host&&b.length)&&!D&&b.unshift(""),b.length?r.pathname=b.join("/"):(r.pathname=null,r.path=null),isNull(r.pathname)&&isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=e.auth||r.auth,r.slashes=r.slashes||e.slashes,r.href=r.format(),r},Url.prototype.parseHost=function(){return parseHost(this)};var _polyfillNode_url$1=Object.freeze({__proto__:null,URL:URL$1,URLSearchParams:URLSearchParams,Url:Url,default:_polyfillNode_url,fileURLToPath:urlFileURLToPath,format:urlFormat,parse:urlParse,resolve:urlResolve,resolveObject:urlResolveObject}),require$$0=getAugmentedNamespace(_polyfillNode_url$1),url,hasRequiredUrl,hasRequiredUtil;function requireUrl(){return hasRequiredUrl?url:(hasRequiredUrl=1,url="function"==typeof URL?URL:require$$0.URL)}function requireUtil(){if(hasRequiredUtil)return util;hasRequiredUtil=1;const e=requireUrl();util.getArg=function(e,t,n){if(t in e)return e[t];if(3===arguments.length)return n;throw new Error('"'+t+'" is a required argument.')};const t=!("__proto__"in Object.create(null));function n(e){return e}function r(e){if(!e)return!1;const t=e.length;if(t<9)return!1;if(95!==e.charCodeAt(t-1)||95!==e.charCodeAt(t-2)||111!==e.charCodeAt(t-3)||116!==e.charCodeAt(t-4)||111!==e.charCodeAt(t-5)||114!==e.charCodeAt(t-6)||112!==e.charCodeAt(t-7)||95!==e.charCodeAt(t-8)||95!==e.charCodeAt(t-9))return!1;for(let n=t-10;n>=0;n--)if(36!==e.charCodeAt(n))return!1;return!0}function i(e,t){return e===t?0:null===e?1:null===t?-1:e>t?1:-1}util.toSetString=t?n:function(e){return r(e)?"$"+e:e},util.fromSetString=t?n:function(e){return r(e)?e.slice(1):e},util.compareByGeneratedPositionsInflated=function(e,t){let n=e.generatedLine-t.generatedLine;return 0!==n?n:(n=e.generatedColumn-t.generatedColumn,0!==n?n:(n=i(e.source,t.source),0!==n?n:(n=e.originalLine-t.originalLine,0!==n?n:(n=e.originalColumn-t.originalColumn,0!==n?n:i(e.name,t.name)))))},util.parseSourceMapInput=function(e){return JSON.parse(e.replace(/^\)]}'[^\n]*\n/,""))};const a="http://host";function o(t){return n=>{const r=u(n),i=c(n),a=new e(n,i);t(a);const o=a.toString();return"absolute"===r?o:"scheme-relative"===r?o.slice(5):"path-absolute"===r?o.slice(11):d(i,o)}}function s(t,n){return new e(t,n).toString()}function c(e){const t=e.split("..").length-1,n=function(e,t){let n=0;for(;;){const e="p"+n++;if(-1===t.indexOf(e))return e}}(0,e);let r=`${a}/`;for(let e=0;e0&&!i[i.length-1]&&i.pop();r.length>0&&i.length>0&&r[0]===i[0];)r.shift(),i.shift();return i.map(()=>"..").concat(r).join("/")+n.search+n.hash}const p=o(e=>{e.pathname=e.pathname.replace(/\/?$/,"/")}),m=o(t=>{t.href=new e(".",t.toString()).toString()}),f=o(e=>{});function _(e,t){const n=u(t),r=u(e);if(e=p(e),"absolute"===n)return s(t,void 0);if("absolute"===r)return s(t,e);if("scheme-relative"===n)return f(t);if("scheme-relative"===r)return s(t,s(e,a)).slice(5);if("path-absolute"===n)return f(t);if("path-absolute"===r)return s(t,s(e,a)).slice(11);const i=c(t+e);return d(i,s(t,s(e,i)))}return util.normalize=f,util.join=_,util.relative=function(t,n){const r=function(t,n){if(u(t)!==u(n))return null;const r=c(t+n),i=new e(t,r),a=new e(n,r);try{new e("",a.toString())}catch(e){return null}return a.protocol!==i.protocol||a.user!==i.user||a.password!==i.password||a.hostname!==i.hostname||a.port!==i.port?null:d(i,a)}(t,n);return"string"==typeof r?r:f(n)},util.computeSourceURL=function(e,t,n){e&&"path-absolute"===u(t)&&(t=t.replace(/^\//,""));let r=f(t||"");return e&&(r=_(e,r)),n&&(r=_(m(n),r)),r},util}var arraySet={},hasRequiredArraySet;function requireArraySet(){if(hasRequiredArraySet)return arraySet;hasRequiredArraySet=1;class e{constructor(){this._array=[],this._set=new Map}static fromArray(t,n){const r=new e;for(let e=0,i=t.length;e=0)return t;throw new Error('"'+e+'" is not in the set.')}at(e){if(e>=0&&er||i==r&&o>=a||e.compareByGeneratedPositionsInflated(t,n)<=0}(this._last,t)?(this._sorted=!1,this._array.push(t)):(this._last=t,this._array.push(t))}toArray(){return this._sorted||(this._array.sort(e.compareByGeneratedPositionsInflated),this._sorted=!0),this._array}},mappingList}function requireSourceMapGenerator(){if(hasRequiredSourceMapGenerator)return sourceMapGenerator;hasRequiredSourceMapGenerator=1;const e=requireBase64Vlq(),t=requireUtil(),n=requireArraySet().ArraySet,r=requireMappingList().MappingList;class i{constructor(e){e||(e={}),this._file=t.getArg(e,"file",null),this._sourceRoot=t.getArg(e,"sourceRoot",null),this._skipValidation=t.getArg(e,"skipValidation",!1),this._sources=new n,this._names=new n,this._mappings=new r,this._sourcesContents=null}static fromSourceMap(e){const n=e.sourceRoot,r=new i({file:e.file,sourceRoot:n});return e.eachMapping(function(e){const i={generated:{line:e.generatedLine,column:e.generatedColumn}};null!=e.source&&(i.source=e.source,null!=n&&(i.source=t.relative(n,i.source)),i.original={line:e.originalLine,column:e.originalColumn},null!=e.name&&(i.name=e.name)),r.addMapping(i)}),e.sources.forEach(function(i){let a=i;null!=n&&(a=t.relative(n,i)),r._sources.has(a)||r._sources.add(a);const o=e.sourceContentFor(i);null!=o&&r.setSourceContent(i,o)}),r}addMapping(e){const n=t.getArg(e,"generated"),r=t.getArg(e,"original",null);let i=t.getArg(e,"source",null),a=t.getArg(e,"name",null);this._skipValidation||this._validateMapping(n,r,i,a),null!=i&&(i=String(i),this._sources.has(i)||this._sources.add(i)),null!=a&&(a=String(a),this._names.has(a)||this._names.add(a)),this._mappings.add({generatedLine:n.line,generatedColumn:n.column,originalLine:r&&r.line,originalColumn:r&&r.column,source:i,name:a})}setSourceContent(e,n){let r=e;null!=this._sourceRoot&&(r=t.relative(this._sourceRoot,r)),null!=n?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[t.toSetString(r)]=n):this._sourcesContents&&(delete this._sourcesContents[t.toSetString(r)],0===Object.keys(this._sourcesContents).length&&(this._sourcesContents=null))}applySourceMap(e,r,i){let a=r;if(null==r){if(null==e.file)throw new Error('SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map\'s "file" property. Both were omitted.');a=e.file}const o=this._sourceRoot;null!=o&&(a=t.relative(o,a));const s=this._mappings.toArray().length>0?new n:this._sources,c=new n;this._mappings.unsortedForEach(function(n){if(n.source===a&&null!=n.originalLine){const r=e.originalPositionFor({line:n.originalLine,column:n.originalColumn});null!=r.source&&(n.source=r.source,null!=i&&(n.source=t.join(i,n.source)),null!=o&&(n.source=t.relative(o,n.source)),n.originalLine=r.line,n.originalColumn=r.column,null!=r.name&&(n.name=r.name))}const r=n.source;null==r||s.has(r)||s.add(r);const l=n.name;null==l||c.has(l)||c.add(l)},this),this._sources=s,this._names=c,e.sources.forEach(function(n){const r=e.sourceContentFor(n);null!=r&&(null!=i&&(n=t.join(i,n)),null!=o&&(n=t.relative(o,n)),this.setSourceContent(n,r))},this)}_validateMapping(e,t,n,r){if(t&&"number"!=typeof t.line&&"number"!=typeof t.column)throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if(e&&"line"in e&&"column"in e&&e.line>0&&e.column>=0&&!t&&!n&&!r);else if(!(e&&"line"in e&&"column"in e&&t&&"line"in t&&"column"in t&&e.line>0&&e.column>=0&&t.line>0&&t.column>=0&&n))throw new Error("Invalid mapping: "+JSON.stringify({generated:e,source:n,original:t,name:r}))}_serializeMappings(){let n,r,i,a,o=0,s=1,c=0,l=0,u=0,d=0,p="";const m=this._mappings.toArray();for(let f=0,_=m.length;f<_;f++){if(r=m[f],n="",r.generatedLine!==s)for(o=0;r.generatedLine!==s;)n+=";",s++;else if(f>0){if(!t.compareByGeneratedPositionsInflated(r,m[f-1]))continue;n+=","}n+=e.encode(r.generatedColumn-o),o=r.generatedColumn,null!=r.source&&(a=this._sources.indexOf(r.source),n+=e.encode(a-d),d=a,n+=e.encode(r.originalLine-1-l),l=r.originalLine-1,n+=e.encode(r.originalColumn-c),c=r.originalColumn,null!=r.name&&(i=this._names.indexOf(r.name),n+=e.encode(i-u),u=i)),p+=n}return p}_generateSourcesContent(e,n){return e.map(function(e){if(!this._sourcesContents)return null;null!=n&&(e=t.relative(n,e));const r=t.toSetString(e);return Object.prototype.hasOwnProperty.call(this._sourcesContents,r)?this._sourcesContents[r]:null},this)}toJSON(){const e={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return null!=this._file&&(e.file=this._file),null!=this._sourceRoot&&(e.sourceRoot=this._sourceRoot),this._sourcesContents&&(e.sourcesContent=this._generateSourcesContent(e.sources,e.sourceRoot)),e}toString(){return JSON.stringify(this.toJSON())}}return i.prototype._version=3,sourceMapGenerator.SourceMapGenerator=i,sourceMapGenerator}var sourceMapConsumer={},binarySearch={},hasRequiredBinarySearch;function requireBinarySearch(){return hasRequiredBinarySearch||(hasRequiredBinarySearch=1,function(e){function t(n,r,i,a,o,s){const c=Math.floor((r-n)/2)+n,l=o(i,a[c],!0);return 0===l?c:l>0?r-c>1?t(c,r,i,a,o,s):s===e.LEAST_UPPER_BOUND?r1?t(n,c,i,a,o,s):s==e.LEAST_UPPER_BOUND?c:n<0?-1:n}e.GREATEST_LOWER_BOUND=1,e.LEAST_UPPER_BOUND=2,e.search=function(n,r,i,a){if(0===r.length)return-1;let o=t(-1,r.length,n,r,i,a||e.GREATEST_LOWER_BOUND);if(o<0)return-1;for(;o-1>=0&&0===i(r[o],r[o-1],!0);)--o;return o}}(binarySearch)),binarySearch}var __dirname$2="/Users/shreyjain/Downloads/source-academy/js-slang/node_modules/source-map/lib",readWasm={exports:{}},_polyfillNode_fs={},_polyfillNode_fs$1=Object.freeze({__proto__:null,default:_polyfillNode_fs}),require$$3=getAugmentedNamespace(_polyfillNode_fs$1),pathBrowserify$1,hasRequiredPathBrowserify;function requirePathBrowserify(){if(hasRequiredPathBrowserify)return pathBrowserify$1;function e(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function t(e,t){for(var n,r="",i=0,a=-1,o=0,s=0;s<=e.length;++s){if(s2){var c=r.lastIndexOf("/");if(c!==r.length-1){-1===c?(r="",i=0):i=(r=r.slice(0,c)).length-1-r.lastIndexOf("/"),a=s,o=0;continue}}else if(2===r.length||1===r.length){r="",i=0,a=s,o=0;continue}t&&(r.length>0?r+="/..":r="..",i=2)}else r.length>0?r+="/"+e.slice(a+1,s):r=e.slice(a+1,s),i=s-a-1;a=s,o=0}else 46===n&&-1!==o?++o:o=-1}return r}hasRequiredPathBrowserify=1;var n={resolve:function(){for(var n,r="",i=!1,a=arguments.length-1;a>=-1&&!i;a--){var o;a>=0?o=arguments[a]:(void 0===n&&(n=browser$1.cwd()),o=n),e(o),0!==o.length&&(r=o+"/"+r,i=47===o.charCodeAt(0))}return r=t(r,!i),i?r.length>0?"/"+r:"/":r.length>0?r:"."},normalize:function(n){if(e(n),0===n.length)return".";var r=47===n.charCodeAt(0),i=47===n.charCodeAt(n.length-1);return 0!==(n=t(n,!r)).length||r||(n="."),n.length>0&&i&&(n+="/"),r?"/"+n:n},isAbsolute:function(t){return e(t),t.length>0&&47===t.charCodeAt(0)},join:function(){if(0===arguments.length)return".";for(var t,r=0;r0&&(void 0===t?t=i:t+="/"+i)}return void 0===t?".":n.normalize(t)},relative:function(t,r){if(e(t),e(r),t===r)return"";if((t=n.resolve(t))===(r=n.resolve(r)))return"";for(var i=1;il){if(47===r.charCodeAt(s+d))return r.slice(s+d+1);if(0===d)return r.slice(s+d)}else o>l&&(47===t.charCodeAt(i+d)?u=d:0===d&&(u=0));break}var p=t.charCodeAt(i+d);if(p!==r.charCodeAt(s+d))break;47===p&&(u=d)}var m="";for(d=i+u+1;d<=a;++d)d!==a&&47!==t.charCodeAt(d)||(0===m.length?m+="..":m+="/..");return m.length>0?m+r.slice(s+u):(s+=u,47===r.charCodeAt(s)&&++s,r.slice(s))},_makeLong:function(e){return e},dirname:function(t){if(e(t),0===t.length)return".";for(var n=t.charCodeAt(0),r=47===n,i=-1,a=!0,o=t.length-1;o>=1;--o)if(47===(n=t.charCodeAt(o))){if(!a){i=o;break}}else a=!1;return-1===i?r?"/":".":r&&1===i?"//":t.slice(0,i)},basename:function(t,n){if(void 0!==n&&"string"!=typeof n)throw new TypeError('"ext" argument must be a string');e(t);var r,i=0,a=-1,o=!0;if(void 0!==n&&n.length>0&&n.length<=t.length){if(n.length===t.length&&n===t)return"";var s=n.length-1,c=-1;for(r=t.length-1;r>=0;--r){var l=t.charCodeAt(r);if(47===l){if(!o){i=r+1;break}}else-1===c&&(o=!1,c=r+1),s>=0&&(l===n.charCodeAt(s)?-1===--s&&(a=r):(s=-1,a=c))}return i===a?a=c:-1===a&&(a=t.length),t.slice(i,a)}for(r=t.length-1;r>=0;--r)if(47===t.charCodeAt(r)){if(!o){i=r+1;break}}else-1===a&&(o=!1,a=r+1);return-1===a?"":t.slice(i,a)},extname:function(t){e(t);for(var n=-1,r=0,i=-1,a=!0,o=0,s=t.length-1;s>=0;--s){var c=t.charCodeAt(s);if(47!==c)-1===i&&(a=!1,i=s+1),46===c?-1===n?n=s:1!==o&&(o=1):-1!==n&&(o=-1);else if(!a){r=s+1;break}}return-1===n||-1===i||0===o||1===o&&n===i-1&&n===r+1?"":t.slice(n,i)},format:function(e){if(null===e||"object"!=typeof e)throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return function(e,t){var n=t.dir||t.root,r=t.base||(t.name||"")+(t.ext||"");return n?n===t.root?n+r:n+"/"+r:r}(0,e)},parse:function(t){e(t);var n={root:"",dir:"",base:"",ext:"",name:""};if(0===t.length)return n;var r,i=t.charCodeAt(0),a=47===i;a?(n.root="/",r=1):r=0;for(var o=-1,s=0,c=-1,l=!0,u=t.length-1,d=0;u>=r;--u)if(47!==(i=t.charCodeAt(u)))-1===c&&(l=!1,c=u+1),46===i?-1===o?o=u:1!==d&&(d=1):-1!==o&&(d=-1);else if(!l){s=u+1;break}return-1===o||-1===c||0===d||1===d&&o===c-1&&o===s+1?-1!==c&&(n.base=n.name=0===s&&a?t.slice(1,c):t.slice(s,c)):(0===s&&a?(n.name=t.slice(1,o),n.base=t.slice(1,c)):(n.name=t.slice(s,o),n.base=t.slice(s,c)),n.ext=t.slice(o,c)),s>0?n.dir=t.slice(0,s-1):a&&(n.dir="/"),n},sep:"/",delimiter:":",win32:null,posix:null};return n.posix=n,pathBrowserify$1=n}var pathBrowserifyExports=requirePathBrowserify(),pathBrowserify=getDefaultExportFromCjs(pathBrowserifyExports);const path$1=pathBrowserify.default??pathBrowserify,posix=path$1.posix??path$1,win32=path$1.win32??path$1,{basename:basename,delimiter:delimiter,dirname:dirname,extname:extname,format:format,isAbsolute:isAbsolute,join:join,normalize:normalize,parse:parse$7,relative:relative,resolve:resolve,sep:sep}=path$1;var path$2=Object.freeze({__proto__:null,basename:basename,default:path$1,delimiter:delimiter,dirname:dirname,extname:extname,format:format,isAbsolute:isAbsolute,join:join,normalize:normalize,parse:parse$7,posix:posix,relative:relative,resolve:resolve,sep:sep,win32:win32}),require$$6=getAugmentedNamespace(path$2),hasRequiredReadWasm,wasm,hasRequiredWasm,hasRequiredSourceMapConsumer;function requireReadWasm(){if(hasRequiredReadWasm)return readWasm.exports;hasRequiredReadWasm=1;const e=require$$3,t=require$$6;return readWasm.exports=function(){return new Promise((n,r)=>{const i=t.join(__dirname$2,"mappings.wasm");e.readFile(i,null,(e,t)=>{e?r(e):n(t.buffer)})})},readWasm.exports.initialize=e=>{console.debug("SourceMapConsumer.initialize is a no-op when running in node.js")},readWasm.exports}function requireWasm(){if(hasRequiredWasm)return wasm;hasRequiredWasm=1;const e=requireReadWasm();function t(){this.generatedLine=0,this.generatedColumn=0,this.lastGeneratedColumn=null,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}let n=null;return wasm=function(){if(n)return n;const r=[];return n=e().then(e=>WebAssembly.instantiate(e,{env:{mapping_callback(e,n,i,a,o,s,c,l,u,d){const p=new t;p.generatedLine=e+1,p.generatedColumn=n,i&&(p.lastGeneratedColumn=a-1),o&&(p.source=s,p.originalLine=c+1,p.originalColumn=l,u&&(p.name=d)),r[r.length-1](p)},start_all_generated_locations_for(){console.time("all_generated_locations_for")},end_all_generated_locations_for(){console.timeEnd("all_generated_locations_for")},start_compute_column_spans(){console.time("compute_column_spans")},end_compute_column_spans(){console.timeEnd("compute_column_spans")},start_generated_location_for(){console.time("generated_location_for")},end_generated_location_for(){console.timeEnd("generated_location_for")},start_original_location_for(){console.time("original_location_for")},end_original_location_for(){console.timeEnd("original_location_for")},start_parse_mappings(){console.time("parse_mappings")},end_parse_mappings(){console.timeEnd("parse_mappings")},start_sort_by_generated_location(){console.time("sort_by_generated_location")},end_sort_by_generated_location(){console.timeEnd("sort_by_generated_location")},start_sort_by_original_location(){console.time("sort_by_original_location")},end_sort_by_original_location(){console.timeEnd("sort_by_original_location")}}})).then(e=>({exports:e.instance.exports,withMappingCallback:(e,t)=>{r.push(e);try{t()}finally{r.pop()}}})).then(null,e=>{throw n=null,e}),n},wasm}function requireSourceMapConsumer(){if(hasRequiredSourceMapConsumer)return sourceMapConsumer;hasRequiredSourceMapConsumer=1;const e=requireUtil(),t=requireBinarySearch(),n=requireArraySet().ArraySet,r=requireReadWasm(),i=requireWasm(),a=Symbol("smcInternal");class o{constructor(t,n){return t==a?Promise.resolve(this):function(t,n){let r=t;"string"==typeof t&&(r=e.parseSourceMapInput(t));const i=null!=r.sections?new c(r,n):new s(r,n);return Promise.resolve(i)}(t,n)}static initialize(e){r.initialize(e["lib/mappings.wasm"])}static fromSourceMap(e,t){return function(e,t){return s.fromSourceMap(e,t)}(e,t)}static async with(e,t,n){const r=await new o(e,t);try{return await n(r)}finally{r.destroy()}}eachMapping(e,t,n){throw new Error("Subclasses must implement eachMapping")}allGeneratedPositionsFor(e){throw new Error("Subclasses must implement allGeneratedPositionsFor")}destroy(){throw new Error("Subclasses must implement destroy")}}o.prototype._version=3,o.GENERATED_ORDER=1,o.ORIGINAL_ORDER=2,o.GREATEST_LOWER_BOUND=1,o.LEAST_UPPER_BOUND=2,sourceMapConsumer.SourceMapConsumer=o;class s extends o{constructor(t,r){return super(a).then(a=>{let o=t;"string"==typeof t&&(o=e.parseSourceMapInput(t));const s=e.getArg(o,"version"),c=e.getArg(o,"sources").map(String),l=e.getArg(o,"names",[]),u=e.getArg(o,"sourceRoot",null),d=e.getArg(o,"sourcesContent",null),p=e.getArg(o,"mappings"),m=e.getArg(o,"file",null),f=e.getArg(o,"x_google_ignoreList",null);if(s!=a._version)throw new Error("Unsupported version: "+s);return a._sourceLookupCache=new Map,a._names=n.fromArray(l.map(String),!0),a._sources=n.fromArray(c,!0),a._absoluteSources=n.fromArray(a._sources.toArray().map(function(t){return e.computeSourceURL(u,t,r)}),!0),a.sourceRoot=u,a.sourcesContent=d,a._mappings=p,a._sourceMapURL=r,a.file=m,a.x_google_ignoreList=f,a._computedColumnSpans=!1,a._mappingsPtr=0,a._wasm=null,i().then(e=>(a._wasm=e,a))})}_findSourceIndex(t){const n=this._sourceLookupCache.get(t);if("number"==typeof n)return n;const r=e.computeSourceURL(null,t,this._sourceMapURL);if(this._absoluteSources.has(r)){const e=this._absoluteSources.indexOf(r);return this._sourceLookupCache.set(t,e),e}const i=e.computeSourceURL(this.sourceRoot,t,this._sourceMapURL);if(this._absoluteSources.has(i)){const e=this._absoluteSources.indexOf(i);return this._sourceLookupCache.set(t,e),e}return-1}static fromSourceMap(e,t){return new s(e.toString())}get sources(){return this._absoluteSources.toArray()}_getMappingsPtr(){return 0===this._mappingsPtr&&this._parseMappings(),this._mappingsPtr}_parseMappings(){const e=this._mappings,t=e.length,n=this._wasm.exports.allocate_mappings(t)>>>0,r=new Uint8Array(this._wasm.exports.memory.buffer,n,t);for(let n=0;n{null!==t.source&&(t.source=this._absoluteSources.at(t.source),null!==t.name&&(t.name=this._names.at(t.name))),this._computedColumnSpans&&null===t.lastGeneratedColumn&&(t.lastGeneratedColumn=1/0),e.call(r,t)},()=>{switch(i){case o.GENERATED_ORDER:this._wasm.exports.by_generated_location(this._getMappingsPtr());break;case o.ORIGINAL_ORDER:this._wasm.exports.by_original_location(this._getMappingsPtr());break;default:throw new Error("Unknown order of iteration.")}})}allGeneratedPositionsFor(t){let n=e.getArg(t,"source");const r=e.getArg(t,"line"),i=t.column||0;if(n=this._findSourceIndex(n),n<0)return[];if(r<1)throw new Error("Line numbers must be >= 1");if(i<0)throw new Error("Column numbers must be >= 0");const a=[];return this._wasm.withMappingCallback(e=>{let t=e.lastGeneratedColumn;this._computedColumnSpans&&null===t&&(t=1/0),a.push({line:e.generatedLine,column:e.generatedColumn,lastColumn:t})},()=>{this._wasm.exports.all_generated_locations_for(this._getMappingsPtr(),n,r-1,"column"in t,i)}),a}destroy(){0!==this._mappingsPtr&&(this._wasm.exports.free_mappings(this._mappingsPtr),this._mappingsPtr=0)}computeColumnSpans(){this._computedColumnSpans||(this._wasm.exports.compute_column_spans(this._getMappingsPtr()),this._computedColumnSpans=!0)}originalPositionFor(t){const n={generatedLine:e.getArg(t,"line"),generatedColumn:e.getArg(t,"column")};if(n.generatedLine<1)throw new Error("Line numbers must be >= 1");if(n.generatedColumn<0)throw new Error("Column numbers must be >= 0");let r,i=e.getArg(t,"bias",o.GREATEST_LOWER_BOUND);if(null==i&&(i=o.GREATEST_LOWER_BOUND),this._wasm.withMappingCallback(e=>r=e,()=>{this._wasm.exports.original_location_for(this._getMappingsPtr(),n.generatedLine-1,n.generatedColumn,i)}),r&&r.generatedLine===n.generatedLine){let t=e.getArg(r,"source",null);null!==t&&(t=this._absoluteSources.at(t));let n=e.getArg(r,"name",null);return null!==n&&(n=this._names.at(n)),{source:t,line:e.getArg(r,"originalLine",null),column:e.getArg(r,"originalColumn",null),name:n}}return{source:null,line:null,column:null,name:null}}hasContentsOfAllSources(){return!!this.sourcesContent&&this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(e){return null==e})}sourceContentFor(e,t){if(!this.sourcesContent)return null;const n=this._findSourceIndex(e);if(n>=0)return this.sourcesContent[n];if(t)return null;throw new Error('"'+e+'" is not in the SourceMap.')}generatedPositionFor(t){let n=e.getArg(t,"source");if(n=this._findSourceIndex(n),n<0)return{line:null,column:null,lastColumn:null};const r={source:n,originalLine:e.getArg(t,"line"),originalColumn:e.getArg(t,"column")};if(r.originalLine<1)throw new Error("Line numbers must be >= 1");if(r.originalColumn<0)throw new Error("Column numbers must be >= 0");let i,a=e.getArg(t,"bias",o.GREATEST_LOWER_BOUND);if(null==a&&(a=o.GREATEST_LOWER_BOUND),this._wasm.withMappingCallback(e=>i=e,()=>{this._wasm.exports.generated_location_for(this._getMappingsPtr(),r.source,r.originalLine-1,r.originalColumn,a)}),i&&i.source===r.source){let t=i.lastGeneratedColumn;return this._computedColumnSpans&&null===t&&(t=1/0),{line:e.getArg(i,"generatedLine",null),column:e.getArg(i,"generatedColumn",null),lastColumn:t}}return{line:null,column:null,lastColumn:null}}}s.prototype.consumer=o,sourceMapConsumer.BasicSourceMapConsumer=s;class c extends o{constructor(t,n){return super(a).then(r=>{let i=t;"string"==typeof t&&(i=e.parseSourceMapInput(t));const a=e.getArg(i,"version"),s=e.getArg(i,"sections");if(a!=r._version)throw new Error("Unsupported version: "+a);let c={line:-1,column:0};return Promise.all(s.map(t=>{if(t.url)throw new Error("Support for url field in sections not implemented.");const r=e.getArg(t,"offset"),i=e.getArg(r,"line"),a=e.getArg(r,"column");if(i({generatedOffset:{generatedLine:i+1,generatedColumn:a+1},consumer:e}))})).then(e=>(r._sections=e,r))})}get sources(){const e=[];for(let t=0;t=0?this._sections[n]:null,i=n>=0&&n+1=0?this._sections[n]:null,i=n>=0&&n+1{const t=r.generatedOffset.generatedLine-1,n=r.generatedOffset.generatedColumn-1;return 1===e.line&&(e.column+=n,"number"==typeof e.lastColumn&&(e.lastColumn+=n)),e.lastColumn===1/0&&i&&e.line===i.generatedOffset.generatedLine&&(e.lastColumn=i.generatedOffset.generatedColumn-2),e.line+=t,e}):[]}eachMapping(e,t,n){this._sections.forEach((r,i)=>{const a=i+1=0;t--)this.prepend(e[t]);else{if(!e[r]&&"string"!=typeof e)throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);this.children.unshift(e)}return this}walk(e){let t;for(let n=0,i=this.children.length;n0){for(t=[],n=0;n + * Copyright OpenJS Foundation and other contributors + * Released under MIT license + * Based on Underscore.js 1.8.3 + * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors + */function requireLodash(){return hasRequiredLodash||(hasRequiredLodash=1,e=lodash$1,t=lodash$1.exports,function(){var n,r="Expected a function",i="__lodash_hash_undefined__",a="__lodash_placeholder__",o=32,s=128,c=1/0,l=9007199254740991,u=NaN,d=4294967295,p=[["ary",s],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",o],["partialRight",64],["rearg",256]],m="[object Arguments]",f="[object Array]",_="[object Boolean]",h="[object Date]",g="[object Error]",y="[object Function]",v="[object GeneratorFunction]",b="[object Map]",E="[object Number]",x="[object Object]",S="[object Promise]",T="[object RegExp]",C="[object Set]",D="[object String]",L="[object Symbol]",A="[object WeakMap]",N="[object ArrayBuffer]",k="[object DataView]",I="[object Float32Array]",P="[object Float64Array]",w="[object Int8Array]",O="[object Int16Array]",R="[object Int32Array]",M="[object Uint8Array]",F="[object Uint8ClampedArray]",G="[object Uint16Array]",B="[object Uint32Array]",U=/\b__p \+= '';/g,V=/\b(__p \+=) '' \+/g,K=/(__e\(.*?\)|\b__t\)) \+\n'';/g,j=/&(?:amp|lt|gt|quot|#39);/g,H=/[&<>"']/g,W=RegExp(j.source),$=RegExp(H.source),q=/<%-([\s\S]+?)%>/g,z=/<%([\s\S]+?)%>/g,J=/<%=([\s\S]+?)%>/g,X=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Y=/^\w*$/,Q=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Z=/[\\^$.*+?()[\]{}|]/g,ee=RegExp(Z.source),te=/^\s+/,ne=/\s/,re=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ie=/\{\n\/\* \[wrapped with (.+)\] \*/,ae=/,? & /,oe=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,se=/[()=,{}\[\]\/\s]/,ce=/\\(\\)?/g,le=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ue=/\w*$/,de=/^[-+]0x[0-9a-f]+$/i,pe=/^0b[01]+$/i,me=/^\[object .+?Constructor\]$/,fe=/^0o[0-7]+$/i,_e=/^(?:0|[1-9]\d*)$/,he=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ge=/($^)/,ye=/['\n\r\u2028\u2029\\]/g,ve="\\ud800-\\udfff",be="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Ee="\\u2700-\\u27bf",xe="a-z\\xdf-\\xf6\\xf8-\\xff",Se="A-Z\\xc0-\\xd6\\xd8-\\xde",Te="\\ufe0e\\ufe0f",Ce="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",De="["+ve+"]",Le="["+Ce+"]",Ae="["+be+"]",Ne="\\d+",ke="["+Ee+"]",Ie="["+xe+"]",Pe="[^"+ve+Ce+Ne+Ee+xe+Se+"]",we="\\ud83c[\\udffb-\\udfff]",Oe="[^"+ve+"]",Re="(?:\\ud83c[\\udde6-\\uddff]){2}",Me="[\\ud800-\\udbff][\\udc00-\\udfff]",Fe="["+Se+"]",Ge="\\u200d",Be="(?:"+Ie+"|"+Pe+")",Ue="(?:"+Fe+"|"+Pe+")",Ve="(?:['’](?:d|ll|m|re|s|t|ve))?",Ke="(?:['’](?:D|LL|M|RE|S|T|VE))?",je="(?:"+Ae+"|"+we+")?",He="["+Te+"]?",We=He+je+"(?:"+Ge+"(?:"+[Oe,Re,Me].join("|")+")"+He+je+")*",$e="(?:"+[ke,Re,Me].join("|")+")"+We,qe="(?:"+[Oe+Ae+"?",Ae,Re,Me,De].join("|")+")",ze=RegExp("['’]","g"),Je=RegExp(Ae,"g"),Xe=RegExp(we+"(?="+we+")|"+qe+We,"g"),Ye=RegExp([Fe+"?"+Ie+"+"+Ve+"(?="+[Le,Fe,"$"].join("|")+")",Ue+"+"+Ke+"(?="+[Le,Fe+Be,"$"].join("|")+")",Fe+"?"+Be+"+"+Ve,Fe+"+"+Ke,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ne,$e].join("|"),"g"),Qe=RegExp("["+Ge+ve+be+Te+"]"),Ze=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,et=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],tt=-1,nt={};nt[I]=nt[P]=nt[w]=nt[O]=nt[R]=nt[M]=nt[F]=nt[G]=nt[B]=!0,nt[m]=nt[f]=nt[N]=nt[_]=nt[k]=nt[h]=nt[g]=nt[y]=nt[b]=nt[E]=nt[x]=nt[T]=nt[C]=nt[D]=nt[A]=!1;var rt={};rt[m]=rt[f]=rt[N]=rt[k]=rt[_]=rt[h]=rt[I]=rt[P]=rt[w]=rt[O]=rt[R]=rt[b]=rt[E]=rt[x]=rt[T]=rt[C]=rt[D]=rt[L]=rt[M]=rt[F]=rt[G]=rt[B]=!0,rt[g]=rt[y]=rt[A]=!1;var it={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},at=parseFloat,ot=parseInt,st="object"==typeof commonjsGlobal&&commonjsGlobal&&commonjsGlobal.Object===Object&&commonjsGlobal,ct="object"==typeof self&&self&&self.Object===Object&&self,lt=st||ct||Function("return this")(),ut=t&&!t.nodeType&&t,dt=ut&&e&&!e.nodeType&&e,pt=dt&&dt.exports===ut,mt=pt&&st.process,ft=function(){try{return dt&&dt.require&&dt.require("util").types||mt&&mt.binding&&mt.binding("util")}catch(e){}}(),_t=ft&&ft.isArrayBuffer,ht=ft&&ft.isDate,gt=ft&&ft.isMap,yt=ft&&ft.isRegExp,vt=ft&&ft.isSet,bt=ft&&ft.isTypedArray;function Et(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function xt(e,t,n,r){for(var i=-1,a=null==e?0:e.length;++i-1}function At(e,t,n){for(var r=-1,i=null==e?0:e.length;++r-1;);return n}function Yt(e,t){for(var n=e.length;n--&&Ft(t,e[n],0)>-1;);return n}var Qt=Kt({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),Zt=Kt({"&":"&","<":"<",">":">",'"':""","'":"'"});function en(e){return"\\"+it[e]}function tn(e){return Qe.test(e)}function nn(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function rn(e,t){return function(n){return e(t(n))}}function an(e,t){for(var n=-1,r=e.length,i=0,o=[];++n",""":'"',"'":"'"}),pn=function e(t){var ne,ve=(t=null==t?lt:pn.defaults(lt.Object(),t,pn.pick(lt,et))).Array,be=t.Date,Ee=t.Error,xe=t.Function,Se=t.Math,Te=t.Object,Ce=t.RegExp,De=t.String,Le=t.TypeError,Ae=ve.prototype,Ne=xe.prototype,ke=Te.prototype,Ie=t["__core-js_shared__"],Pe=Ne.toString,we=ke.hasOwnProperty,Oe=0,Re=(ne=/[^.]+$/.exec(Ie&&Ie.keys&&Ie.keys.IE_PROTO||""))?"Symbol(src)_1."+ne:"",Me=ke.toString,Fe=Pe.call(Te),Ge=lt._,Be=Ce("^"+Pe.call(we).replace(Z,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ue=pt?t.Buffer:n,Ve=t.Symbol,Ke=t.Uint8Array,je=Ue?Ue.allocUnsafe:n,He=rn(Te.getPrototypeOf,Te),We=Te.create,$e=ke.propertyIsEnumerable,qe=Ae.splice,Xe=Ve?Ve.isConcatSpreadable:n,Qe=Ve?Ve.iterator:n,it=Ve?Ve.toStringTag:n,st=function(){try{var e=ca(Te,"defineProperty");return e({},"",{}),e}catch(e){}}(),ct=t.clearTimeout!==lt.clearTimeout&&t.clearTimeout,ut=be&&be.now!==lt.Date.now&&be.now,dt=t.setTimeout!==lt.setTimeout&&t.setTimeout,mt=Se.ceil,ft=Se.floor,Ot=Te.getOwnPropertySymbols,Kt=Ue?Ue.isBuffer:n,mn=t.isFinite,fn=Ae.join,_n=rn(Te.keys,Te),hn=Se.max,gn=Se.min,yn=be.now,vn=t.parseInt,bn=Se.random,En=Ae.reverse,xn=ca(t,"DataView"),Sn=ca(t,"Map"),Tn=ca(t,"Promise"),Cn=ca(t,"Set"),Dn=ca(t,"WeakMap"),Ln=ca(Te,"create"),An=Dn&&new Dn,Nn={},kn=Ma(xn),In=Ma(Sn),Pn=Ma(Tn),wn=Ma(Cn),On=Ma(Dn),Rn=Ve?Ve.prototype:n,Mn=Rn?Rn.valueOf:n,Fn=Rn?Rn.toString:n;function Gn(e){if(es(e)&&!jo(e)&&!(e instanceof Kn)){if(e instanceof Vn)return e;if(we.call(e,"__wrapped__"))return Fa(e)}return new Vn(e)}var Bn=function(){function e(){}return function(t){if(!Zo(t))return{};if(We)return We(t);e.prototype=t;var r=new e;return e.prototype=n,r}}();function Un(){}function Vn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=n}function Kn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=d,this.__views__=[]}function jn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t=t?e:t)),e}function or(e,t,r,i,a,o){var s,c=1&t,l=2&t,u=4&t;if(r&&(s=a?r(e,i,a,o):r(e)),s!==n)return s;if(!Zo(e))return e;var d=jo(e);if(d){if(s=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&we.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!c)return Di(e,s)}else{var p=da(e),f=p==y||p==v;if(qo(e))return bi(e,c);if(p==x||p==m||f&&!a){if(s=l||f?{}:ma(e),!c)return l?function(e,t){return Li(e,ua(e),t)}(e,function(e,t){return e&&Li(t,Is(t),e)}(s,e)):function(e,t){return Li(e,la(e),t)}(e,nr(s,e))}else{if(!rt[p])return a?e:{};s=function(e,t,n){var r,i=e.constructor;switch(t){case N:return Ei(e);case _:case h:return new i(+e);case k:return function(e,t){var n=t?Ei(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case I:case P:case w:case O:case R:case M:case F:case G:case B:return xi(e,n);case b:return new i;case E:case D:return new i(e);case T:return function(e){var t=new e.constructor(e.source,ue.exec(e));return t.lastIndex=e.lastIndex,t}(e);case C:return new i;case L:return r=e,Mn?Te(Mn.call(r)):{}}}(e,p,c)}}o||(o=new qn);var g=o.get(e);if(g)return g;o.set(e,s),as(e)?e.forEach(function(n){s.add(or(n,t,r,n,e,o))}):ts(e)&&e.forEach(function(n,i){s.set(i,or(n,t,r,i,e,o))});var S=d?n:(u?l?ta:ea:l?Is:ks)(e);return St(S||e,function(n,i){S&&(n=e[i=n]),Zn(s,i,or(n,t,r,i,e,o))}),s}function sr(e,t,r){var i=r.length;if(null==e)return!i;for(e=Te(e);i--;){var a=r[i],o=t[a],s=e[a];if(s===n&&!(a in e)||!o(s))return!1}return!0}function cr(e,t,i){if("function"!=typeof e)throw new Le(r);return La(function(){e.apply(n,i)},t)}function lr(e,t,n,r){var i=-1,a=Lt,o=!0,s=e.length,c=[],l=t.length;if(!s)return c;n&&(t=Nt(t,qt(n))),r?(a=At,o=!1):t.length>=200&&(a=Jt,o=!1,t=new $n(t));e:for(;++i-1},Hn.prototype.set=function(e,t){var n=this.__data__,r=er(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Wn.prototype.clear=function(){this.size=0,this.__data__={hash:new jn,map:new(Sn||Hn),string:new jn}},Wn.prototype.delete=function(e){var t=oa(this,e).delete(e);return this.size-=t?1:0,t},Wn.prototype.get=function(e){return oa(this,e).get(e)},Wn.prototype.has=function(e){return oa(this,e).has(e)},Wn.prototype.set=function(e,t){var n=oa(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},$n.prototype.add=$n.prototype.push=function(e){return this.__data__.set(e,i),this},$n.prototype.has=function(e){return this.__data__.has(e)},qn.prototype.clear=function(){this.__data__=new Hn,this.size=0},qn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},qn.prototype.get=function(e){return this.__data__.get(e)},qn.prototype.has=function(e){return this.__data__.has(e)},qn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Hn){var r=n.__data__;if(!Sn||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Wn(r)}return n.set(e,t),this.size=n.size,this};var ur=ki(yr),dr=ki(vr,!0);function pr(e,t){var n=!0;return ur(e,function(e,r,i){return n=!!t(e,r,i)}),n}function mr(e,t,r){for(var i=-1,a=e.length;++i0&&n(s)?t>1?_r(s,t-1,n,r,i):kt(i,s):r||(i[i.length]=s)}return i}var hr=Ii(),gr=Ii(!0);function yr(e,t){return e&&hr(e,t,ks)}function vr(e,t){return e&&gr(e,t,ks)}function br(e,t){return Dt(t,function(t){return Xo(e[t])})}function Er(e,t){for(var r=0,i=(t=hi(t,e)).length;null!=e&&rt}function Cr(e,t){return null!=e&&we.call(e,t)}function Dr(e,t){return null!=e&&t in Te(e)}function Lr(e,t,r){for(var i=r?At:Lt,a=e[0].length,o=e.length,s=o,c=ve(o),l=1/0,u=[];s--;){var d=e[s];s&&t&&(d=Nt(d,qt(t))),l=gn(d.length,l),c[s]=!r&&(t||a>=120&&d.length>=120)?new $n(s&&d):n}d=e[0];var p=-1,m=c[0];e:for(;++p=s?c:c*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)});t--;)e[t]=e[t].value;return e}(i)}function Kr(e,t,n){for(var r=-1,i=t.length,a={};++r-1;)s!==e&&qe.call(s,c,1),qe.call(e,c,1);return e}function Hr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var i=t[n];if(n==r||i!==a){var a=i;_a(i)?qe.call(e,i,1):ci(e,i)}}return e}function Wr(e,t){return e+ft(bn()*(t-e+1))}function $r(e,t){var n="";if(!e||t<1||t>l)return n;do{t%2&&(n+=e),(t=ft(t/2))&&(e+=e)}while(t);return n}function qr(e,t){return Aa(Sa(e,t,nc),e+"")}function zr(e){return Jn(Bs(e))}function Jr(e,t){var n=Bs(e);return Ia(n,ar(t,0,n.length))}function Xr(e,t,r,i){if(!Zo(e))return e;for(var a=-1,o=(t=hi(t,e)).length,s=o-1,c=e;null!=c&&++ai?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=ve(i);++r>>1,o=e[a];null!==o&&!ss(o)&&(n?o<=t:o=200){var l=t?null:$i(e);if(l)return on(l);o=!1,i=Jt,c=new $n}else c=t?[]:s;e:for(;++r=i?e:ei(e,t,r)}var vi=ct||function(e){return lt.clearTimeout(e)};function bi(e,t){if(t)return e.slice();var n=e.length,r=je?je(n):new e.constructor(n);return e.copy(r),r}function Ei(e){var t=new e.constructor(e.byteLength);return new Ke(t).set(new Ke(e)),t}function xi(e,t){var n=t?Ei(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Si(e,t){if(e!==t){var r=e!==n,i=null===e,a=e==e,o=ss(e),s=t!==n,c=null===t,l=t==t,u=ss(t);if(!c&&!u&&!o&&e>t||o&&s&&l&&!c&&!u||i&&s&&l||!r&&l||!a)return 1;if(!i&&!o&&!u&&e1?r[a-1]:n,s=a>2?r[2]:n;for(o=e.length>3&&"function"==typeof o?(a--,o):n,s&&ha(r[0],r[1],s)&&(o=a<3?n:o,a=1),t=Te(t);++i-1?a[o?t[s]:s]:n}}function Mi(e){return Zi(function(t){var i=t.length,a=i,o=Vn.prototype.thru;for(e&&t.reverse();a--;){var s=t[a];if("function"!=typeof s)throw new Le(r);if(o&&!c&&"wrapper"==ra(s))var c=new Vn([],!0)}for(a=c?a:i;++a1&&v.reverse(),p&&uc))return!1;var u=o.get(e),d=o.get(t);if(u&&d)return u==t&&d==e;var p=-1,m=!0,f=2&r?new $n:n;for(o.set(e,t),o.set(t,e);++p-1&&e%1==0&&e1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(re,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return St(p,function(n){var r="_."+n[0];t&n[1]&&!Lt(e,r)&&e.push(r)}),e.sort()}(function(e){var t=e.match(ie);return t?t[1].split(ae):[]}(r),n)))}function ka(e){var t=0,r=0;return function(){var i=yn(),a=16-(i-r);if(r=i,a>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(n,arguments)}}function Ia(e,t){var r=-1,i=e.length,a=i-1;for(t=t===n?i:t;++r1?e[t-1]:n;return r="function"==typeof r?(e.pop(),r):n,ro(e,r)});function uo(e){var t=Gn(e);return t.__chain__=!0,t}function po(e,t){return t(e)}var mo=Zi(function(e){var t=e.length,r=t?e[0]:0,i=this.__wrapped__,a=function(t){return ir(t,e)};return!(t>1||this.__actions__.length)&&i instanceof Kn&&_a(r)?((i=i.slice(r,+r+(t?1:0))).__actions__.push({func:po,args:[a],thisArg:n}),new Vn(i,this.__chain__).thru(function(e){return t&&!e.length&&e.push(n),e})):this.thru(a)}),fo=Ai(function(e,t,n){we.call(e,n)?++e[n]:rr(e,n,1)}),_o=Ri(Va),ho=Ri(Ka);function go(e,t){return(jo(e)?St:ur)(e,aa(t,3))}function yo(e,t){return(jo(e)?Tt:dr)(e,aa(t,3))}var vo=Ai(function(e,t,n){we.call(e,n)?e[n].push(t):rr(e,n,[t])}),bo=qr(function(e,t,n){var r=-1,i="function"==typeof t,a=Wo(e)?ve(e.length):[];return ur(e,function(e){a[++r]=i?Et(t,e,n):Ar(e,t,n)}),a}),Eo=Ai(function(e,t,n){rr(e,n,t)});function xo(e,t){return(jo(e)?Nt:Mr)(e,aa(t,3))}var So=Ai(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]}),To=qr(function(e,t){if(null==e)return[];var n=t.length;return n>1&&ha(e,t[0],t[1])?t=[]:n>2&&ha(t[0],t[1],t[2])&&(t=[t[0]]),Vr(e,_r(t,1),[])}),Co=ut||function(){return lt.Date.now()};function Do(e,t,r){return t=r?n:t,t=e&&null==t?e.length:t,zi(e,s,n,n,n,n,t)}function Lo(e,t){var i;if("function"!=typeof t)throw new Le(r);return e=ms(e),function(){return--e>0&&(i=t.apply(this,arguments)),e<=1&&(t=n),i}}var Ao=qr(function(e,t,n){var r=1;if(n.length){var i=an(n,ia(Ao));r|=o}return zi(e,r,t,n,i)}),No=qr(function(e,t,n){var r=3;if(n.length){var i=an(n,ia(No));r|=o}return zi(t,r,e,n,i)});function ko(e,t,i){var a,o,s,c,l,u,d=0,p=!1,m=!1,f=!0;if("function"!=typeof e)throw new Le(r);function _(t){var r=a,i=o;return a=o=n,d=t,c=e.apply(i,r)}function h(e){var r=e-u;return u===n||r>=t||r<0||m&&e-d>=s}function g(){var e=Co();if(h(e))return y(e);l=La(g,function(e){var n=t-(e-u);return m?gn(n,s-(e-d)):n}(e))}function y(e){return l=n,f&&a?_(e):(a=o=n,c)}function v(){var e=Co(),r=h(e);if(a=arguments,o=this,u=e,r){if(l===n)return function(e){return d=e,l=La(g,t),p?_(e):c}(u);if(m)return vi(l),l=La(g,t),_(u)}return l===n&&(l=La(g,t)),c}return t=_s(t)||0,Zo(i)&&(p=!!i.leading,s=(m="maxWait"in i)?hn(_s(i.maxWait)||0,t):s,f="trailing"in i?!!i.trailing:f),v.cancel=function(){l!==n&&vi(l),d=0,a=u=o=l=n},v.flush=function(){return l===n?c:y(Co())},v}var Io=qr(function(e,t){return cr(e,1,t)}),Po=qr(function(e,t,n){return cr(e,_s(t)||0,n)});function wo(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Le(r);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var o=e.apply(this,r);return n.cache=a.set(i,o)||a,o};return n.cache=new(wo.Cache||Wn),n}function Oo(e){if("function"!=typeof e)throw new Le(r);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}wo.Cache=Wn;var Ro=gi(function(e,t){var n=(t=1==t.length&&jo(t[0])?Nt(t[0],qt(aa())):Nt(_r(t,1),qt(aa()))).length;return qr(function(r){for(var i=-1,a=gn(r.length,n);++i=t}),Ko=Nr(function(){return arguments}())?Nr:function(e){return es(e)&&we.call(e,"callee")&&!$e.call(e,"callee")},jo=ve.isArray,Ho=_t?qt(_t):function(e){return es(e)&&Sr(e)==N};function Wo(e){return null!=e&&Qo(e.length)&&!Xo(e)}function $o(e){return es(e)&&Wo(e)}var qo=Kt||_c,zo=ht?qt(ht):function(e){return es(e)&&Sr(e)==h};function Jo(e){if(!es(e))return!1;var t=Sr(e);return t==g||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!rs(e)}function Xo(e){if(!Zo(e))return!1;var t=Sr(e);return t==y||t==v||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Yo(e){return"number"==typeof e&&e==ms(e)}function Qo(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=l}function Zo(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function es(e){return null!=e&&"object"==typeof e}var ts=gt?qt(gt):function(e){return es(e)&&da(e)==b};function ns(e){return"number"==typeof e||es(e)&&Sr(e)==E}function rs(e){if(!es(e)||Sr(e)!=x)return!1;var t=He(e);if(null===t)return!0;var n=we.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Pe.call(n)==Fe}var is=yt?qt(yt):function(e){return es(e)&&Sr(e)==T},as=vt?qt(vt):function(e){return es(e)&&da(e)==C};function os(e){return"string"==typeof e||!jo(e)&&es(e)&&Sr(e)==D}function ss(e){return"symbol"==typeof e||es(e)&&Sr(e)==L}var cs=bt?qt(bt):function(e){return es(e)&&Qo(e.length)&&!!nt[Sr(e)]},ls=ji(Rr),us=ji(function(e,t){return e<=t});function ds(e){if(!e)return[];if(Wo(e))return os(e)?ln(e):Di(e);if(Qe&&e[Qe])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Qe]());var t=da(e);return(t==b?nn:t==C?on:Bs)(e)}function ps(e){return e?(e=_s(e))===c||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function ms(e){var t=ps(e),n=t%1;return t==t?n?t-n:t:0}function fs(e){return e?ar(ms(e),0,d):0}function _s(e){if("number"==typeof e)return e;if(ss(e))return u;if(Zo(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Zo(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=$t(e);var n=pe.test(e);return n||fe.test(e)?ot(e.slice(2),n?2:8):de.test(e)?u:+e}function hs(e){return Li(e,Is(e))}function gs(e){return null==e?"":oi(e)}var ys=Ni(function(e,t){if(ba(t)||Wo(t))Li(t,ks(t),e);else for(var n in t)we.call(t,n)&&Zn(e,n,t[n])}),vs=Ni(function(e,t){Li(t,Is(t),e)}),bs=Ni(function(e,t,n,r){Li(t,Is(t),e,r)}),Es=Ni(function(e,t,n,r){Li(t,ks(t),e,r)}),xs=Zi(ir),Ss=qr(function(e,t){e=Te(e);var r=-1,i=t.length,a=i>2?t[2]:n;for(a&&ha(t[0],t[1],a)&&(i=1);++r1),t}),Li(e,ta(e),n),r&&(n=or(n,7,Yi));for(var i=t.length;i--;)ci(n,t[i]);return n}),Rs=Zi(function(e,t){return null==e?{}:function(e,t){return Kr(e,t,function(t,n){return Ds(e,n)})}(e,t)});function Ms(e,t){if(null==e)return{};var n=Nt(ta(e),function(e){return[e]});return t=aa(t),Kr(e,n,function(e,n){return t(e,n[0])})}var Fs=qi(ks),Gs=qi(Is);function Bs(e){return null==e?[]:zt(e,ks(e))}var Us=wi(function(e,t,n){return t=t.toLowerCase(),e+(n?Vs(t):t)});function Vs(e){return Js(gs(e).toLowerCase())}function Ks(e){return(e=gs(e))&&e.replace(he,Qt).replace(Je,"")}var js=wi(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}),Hs=wi(function(e,t,n){return e+(n?" ":"")+t.toLowerCase()}),Ws=Pi("toLowerCase"),$s=wi(function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}),qs=wi(function(e,t,n){return e+(n?" ":"")+Js(t)}),zs=wi(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),Js=Pi("toUpperCase");function Xs(e,t,r){return e=gs(e),(t=r?n:t)===n?function(e){return Ze.test(e)}(e)?function(e){return e.match(Ye)||[]}(e):function(e){return e.match(oe)||[]}(e):e.match(t)||[]}var Ys=qr(function(e,t){try{return Et(e,n,t)}catch(e){return Jo(e)?e:new Ee(e)}}),Qs=Zi(function(e,t){return St(t,function(t){t=Ra(t),rr(e,t,Ao(e[t],e))}),e});function Zs(e){return function(){return e}}var ec=Mi(),tc=Mi(!0);function nc(e){return e}function rc(e){return wr("function"==typeof e?e:or(e,1))}var ic=qr(function(e,t){return function(n){return Ar(n,e,t)}}),ac=qr(function(e,t){return function(n){return Ar(e,n,t)}});function oc(e,t,n){var r=ks(t),i=br(t,r);null!=n||Zo(t)&&(i.length||!r.length)||(n=t,t=e,e=this,i=br(t,ks(t)));var a=!(Zo(n)&&"chain"in n&&!n.chain),o=Xo(e);return St(i,function(n){var r=t[n];e[n]=r,o&&(e.prototype[n]=function(){var t=this.__chain__;if(a||t){var n=e(this.__wrapped__);return(n.__actions__=Di(this.__actions__)).push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,kt([this.value()],arguments))})}),e}function sc(){}var cc=Ui(Nt),lc=Ui(Ct),uc=Ui(wt);function dc(e){return ga(e)?Vt(Ra(e)):function(e){return function(t){return Er(t,e)}}(e)}var pc=Ki(),mc=Ki(!0);function fc(){return[]}function _c(){return!1}var hc,gc=Bi(function(e,t){return e+t},0),yc=Wi("ceil"),vc=Bi(function(e,t){return e/t},1),bc=Wi("floor"),Ec=Bi(function(e,t){return e*t},1),xc=Wi("round"),Sc=Bi(function(e,t){return e-t},0);return Gn.after=function(e,t){if("function"!=typeof t)throw new Le(r);return e=ms(e),function(){if(--e<1)return t.apply(this,arguments)}},Gn.ary=Do,Gn.assign=ys,Gn.assignIn=vs,Gn.assignInWith=bs,Gn.assignWith=Es,Gn.at=xs,Gn.before=Lo,Gn.bind=Ao,Gn.bindAll=Qs,Gn.bindKey=No,Gn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return jo(e)?e:[e]},Gn.chain=uo,Gn.chunk=function(e,t,r){t=(r?ha(e,t,r):t===n)?1:hn(ms(t),0);var i=null==e?0:e.length;if(!i||t<1)return[];for(var a=0,o=0,s=ve(mt(i/t));aa?0:a+r),(i=i===n||i>a?a:ms(i))<0&&(i+=a),i=r>i?0:fs(i);r>>0)?(e=gs(e))&&("string"==typeof t||null!=t&&!is(t))&&!(t=oi(t))&&tn(e)?yi(ln(e),0,r):e.split(t,r):[]},Gn.spread=function(e,t){if("function"!=typeof e)throw new Le(r);return t=null==t?0:hn(ms(t),0),qr(function(n){var r=n[t],i=yi(n,0,t);return r&&kt(i,r),Et(e,this,i)})},Gn.tail=function(e){var t=null==e?0:e.length;return t?ei(e,1,t):[]},Gn.take=function(e,t,r){return e&&e.length?ei(e,0,(t=r||t===n?1:ms(t))<0?0:t):[]},Gn.takeRight=function(e,t,r){var i=null==e?0:e.length;return i?ei(e,(t=i-(t=r||t===n?1:ms(t)))<0?0:t,i):[]},Gn.takeRightWhile=function(e,t){return e&&e.length?ui(e,aa(t,3),!1,!0):[]},Gn.takeWhile=function(e,t){return e&&e.length?ui(e,aa(t,3)):[]},Gn.tap=function(e,t){return t(e),e},Gn.throttle=function(e,t,n){var i=!0,a=!0;if("function"!=typeof e)throw new Le(r);return Zo(n)&&(i="leading"in n?!!n.leading:i,a="trailing"in n?!!n.trailing:a),ko(e,t,{leading:i,maxWait:t,trailing:a})},Gn.thru=po,Gn.toArray=ds,Gn.toPairs=Fs,Gn.toPairsIn=Gs,Gn.toPath=function(e){return jo(e)?Nt(e,Ra):ss(e)?[e]:Di(Oa(gs(e)))},Gn.toPlainObject=hs,Gn.transform=function(e,t,n){var r=jo(e),i=r||qo(e)||cs(e);if(t=aa(t,4),null==n){var a=e&&e.constructor;n=i?r?new a:[]:Zo(e)&&Xo(a)?Bn(He(e)):{}}return(i?St:yr)(e,function(e,r,i){return t(n,e,r,i)}),n},Gn.unary=function(e){return Do(e,1)},Gn.union=Za,Gn.unionBy=eo,Gn.unionWith=to,Gn.uniq=function(e){return e&&e.length?si(e):[]},Gn.uniqBy=function(e,t){return e&&e.length?si(e,aa(t,2)):[]},Gn.uniqWith=function(e,t){return t="function"==typeof t?t:n,e&&e.length?si(e,n,t):[]},Gn.unset=function(e,t){return null==e||ci(e,t)},Gn.unzip=no,Gn.unzipWith=ro,Gn.update=function(e,t,n){return null==e?e:li(e,t,_i(n))},Gn.updateWith=function(e,t,r,i){return i="function"==typeof i?i:n,null==e?e:li(e,t,_i(r),i)},Gn.values=Bs,Gn.valuesIn=function(e){return null==e?[]:zt(e,Is(e))},Gn.without=io,Gn.words=Xs,Gn.wrap=function(e,t){return Mo(_i(t),e)},Gn.xor=ao,Gn.xorBy=oo,Gn.xorWith=so,Gn.zip=co,Gn.zipObject=function(e,t){return mi(e||[],t||[],Zn)},Gn.zipObjectDeep=function(e,t){return mi(e||[],t||[],Xr)},Gn.zipWith=lo,Gn.entries=Fs,Gn.entriesIn=Gs,Gn.extend=vs,Gn.extendWith=bs,oc(Gn,Gn),Gn.add=gc,Gn.attempt=Ys,Gn.camelCase=Us,Gn.capitalize=Vs,Gn.ceil=yc,Gn.clamp=function(e,t,r){return r===n&&(r=t,t=n),r!==n&&(r=(r=_s(r))==r?r:0),t!==n&&(t=(t=_s(t))==t?t:0),ar(_s(e),t,r)},Gn.clone=function(e){return or(e,4)},Gn.cloneDeep=function(e){return or(e,5)},Gn.cloneDeepWith=function(e,t){return or(e,5,t="function"==typeof t?t:n)},Gn.cloneWith=function(e,t){return or(e,4,t="function"==typeof t?t:n)},Gn.conformsTo=function(e,t){return null==t||sr(e,t,ks(t))},Gn.deburr=Ks,Gn.defaultTo=function(e,t){return null==e||e!=e?t:e},Gn.divide=vc,Gn.endsWith=function(e,t,r){e=gs(e),t=oi(t);var i=e.length,a=r=r===n?i:ar(ms(r),0,i);return(r-=t.length)>=0&&e.slice(r,a)==t},Gn.eq=Bo,Gn.escape=function(e){return(e=gs(e))&&$.test(e)?e.replace(H,Zt):e},Gn.escapeRegExp=function(e){return(e=gs(e))&&ee.test(e)?e.replace(Z,"\\$&"):e},Gn.every=function(e,t,r){var i=jo(e)?Ct:pr;return r&&ha(e,t,r)&&(t=n),i(e,aa(t,3))},Gn.find=_o,Gn.findIndex=Va,Gn.findKey=function(e,t){return Rt(e,aa(t,3),yr)},Gn.findLast=ho,Gn.findLastIndex=Ka,Gn.findLastKey=function(e,t){return Rt(e,aa(t,3),vr)},Gn.floor=bc,Gn.forEach=go,Gn.forEachRight=yo,Gn.forIn=function(e,t){return null==e?e:hr(e,aa(t,3),Is)},Gn.forInRight=function(e,t){return null==e?e:gr(e,aa(t,3),Is)},Gn.forOwn=function(e,t){return e&&yr(e,aa(t,3))},Gn.forOwnRight=function(e,t){return e&&vr(e,aa(t,3))},Gn.get=Cs,Gn.gt=Uo,Gn.gte=Vo,Gn.has=function(e,t){return null!=e&&pa(e,t,Cr)},Gn.hasIn=Ds,Gn.head=Ha,Gn.identity=nc,Gn.includes=function(e,t,n,r){e=Wo(e)?e:Bs(e),n=n&&!r?ms(n):0;var i=e.length;return n<0&&(n=hn(i+n,0)),os(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&Ft(e,t,n)>-1},Gn.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:ms(n);return i<0&&(i=hn(r+i,0)),Ft(e,t,i)},Gn.inRange=function(e,t,r){return t=ps(t),r===n?(r=t,t=0):r=ps(r),function(e,t,n){return e>=gn(t,n)&&e=-9007199254740991&&e<=l},Gn.isSet=as,Gn.isString=os,Gn.isSymbol=ss,Gn.isTypedArray=cs,Gn.isUndefined=function(e){return e===n},Gn.isWeakMap=function(e){return es(e)&&da(e)==A},Gn.isWeakSet=function(e){return es(e)&&"[object WeakSet]"==Sr(e)},Gn.join=function(e,t){return null==e?"":fn.call(e,t)},Gn.kebabCase=js,Gn.last=za,Gn.lastIndexOf=function(e,t,r){var i=null==e?0:e.length;if(!i)return-1;var a=i;return r!==n&&(a=(a=ms(r))<0?hn(i+a,0):gn(a,i-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,a):Mt(e,Bt,a,!0)},Gn.lowerCase=Hs,Gn.lowerFirst=Ws,Gn.lt=ls,Gn.lte=us,Gn.max=function(e){return e&&e.length?mr(e,nc,Tr):n},Gn.maxBy=function(e,t){return e&&e.length?mr(e,aa(t,2),Tr):n},Gn.mean=function(e){return Ut(e,nc)},Gn.meanBy=function(e,t){return Ut(e,aa(t,2))},Gn.min=function(e){return e&&e.length?mr(e,nc,Rr):n},Gn.minBy=function(e,t){return e&&e.length?mr(e,aa(t,2),Rr):n},Gn.stubArray=fc,Gn.stubFalse=_c,Gn.stubObject=function(){return{}},Gn.stubString=function(){return""},Gn.stubTrue=function(){return!0},Gn.multiply=Ec,Gn.nth=function(e,t){return e&&e.length?Ur(e,ms(t)):n},Gn.noConflict=function(){return lt._===this&&(lt._=Ge),this},Gn.noop=sc,Gn.now=Co,Gn.pad=function(e,t,n){e=gs(e);var r=(t=ms(t))?cn(e):0;if(!t||r>=t)return e;var i=(t-r)/2;return Vi(ft(i),n)+e+Vi(mt(i),n)},Gn.padEnd=function(e,t,n){e=gs(e);var r=(t=ms(t))?cn(e):0;return t&&rt){var i=e;e=t,t=i}if(r||e%1||t%1){var a=bn();return gn(e+a*(t-e+at("1e-"+((a+"").length-1))),t)}return Wr(e,t)},Gn.reduce=function(e,t,n){var r=jo(e)?It:jt,i=arguments.length<3;return r(e,aa(t,4),n,i,ur)},Gn.reduceRight=function(e,t,n){var r=jo(e)?Pt:jt,i=arguments.length<3;return r(e,aa(t,4),n,i,dr)},Gn.repeat=function(e,t,r){return t=(r?ha(e,t,r):t===n)?1:ms(t),$r(gs(e),t)},Gn.replace=function(){var e=arguments,t=gs(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Gn.result=function(e,t,r){var i=-1,a=(t=hi(t,e)).length;for(a||(a=1,e=n);++il)return[];var n=d,r=gn(e,d);t=aa(t),e-=d;for(var i=Wt(r,t);++n=o)return e;var c=r-cn(i);if(c<1)return i;var l=s?yi(s,0,c).join(""):e.slice(0,c);if(a===n)return l+i;if(s&&(c+=l.length-c),is(a)){if(e.slice(c).search(a)){var u,d=l;for(a.global||(a=Ce(a.source,gs(ue.exec(a))+"g")),a.lastIndex=0;u=a.exec(d);)var p=u.index;l=l.slice(0,p===n?c:p)}}else if(e.indexOf(oi(a),c)!=c){var m=l.lastIndexOf(a);m>-1&&(l=l.slice(0,m))}return l+i},Gn.unescape=function(e){return(e=gs(e))&&W.test(e)?e.replace(j,dn):e},Gn.uniqueId=function(e){var t=++Oe;return gs(e)+t},Gn.upperCase=zs,Gn.upperFirst=Js,Gn.each=go,Gn.eachRight=yo,Gn.first=Ha,oc(Gn,(hc={},yr(Gn,function(e,t){we.call(Gn.prototype,t)||(hc[t]=e)}),hc),{chain:!1}),Gn.VERSION="4.18.1",St(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){Gn[e].placeholder=Gn}),St(["drop","take"],function(e,t){Kn.prototype[e]=function(r){r=r===n?1:hn(ms(r),0);var i=this.__filtered__&&!t?new Kn(this):this.clone();return i.__filtered__?i.__takeCount__=gn(r,i.__takeCount__):i.__views__.push({size:gn(r,d),type:e+(i.__dir__<0?"Right":"")}),i},Kn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}}),St(["filter","map","takeWhile"],function(e,t){var n=t+1,r=1==n||3==n;Kn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:aa(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}}),St(["head","last"],function(e,t){var n="take"+(t?"Right":"");Kn.prototype[e]=function(){return this[n](1).value()[0]}}),St(["initial","tail"],function(e,t){var n="drop"+(t?"":"Right");Kn.prototype[e]=function(){return this.__filtered__?new Kn(this):this[n](1)}}),Kn.prototype.compact=function(){return this.filter(nc)},Kn.prototype.find=function(e){return this.filter(e).head()},Kn.prototype.findLast=function(e){return this.reverse().find(e)},Kn.prototype.invokeMap=qr(function(e,t){return"function"==typeof e?new Kn(this):this.map(function(n){return Ar(n,e,t)})}),Kn.prototype.reject=function(e){return this.filter(Oo(aa(e)))},Kn.prototype.slice=function(e,t){e=ms(e);var r=this;return r.__filtered__&&(e>0||t<0)?new Kn(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),t!==n&&(r=(t=ms(t))<0?r.dropRight(-t):r.take(t-e)),r)},Kn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Kn.prototype.toArray=function(){return this.take(d)},yr(Kn.prototype,function(e,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),i=/^(?:head|last)$/.test(t),a=Gn[i?"take"+("last"==t?"Right":""):t],o=i||/^find/.test(t);a&&(Gn.prototype[t]=function(){var t=this.__wrapped__,s=i?[1]:arguments,c=t instanceof Kn,l=s[0],u=c||jo(t),d=function(e){var t=a.apply(Gn,kt([e],s));return i&&p?t[0]:t};u&&r&&"function"==typeof l&&1!=l.length&&(c=u=!1);var p=this.__chain__,m=!!this.__actions__.length,f=o&&!p,_=c&&!m;if(!o&&u){t=_?t:new Kn(this);var h=e.apply(t,s);return h.__actions__.push({func:po,args:[d],thisArg:n}),new Vn(h,p)}return f&&_?e.apply(this,s):(h=this.thru(d),f?i?h.value()[0]:h.value():h)})}),St(["pop","push","shift","sort","splice","unshift"],function(e){var t=Ae[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);Gn.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var i=this.value();return t.apply(jo(i)?i:[],e)}return this[n](function(n){return t.apply(jo(n)?n:[],e)})}}),yr(Kn.prototype,function(e,t){var n=Gn[t];if(n){var r=n.name+"";we.call(Nn,r)||(Nn[r]=[]),Nn[r].push({name:t,func:n})}}),Nn[Fi(n,2).name]=[{name:"wrapper",func:n}],Kn.prototype.clone=function(){var e=new Kn(this.__wrapped__);return e.__actions__=Di(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Di(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Di(this.__views__),e},Kn.prototype.reverse=function(){if(this.__filtered__){var e=new Kn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Kn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=jo(e),r=t<0,i=n?e.length:0,a=function(e,t,n){for(var r=-1,i=n.length;++r=this.__values__.length;return{done:e,value:e?n:this.__values__[this.__index__++]}},Gn.prototype.plant=function(e){for(var t,r=this;r instanceof Un;){var i=Fa(r);i.__index__=0,i.__values__=n,t?a.__wrapped__=i:t=i;var a=i;r=r.__wrapped__}return a.__wrapped__=e,t},Gn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Kn){var t=e;return this.__actions__.length&&(t=new Kn(this)),(t=t.reverse()).__actions__.push({func:po,args:[Qa],thisArg:n}),new Vn(t,this.__chain__)}return this.thru(Qa)},Gn.prototype.toJSON=Gn.prototype.valueOf=Gn.prototype.value=function(){return di(this.__wrapped__,this.__actions__)},Gn.prototype.first=Gn.prototype.head,Qe&&(Gn.prototype[Qe]=function(){return this}),Gn}();dt?((dt.exports=pn)._=pn,ut._=pn):lt._=pn}.call(lodash)),lodash$1.exports;var e,t}var lodashExports=requireLodash();const{stringify:stringify$b}=JSON;if(!String.prototype.repeat)throw new Error("String.prototype.repeat is undefined, see https://github.com/davidbonnet/astring#installation");if(!String.prototype.endsWith)throw new Error("String.prototype.endsWith is undefined, see https://github.com/davidbonnet/astring#installation");const OPERATOR_PRECEDENCE={"||":2,"??":3,"&&":4,"|":5,"^":6,"&":7,"==":8,"!=":8,"===":8,"!==":8,"<":9,">":9,"<=":9,">=":9,in:9,instanceof:9,"<<":10,">>":10,">>>":10,"+":11,"-":11,"*":12,"%":12,"/":12,"**":13},NEEDS_PARENTHESES=17,EXPRESSIONS_PRECEDENCE={ArrayExpression:20,TaggedTemplateExpression:20,ThisExpression:20,Identifier:20,PrivateIdentifier:20,Literal:18,TemplateLiteral:20,Super:20,SequenceExpression:20,MemberExpression:19,ChainExpression:19,CallExpression:19,NewExpression:19,ArrowFunctionExpression:NEEDS_PARENTHESES,ClassExpression:NEEDS_PARENTHESES,FunctionExpression:NEEDS_PARENTHESES,ObjectExpression:NEEDS_PARENTHESES,UpdateExpression:16,UnaryExpression:15,AwaitExpression:15,BinaryExpression:14,LogicalExpression:13,ConditionalExpression:4,AssignmentExpression:3,YieldExpression:2,RestElement:1};function formatSequence(e,t){const{generator:n}=e;if(e.write("("),null!=t&&t.length>0){n[t[0].type](t[0],e);const{length:r}=t;for(let i=1;i0){e.write(r);for(let t=1;t0){n.VariableDeclarator(r[0],e);for(let t=1;t0){t.write(r),i&&null!=e.comments&&formatComments(t,e.comments,a,r);const{length:s}=o;for(let e=0;e0){for(;a0&&t.write(", ");const e=n[a],r=e.type[6];if("D"===r)t.write(e.local.name,e),a++;else{if("N"!==r)break;t.write("* as "+e.local.name,e),a++}}if(a0){t.write(" with { ");for(let e=0;e0)for(let e=0;;){const i=n[e],{name:a}=i.local;if(t.write(a,i),a!==i.exported.name&&t.write(" as "+i.exported.name),!(++e0){t.write(" with { ");for(let n=0;n0){t.write(" with { ");for(let n=0;n "),"O"===e.body.type[0]?(t.write("("),this.ObjectExpression(e.body,t),t.write(")")):this[e.body.type](e.body,t)},ThisExpression(e,t){t.write("this",e)},Super(e,t){t.write("super",e)},RestElement:RestElement=function(e,t){t.write("..."),this[e.argument.type](e.argument,t)},SpreadElement:RestElement,YieldExpression(e,t){t.write(e.delegate?"yield*":"yield"),e.argument&&(t.write(" "),this[e.argument.type](e.argument,t))},AwaitExpression(e,t){t.write("await ",e),formatExpression(t,e.argument,e)},TemplateLiteral(e,t){const{quasis:n,expressions:r}=e;t.write("`");const{length:i}=r;for(let e=0;e0){const{elements:n}=e,{length:r}=n;for(let e=0;;){const i=n[e];if(null!=i&&this[i.type](i,t),!(++e0){t.write(r),i&&null!=e.comments&&formatComments(t,e.comments,a,r);const o=","+r,{properties:s}=e,{length:c}=s;for(let e=0;;){const n=s[e];if(i&&null!=n.comments&&formatComments(t,n.comments,a,r),t.write(a),this[n.type](n,t),!(++e0){const{properties:n}=e,{length:r}=n;for(let e=0;this[n[e].type](n[e],t),++e1)&&("U"!==i[0]||"n"!==i[1]&&"p"!==i[1]||!r.prefix||r.operator[0]!==n||"+"!==n&&"-"!==n)||t.write(" "),a?(t.write(n.length>1?" (":"("),this[i](r,t),t.write(")")):this[i](r,t)}else this[e.argument.type](e.argument,t),t.write(e.operator)},UpdateExpression(e,t){e.prefix?(t.write(e.operator),this[e.argument.type](e.argument,t)):(this[e.argument.type](e.argument,t),t.write(e.operator))},AssignmentExpression(e,t){this[e.left.type](e.left,t),t.write(" "+e.operator+" "),this[e.right.type](e.right,t)},AssignmentPattern(e,t){this[e.left.type](e.left,t),t.write(" = "),this[e.right.type](e.right,t)},BinaryExpression:BinaryExpression=function(e,t){const n="in"===e.operator;n&&t.write("("),formatExpression(t,e.left,e,!1),t.write(" "+e.operator+" "),formatExpression(t,e.right,e,!0),n&&t.write(")")},LogicalExpression:BinaryExpression,ConditionalExpression(e,t){const{test:n}=e,r=t.expressionsPrecedence[n.type];r===NEEDS_PARENTHESES||r<=t.expressionsPrecedence.ConditionalExpression?(t.write("("),this[n.type](n,t),t.write(")")):this[n.type](n,t),t.write(" ? "),this[e.consequent.type](e.consequent,t),t.write(" : "),this[e.alternate.type](e.alternate,t)},NewExpression(e,t){t.write("new ");const n=t.expressionsPrecedence[e.callee.type];n===NEEDS_PARENTHESES||n0&&(this.lineEndSize>0&&(1===r.length?e[n-1]===r:e.endsWith(r))?(this.line+=this.lineEndSize,this.column=0):this.column+=n)}toString(){return this.output}}function generate$1(e,t){const n=new State(t);return n.generator[e.type](e,n),n.output}const locationDummyNode=(e,t,n)=>literal$1("Dummy",{start:{line:e,column:t},end:{line:e,column:t},source:n}),identifier=(e,t)=>({type:"Identifier",name:e,loc:t}),importDeclaration=(e,t,n)=>({type:"ImportDeclaration",source:literal$1(e),specifiers:t,attributes:[],loc:n}),importSpecifier=(e,t,n)=>({type:"ImportSpecifier",imported:identifier(e),local:identifier(t),loc:n}),importDefaultSpecifier=(e,t)=>({type:"ImportDefaultSpecifier",local:identifier(e),loc:t}),importNamespaceSpecifier=(e,t)=>({type:"ImportNamespaceSpecifier",local:identifier(e),loc:t}),literal$1=(e,t)=>({type:"Literal",value:e,loc:t}),memberExpression=(e,t)=>({type:"MemberExpression",object:e,computed:"number"==typeof t,optional:!1,property:"number"==typeof t?literal$1(t):identifier(t)}),declaration=(e,t,n,r)=>variableDeclaration([{type:"VariableDeclarator",id:identifier(e),init:n}],t,r),constantDeclaration=(e,t,n)=>declaration(e,"const",t,n),callExpression=(e,t,n)=>({type:"CallExpression",callee:e,arguments:t,optional:!1,loc:n}),expressionStatement=e=>({type:"ExpressionStatement",expression:e}),blockArrowFunction=(e,t,n)=>({type:"ArrowFunctionExpression",expression:!1,generator:!1,params:e,body:Array.isArray(t)?blockStatement(t):t,loc:n}),blockStatement=(e,t)=>({type:"BlockStatement",body:e,loc:t}),statementSequence=(e,t)=>({type:"StatementSequence",body:e,loc:t}),program=e=>({type:"Program",sourceType:"module",body:e}),returnStatement=(e,t)=>({type:"ReturnStatement",argument:e,loc:t}),property=(e,t)=>({type:"Property",method:!1,shorthand:!1,computed:!1,key:identifier(e),value:t,kind:"init"}),objectExpression=e=>({type:"ObjectExpression",properties:e}),mutateToCallExpression=(e,t,n)=>{e.type="CallExpression";const r=e;r.callee=t,r.arguments=n},logicalExpression=(e,t,n,r)=>({type:"LogicalExpression",operator:e,left:t,right:n,loc:r}),conditionalExpression=(e,t,n,r)=>({type:"ConditionalExpression",test:e,consequent:t,alternate:n,loc:r}),arrayExpression=e=>({type:"ArrayExpression",elements:e}),assignmentExpression=(e,t,n)=>({type:"AssignmentExpression",operator:"=",left:e,right:t,loc:n}),primitive=e=>void 0===e?identifier("undefined"):literal$1(e),functionDeclaration=(e,t,n,r)=>({type:"FunctionDeclaration",id:e,params:t,body:n,loc:r}),arrowFunctionExpression=(e,t,n)=>({type:"ArrowFunctionExpression",expression:"BlockStatement"!==t.type,generator:!1,params:e,body:t,loc:n}),variableDeclaration=(e,t="const",n)=>({type:"VariableDeclaration",kind:t,declarations:e,loc:n}),variableDeclarator=(e,t,n)=>({type:"VariableDeclarator",id:e,init:t,loc:n}),whileStatement=(e,t,n)=>({type:"WhileStatement",test:t,body:e,loc:n}),forStatement=(e,t,n,r,i)=>({type:"ForStatement",init:e,test:t,update:n,body:r,loc:i});var InstrType=(e=>(e.RESET="Reset",e.WHILE="While",e.FOR="For",e.ASSIGNMENT="Assignment",e.UNARY_OP="UnaryOperation",e.BINARY_OP="BinaryOperation",e.POP="Pop",e.APPLICATION="Application",e.BRANCH="Branch",e.ENVIRONMENT="Environment",e.ARRAY_LITERAL="ArrayLiteral",e.ARRAY_ACCESS="ArrayAccess",e.ARRAY_ASSIGNMENT="ArrayAssignment",e.ARRAY_LENGTH="ArrayLength",e.MARKER="Marker",e.CONTINUE="Continue",e.CONTINUE_MARKER="ContinueMarker",e.BREAK="Break",e.BREAK_MARKER="BreakMarker",e.SPREAD="Spread",e))(InstrType||{});class CSEBreak{}class CseError{constructor(e){this.error=e}}const resetInstr=e=>({instrType:InstrType.RESET,srcNode:e}),whileInstr=(e,t,n)=>({instrType:InstrType.WHILE,test:e,body:t,srcNode:n}),forInstr=(e,t,n,r,i)=>({instrType:InstrType.FOR,init:e,test:t,update:n,body:r,srcNode:i});function assmtInstr(e,t){return"VariableDeclaration"===t.type?{instrType:InstrType.ASSIGNMENT,symbol:e,constant:"const"===t.kind,declaration:!0,srcNode:t}:{instrType:InstrType.ASSIGNMENT,symbol:e,declaration:!1,srcNode:t}}const unOpInstr=(e,t)=>({instrType:InstrType.UNARY_OP,symbol:e,srcNode:t}),binOpInstr=(e,t)=>({instrType:InstrType.BINARY_OP,symbol:e,srcNode:t}),popInstr=e=>({instrType:InstrType.POP,srcNode:e}),appInstr=(e,t)=>({instrType:InstrType.APPLICATION,numOfArgs:e,srcNode:t}),branchInstr=(e,t,n)=>({instrType:InstrType.BRANCH,consequent:e,alternate:t,srcNode:n}),envInstr=(e,t)=>({instrType:InstrType.ENVIRONMENT,env:e,srcNode:t}),arrLitInstr=(e,t)=>({instrType:InstrType.ARRAY_LITERAL,arity:e,srcNode:t}),arrAccInstr=e=>({instrType:InstrType.ARRAY_ACCESS,srcNode:e}),arrAssmtInstr=e=>({instrType:InstrType.ARRAY_ASSIGNMENT,srcNode:e}),markerInstr=e=>({instrType:InstrType.MARKER,srcNode:e}),contInstr=e=>({instrType:InstrType.CONTINUE,srcNode:e}),contMarkerInstr=e=>({instrType:InstrType.CONTINUE_MARKER,srcNode:e}),breakInstr=e=>({instrType:InstrType.BREAK,srcNode:e}),breakMarkerInstr=e=>({instrType:InstrType.BREAK_MARKER,srcNode:e}),spreadInstr=e=>({instrType:InstrType.SPREAD,srcNode:e}),setBreakpointAtLine=e=>{breakpoints=e};let breakpoints=[],moved=!0,prevStoppedLine=-1;const checkEditorBreakpoints=(e,t)=>{if(t.loc){const n=t.loc.start.line-1;moved||n===prevStoppedLine||(moved=!0),e.runtime.debuggerOn&&void 0!==breakpoints[n]&&moved&&(moved=!1,prevStoppedLine=n,e.runtime.break=!0)}},areBreakpointsSet=()=>breakpoints.length>0;var ErrorType=(e=>(e.IMPORT="Import",e.RUNTIME="Runtime",e.SYNTAX="Syntax",e.TYPE="Type",e))(ErrorType||{}),ErrorSeverity=(e=>(e.WARNING="Warning",e.ERROR="Error",e))(ErrorSeverity||{});class SourceErrorWithNode extends Error{constructor(e){super(),this.node=e}get location(){return this.node?.loc??UNKNOWN_LOCATION}get message(){return this.explain()}}class RuntimeSourceError extends SourceErrorWithNode{constructor(){super(...arguments),this.type="Runtime",this.severity="Error"}elaborate(){return this.explain()}}class GeneralRuntimeError extends RuntimeSourceError{constructor(e,t,n){super(t),this.explanation=e,this.elaboration=n}explain(){return this.explanation}elaborate(){return this.elaboration??this.explain()}}class InternalRuntimeError extends RuntimeSourceError{constructor(e,t,n){super(t),this.explanation=e,this.elaboration=n}explain(){return this.explanation}elaborate(){return this.elaboration??this.explain()}}var errorBase=Object.freeze({__proto__:null,ErrorSeverity:ErrorSeverity,ErrorType:ErrorType,GeneralRuntimeError:GeneralRuntimeError,InternalRuntimeError:InternalRuntimeError,RuntimeSourceError:RuntimeSourceError,SourceErrorWithNode:SourceErrorWithNode});class AssertionError extends InternalRuntimeError{constructor(e,t){super(e,t,"Please contact the administrators to let them know that this error has occurred")}}function assert(e,t,n){if(!e)throw new AssertionError(t,n)}var assert$1=Object.freeze({__proto__:null,AssertionError:AssertionError,default:assert});class Dict{constructor(e=new Map){this.internalMap=e}get size(){return this.internalMap.size}[Symbol.iterator](){return this.internalMap[Symbol.iterator]()}get(e){return this.internalMap.get(e)}set(e,t){return this.internalMap.set(e,t)}has(e){return this.internalMap.has(e)}setdefault(e,t){return this.has(e)||this.set(e,t),this.get(e)}update(e,t,n){const r=n(this.setdefault(e,t));return this.set(e,r),r}entries(){return[...this.internalMap.entries()]}forEach(e){this.internalMap.forEach((t,n)=>e(n,t))}async forEachAsync(e){await Promise.all(this.map((t,n,r)=>e(t,n,r)))}map(e){return this.entries().map(([t,n],r)=>e(t,n,r))}mapAsync(e){return Promise.all(this.map((t,n,r)=>e(t,n,r)))}flatMap(e){return this.entries().flatMap(([t,n],r)=>e(t,n,r))}}class ArrayMap extends Dict{add(e,t){this.setdefault(e,[]).push(t)}}const isImportDeclaration=e=>"ImportDeclaration"===e.type,isDirective=e=>"directive"in e,isModuleDeclaration=e=>["ImportDeclaration","ExportNamedDeclaration","ExportDefaultDeclaration","ExportAllDeclaration"].includes(e.type),isStatement=e=>!isDirective(e)&&!isModuleDeclaration(e);function isDeclaration(e){return"VariableDeclaration"===e.type||"FunctionDeclaration"===e.type||"ClassDeclaration"===e.type}const isIdentifier=e=>"Identifier"===e.type,isVariableDeclaration$1=e=>"VariableDeclaration"===e.type,isNamespaceSpecifier=e=>"ImportNamespaceSpecifier"===e.type;function getModuleDeclarationSource(e){return assert("string"==typeof e.source?.value,`Expected ${e.type} to have a source value of type string, got ${e.source?.value}`),e.source.value}function extractDeclarations(e){function t(e){switch(e.type){case"ArrayPattern":return e.elements.flatMap(t);case"AssignmentPattern":return t(e.left);case"Identifier":return[e];case"ObjectPattern":return e.properties.flatMap(e=>"Property"===e.type?t(e.value):t(e));case"RestElement":return t(e.argument);default:throw new InternalRuntimeError(`Should not encounter a ${e.type} in ${extractDeclarations.name}`,e)}}return e.declarations.flatMap(({id:e})=>t(e))}function getIdsFromDeclaration(e){switch(e.type){case"ExportAllDeclaration":return[];case"ExportDefaultDeclaration":switch(e.declaration.type){case"ClassDeclaration":case"FunctionDeclaration":return e.declaration.id?[e.declaration.id]:[]}return[];case"ExportNamedDeclaration":return e.declaration?getIdsFromDeclaration(e.declaration):[];case"ImportDeclaration":return e.specifiers.flatMap(e=>e.local);case"ClassDeclaration":case"FunctionDeclaration":return[e.id];case"VariableDeclaration":return extractDeclarations(e)}}function getSourceVariableDeclaration(e){assert(1===e.declarations.length,"Variable Declarations in Source should only have 1 declarator!");const[t]=e.declarations;return assert(isIdentifier(t.id),"Variable Declarations in Source should be declared using an Identifier!"),assert(!!t.init,"Variable declarations in Source must be initialized!"),{id:t.id,init:t.init,loc:t.loc}}const getSpecifierName=e=>"Identifier"===e.type?e.name:`${e.value}`,getImportedName=e=>{switch(e.type){case"ImportDefaultSpecifier":return"default";case"ImportSpecifier":return getSpecifierName(e.imported);case"ExportSpecifier":return getSpecifierName(e.local)}},specifierToString=e=>{switch(e.type){case"ImportSpecifier":return getSpecifierName(e.imported)===e.local.name?getSpecifierName(e.imported):`${getSpecifierName(e.imported)} as ${e.local.name}`;case"ImportDefaultSpecifier":return`default as ${e.local.name}`;case"ExportSpecifier":return getSpecifierName(e.local)===getSpecifierName(e.exported)?getSpecifierName(e.local):`${getSpecifierName(e.local)} as ${getSpecifierName(e.exported)}`}};function hasNoDeclarations(e){return!e.some(isDeclaration)}function hasNoImportDeclarations(e){return!e.some(isImportDeclaration)}function filterImportDeclarations({body:e}){return e.reduce(([e,t],n)=>{if(!isImportDeclaration(n))return[e,[...t,n]];const r=getModuleDeclarationSource(n);return e.add(r,n),[e,t]},[new ArrayMap,[]])}function templateToString(e,t){return"string"==typeof e?e:t.reduce((t,n,r)=>t+n+e[r+1],e[0])}function oneLine(e,...t){return templateToString(e,t).replace(/(?:\n(?:\s*))+/g," ").trim()}function stripIndent(e,...t){const n=templateToString(e,t),r=n.match(/^[^\S\n]*(?=\S)/gm),i=r&&Math.min(...r.map(e=>e.length));return i?n.replace(new RegExp(`^.{${i}}`,"gm"),"").trim():n.trim()}function getWarningMessage(e){const t=e/1e3,n=t*JSSLANG_PROPERTIES.factorToIncreaseBy;return stripIndent`If you are certain your program is correct, press run again without editing your program. + The time limit will be increased from ${t} to ${n} seconds. + This page may be unresponsive for up to ${n} seconds if you do so.`}class TimeoutError extends RuntimeSourceError{}class PotentialInfiniteLoopError extends TimeoutError{constructor(e,t){super(e),this.maxExecTime=t}explain(){return stripIndent`${"Potential infinite loop detected"}. + ${getWarningMessage(this.maxExecTime)}`}}class PotentialInfiniteRecursionError extends TimeoutError{constructor(e,t,n){super(e),this.calls=t,this.maxExecTime=n,this.calls=this.calls.slice(-3)}explain(){return stripIndent`${"Potential infinite recursion detected"}: ${this.calls.map(([e,t])=>`${e}(${t.map(e=>stringify$9(e)).join(", ")})`).join(" ... ")}. + ${getWarningMessage(this.maxExecTime)}`}}class InvalidParameterTypeError extends RuntimeSourceError{constructor(e,t,n,r,i){super(i),this.expectedType=e,this.actualValue=t,this.func_name=n,this.param_name=r}explain(){const e=this.param_name?` for ${this.param_name}`:"";return`${this.func_name}: Expected ${this.expectedType}${e}, got ${stringify$9(this.actualValue)}.`}}class InvalidCallbackError extends InvalidParameterTypeError{constructor(e,t,n,r,i){super("number"==typeof e?`function with ${e} parameter${1!==e?"s":""}`:e,t,n,r,i)}}class InvalidNumberParameterError extends InvalidParameterTypeError{constructor(e,t,n,r,i){let a;if("string"==typeof t)a=t;else{const{max:e,min:n,integer:r=!0}=t,i=r?"integer":"number";a=void 0!==e?void 0===n?`${i} less than ${e}`:`${i} between ${n} and ${e}`:void 0===n?i:`${i} greater than ${n}`}super(a,e,n,r,i)}}var rttcErrors=Object.freeze({__proto__:null,InvalidCallbackError:InvalidCallbackError,InvalidNumberParameterError:InvalidNumberParameterError,InvalidParameterTypeError:InvalidParameterTypeError}),Chapter=(e=>(e[e.SOURCE_1=1]="SOURCE_1",e[e.SOURCE_2=2]="SOURCE_2",e[e.SOURCE_3=3]="SOURCE_3",e[e.SOURCE_4=4]="SOURCE_4",e[e.FULL_JS=-1]="FULL_JS",e[e.HTML=-2]="HTML",e[e.FULL_TS=-3]="FULL_TS",e[e.FULL_C=-14]="FULL_C",e[e.FULL_JAVA=-15]="FULL_JAVA",e[e.LIBRARY_PARSER=100]="LIBRARY_PARSER",e))(Chapter||{}),Variant=(e=>(e.DEFAULT="default",e.TYPED="typed",e.NATIVE="native",e.WASM="wasm",e.EXPLICIT_CONTROL="explicit-control",e))(Variant||{});const LHS=" on left hand side of operation",RHS=" on right hand side of operation";class RuntimeTypeError extends RuntimeSourceError{constructor(e,t,n,r,i=Chapter.SOURCE_4){super(e),this.side=t,this.expected=n,this.got=r,this.chapter=i}explain(){const e="array"===this.got?this.chapter<=2?"pair":"compound data":this.got;return`Expected ${this.expected}${this.side}, got ${e}.`}}function typeOf(e){return null===e?"null":Array.isArray(e)?"array":e instanceof RegExp?"regexp":typeof e}function isNumber(e){return"number"===typeOf(e)}function isArrayIndex(e){return isNumber(e)&&e>>>0===e&&e<2**32-1}function isArray$1(e){return"array"===typeOf(e)}function isString(e){return"string"===typeOf(e)}function isBool(e){return!0===e||!1===e}function isObject(e){return"object"===typeOf(e)}function checkUnaryExpression(e,t,n,r=Chapter.SOURCE_4){if(!("+"!==t&&"-"!==t||isNumber(n)))throw new RuntimeTypeError(e,"","number",typeOf(n),r);if("!"===t&&!isBool(n))throw new RuntimeTypeError(e,"","boolean",typeOf(n),r)}function checkBinaryExpression(e,t,n,[r,i]){switch(t){case"-":case"*":case"/":case"%":if(isNumber(r)){if(isNumber(i))return;throw new RuntimeTypeError(e,RHS,"number",typeOf(i),n)}throw new RuntimeTypeError(e,LHS,"number",typeOf(r),n);case"+":case"<":case"<=":case">":case">=":case"!==":case"===":if(n>2&&("==="===t||"!=="===t))return;if(isNumber(r)){if(!isNumber(i))throw new RuntimeTypeError(e,RHS,"number",typeOf(i),n)}else{if(!isString(r))throw new RuntimeTypeError(e,LHS,"string or number",typeOf(r),n);if(!isString(i))throw new RuntimeTypeError(e,RHS,"string",typeOf(i),n)}return;default:return}}function checkIfStatement(e,t,n=Chapter.SOURCE_4){if(!isBool(t))throw new RuntimeTypeError(e," as condition","boolean",typeOf(t),n)}const MAX_SOURCE_ARRAY_INDEX=4294967295;function checkoutofRange(e,t,n=Chapter.SOURCE_4){if(t<0||t>MAX_SOURCE_ARRAY_INDEX)throw new RuntimeTypeError(e," in reasonable range","index","out of range",n)}function checkMemberAccess(e,t){const[n,r]=t;if(!isObject(n)){if(isArray$1(n)){if(isArrayIndex(r))return;if(isNumber(r))throw new RuntimeTypeError(e," as prop","array index","other number");throw new RuntimeTypeError(e," as prop","array index",typeOf(r))}throw new RuntimeTypeError(e,"","object or array",typeOf(n))}if(!isString(r))throw new RuntimeTypeError(e," as prop","string",typeOf(r))}function checkArray(e,t,n=Chapter.SOURCE_4){if(!isArray$1(t))throw new RuntimeTypeError(e,"","array",typeOf(t),n)}function isFunctionOfLength(e,t){return"function"==typeof e&&e.length===t}function assertFunctionOfLength(e,t,n,r,i){if(!isFunctionOfLength(e,t))throw new InvalidCallbackError(r??t,e,n,i)}function isTupleOfLength(e,t){return!!Array.isArray(e)&&e.length===t}function assertTupleOfLength(e,t,n,r){if(!isTupleOfLength(e,t))throw new InvalidParameterTypeError(`tuple of length ${length}`,e,n,r)}function isNumberWithinRange(e,t,n,r=!0){let i;return"number"==typeof t||void 0===t?i={min:t,max:n,integer:r}:(i=t,i.integer=t.integer??!0),"number"==typeof e&&!Number.isNaN(e)&&!(void 0!==i.max&&e>i.max)&&!(void 0!==i.min&&ee.maxExecTime)throw new PotentialInfiniteLoopError(locationDummyNode(r,i,a),e.maxExecTime)}function boolOrErr(e,t,n,r){return checkIfStatement(locationDummyNode(t,n,r),e),e}function unaryOp(e,t,n,r,i){return checkUnaryExpression(locationDummyNode(n,r,i),e,t),evaluateUnaryExpression(e,t)}function evaluateUnaryExpression(e,t){return"!"===e?!t:"-"===e?-t:"typeof"===e?typeof t:+t}function binaryOp(e,t,n,r,i,a,o){return checkBinaryExpression(locationDummyNode(i,a,o),e,t,[n,r]),evaluateBinaryExpression(e,n,r)}function evaluateBinaryExpression(e,t,n){switch(e){case"+":return t+n;case"-":return t-n;case"*":return t*n;case"/":return t/n;case"%":return t%n;case"===":return t===n;case"!==":return t!==n;case"<=":return t<=n;case"<":return t":return t>n;case">=":return t>=n;default:return}}const funcDetSymbol=Symbol();function getFunctionDetails(e){return funcDetSymbol in e?e[funcDetSymbol]:{minArgsNeeded:e.length,source:null}}function callIfFuncAndRightArgs(e,t,n,r,i,...a){const o=Date.now(),s=[];let c="prelude"===r;for(;;){const l=locationDummyNode(t,n,r);if("function"!=typeof e)throw new CallingNonFunctionValueError(e,callExpression(l,a,{start:{line:t,column:n},end:{line:t,column:n},source:r}));const u=e.length,d=a.length,{minArgsNeeded:p,source:m}=getFunctionDetails(e);"prelude"===m&&(c=!0);const f=void 0!==p;if(f?p>d:u!==d)throw new InvalidNumberOfArgumentsError(callExpression(l,a,{start:{line:t,column:n},end:{line:t,column:n},source:r}),f?p:u,d,e.name,f);let _;try{if(_=e(...a),i&&Date.now()-o>i.maxExecTime)throw new PotentialInfiniteRecursionError(l,s,i.maxExecTime)}catch(e){if(e instanceof ExceptionError)throw e;if(e instanceof RuntimeSourceError)throw e.node?m&&(e.node.loc?e.node.loc.source=c?"prelude":m:e.node.loc={start:{line:t,column:n},end:{line:t,column:n},source:c?"prelude":m}):e.node=locationDummyNode(t,n,c?"prelude":m),e;throw new ExceptionError(e)}if(null==_)return _;if(!0!==_.isTail)return!1===_.isTail?_.value:_;e=_.function,a=_.arguments,r=_.source,t=_.line,n=_.column,s.push([_.functionName,a])}}function wrap(e,t,n,r=null,i){let a;if(!0===t?a=e.length:"number"==typeof t&&(a=t),void 0!==i&&Object.defineProperty(e,"name",{value:i}),funcDetSymbol in e){const t=getFunctionDetails(e);"number"!=typeof t.minArgsNeeded&&(t.minArgsNeeded=a),"string"!=typeof t.source&&(t.source=r)}else e[funcDetSymbol]={minArgsNeeded:a,source:r};return void 0===n||"toReplString"in e||(e.toReplString=()=>n),e}function setProp(e,t,n,r,i,a){return checkMemberAccess(locationDummyNode(r,i,a),[e,t]),e[t]=n}function getProp(e,t,n,r,i){const a=locationDummyNode(n,r,i);if(checkMemberAccess(a,[e,t]),void 0===e[t]||e.hasOwnProperty(t))return e[t];throw new GetInheritedPropertyError(a,e,t)}var operators=Object.freeze({__proto__:null,binaryOp:binaryOp,boolOrErr:boolOrErr,callIfFuncAndRightArgs:callIfFuncAndRightArgs,evaluateBinaryExpression:evaluateBinaryExpression,evaluateUnaryExpression:evaluateUnaryExpression,getProp:getProp,setProp:setProp,throwIfTimeout:throwIfTimeout,unaryOp:unaryOp,wrap:wrap});function hasImportDeclarations(e){for(const t of e.body)if("ImportDeclaration"===t.type)return!0;return!1}const transformers$1={ArrayExpression:e=>(e.elements=e.elements.map(e=>e?transform(e):null),e),ArrowFunctionExpression:e=>(e.params=e.params.map(transform),e.body=transform(e.body),e),AssignmentExpression:["left","right"],BinaryExpression:["left","right"],BlockStatement:e=>(e.body=e.body.map(transform),hasNoDeclarations(e.body)?statementSequence(e.body,e.loc):e),BreakStatement:"label",CallExpression:e=>(e.callee=transform(e.callee),e.arguments=e.arguments.map(transform),e),ClassDeclaration:["body","id","superClass"],ConditionalExpression:["alternate","consequent","test"],ContinueStatement:"label",ExportDefaultDeclaration:"declaration",ExportNamedDeclaration:e=>(e.declaration&&(e.declaration=transform(e.declaration)),e.specifiers=e.specifiers.map(e=>transform(e)),e.source&&transform(e.source),e),ExportSpecifier:["exported","local"],ExpressionStatement:"expression",ForStatement:["body","init","test","update"],FunctionDeclaration:e=>(e.params=e.params.map(transform),e.body=transform(e.body),e.id&&(e.id=transform(e.id)),e),FunctionExpression:e=>(e.id&&(e.id=transform(e.id)),e.params=e.params.map(transform),e.body=transform(e.body),e),IfStatement:["alternate","consequent","test"],ImportDeclaration:e=>(e.specifiers=e.specifiers.map(transform),e.source=transform(e.source),e),ImportDefaultSpecifier:"local",ImportSpecifier:["imported","local"],LogicalExpression:["left","right"],MemberExpression:["object","property"],MethodDefinition:["key","value"],NewExpression:e=>(e.arguments=e.arguments.map(transform),e),ObjectExpression:e=>(e.properties=e.properties.map(transform),e),Program:e=>hasNoDeclarations(e.body)||hasImportDeclarations(e)?e:statementSequence(e.body,e.loc),Property:["key","value"],RestElement:"argument",ReturnStatement:"argument",SpreadElement:"argument",StatementSequence:e=>(e.body=e.body.map(transform),e),ThrowStatement:"argument",TryStatement:["block","finalizer","handler"],UnaryExpression:"argument",VariableDeclarator:["id","init"],VariableDeclaration:e=>(e.declarations=e.declarations.map(transform),e),WhileStatement:["body","test"]};function transform(e){const t=transformers$1[e.type];switch(typeof t){case"undefined":return e;case"function":return t(e)}const n="string"==typeof t?[t]:t;for(const t of n)e[t]=transform(e[t]);return e}class NoAssignmentToForVariableError extends SourceErrorWithNode{constructor(){super(...arguments),this.type=ErrorType.SYNTAX,this.severity=ErrorSeverity.ERROR}explain(){return"Assignment to a for loop variable within the body of the for loop is not allowed."}elaborate(){return this.explain()}}var astralIdentifierCodes=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,78,5,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,199,7,137,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,55,9,266,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,233,0,3,0,8,1,6,0,475,6,110,6,6,9,4759,9,787719,239],astralIdentifierStartCodes=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,7,25,39,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,5,57,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,24,43,261,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,33,24,3,24,45,74,6,0,67,12,65,1,2,0,15,4,10,7381,42,31,98,114,8702,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,208,30,2,2,2,1,2,6,3,4,10,1,225,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4381,3,5773,3,7472,16,621,2467,541,1507,4938,6,8489],nonASCIIidentifierChars="‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࢗ-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-᫝᫠-᫫ᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‌‍‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・",nonASCIIidentifierStartChars="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-࢏ࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚ౜ౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽ೜-ೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲊᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-Ƛ꟱-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",reservedWords={3:"abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",5:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"},ecma5AndLessKeywords="break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this",keywords$1={5:ecma5AndLessKeywords,"5module":ecma5AndLessKeywords+" export import",6:ecma5AndLessKeywords+" const class extends export import super"},keywordRelationalOperator=/^in(stanceof)?$/,nonASCIIidentifierStart=new RegExp("["+nonASCIIidentifierStartChars+"]"),nonASCIIidentifier=new RegExp("["+nonASCIIidentifierStartChars+nonASCIIidentifierChars+"]");function isInAstralSet(e,t){for(var n=65536,r=0;re)return!1;if((n+=t[r+1])>=e)return!0}return!1}function isIdentifierStart(e,t){return e<65?36===e:e<91||(e<97?95===e:e<123||(e<=65535?e>=170&&nonASCIIidentifierStart.test(String.fromCharCode(e)):!1!==t&&isInAstralSet(e,astralIdentifierStartCodes)))}function isIdentifierChar(e,t){return e<48?36===e:e<58||!(e<65)&&(e<91||(e<97?95===e:e<123||(e<=65535?e>=170&&nonASCIIidentifier.test(String.fromCharCode(e)):!1!==t&&(isInAstralSet(e,astralIdentifierStartCodes)||isInAstralSet(e,astralIdentifierCodes)))))}var TokenType=function(e,t){void 0===t&&(t={}),this.label=e,this.keyword=t.keyword,this.beforeExpr=!!t.beforeExpr,this.startsExpr=!!t.startsExpr,this.isLoop=!!t.isLoop,this.isAssign=!!t.isAssign,this.prefix=!!t.prefix,this.postfix=!!t.postfix,this.binop=t.binop||null,this.updateContext=null};function binop(e,t){return new TokenType(e,{beforeExpr:!0,binop:t})}var beforeExpr={beforeExpr:!0},startsExpr={startsExpr:!0},keywords={};function kw(e,t){return void 0===t&&(t={}),t.keyword=e,keywords[e]=new TokenType(e,t)}var types$1={num:new TokenType("num",startsExpr),regexp:new TokenType("regexp",startsExpr),string:new TokenType("string",startsExpr),name:new TokenType("name",startsExpr),privateId:new TokenType("privateId",startsExpr),eof:new TokenType("eof"),bracketL:new TokenType("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new TokenType("]"),braceL:new TokenType("{",{beforeExpr:!0,startsExpr:!0}),braceR:new TokenType("}"),parenL:new TokenType("(",{beforeExpr:!0,startsExpr:!0}),parenR:new TokenType(")"),comma:new TokenType(",",beforeExpr),semi:new TokenType(";",beforeExpr),colon:new TokenType(":",beforeExpr),dot:new TokenType("."),question:new TokenType("?",beforeExpr),questionDot:new TokenType("?."),arrow:new TokenType("=>",beforeExpr),template:new TokenType("template"),invalidTemplate:new TokenType("invalidTemplate"),ellipsis:new TokenType("...",beforeExpr),backQuote:new TokenType("`",startsExpr),dollarBraceL:new TokenType("${",{beforeExpr:!0,startsExpr:!0}),eq:new TokenType("=",{beforeExpr:!0,isAssign:!0}),assign:new TokenType("_=",{beforeExpr:!0,isAssign:!0}),incDec:new TokenType("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new TokenType("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:binop("||",1),logicalAND:binop("&&",2),bitwiseOR:binop("|",3),bitwiseXOR:binop("^",4),bitwiseAND:binop("&",5),equality:binop("==/!=/===/!==",6),relational:binop("/<=/>=",7),bitShift:binop("<>/>>>",8),plusMin:new TokenType("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:binop("%",10),star:binop("*",10),slash:binop("/",10),starstar:new TokenType("**",{beforeExpr:!0}),coalesce:binop("??",1),_break:kw("break"),_case:kw("case",beforeExpr),_catch:kw("catch"),_continue:kw("continue"),_debugger:kw("debugger"),_default:kw("default",beforeExpr),_do:kw("do",{isLoop:!0,beforeExpr:!0}),_else:kw("else",beforeExpr),_finally:kw("finally"),_for:kw("for",{isLoop:!0}),_function:kw("function",startsExpr),_if:kw("if"),_return:kw("return",beforeExpr),_switch:kw("switch"),_throw:kw("throw",beforeExpr),_try:kw("try"),_var:kw("var"),_const:kw("const"),_while:kw("while",{isLoop:!0}),_with:kw("with"),_new:kw("new",{beforeExpr:!0,startsExpr:!0}),_this:kw("this",startsExpr),_super:kw("super",startsExpr),_class:kw("class",startsExpr),_extends:kw("extends",beforeExpr),_export:kw("export"),_import:kw("import",startsExpr),_null:kw("null",startsExpr),_true:kw("true",startsExpr),_false:kw("false",startsExpr),_in:kw("in",{beforeExpr:!0,binop:7}),_instanceof:kw("instanceof",{beforeExpr:!0,binop:7}),_typeof:kw("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:kw("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:kw("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},lineBreak$1=/\r\n?|\n|\u2028|\u2029/,lineBreakG=new RegExp(lineBreak$1.source,"g");function isNewLine(e){return 10===e||13===e||8232===e||8233===e}function nextLineBreak(e,t,n){void 0===n&&(n=e.length);for(var r=t;r>10),56320+(1023&e)))}var loneSurrogate=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,Position=function(e,t){this.line=e,this.column=t};Position.prototype.offset=function(e){return new Position(this.line,this.column+e)};var SourceLocation=function(e,t,n){this.start=t,this.end=n,null!==e.sourceFile&&(this.source=e.sourceFile)};function getLineInfo(e,t){for(var n=1,r=0;;){var i=nextLineBreak(e,r,t);if(i<0)return new Position(n,t-r);++n,r=i}}var defaultOptions={ecmaVersion:null,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:null,allowSuperOutsideMethod:null,allowHashBang:!1,checkPrivateFields:!0,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},warnedAboutEcmaVersion=!1;function getOptions(e){var t={};for(var n in defaultOptions)t[n]=e&&hasOwn(e,n)?e[n]:defaultOptions[n];if("latest"===t.ecmaVersion?t.ecmaVersion=1e8:null==t.ecmaVersion?(!warnedAboutEcmaVersion&&"object"==typeof console&&console.warn&&(warnedAboutEcmaVersion=!0,console.warn("Since Acorn 8.0.0, options.ecmaVersion is required.\nDefaulting to 2020, but this will stop working in the future.")),t.ecmaVersion=11):t.ecmaVersion>=2015&&(t.ecmaVersion-=2009),null==t.allowReserved&&(t.allowReserved=t.ecmaVersion<5),e&&null!=e.allowHashBang||(t.allowHashBang=t.ecmaVersion>=14),isArray(t.onToken)){var r=t.onToken;t.onToken=function(e){return r.push(e)}}if(isArray(t.onComment)&&(t.onComment=pushComment(t,t.onComment)),"commonjs"===t.sourceType&&t.allowAwaitOutsideFunction)throw new Error("Cannot use allowAwaitOutsideFunction with sourceType: commonjs");return t}function pushComment(e,t){return function(n,r,i,a,o,s){var c={type:n?"Block":"Line",value:r,start:i,end:a};e.locations&&(c.loc=new SourceLocation(this,o,s)),e.ranges&&(c.range=[i,a]),t.push(c)}}var SCOPE_TOP=1,SCOPE_FUNCTION=2,SCOPE_ASYNC=4,SCOPE_GENERATOR=8,SCOPE_ARROW=16,SCOPE_SIMPLE_CATCH=32,SCOPE_SUPER=64,SCOPE_DIRECT_SUPER=128,SCOPE_CLASS_STATIC_BLOCK=256,SCOPE_CLASS_FIELD_INIT=512,SCOPE_SWITCH=1024,SCOPE_VAR=SCOPE_TOP|SCOPE_FUNCTION|SCOPE_CLASS_STATIC_BLOCK;function functionFlags(e,t){return SCOPE_FUNCTION|(e?SCOPE_ASYNC:0)|(t?SCOPE_GENERATOR:0)}var BIND_NONE=0,BIND_VAR=1,BIND_LEXICAL=2,BIND_FUNCTION=3,BIND_SIMPLE_CATCH=4,BIND_OUTSIDE=5,Parser=function(e,t,n){this.options=e=getOptions(e),this.sourceFile=e.sourceFile,this.keywords=wordsRegexp(keywords$1[e.ecmaVersion>=6?6:"module"===e.sourceType?"5module":5]);var r="";!0!==e.allowReserved&&(r=reservedWords[e.ecmaVersion>=6?6:5===e.ecmaVersion?5:3],"module"===e.sourceType&&(r+=" await")),this.reservedWords=wordsRegexp(r);var i=(r?r+" ":"")+reservedWords.strict;this.reservedWordsStrict=wordsRegexp(i),this.reservedWordsStrictBind=wordsRegexp(i+" "+reservedWords.strictBind),this.input=String(t),this.containsEsc=!1,n?(this.pos=n,this.lineStart=this.input.lastIndexOf("\n",n-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(lineBreak$1).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=types$1.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule="module"===e.sourceType,this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.potentialArrowInForAwait=!1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports=Object.create(null),0===this.pos&&e.allowHashBang&&"#!"===this.input.slice(0,2)&&this.skipLineComment(2),this.scopeStack=[],this.enterScope("commonjs"===this.options.sourceType?SCOPE_FUNCTION:SCOPE_TOP),this.regexpState=null,this.privateNameStack=[]},prototypeAccessors={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},canAwait:{configurable:!0},allowReturn:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0},allowNewDotTarget:{configurable:!0},allowUsing:{configurable:!0},inClassStaticBlock:{configurable:!0}};Parser.prototype.parse=function(){var e=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(e)},prototypeAccessors.inFunction.get=function(){return(this.currentVarScope().flags&SCOPE_FUNCTION)>0},prototypeAccessors.inGenerator.get=function(){return(this.currentVarScope().flags&SCOPE_GENERATOR)>0},prototypeAccessors.inAsync.get=function(){return(this.currentVarScope().flags&SCOPE_ASYNC)>0},prototypeAccessors.canAwait.get=function(){for(var e=this.scopeStack.length-1;e>=0;e--){var t=this.scopeStack[e].flags;if(t&(SCOPE_CLASS_STATIC_BLOCK|SCOPE_CLASS_FIELD_INIT))return!1;if(t&SCOPE_FUNCTION)return(t&SCOPE_ASYNC)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction},prototypeAccessors.allowReturn.get=function(){return!!this.inFunction||!!(this.options.allowReturnOutsideFunction&&this.currentVarScope().flags&SCOPE_TOP)},prototypeAccessors.allowSuper.get=function(){return(this.currentThisScope().flags&SCOPE_SUPER)>0||this.options.allowSuperOutsideMethod},prototypeAccessors.allowDirectSuper.get=function(){return(this.currentThisScope().flags&SCOPE_DIRECT_SUPER)>0},prototypeAccessors.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},prototypeAccessors.allowNewDotTarget.get=function(){for(var e=this.scopeStack.length-1;e>=0;e--){var t=this.scopeStack[e].flags;if(t&(SCOPE_CLASS_STATIC_BLOCK|SCOPE_CLASS_FIELD_INIT)||t&SCOPE_FUNCTION&&!(t&SCOPE_ARROW))return!0}return!1},prototypeAccessors.allowUsing.get=function(){var e=this.currentScope().flags;return!(e&SCOPE_SWITCH||!this.inModule&&e&SCOPE_TOP)},prototypeAccessors.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&SCOPE_CLASS_STATIC_BLOCK)>0},Parser.extend=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];for(var n=this,r=0;r=,?^&]/.test(i)||"!"===i&&"="===this.input.charAt(r+1))}e+=t[0].length,skipWhiteSpace.lastIndex=e,e+=skipWhiteSpace.exec(this.input)[0].length,";"===this.input[e]&&e++}},pp$9.eat=function(e){return this.type===e&&(this.next(),!0)},pp$9.isContextual=function(e){return this.type===types$1.name&&this.value===e&&!this.containsEsc},pp$9.eatContextual=function(e){return!!this.isContextual(e)&&(this.next(),!0)},pp$9.expectContextual=function(e){this.eatContextual(e)||this.unexpected()},pp$9.canInsertSemicolon=function(){return this.type===types$1.eof||this.type===types$1.braceR||lineBreak$1.test(this.input.slice(this.lastTokEnd,this.start))},pp$9.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},pp$9.semicolon=function(){this.eat(types$1.semi)||this.insertSemicolon()||this.unexpected()},pp$9.afterTrailingComma=function(e,t){if(this.type===e)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),t||this.next(),!0},pp$9.expect=function(e){this.eat(e)||this.unexpected()},pp$9.unexpected=function(e){this.raise(null!=e?e:this.start,"Unexpected token")};var DestructuringErrors$1=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};pp$9.checkPatternErrors=function(e,t){if(e){e.trailingComma>-1&&this.raiseRecoverable(e.trailingComma,"Comma is not permitted after the rest element");var n=t?e.parenthesizedAssign:e.parenthesizedBind;n>-1&&this.raiseRecoverable(n,t?"Assigning to rvalue":"Parenthesized pattern")}},pp$9.checkExpressionErrors=function(e,t){if(!e)return!1;var n=e.shorthandAssign,r=e.doubleProto;if(!t)return n>=0||r>=0;n>=0&&this.raise(n,"Shorthand property assignments are valid only in destructuring patterns"),r>=0&&this.raiseRecoverable(r,"Redefinition of __proto__ property")},pp$9.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos=6&&this.unexpected(),this.parseFunctionStatement(a,!1,!e);case types$1._class:return e&&this.unexpected(),this.parseClass(a,!0);case types$1._if:return this.parseIfStatement(a);case types$1._return:return this.parseReturnStatement(a);case types$1._switch:return this.parseSwitchStatement(a);case types$1._throw:return this.parseThrowStatement(a);case types$1._try:return this.parseTryStatement(a);case types$1._const:case types$1._var:return r=r||this.value,e&&"var"!==r&&this.unexpected(),this.parseVarStatement(a,r);case types$1._while:return this.parseWhileStatement(a);case types$1._with:return this.parseWithStatement(a);case types$1.braceL:return this.parseBlock(!0,a);case types$1.semi:return this.parseEmptyStatement(a);case types$1._export:case types$1._import:if(this.options.ecmaVersion>10&&i===types$1._import){skipWhiteSpace.lastIndex=this.pos;var o=skipWhiteSpace.exec(this.input),s=this.pos+o[0].length,c=this.input.charCodeAt(s);if(40===c||46===c)return this.parseExpressionStatement(a,this.parseExpression())}return this.options.allowImportExportEverywhere||(t||this.raise(this.start,"'import' and 'export' may only appear at the top level"),this.inModule||this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")),i===types$1._import?this.parseImport(a):this.parseExport(a,n);default:if(this.isAsyncFunction())return e&&this.unexpected(),this.next(),this.parseFunctionStatement(a,!0,!e);var l=this.isAwaitUsing(!1)?"await using":this.isUsing(!1)?"using":null;if(l)return this.allowUsing||this.raise(this.start,"Using declaration cannot appear in the top level when source type is `script` or in the bare case statement"),"await using"===l&&(this.canAwait||this.raise(this.start,"Await using cannot appear outside of async function"),this.next()),this.next(),this.parseVar(a,!1,l),this.semicolon(),this.finishNode(a,"VariableDeclaration");var u=this.value,d=this.parseExpression();return i===types$1.name&&"Identifier"===d.type&&this.eat(types$1.colon)?this.parseLabeledStatement(a,u,d,e):this.parseExpressionStatement(a,d)}},pp$8.parseBreakContinueStatement=function(e,t){var n="break"===t;this.next(),this.eat(types$1.semi)||this.insertSemicolon()?e.label=null:this.type!==types$1.name?this.unexpected():(e.label=this.parseIdent(),this.semicolon());for(var r=0;r=6?this.eat(types$1.semi):this.semicolon(),this.finishNode(e,"DoWhileStatement")},pp$8.parseForStatement=function(e){this.next();var t=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(loopLabel),this.enterScope(0),this.expect(types$1.parenL),this.type===types$1.semi)return t>-1&&this.unexpected(t),this.parseFor(e,null);var n=this.isLet();if(this.type===types$1._var||this.type===types$1._const||n){var r=this.startNode(),i=n?"let":this.value;return this.next(),this.parseVar(r,!0,i),this.finishNode(r,"VariableDeclaration"),this.parseForAfterInit(e,r,t)}var a=this.isContextual("let"),o=!1,s=this.isUsing(!0)?"using":this.isAwaitUsing(!0)?"await using":null;if(s){var c=this.startNode();return this.next(),"await using"===s&&(this.canAwait||this.raise(this.start,"Await using cannot appear outside of async function"),this.next()),this.parseVar(c,!0,s),this.finishNode(c,"VariableDeclaration"),this.parseForAfterInit(e,c,t)}var l=this.containsEsc,u=new DestructuringErrors$1,d=this.start,p=t>-1?this.parseExprSubscripts(u,"await"):this.parseExpression(!0,u);return this.type===types$1._in||(o=this.options.ecmaVersion>=6&&this.isContextual("of"))?(t>-1?(this.type===types$1._in&&this.unexpected(t),e.await=!0):o&&this.options.ecmaVersion>=8&&(p.start!==d||l||"Identifier"!==p.type||"async"!==p.name?this.options.ecmaVersion>=9&&(e.await=!1):this.unexpected()),a&&o&&this.raise(p.start,"The left-hand side of a for-of loop may not start with 'let'."),this.toAssignable(p,!1,u),this.checkLValPattern(p),this.parseForIn(e,p)):(this.checkExpressionErrors(u,!0),t>-1&&this.unexpected(t),this.parseFor(e,p))},pp$8.parseForAfterInit=function(e,t,n){return(this.type===types$1._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&1===t.declarations.length?(this.options.ecmaVersion>=9&&(this.type===types$1._in?n>-1&&this.unexpected(n):e.await=n>-1),this.parseForIn(e,t)):(n>-1&&this.unexpected(n),this.parseFor(e,t))},pp$8.parseFunctionStatement=function(e,t,n){return this.next(),this.parseFunction(e,FUNC_STATEMENT|(n?0:FUNC_HANGING_STATEMENT),!1,t)},pp$8.parseIfStatement=function(e){return this.next(),e.test=this.parseParenExpression(),e.consequent=this.parseStatement("if"),e.alternate=this.eat(types$1._else)?this.parseStatement("if"):null,this.finishNode(e,"IfStatement")},pp$8.parseReturnStatement=function(e){return this.allowReturn||this.raise(this.start,"'return' outside of function"),this.next(),this.eat(types$1.semi)||this.insertSemicolon()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,"ReturnStatement")},pp$8.parseSwitchStatement=function(e){var t;this.next(),e.discriminant=this.parseParenExpression(),e.cases=[],this.expect(types$1.braceL),this.labels.push(switchLabel),this.enterScope(SCOPE_SWITCH);for(var n=!1;this.type!==types$1.braceR;)if(this.type===types$1._case||this.type===types$1._default){var r=this.type===types$1._case;t&&this.finishNode(t,"SwitchCase"),e.cases.push(t=this.startNode()),t.consequent=[],this.next(),r?t.test=this.parseExpression():(n&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),n=!0,t.test=null),this.expect(types$1.colon)}else t||this.unexpected(),t.consequent.push(this.parseStatement(null));return this.exitScope(),t&&this.finishNode(t,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(e,"SwitchStatement")},pp$8.parseThrowStatement=function(e){return this.next(),lineBreak$1.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),e.argument=this.parseExpression(),this.semicolon(),this.finishNode(e,"ThrowStatement")};var empty$1=[];pp$8.parseCatchClauseParam=function(){var e=this.parseBindingAtom(),t="Identifier"===e.type;return this.enterScope(t?SCOPE_SIMPLE_CATCH:0),this.checkLValPattern(e,t?BIND_SIMPLE_CATCH:BIND_LEXICAL),this.expect(types$1.parenR),e},pp$8.parseTryStatement=function(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.type===types$1._catch){var t=this.startNode();this.next(),this.eat(types$1.parenL)?t.param=this.parseCatchClauseParam():(this.options.ecmaVersion<10&&this.unexpected(),t.param=null,this.enterScope(0)),t.body=this.parseBlock(!1),this.exitScope(),e.handler=this.finishNode(t,"CatchClause")}return e.finalizer=this.eat(types$1._finally)?this.parseBlock():null,e.handler||e.finalizer||this.raise(e.start,"Missing catch or finally clause"),this.finishNode(e,"TryStatement")},pp$8.parseVarStatement=function(e,t,n){return this.next(),this.parseVar(e,!1,t,n),this.semicolon(),this.finishNode(e,"VariableDeclaration")},pp$8.parseWhileStatement=function(e){return this.next(),e.test=this.parseParenExpression(),this.labels.push(loopLabel),e.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(e,"WhileStatement")},pp$8.parseWithStatement=function(e){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),e.object=this.parseParenExpression(),e.body=this.parseStatement("with"),this.finishNode(e,"WithStatement")},pp$8.parseEmptyStatement=function(e){return this.next(),this.finishNode(e,"EmptyStatement")},pp$8.parseLabeledStatement=function(e,t,n,r){for(var i=0,a=this.labels;i=0;s--){var c=this.labels[s];if(c.statementStart!==e.start)break;c.statementStart=this.start,c.kind=o}return this.labels.push({name:t,kind:o,statementStart:this.start}),e.body=this.parseStatement(r?-1===r.indexOf("label")?r+"label":r:"label"),this.labels.pop(),e.label=n,this.finishNode(e,"LabeledStatement")},pp$8.parseExpressionStatement=function(e,t){return e.expression=t,this.semicolon(),this.finishNode(e,"ExpressionStatement")},pp$8.parseBlock=function(e,t,n){for(void 0===e&&(e=!0),void 0===t&&(t=this.startNode()),t.body=[],this.expect(types$1.braceL),e&&this.enterScope(0);this.type!==types$1.braceR;){var r=this.parseStatement(null);t.body.push(r)}return n&&(this.strict=!1),this.next(),e&&this.exitScope(),this.finishNode(t,"BlockStatement")},pp$8.parseFor=function(e,t){return e.init=t,this.expect(types$1.semi),e.test=this.type===types$1.semi?null:this.parseExpression(),this.expect(types$1.semi),e.update=this.type===types$1.parenR?null:this.parseExpression(),this.expect(types$1.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,"ForStatement")},pp$8.parseForIn=function(e,t){var n=this.type===types$1._in;return this.next(),"VariableDeclaration"===t.type&&null!=t.declarations[0].init&&(!n||this.options.ecmaVersion<8||this.strict||"var"!==t.kind||"Identifier"!==t.declarations[0].id.type)&&this.raise(t.start,(n?"for-in":"for-of")+" loop variable declaration may not have an initializer"),e.left=t,e.right=n?this.parseExpression():this.parseMaybeAssign(),this.expect(types$1.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,n?"ForInStatement":"ForOfStatement")},pp$8.parseVar=function(e,t,n,r){for(e.declarations=[],e.kind=n;;){var i=this.startNode();if(this.parseVarId(i,n),this.eat(types$1.eq)?i.init=this.parseMaybeAssign(t):r||"const"!==n||this.type===types$1._in||this.options.ecmaVersion>=6&&this.isContextual("of")?r||"using"!==n&&"await using"!==n||!(this.options.ecmaVersion>=17)||this.type===types$1._in||this.isContextual("of")?r||"Identifier"===i.id.type||t&&(this.type===types$1._in||this.isContextual("of"))?i.init=null:this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):this.raise(this.lastTokEnd,"Missing initializer in "+n+" declaration"):this.unexpected(),e.declarations.push(this.finishNode(i,"VariableDeclarator")),!this.eat(types$1.comma))break}return e},pp$8.parseVarId=function(e,t){e.id="using"===t||"await using"===t?this.parseIdent():this.parseBindingAtom(),this.checkLValPattern(e.id,"var"===t?BIND_VAR:BIND_LEXICAL,!1)};var FUNC_STATEMENT=1,FUNC_HANGING_STATEMENT=2,FUNC_NULLABLE_ID=4;function isPrivateNameConflicted(e,t){var n=t.key.name,r=e[n],i="true";return"MethodDefinition"!==t.type||"get"!==t.kind&&"set"!==t.kind||(i=(t.static?"s":"i")+t.kind),"iget"===r&&"iset"===i||"iset"===r&&"iget"===i||"sget"===r&&"sset"===i||"sset"===r&&"sget"===i?(e[n]="true",!1):!!r||(e[n]=i,!1)}function checkKeyName(e,t){var n=e.computed,r=e.key;return!n&&("Identifier"===r.type&&r.name===t||"Literal"===r.type&&r.value===t)}pp$8.parseFunction=function(e,t,n,r,i){this.initFunction(e),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!r)&&(this.type===types$1.star&&t&FUNC_HANGING_STATEMENT&&this.unexpected(),e.generator=this.eat(types$1.star)),this.options.ecmaVersion>=8&&(e.async=!!r),t&FUNC_STATEMENT&&(e.id=t&FUNC_NULLABLE_ID&&this.type!==types$1.name?null:this.parseIdent(),!e.id||t&FUNC_HANGING_STATEMENT||this.checkLValSimple(e.id,this.strict||e.generator||e.async?this.treatFunctionsAsVar?BIND_VAR:BIND_LEXICAL:BIND_FUNCTION));var a=this.yieldPos,o=this.awaitPos,s=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(functionFlags(e.async,e.generator)),t&FUNC_STATEMENT||(e.id=this.type===types$1.name?this.parseIdent():null),this.parseFunctionParams(e),this.parseFunctionBody(e,n,!1,i),this.yieldPos=a,this.awaitPos=o,this.awaitIdentPos=s,this.finishNode(e,t&FUNC_STATEMENT?"FunctionDeclaration":"FunctionExpression")},pp$8.parseFunctionParams=function(e){this.expect(types$1.parenL),e.params=this.parseBindingList(types$1.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},pp$8.parseClass=function(e,t){this.next();var n=this.strict;this.strict=!0,this.parseClassId(e,t),this.parseClassSuper(e);var r=this.enterClassBody(),i=this.startNode(),a=!1;for(i.body=[],this.expect(types$1.braceL);this.type!==types$1.braceR;){var o=this.parseClassElement(null!==e.superClass);o&&(i.body.push(o),"MethodDefinition"===o.type&&"constructor"===o.kind?(a&&this.raiseRecoverable(o.start,"Duplicate constructor in the same class"),a=!0):o.key&&"PrivateIdentifier"===o.key.type&&isPrivateNameConflicted(r,o)&&this.raiseRecoverable(o.key.start,"Identifier '#"+o.key.name+"' has already been declared"))}return this.strict=n,this.next(),e.body=this.finishNode(i,"ClassBody"),this.exitClassBody(),this.finishNode(e,t?"ClassDeclaration":"ClassExpression")},pp$8.parseClassElement=function(e){if(this.eat(types$1.semi))return null;var t=this.options.ecmaVersion,n=this.startNode(),r="",i=!1,a=!1,o="method",s=!1;if(this.eatContextual("static")){if(t>=13&&this.eat(types$1.braceL))return this.parseClassStaticBlock(n),n;this.isClassElementNameStart()||this.type===types$1.star?s=!0:r="static"}if(n.static=s,!r&&t>=8&&this.eatContextual("async")&&(!this.isClassElementNameStart()&&this.type!==types$1.star||this.canInsertSemicolon()?r="async":a=!0),!r&&(t>=9||!a)&&this.eat(types$1.star)&&(i=!0),!r&&!a&&!i){var c=this.value;(this.eatContextual("get")||this.eatContextual("set"))&&(this.isClassElementNameStart()?o=c:r=c)}if(r?(n.computed=!1,n.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),n.key.name=r,this.finishNode(n.key,"Identifier")):this.parseClassElementName(n),t<13||this.type===types$1.parenL||"method"!==o||i||a){var l=!n.static&&checkKeyName(n,"constructor"),u=l&&e;l&&"method"!==o&&this.raise(n.key.start,"Constructor can't have get/set modifier"),n.kind=l?"constructor":o,this.parseClassMethod(n,i,a,u)}else this.parseClassField(n);return n},pp$8.isClassElementNameStart=function(){return this.type===types$1.name||this.type===types$1.privateId||this.type===types$1.num||this.type===types$1.string||this.type===types$1.bracketL||this.type.keyword},pp$8.parseClassElementName=function(e){this.type===types$1.privateId?("constructor"===this.value&&this.raise(this.start,"Classes can't have an element named '#constructor'"),e.computed=!1,e.key=this.parsePrivateIdent()):this.parsePropertyName(e)},pp$8.parseClassMethod=function(e,t,n,r){var i=e.key;"constructor"===e.kind?(t&&this.raise(i.start,"Constructor can't be a generator"),n&&this.raise(i.start,"Constructor can't be an async method")):e.static&&checkKeyName(e,"prototype")&&this.raise(i.start,"Classes may not have a static property named prototype");var a=e.value=this.parseMethod(t,n,r);return"get"===e.kind&&0!==a.params.length&&this.raiseRecoverable(a.start,"getter should have no params"),"set"===e.kind&&1!==a.params.length&&this.raiseRecoverable(a.start,"setter should have exactly one param"),"set"===e.kind&&"RestElement"===a.params[0].type&&this.raiseRecoverable(a.params[0].start,"Setter cannot use rest params"),this.finishNode(e,"MethodDefinition")},pp$8.parseClassField=function(e){return checkKeyName(e,"constructor")?this.raise(e.key.start,"Classes can't have a field named 'constructor'"):e.static&&checkKeyName(e,"prototype")&&this.raise(e.key.start,"Classes can't have a static field named 'prototype'"),this.eat(types$1.eq)?(this.enterScope(SCOPE_CLASS_FIELD_INIT|SCOPE_SUPER),e.value=this.parseMaybeAssign(),this.exitScope()):e.value=null,this.semicolon(),this.finishNode(e,"PropertyDefinition")},pp$8.parseClassStaticBlock=function(e){e.body=[];var t=this.labels;for(this.labels=[],this.enterScope(SCOPE_CLASS_STATIC_BLOCK|SCOPE_SUPER);this.type!==types$1.braceR;){var n=this.parseStatement(null);e.body.push(n)}return this.next(),this.exitScope(),this.labels=t,this.finishNode(e,"StaticBlock")},pp$8.parseClassId=function(e,t){this.type===types$1.name?(e.id=this.parseIdent(),t&&this.checkLValSimple(e.id,BIND_LEXICAL,!1)):(!0===t&&this.unexpected(),e.id=null)},pp$8.parseClassSuper=function(e){e.superClass=this.eat(types$1._extends)?this.parseExprSubscripts(null,!1):null},pp$8.enterClassBody=function(){var e={declared:Object.create(null),used:[]};return this.privateNameStack.push(e),e.declared},pp$8.exitClassBody=function(){var e=this.privateNameStack.pop(),t=e.declared,n=e.used;if(this.options.checkPrivateFields)for(var r=this.privateNameStack.length,i=0===r?null:this.privateNameStack[r-1],a=0;a=11&&(this.eatContextual("as")?(e.exported=this.parseModuleExportName(),this.checkExport(t,e.exported,this.lastTokStart)):e.exported=null),this.expectContextual("from"),this.type!==types$1.string&&this.unexpected(),e.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(e.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(e,"ExportAllDeclaration")},pp$8.parseExport=function(e,t){if(this.next(),this.eat(types$1.star))return this.parseExportAllDeclaration(e,t);if(this.eat(types$1._default))return this.checkExport(t,"default",this.lastTokStart),e.declaration=this.parseExportDefaultDeclaration(),this.finishNode(e,"ExportDefaultDeclaration");if(this.shouldParseExportStatement())e.declaration=this.parseExportDeclaration(e),"VariableDeclaration"===e.declaration.type?this.checkVariableExport(t,e.declaration.declarations):this.checkExport(t,e.declaration.id,e.declaration.id.start),e.specifiers=[],e.source=null,this.options.ecmaVersion>=16&&(e.attributes=[]);else{if(e.declaration=null,e.specifiers=this.parseExportSpecifiers(t),this.eatContextual("from"))this.type!==types$1.string&&this.unexpected(),e.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(e.attributes=this.parseWithClause());else{for(var n=0,r=e.specifiers;n=16&&(e.attributes=[])}this.semicolon()}return this.finishNode(e,"ExportNamedDeclaration")},pp$8.parseExportDeclaration=function(e){return this.parseStatement(null)},pp$8.parseExportDefaultDeclaration=function(){var e;if(this.type===types$1._function||(e=this.isAsyncFunction())){var t=this.startNode();return this.next(),e&&this.next(),this.parseFunction(t,FUNC_STATEMENT|FUNC_NULLABLE_ID,!1,e)}if(this.type===types$1._class){var n=this.startNode();return this.parseClass(n,"nullableID")}var r=this.parseMaybeAssign();return this.semicolon(),r},pp$8.checkExport=function(e,t,n){e&&("string"!=typeof t&&(t="Identifier"===t.type?t.name:t.value),hasOwn(e,t)&&this.raiseRecoverable(n,"Duplicate export '"+t+"'"),e[t]=!0)},pp$8.checkPatternExport=function(e,t){var n=t.type;if("Identifier"===n)this.checkExport(e,t,t.start);else if("ObjectPattern"===n)for(var r=0,i=t.properties;r=16&&(e.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(e,"ImportDeclaration")},pp$8.parseImportSpecifier=function(){var e=this.startNode();return e.imported=this.parseModuleExportName(),this.eatContextual("as")?e.local=this.parseIdent():(this.checkUnreserved(e.imported),e.local=e.imported),this.checkLValSimple(e.local,BIND_LEXICAL),this.finishNode(e,"ImportSpecifier")},pp$8.parseImportDefaultSpecifier=function(){var e=this.startNode();return e.local=this.parseIdent(),this.checkLValSimple(e.local,BIND_LEXICAL),this.finishNode(e,"ImportDefaultSpecifier")},pp$8.parseImportNamespaceSpecifier=function(){var e=this.startNode();return this.next(),this.expectContextual("as"),e.local=this.parseIdent(),this.checkLValSimple(e.local,BIND_LEXICAL),this.finishNode(e,"ImportNamespaceSpecifier")},pp$8.parseImportSpecifiers=function(){var e=[],t=!0;if(this.type===types$1.name&&(e.push(this.parseImportDefaultSpecifier()),!this.eat(types$1.comma)))return e;if(this.type===types$1.star)return e.push(this.parseImportNamespaceSpecifier()),e;for(this.expect(types$1.braceL);!this.eat(types$1.braceR);){if(t)t=!1;else if(this.expect(types$1.comma),this.afterTrailingComma(types$1.braceR))break;e.push(this.parseImportSpecifier())}return e},pp$8.parseWithClause=function(){var e=[];if(!this.eat(types$1._with))return e;this.expect(types$1.braceL);for(var t={},n=!0;!this.eat(types$1.braceR);){if(n)n=!1;else if(this.expect(types$1.comma),this.afterTrailingComma(types$1.braceR))break;var r=this.parseImportAttribute(),i="Identifier"===r.key.type?r.key.name:r.key.value;hasOwn(t,i)&&this.raiseRecoverable(r.key.start,"Duplicate attribute key '"+i+"'"),t[i]=!0,e.push(r)}return e},pp$8.parseImportAttribute=function(){var e=this.startNode();return e.key=this.type===types$1.string?this.parseExprAtom():this.parseIdent("never"!==this.options.allowReserved),this.expect(types$1.colon),this.type!==types$1.string&&this.unexpected(),e.value=this.parseExprAtom(),this.finishNode(e,"ImportAttribute")},pp$8.parseModuleExportName=function(){if(this.options.ecmaVersion>=13&&this.type===types$1.string){var e=this.parseLiteral(this.value);return loneSurrogate.test(e.value)&&this.raise(e.start,"An export name cannot include a lone surrogate."),e}return this.parseIdent(!0)},pp$8.adaptDirectivePrologue=function(e){for(var t=0;t=5&&"ExpressionStatement"===e.type&&"Literal"===e.expression.type&&"string"==typeof e.expression.value&&('"'===this.input[e.start]||"'"===this.input[e.start])};var pp$7=Parser.prototype;pp$7.toAssignable=function(e,t,n){if(this.options.ecmaVersion>=6&&e)switch(e.type){case"Identifier":this.inAsync&&"await"===e.name&&this.raise(e.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":e.type="ObjectPattern",n&&this.checkPatternErrors(n,!0);for(var r=0,i=e.properties;r=8&&!s&&"async"===c.name&&!this.canInsertSemicolon()&&this.eat(types$1._function))return this.overrideContext(types$2.f_expr),this.parseFunction(this.startNodeAt(a,o),0,!1,!0,t);if(i&&!this.canInsertSemicolon()){if(this.eat(types$1.arrow))return this.parseArrowExpression(this.startNodeAt(a,o),[c],!1,t);if(this.options.ecmaVersion>=8&&"async"===c.name&&this.type===types$1.name&&!s&&(!this.potentialArrowInForAwait||"of"!==this.value||this.containsEsc))return c=this.parseIdent(!1),!this.canInsertSemicolon()&&this.eat(types$1.arrow)||this.unexpected(),this.parseArrowExpression(this.startNodeAt(a,o),[c],!0,t)}return c;case types$1.regexp:var l=this.value;return(r=this.parseLiteral(l.value)).regex={pattern:l.pattern,flags:l.flags},r;case types$1.num:case types$1.string:return this.parseLiteral(this.value);case types$1._null:case types$1._true:case types$1._false:return(r=this.startNode()).value=this.type===types$1._null?null:this.type===types$1._true,r.raw=this.type.keyword,this.next(),this.finishNode(r,"Literal");case types$1.parenL:var u=this.start,d=this.parseParenAndDistinguishExpression(i,t);return e&&(e.parenthesizedAssign<0&&!this.isSimpleAssignTarget(d)&&(e.parenthesizedAssign=u),e.parenthesizedBind<0&&(e.parenthesizedBind=u)),d;case types$1.bracketL:return r=this.startNode(),this.next(),r.elements=this.parseExprList(types$1.bracketR,!0,!0,e),this.finishNode(r,"ArrayExpression");case types$1.braceL:return this.overrideContext(types$2.b_expr),this.parseObj(!1,e);case types$1._function:return r=this.startNode(),this.next(),this.parseFunction(r,0);case types$1._class:return this.parseClass(this.startNode(),!1);case types$1._new:return this.parseNew();case types$1.backQuote:return this.parseTemplate();case types$1._import:return this.options.ecmaVersion>=11?this.parseExprImport(n):this.unexpected();default:return this.parseExprAtomDefault()}},pp$5.parseExprAtomDefault=function(){this.unexpected()},pp$5.parseExprImport=function(e){var t=this.startNode();if(this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import"),this.next(),this.type===types$1.parenL&&!e)return this.parseDynamicImport(t);if(this.type===types$1.dot){var n=this.startNodeAt(t.start,t.loc&&t.loc.start);return n.name="import",t.meta=this.finishNode(n,"Identifier"),this.parseImportMeta(t)}this.unexpected()},pp$5.parseDynamicImport=function(e){if(this.next(),e.source=this.parseMaybeAssign(),this.options.ecmaVersion>=16)this.eat(types$1.parenR)?e.options=null:(this.expect(types$1.comma),this.afterTrailingComma(types$1.parenR)?e.options=null:(e.options=this.parseMaybeAssign(),this.eat(types$1.parenR)||(this.expect(types$1.comma),this.afterTrailingComma(types$1.parenR)||this.unexpected())));else if(!this.eat(types$1.parenR)){var t=this.start;this.eat(types$1.comma)&&this.eat(types$1.parenR)?this.raiseRecoverable(t,"Trailing comma is not allowed in import()"):this.unexpected(t)}return this.finishNode(e,"ImportExpression")},pp$5.parseImportMeta=function(e){this.next();var t=this.containsEsc;return e.property=this.parseIdent(!0),"meta"!==e.property.name&&this.raiseRecoverable(e.property.start,"The only valid meta property for import is 'import.meta'"),t&&this.raiseRecoverable(e.start,"'import.meta' must not contain escaped characters"),"module"===this.options.sourceType||this.options.allowImportExportEverywhere||this.raiseRecoverable(e.start,"Cannot use 'import.meta' outside a module"),this.finishNode(e,"MetaProperty")},pp$5.parseLiteral=function(e){var t=this.startNode();return t.value=e,t.raw=this.input.slice(this.start,this.end),110===t.raw.charCodeAt(t.raw.length-1)&&(t.bigint=null!=t.value?t.value.toString():t.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(t,"Literal")},pp$5.parseParenExpression=function(){this.expect(types$1.parenL);var e=this.parseExpression();return this.expect(types$1.parenR),e},pp$5.shouldParseArrow=function(e){return!this.canInsertSemicolon()},pp$5.parseParenAndDistinguishExpression=function(e,t){var n,r=this.start,i=this.startLoc,a=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var o,s=this.start,c=this.startLoc,l=[],u=!0,d=!1,p=new DestructuringErrors$1,m=this.yieldPos,f=this.awaitPos;for(this.yieldPos=0,this.awaitPos=0;this.type!==types$1.parenR;){if(u?u=!1:this.expect(types$1.comma),a&&this.afterTrailingComma(types$1.parenR,!0)){d=!0;break}if(this.type===types$1.ellipsis){o=this.start,l.push(this.parseParenItem(this.parseRestBinding())),this.type===types$1.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");break}l.push(this.parseMaybeAssign(!1,p,this.parseParenItem))}var _=this.lastTokEnd,h=this.lastTokEndLoc;if(this.expect(types$1.parenR),e&&this.shouldParseArrow(l)&&this.eat(types$1.arrow))return this.checkPatternErrors(p,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=m,this.awaitPos=f,this.parseParenArrowList(r,i,l,t);l.length&&!d||this.unexpected(this.lastTokStart),o&&this.unexpected(o),this.checkExpressionErrors(p,!0),this.yieldPos=m||this.yieldPos,this.awaitPos=f||this.awaitPos,l.length>1?((n=this.startNodeAt(s,c)).expressions=l,this.finishNodeAt(n,"SequenceExpression",_,h)):n=l[0]}else n=this.parseParenExpression();if(this.options.preserveParens){var g=this.startNodeAt(r,i);return g.expression=n,this.finishNode(g,"ParenthesizedExpression")}return n},pp$5.parseParenItem=function(e){return e},pp$5.parseParenArrowList=function(e,t,n,r){return this.parseArrowExpression(this.startNodeAt(e,t),n,!1,r)};var empty=[];pp$5.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var e=this.startNode();if(this.next(),this.options.ecmaVersion>=6&&this.type===types$1.dot){var t=this.startNodeAt(e.start,e.loc&&e.loc.start);t.name="new",e.meta=this.finishNode(t,"Identifier"),this.next();var n=this.containsEsc;return e.property=this.parseIdent(!0),"target"!==e.property.name&&this.raiseRecoverable(e.property.start,"The only valid meta property for new is 'new.target'"),n&&this.raiseRecoverable(e.start,"'new.target' must not contain escaped characters"),this.allowNewDotTarget||this.raiseRecoverable(e.start,"'new.target' can only be used in functions and class static block"),this.finishNode(e,"MetaProperty")}var r=this.start,i=this.startLoc;return e.callee=this.parseSubscripts(this.parseExprAtom(null,!1,!0),r,i,!0,!1),this.eat(types$1.parenL)?e.arguments=this.parseExprList(types$1.parenR,this.options.ecmaVersion>=8,!1):e.arguments=empty,this.finishNode(e,"NewExpression")},pp$5.parseTemplateElement=function(e){var t=e.isTagged,n=this.startNode();return this.type===types$1.invalidTemplate?(t||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),n.value={raw:this.value.replace(/\r\n?/g,"\n"),cooked:null}):n.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,"\n"),cooked:this.value},this.next(),n.tail=this.type===types$1.backQuote,this.finishNode(n,"TemplateElement")},pp$5.parseTemplate=function(e){void 0===e&&(e={});var t=e.isTagged;void 0===t&&(t=!1);var n=this.startNode();this.next(),n.expressions=[];var r=this.parseTemplateElement({isTagged:t});for(n.quasis=[r];!r.tail;)this.type===types$1.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(types$1.dollarBraceL),n.expressions.push(this.parseExpression()),this.expect(types$1.braceR),n.quasis.push(r=this.parseTemplateElement({isTagged:t}));return this.next(),this.finishNode(n,"TemplateLiteral")},pp$5.isAsyncProp=function(e){return!e.computed&&"Identifier"===e.key.type&&"async"===e.key.name&&(this.type===types$1.name||this.type===types$1.num||this.type===types$1.string||this.type===types$1.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===types$1.star)&&!lineBreak$1.test(this.input.slice(this.lastTokEnd,this.start))},pp$5.parseObj=function(e,t){var n=this.startNode(),r=!0,i={};for(n.properties=[],this.next();!this.eat(types$1.braceR);){if(r)r=!1;else if(this.expect(types$1.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(types$1.braceR))break;var a=this.parseProperty(e,t);e||this.checkPropClash(a,i,t),n.properties.push(a)}return this.finishNode(n,e?"ObjectPattern":"ObjectExpression")},pp$5.parseProperty=function(e,t){var n,r,i,a,o=this.startNode();if(this.options.ecmaVersion>=9&&this.eat(types$1.ellipsis))return e?(o.argument=this.parseIdent(!1),this.type===types$1.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.finishNode(o,"RestElement")):(o.argument=this.parseMaybeAssign(!1,t),this.type===types$1.comma&&t&&t.trailingComma<0&&(t.trailingComma=this.start),this.finishNode(o,"SpreadElement"));this.options.ecmaVersion>=6&&(o.method=!1,o.shorthand=!1,(e||t)&&(i=this.start,a=this.startLoc),e||(n=this.eat(types$1.star)));var s=this.containsEsc;return this.parsePropertyName(o),!e&&!s&&this.options.ecmaVersion>=8&&!n&&this.isAsyncProp(o)?(r=!0,n=this.options.ecmaVersion>=9&&this.eat(types$1.star),this.parsePropertyName(o)):r=!1,this.parsePropertyValue(o,e,n,r,i,a,t,s),this.finishNode(o,"Property")},pp$5.parseGetterSetter=function(e){var t=e.key.name;this.parsePropertyName(e),e.value=this.parseMethod(!1),e.kind=t;var n="get"===e.kind?0:1;if(e.value.params.length!==n){var r=e.value.start;"get"===e.kind?this.raiseRecoverable(r,"getter should have no params"):this.raiseRecoverable(r,"setter should have exactly one param")}else"set"===e.kind&&"RestElement"===e.value.params[0].type&&this.raiseRecoverable(e.value.params[0].start,"Setter cannot use rest params")},pp$5.parsePropertyValue=function(e,t,n,r,i,a,o,s){(n||r)&&this.type===types$1.colon&&this.unexpected(),this.eat(types$1.colon)?(e.value=t?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,o),e.kind="init"):this.options.ecmaVersion>=6&&this.type===types$1.parenL?(t&&this.unexpected(),e.method=!0,e.value=this.parseMethod(n,r),e.kind="init"):t||s||!(this.options.ecmaVersion>=5)||e.computed||"Identifier"!==e.key.type||"get"!==e.key.name&&"set"!==e.key.name||this.type===types$1.comma||this.type===types$1.braceR||this.type===types$1.eq?this.options.ecmaVersion>=6&&!e.computed&&"Identifier"===e.key.type?((n||r)&&this.unexpected(),this.checkUnreserved(e.key),"await"!==e.key.name||this.awaitIdentPos||(this.awaitIdentPos=i),t?e.value=this.parseMaybeDefault(i,a,this.copyNode(e.key)):this.type===types$1.eq&&o?(o.shorthandAssign<0&&(o.shorthandAssign=this.start),e.value=this.parseMaybeDefault(i,a,this.copyNode(e.key))):e.value=this.copyNode(e.key),e.kind="init",e.shorthand=!0):this.unexpected():((n||r)&&this.unexpected(),this.parseGetterSetter(e))},pp$5.parsePropertyName=function(e){if(this.options.ecmaVersion>=6){if(this.eat(types$1.bracketL))return e.computed=!0,e.key=this.parseMaybeAssign(),this.expect(types$1.bracketR),e.key;e.computed=!1}return e.key=this.type===types$1.num||this.type===types$1.string?this.parseExprAtom():this.parseIdent("never"!==this.options.allowReserved)},pp$5.initFunction=function(e){e.id=null,this.options.ecmaVersion>=6&&(e.generator=e.expression=!1),this.options.ecmaVersion>=8&&(e.async=!1)},pp$5.parseMethod=function(e,t,n){var r=this.startNode(),i=this.yieldPos,a=this.awaitPos,o=this.awaitIdentPos;return this.initFunction(r),this.options.ecmaVersion>=6&&(r.generator=e),this.options.ecmaVersion>=8&&(r.async=!!t),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(functionFlags(t,r.generator)|SCOPE_SUPER|(n?SCOPE_DIRECT_SUPER:0)),this.expect(types$1.parenL),r.params=this.parseBindingList(types$1.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(r,!1,!0,!1),this.yieldPos=i,this.awaitPos=a,this.awaitIdentPos=o,this.finishNode(r,"FunctionExpression")},pp$5.parseArrowExpression=function(e,t,n,r){var i=this.yieldPos,a=this.awaitPos,o=this.awaitIdentPos;return this.enterScope(functionFlags(n,!1)|SCOPE_ARROW),this.initFunction(e),this.options.ecmaVersion>=8&&(e.async=!!n),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,e.params=this.toAssignableList(t,!0),this.parseFunctionBody(e,!0,!1,r),this.yieldPos=i,this.awaitPos=a,this.awaitIdentPos=o,this.finishNode(e,"ArrowFunctionExpression")},pp$5.parseFunctionBody=function(e,t,n,r){var i=t&&this.type!==types$1.braceL,a=this.strict,o=!1;if(i)e.body=this.parseMaybeAssign(r),e.expression=!0,this.checkParams(e,!1);else{var s=this.options.ecmaVersion>=7&&!this.isSimpleParamList(e.params);a&&!s||(o=this.strictDirective(this.end))&&s&&this.raiseRecoverable(e.start,"Illegal 'use strict' directive in function with non-simple parameter list");var c=this.labels;this.labels=[],o&&(this.strict=!0),this.checkParams(e,!a&&!o&&!t&&!n&&this.isSimpleParamList(e.params)),this.strict&&e.id&&this.checkLValSimple(e.id,BIND_OUTSIDE),e.body=this.parseBlock(!1,void 0,o&&!a),e.expression=!1,this.adaptDirectivePrologue(e.body.body),this.labels=c}this.exitScope()},pp$5.isSimpleParamList=function(e){for(var t=0,n=e;t-1||i.functions.indexOf(e)>-1||i.var.indexOf(e)>-1,i.lexical.push(e),this.inModule&&i.flags&SCOPE_TOP&&delete this.undefinedExports[e]}else if(t===BIND_SIMPLE_CATCH)this.currentScope().lexical.push(e);else if(t===BIND_FUNCTION){var a=this.currentScope();r=this.treatFunctionsAsVar?a.lexical.indexOf(e)>-1:a.lexical.indexOf(e)>-1||a.var.indexOf(e)>-1,a.functions.push(e)}else for(var o=this.scopeStack.length-1;o>=0;--o){var s=this.scopeStack[o];if(s.lexical.indexOf(e)>-1&&!(s.flags&SCOPE_SIMPLE_CATCH&&s.lexical[0]===e)||!this.treatFunctionsAsVarInScope(s)&&s.functions.indexOf(e)>-1){r=!0;break}if(s.var.push(e),this.inModule&&s.flags&SCOPE_TOP&&delete this.undefinedExports[e],s.flags&SCOPE_VAR)break}r&&this.raiseRecoverable(n,"Identifier '"+e+"' has already been declared")},pp$3.checkLocalExport=function(e){-1===this.scopeStack[0].lexical.indexOf(e.name)&&-1===this.scopeStack[0].var.indexOf(e.name)&&(this.undefinedExports[e.name]=e)},pp$3.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},pp$3.currentVarScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(t.flags&(SCOPE_VAR|SCOPE_CLASS_FIELD_INIT|SCOPE_CLASS_STATIC_BLOCK))return t}},pp$3.currentThisScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(t.flags&(SCOPE_VAR|SCOPE_CLASS_FIELD_INIT|SCOPE_CLASS_STATIC_BLOCK)&&!(t.flags&SCOPE_ARROW))return t}};var Node=function(e,t,n){this.type="",this.start=t,this.end=0,e.options.locations&&(this.loc=new SourceLocation(e,n)),e.options.directSourceFile&&(this.sourceFile=e.options.directSourceFile),e.options.ranges&&(this.range=[t,0])},pp$2=Parser.prototype;function finishNodeAt(e,t,n,r){return e.type=t,e.end=n,this.options.locations&&(e.loc.end=r),this.options.ranges&&(e.range[1]=n),e}pp$2.startNode=function(){return new Node(this,this.start,this.startLoc)},pp$2.startNodeAt=function(e,t){return new Node(this,e,t)},pp$2.finishNode=function(e,t){return finishNodeAt.call(this,e,t,this.lastTokEnd,this.lastTokEndLoc)},pp$2.finishNodeAt=function(e,t,n,r){return finishNodeAt.call(this,e,t,n,r)},pp$2.copyNode=function(e){var t=new Node(this,e.start,this.startLoc);for(var n in e)t[n]=e[n];return t};var scriptValuesAddedInUnicode="Berf Beria_Erfe Gara Garay Gukh Gurung_Khema Hrkt Katakana_Or_Hiragana Kawi Kirat_Rai Krai Nag_Mundari Nagm Ol_Onal Onao Sidetic Sidt Sunu Sunuwar Tai_Yo Tayo Todhri Todr Tolong_Siki Tols Tulu_Tigalari Tutg Unknown Zzzz",ecma9BinaryProperties="ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS",ecma10BinaryProperties=ecma9BinaryProperties+" Extended_Pictographic",ecma11BinaryProperties=ecma10BinaryProperties,ecma12BinaryProperties=ecma11BinaryProperties+" EBase EComp EMod EPres ExtPict",ecma13BinaryProperties=ecma12BinaryProperties,ecma14BinaryProperties=ecma13BinaryProperties,unicodeBinaryProperties={9:ecma9BinaryProperties,10:ecma10BinaryProperties,11:ecma11BinaryProperties,12:ecma12BinaryProperties,13:ecma13BinaryProperties,14:ecma14BinaryProperties},ecma14BinaryPropertiesOfStrings="Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji",unicodeBinaryPropertiesOfStrings={9:"",10:"",11:"",12:"",13:"",14:ecma14BinaryPropertiesOfStrings},unicodeGeneralCategoryValues="Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu",ecma9ScriptValues="Adlam Adlm Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb",ecma10ScriptValues=ecma9ScriptValues+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",ecma11ScriptValues=ecma10ScriptValues+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",ecma12ScriptValues=ecma11ScriptValues+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi",ecma13ScriptValues=ecma12ScriptValues+" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith",ecma14ScriptValues=ecma13ScriptValues+" "+scriptValuesAddedInUnicode,unicodeScriptValues={9:ecma9ScriptValues,10:ecma10ScriptValues,11:ecma11ScriptValues,12:ecma12ScriptValues,13:ecma13ScriptValues,14:ecma14ScriptValues},data={};function buildUnicodeData(e){var t=data[e]={binary:wordsRegexp(unicodeBinaryProperties[e]+" "+unicodeGeneralCategoryValues),binaryOfStrings:wordsRegexp(unicodeBinaryPropertiesOfStrings[e]),nonBinary:{General_Category:wordsRegexp(unicodeGeneralCategoryValues),Script:wordsRegexp(unicodeScriptValues[e])}};t.nonBinary.Script_Extensions=t.nonBinary.Script,t.nonBinary.gc=t.nonBinary.General_Category,t.nonBinary.sc=t.nonBinary.Script,t.nonBinary.scx=t.nonBinary.Script_Extensions}for(var i=0,list$9=[9,10,11,12,13,14];i=6?"uy":"")+(e.options.ecmaVersion>=9?"s":"")+(e.options.ecmaVersion>=13?"d":"")+(e.options.ecmaVersion>=15?"v":""),this.unicodeProperties=data[e.options.ecmaVersion>=14?14:e.options.ecmaVersion],this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchV=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue="",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=Object.create(null),this.backReferenceNames=[],this.branchID=null};function hasProp(e){for(var t in e)return!0;return!1}function isRegularExpressionModifier(e){return 105===e||109===e||115===e}function isSyntaxCharacter(e){return 36===e||e>=40&&e<=43||46===e||63===e||e>=91&&e<=94||e>=123&&e<=125}function isRegExpIdentifierStart(e){return isIdentifierStart(e,!0)||36===e||95===e}function isRegExpIdentifierPart(e){return isIdentifierChar(e,!0)||36===e||95===e||8204===e||8205===e}function isControlLetter(e){return e>=65&&e<=90||e>=97&&e<=122}function isValidUnicode(e){return e>=0&&e<=1114111}RegExpValidationState.prototype.reset=function(e,t,n){var r=-1!==n.indexOf("v"),i=-1!==n.indexOf("u");this.start=0|e,this.source=t+"",this.flags=n,r&&this.parser.options.ecmaVersion>=15?(this.switchU=!0,this.switchV=!0,this.switchN=!0):(this.switchU=i&&this.parser.options.ecmaVersion>=6,this.switchV=!1,this.switchN=i&&this.parser.options.ecmaVersion>=9)},RegExpValidationState.prototype.raise=function(e){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+e)},RegExpValidationState.prototype.at=function(e,t){void 0===t&&(t=!1);var n=this.source,r=n.length;if(e>=r)return-1;var i=n.charCodeAt(e);if(!t&&!this.switchU||i<=55295||i>=57344||e+1>=r)return i;var a=n.charCodeAt(e+1);return a>=56320&&a<=57343?(i<<10)+a-56613888:i},RegExpValidationState.prototype.nextIndex=function(e,t){void 0===t&&(t=!1);var n=this.source,r=n.length;if(e>=r)return r;var i,a=n.charCodeAt(e);return!t&&!this.switchU||a<=55295||a>=57344||e+1>=r||(i=n.charCodeAt(e+1))<56320||i>57343?e+1:e+2},RegExpValidationState.prototype.current=function(e){return void 0===e&&(e=!1),this.at(this.pos,e)},RegExpValidationState.prototype.lookahead=function(e){return void 0===e&&(e=!1),this.at(this.nextIndex(this.pos,e),e)},RegExpValidationState.prototype.advance=function(e){void 0===e&&(e=!1),this.pos=this.nextIndex(this.pos,e)},RegExpValidationState.prototype.eat=function(e,t){return void 0===t&&(t=!1),this.current(t)===e&&(this.advance(t),!0)},RegExpValidationState.prototype.eatChars=function(e,t){void 0===t&&(t=!1);for(var n=this.pos,r=0,i=e;r-1&&this.raise(e.start,"Duplicate regular expression flag"),"u"===o&&(r=!0),"v"===o&&(i=!0)}this.options.ecmaVersion>=15&&r&&i&&this.raise(e.start,"Invalid regular expression flag")},pp$1.validateRegExpPattern=function(e){this.regexp_pattern(e),!e.switchN&&this.options.ecmaVersion>=9&&hasProp(e.groupNames)&&(e.switchN=!0,this.regexp_pattern(e))},pp$1.regexp_pattern=function(e){e.pos=0,e.lastIntValue=0,e.lastStringValue="",e.lastAssertionIsQuantifiable=!1,e.numCapturingParens=0,e.maxBackReference=0,e.groupNames=Object.create(null),e.backReferenceNames.length=0,e.branchID=null,this.regexp_disjunction(e),e.pos!==e.source.length&&(e.eat(41)&&e.raise("Unmatched ')'"),(e.eat(93)||e.eat(125))&&e.raise("Lone quantifier brackets")),e.maxBackReference>e.numCapturingParens&&e.raise("Invalid escape");for(var t=0,n=e.backReferenceNames;t=16;for(t&&(e.branchID=new BranchID(e.branchID,null)),this.regexp_alternative(e);e.eat(124);)t&&(e.branchID=e.branchID.sibling()),this.regexp_alternative(e);t&&(e.branchID=e.branchID.parent),this.regexp_eatQuantifier(e,!0)&&e.raise("Nothing to repeat"),e.eat(123)&&e.raise("Lone quantifier brackets")},pp$1.regexp_alternative=function(e){for(;e.pos=9&&(n=e.eat(60)),e.eat(61)||e.eat(33))return this.regexp_disjunction(e),e.eat(41)||e.raise("Unterminated group"),e.lastAssertionIsQuantifiable=!n,!0}return e.pos=t,!1},pp$1.regexp_eatQuantifier=function(e,t){return void 0===t&&(t=!1),!!this.regexp_eatQuantifierPrefix(e,t)&&(e.eat(63),!0)},pp$1.regexp_eatQuantifierPrefix=function(e,t){return e.eat(42)||e.eat(43)||e.eat(63)||this.regexp_eatBracedQuantifier(e,t)},pp$1.regexp_eatBracedQuantifier=function(e,t){var n=e.pos;if(e.eat(123)){var r=0,i=-1;if(this.regexp_eatDecimalDigits(e)&&(r=e.lastIntValue,e.eat(44)&&this.regexp_eatDecimalDigits(e)&&(i=e.lastIntValue),e.eat(125)))return-1!==i&&i=16){var n=this.regexp_eatModifiers(e),r=e.eat(45);if(n||r){for(var i=0;i-1&&e.raise("Duplicate regular expression modifiers")}if(r){var o=this.regexp_eatModifiers(e);n||o||58!==e.current()||e.raise("Invalid regular expression modifiers");for(var s=0;s-1||n.indexOf(c)>-1)&&e.raise("Duplicate regular expression modifiers")}}}}if(e.eat(58)){if(this.regexp_disjunction(e),e.eat(41))return!0;e.raise("Unterminated group")}}e.pos=t}return!1},pp$1.regexp_eatCapturingGroup=function(e){if(e.eat(40)){if(this.options.ecmaVersion>=9?this.regexp_groupSpecifier(e):63===e.current()&&e.raise("Invalid group"),this.regexp_disjunction(e),e.eat(41))return e.numCapturingParens+=1,!0;e.raise("Unterminated group")}return!1},pp$1.regexp_eatModifiers=function(e){for(var t="",n=0;-1!==(n=e.current())&&isRegularExpressionModifier(n);)t+=codePointToString(n),e.advance();return t},pp$1.regexp_eatExtendedAtom=function(e){return e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)||this.regexp_eatInvalidBracedQuantifier(e)||this.regexp_eatExtendedPatternCharacter(e)},pp$1.regexp_eatInvalidBracedQuantifier=function(e){return this.regexp_eatBracedQuantifier(e,!0)&&e.raise("Nothing to repeat"),!1},pp$1.regexp_eatSyntaxCharacter=function(e){var t=e.current();return!!isSyntaxCharacter(t)&&(e.lastIntValue=t,e.advance(),!0)},pp$1.regexp_eatPatternCharacters=function(e){for(var t=e.pos,n=0;-1!==(n=e.current())&&!isSyntaxCharacter(n);)e.advance();return e.pos!==t},pp$1.regexp_eatExtendedPatternCharacter=function(e){var t=e.current();return!(-1===t||36===t||t>=40&&t<=43||46===t||63===t||91===t||94===t||124===t||(e.advance(),0))},pp$1.regexp_groupSpecifier=function(e){if(e.eat(63)){this.regexp_eatGroupName(e)||e.raise("Invalid group");var t=this.options.ecmaVersion>=16,n=e.groupNames[e.lastStringValue];if(n)if(t)for(var r=0,i=n;r=11,r=e.current(n);return e.advance(n),92===r&&this.regexp_eatRegExpUnicodeEscapeSequence(e,n)&&(r=e.lastIntValue),isRegExpIdentifierStart(r)?(e.lastIntValue=r,!0):(e.pos=t,!1)},pp$1.regexp_eatRegExpIdentifierPart=function(e){var t=e.pos,n=this.options.ecmaVersion>=11,r=e.current(n);return e.advance(n),92===r&&this.regexp_eatRegExpUnicodeEscapeSequence(e,n)&&(r=e.lastIntValue),isRegExpIdentifierPart(r)?(e.lastIntValue=r,!0):(e.pos=t,!1)},pp$1.regexp_eatAtomEscape=function(e){return!!(this.regexp_eatBackReference(e)||this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)||e.switchN&&this.regexp_eatKGroupName(e))||(e.switchU&&(99===e.current()&&e.raise("Invalid unicode escape"),e.raise("Invalid escape")),!1)},pp$1.regexp_eatBackReference=function(e){var t=e.pos;if(this.regexp_eatDecimalEscape(e)){var n=e.lastIntValue;if(e.switchU)return n>e.maxBackReference&&(e.maxBackReference=n),!0;if(n<=e.numCapturingParens)return!0;e.pos=t}return!1},pp$1.regexp_eatKGroupName=function(e){if(e.eat(107)){if(this.regexp_eatGroupName(e))return e.backReferenceNames.push(e.lastStringValue),!0;e.raise("Invalid named reference")}return!1},pp$1.regexp_eatCharacterEscape=function(e){return this.regexp_eatControlEscape(e)||this.regexp_eatCControlLetter(e)||this.regexp_eatZero(e)||this.regexp_eatHexEscapeSequence(e)||this.regexp_eatRegExpUnicodeEscapeSequence(e,!1)||!e.switchU&&this.regexp_eatLegacyOctalEscapeSequence(e)||this.regexp_eatIdentityEscape(e)},pp$1.regexp_eatCControlLetter=function(e){var t=e.pos;if(e.eat(99)){if(this.regexp_eatControlLetter(e))return!0;e.pos=t}return!1},pp$1.regexp_eatZero=function(e){return 48===e.current()&&!isDecimalDigit(e.lookahead())&&(e.lastIntValue=0,e.advance(),!0)},pp$1.regexp_eatControlEscape=function(e){var t=e.current();return 116===t?(e.lastIntValue=9,e.advance(),!0):110===t?(e.lastIntValue=10,e.advance(),!0):118===t?(e.lastIntValue=11,e.advance(),!0):102===t?(e.lastIntValue=12,e.advance(),!0):114===t&&(e.lastIntValue=13,e.advance(),!0)},pp$1.regexp_eatControlLetter=function(e){var t=e.current();return!!isControlLetter(t)&&(e.lastIntValue=t%32,e.advance(),!0)},pp$1.regexp_eatRegExpUnicodeEscapeSequence=function(e,t){void 0===t&&(t=!1);var n=e.pos,r=t||e.switchU;if(e.eat(117)){if(this.regexp_eatFixedHexDigits(e,4)){var i=e.lastIntValue;if(r&&i>=55296&&i<=56319){var a=e.pos;if(e.eat(92)&&e.eat(117)&&this.regexp_eatFixedHexDigits(e,4)){var o=e.lastIntValue;if(o>=56320&&o<=57343)return e.lastIntValue=1024*(i-55296)+(o-56320)+65536,!0}e.pos=a,e.lastIntValue=i}return!0}if(r&&e.eat(123)&&this.regexp_eatHexDigits(e)&&e.eat(125)&&isValidUnicode(e.lastIntValue))return!0;r&&e.raise("Invalid unicode escape"),e.pos=n}return!1},pp$1.regexp_eatIdentityEscape=function(e){if(e.switchU)return!!this.regexp_eatSyntaxCharacter(e)||!!e.eat(47)&&(e.lastIntValue=47,!0);var t=e.current();return!(99===t||e.switchN&&107===t||(e.lastIntValue=t,e.advance(),0))},pp$1.regexp_eatDecimalEscape=function(e){e.lastIntValue=0;var t=e.current();if(t>=49&&t<=57){do{e.lastIntValue=10*e.lastIntValue+(t-48),e.advance()}while((t=e.current())>=48&&t<=57);return!0}return!1};var CharSetNone=0,CharSetOk=1,CharSetString=2;function isCharacterClassEscape(e){return 100===e||68===e||115===e||83===e||119===e||87===e}function isUnicodePropertyNameCharacter(e){return isControlLetter(e)||95===e}function isUnicodePropertyValueCharacter(e){return isUnicodePropertyNameCharacter(e)||isDecimalDigit(e)}function isClassSetReservedDoublePunctuatorCharacter(e){return 33===e||e>=35&&e<=38||e>=42&&e<=44||46===e||e>=58&&e<=64||94===e||96===e||126===e}function isClassSetSyntaxCharacter(e){return 40===e||41===e||45===e||47===e||e>=91&&e<=93||e>=123&&e<=125}function isClassSetReservedPunctuator(e){return 33===e||35===e||37===e||38===e||44===e||45===e||e>=58&&e<=62||64===e||96===e||126===e}function isDecimalDigit(e){return e>=48&&e<=57}function isHexDigit(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function hexToInt(e){return e>=65&&e<=70?e-65+10:e>=97&&e<=102?e-97+10:e-48}function isOctalDigit(e){return e>=48&&e<=55}pp$1.regexp_eatCharacterClassEscape=function(e){var t=e.current();if(isCharacterClassEscape(t))return e.lastIntValue=-1,e.advance(),CharSetOk;var n=!1;if(e.switchU&&this.options.ecmaVersion>=9&&((n=80===t)||112===t)){var r;if(e.lastIntValue=-1,e.advance(),e.eat(123)&&(r=this.regexp_eatUnicodePropertyValueExpression(e))&&e.eat(125))return n&&r===CharSetString&&e.raise("Invalid property name"),r;e.raise("Invalid property name")}return CharSetNone},pp$1.regexp_eatUnicodePropertyValueExpression=function(e){var t=e.pos;if(this.regexp_eatUnicodePropertyName(e)&&e.eat(61)){var n=e.lastStringValue;if(this.regexp_eatUnicodePropertyValue(e)){var r=e.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(e,n,r),CharSetOk}}if(e.pos=t,this.regexp_eatLoneUnicodePropertyNameOrValue(e)){var i=e.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(e,i)}return CharSetNone},pp$1.regexp_validateUnicodePropertyNameAndValue=function(e,t,n){hasOwn(e.unicodeProperties.nonBinary,t)||e.raise("Invalid property name"),e.unicodeProperties.nonBinary[t].test(n)||e.raise("Invalid property value")},pp$1.regexp_validateUnicodePropertyNameOrValue=function(e,t){return e.unicodeProperties.binary.test(t)?CharSetOk:e.switchV&&e.unicodeProperties.binaryOfStrings.test(t)?CharSetString:void e.raise("Invalid property name")},pp$1.regexp_eatUnicodePropertyName=function(e){var t=0;for(e.lastStringValue="";isUnicodePropertyNameCharacter(t=e.current());)e.lastStringValue+=codePointToString(t),e.advance();return""!==e.lastStringValue},pp$1.regexp_eatUnicodePropertyValue=function(e){var t=0;for(e.lastStringValue="";isUnicodePropertyValueCharacter(t=e.current());)e.lastStringValue+=codePointToString(t),e.advance();return""!==e.lastStringValue},pp$1.regexp_eatLoneUnicodePropertyNameOrValue=function(e){return this.regexp_eatUnicodePropertyValue(e)},pp$1.regexp_eatCharacterClass=function(e){if(e.eat(91)){var t=e.eat(94),n=this.regexp_classContents(e);return e.eat(93)||e.raise("Unterminated character class"),t&&n===CharSetString&&e.raise("Negated character class may contain strings"),!0}return!1},pp$1.regexp_classContents=function(e){return 93===e.current()?CharSetOk:e.switchV?this.regexp_classSetExpression(e):(this.regexp_nonEmptyClassRanges(e),CharSetOk)},pp$1.regexp_nonEmptyClassRanges=function(e){for(;this.regexp_eatClassAtom(e);){var t=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassAtom(e)){var n=e.lastIntValue;!e.switchU||-1!==t&&-1!==n||e.raise("Invalid character class"),-1!==t&&-1!==n&&t>n&&e.raise("Range out of order in character class")}}},pp$1.regexp_eatClassAtom=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatClassEscape(e))return!0;if(e.switchU){var n=e.current();(99===n||isOctalDigit(n))&&e.raise("Invalid class escape"),e.raise("Invalid escape")}e.pos=t}var r=e.current();return 93!==r&&(e.lastIntValue=r,e.advance(),!0)},pp$1.regexp_eatClassEscape=function(e){var t=e.pos;if(e.eat(98))return e.lastIntValue=8,!0;if(e.switchU&&e.eat(45))return e.lastIntValue=45,!0;if(!e.switchU&&e.eat(99)){if(this.regexp_eatClassControlLetter(e))return!0;e.pos=t}return this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)},pp$1.regexp_classSetExpression=function(e){var t,n=CharSetOk;if(this.regexp_eatClassSetRange(e));else if(t=this.regexp_eatClassSetOperand(e)){t===CharSetString&&(n=CharSetString);for(var r=e.pos;e.eatChars([38,38]);)38!==e.current()&&(t=this.regexp_eatClassSetOperand(e))?t!==CharSetString&&(n=CharSetOk):e.raise("Invalid character in character class");if(r!==e.pos)return n;for(;e.eatChars([45,45]);)this.regexp_eatClassSetOperand(e)||e.raise("Invalid character in character class");if(r!==e.pos)return n}else e.raise("Invalid character in character class");for(;;)if(!this.regexp_eatClassSetRange(e)){if(!(t=this.regexp_eatClassSetOperand(e)))return n;t===CharSetString&&(n=CharSetString)}},pp$1.regexp_eatClassSetRange=function(e){var t=e.pos;if(this.regexp_eatClassSetCharacter(e)){var n=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassSetCharacter(e)){var r=e.lastIntValue;return-1!==n&&-1!==r&&n>r&&e.raise("Range out of order in character class"),!0}e.pos=t}return!1},pp$1.regexp_eatClassSetOperand=function(e){return this.regexp_eatClassSetCharacter(e)?CharSetOk:this.regexp_eatClassStringDisjunction(e)||this.regexp_eatNestedClass(e)},pp$1.regexp_eatNestedClass=function(e){var t=e.pos;if(e.eat(91)){var n=e.eat(94),r=this.regexp_classContents(e);if(e.eat(93))return n&&r===CharSetString&&e.raise("Negated character class may contain strings"),r;e.pos=t}if(e.eat(92)){var i=this.regexp_eatCharacterClassEscape(e);if(i)return i;e.pos=t}return null},pp$1.regexp_eatClassStringDisjunction=function(e){var t=e.pos;if(e.eatChars([92,113])){if(e.eat(123)){var n=this.regexp_classStringDisjunctionContents(e);if(e.eat(125))return n}else e.raise("Invalid escape");e.pos=t}return null},pp$1.regexp_classStringDisjunctionContents=function(e){for(var t=this.regexp_classString(e);e.eat(124);)this.regexp_classString(e)===CharSetString&&(t=CharSetString);return t},pp$1.regexp_classString=function(e){for(var t=0;this.regexp_eatClassSetCharacter(e);)t++;return 1===t?CharSetOk:CharSetString},pp$1.regexp_eatClassSetCharacter=function(e){var t=e.pos;if(e.eat(92))return!(!this.regexp_eatCharacterEscape(e)&&!this.regexp_eatClassSetReservedPunctuator(e)&&(e.eat(98)?(e.lastIntValue=8,0):(e.pos=t,1)));var n=e.current();return!(n<0||n===e.lookahead()&&isClassSetReservedDoublePunctuatorCharacter(n)||isClassSetSyntaxCharacter(n)||(e.advance(),e.lastIntValue=n,0))},pp$1.regexp_eatClassSetReservedPunctuator=function(e){var t=e.current();return!!isClassSetReservedPunctuator(t)&&(e.lastIntValue=t,e.advance(),!0)},pp$1.regexp_eatClassControlLetter=function(e){var t=e.current();return!(!isDecimalDigit(t)&&95!==t||(e.lastIntValue=t%32,e.advance(),0))},pp$1.regexp_eatHexEscapeSequence=function(e){var t=e.pos;if(e.eat(120)){if(this.regexp_eatFixedHexDigits(e,2))return!0;e.switchU&&e.raise("Invalid escape"),e.pos=t}return!1},pp$1.regexp_eatDecimalDigits=function(e){var t=e.pos,n=0;for(e.lastIntValue=0;isDecimalDigit(n=e.current());)e.lastIntValue=10*e.lastIntValue+(n-48),e.advance();return e.pos!==t},pp$1.regexp_eatHexDigits=function(e){var t=e.pos,n=0;for(e.lastIntValue=0;isHexDigit(n=e.current());)e.lastIntValue=16*e.lastIntValue+hexToInt(n),e.advance();return e.pos!==t},pp$1.regexp_eatLegacyOctalEscapeSequence=function(e){if(this.regexp_eatOctalDigit(e)){var t=e.lastIntValue;if(this.regexp_eatOctalDigit(e)){var n=e.lastIntValue;t<=3&&this.regexp_eatOctalDigit(e)?e.lastIntValue=64*t+8*n+e.lastIntValue:e.lastIntValue=8*t+n}else e.lastIntValue=t;return!0}return!1},pp$1.regexp_eatOctalDigit=function(e){var t=e.current();return isOctalDigit(t)?(e.lastIntValue=t-48,e.advance(),!0):(e.lastIntValue=0,!1)},pp$1.regexp_eatFixedHexDigits=function(e,t){var n=e.pos;e.lastIntValue=0;for(var r=0;r=this.input.length?this.finishToken(types$1.eof):e.override?e.override(this):void this.readToken(this.fullCharCodeAtPos())},pp.readToken=function(e){return isIdentifierStart(e,this.options.ecmaVersion>=6)||92===e?this.readWord():this.getTokenFromCode(e)},pp.fullCharCodeAt=function(e){var t=this.input.charCodeAt(e);if(t<=55295||t>=56320)return t;var n=this.input.charCodeAt(e+1);return n<=56319||n>=57344?t:(t<<10)+n-56613888},pp.fullCharCodeAtPos=function(){return this.fullCharCodeAt(this.pos)},pp.skipBlockComment=function(){var e=this.options.onComment&&this.curPosition(),t=this.pos,n=this.input.indexOf("*/",this.pos+=2);if(-1===n&&this.raise(this.pos-2,"Unterminated comment"),this.pos=n+2,this.options.locations)for(var r=void 0,i=t;(r=nextLineBreak(this.input,i,this.pos))>-1;)++this.curLine,i=this.lineStart=r;this.options.onComment&&this.options.onComment(!0,this.input.slice(t+2,n),t,this.pos,e,this.curPosition())},pp.skipLineComment=function(e){for(var t=this.pos,n=this.options.onComment&&this.curPosition(),r=this.input.charCodeAt(this.pos+=e);this.pos8&&e<14||e>=5760&&nonASCIIwhitespace.test(String.fromCharCode(e))))break e;++this.pos}}},pp.finishToken=function(e,t){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var n=this.type;this.type=e,this.value=t,this.updateContext(n)},pp.readToken_dot=function(){var e=this.input.charCodeAt(this.pos+1);if(e>=48&&e<=57)return this.readNumber(!0);var t=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&46===e&&46===t?(this.pos+=3,this.finishToken(types$1.ellipsis)):(++this.pos,this.finishToken(types$1.dot))},pp.readToken_slash=function(){var e=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):61===e?this.finishOp(types$1.assign,2):this.finishOp(types$1.slash,1)},pp.readToken_mult_modulo_exp=function(e){var t=this.input.charCodeAt(this.pos+1),n=1,r=42===e?types$1.star:types$1.modulo;return this.options.ecmaVersion>=7&&42===e&&42===t&&(++n,r=types$1.starstar,t=this.input.charCodeAt(this.pos+2)),61===t?this.finishOp(types$1.assign,n+1):this.finishOp(r,n)},pp.readToken_pipe_amp=function(e){var t=this.input.charCodeAt(this.pos+1);return t===e?this.options.ecmaVersion>=12&&61===this.input.charCodeAt(this.pos+2)?this.finishOp(types$1.assign,3):this.finishOp(124===e?types$1.logicalOR:types$1.logicalAND,2):61===t?this.finishOp(types$1.assign,2):this.finishOp(124===e?types$1.bitwiseOR:types$1.bitwiseAND,1)},pp.readToken_caret=function(){return 61===this.input.charCodeAt(this.pos+1)?this.finishOp(types$1.assign,2):this.finishOp(types$1.bitwiseXOR,1)},pp.readToken_plus_min=function(e){var t=this.input.charCodeAt(this.pos+1);return t===e?45!==t||this.inModule||62!==this.input.charCodeAt(this.pos+2)||0!==this.lastTokEnd&&!lineBreak$1.test(this.input.slice(this.lastTokEnd,this.pos))?this.finishOp(types$1.incDec,2):(this.skipLineComment(3),this.skipSpace(),this.nextToken()):61===t?this.finishOp(types$1.assign,2):this.finishOp(types$1.plusMin,1)},pp.readToken_lt_gt=function(e){var t=this.input.charCodeAt(this.pos+1),n=1;return t===e?(n=62===e&&62===this.input.charCodeAt(this.pos+2)?3:2,61===this.input.charCodeAt(this.pos+n)?this.finishOp(types$1.assign,n+1):this.finishOp(types$1.bitShift,n)):33!==t||60!==e||this.inModule||45!==this.input.charCodeAt(this.pos+2)||45!==this.input.charCodeAt(this.pos+3)?(61===t&&(n=2),this.finishOp(types$1.relational,n)):(this.skipLineComment(4),this.skipSpace(),this.nextToken())},pp.readToken_eq_excl=function(e){var t=this.input.charCodeAt(this.pos+1);return 61===t?this.finishOp(types$1.equality,61===this.input.charCodeAt(this.pos+2)?3:2):61===e&&62===t&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(types$1.arrow)):this.finishOp(61===e?types$1.eq:types$1.prefix,1)},pp.readToken_question=function(){var e=this.options.ecmaVersion;if(e>=11){var t=this.input.charCodeAt(this.pos+1);if(46===t){var n=this.input.charCodeAt(this.pos+2);if(n<48||n>57)return this.finishOp(types$1.questionDot,2)}if(63===t)return e>=12&&61===this.input.charCodeAt(this.pos+2)?this.finishOp(types$1.assign,3):this.finishOp(types$1.coalesce,2)}return this.finishOp(types$1.question,1)},pp.readToken_numberSign=function(){var e=35;if(this.options.ecmaVersion>=13&&(++this.pos,isIdentifierStart(e=this.fullCharCodeAtPos(),!0)||92===e))return this.finishToken(types$1.privateId,this.readWord1());this.raise(this.pos,"Unexpected character '"+codePointToString(e)+"'")},pp.getTokenFromCode=function(e){switch(e){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(types$1.parenL);case 41:return++this.pos,this.finishToken(types$1.parenR);case 59:return++this.pos,this.finishToken(types$1.semi);case 44:return++this.pos,this.finishToken(types$1.comma);case 91:return++this.pos,this.finishToken(types$1.bracketL);case 93:return++this.pos,this.finishToken(types$1.bracketR);case 123:return++this.pos,this.finishToken(types$1.braceL);case 125:return++this.pos,this.finishToken(types$1.braceR);case 58:return++this.pos,this.finishToken(types$1.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(types$1.backQuote);case 48:var t=this.input.charCodeAt(this.pos+1);if(120===t||88===t)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(111===t||79===t)return this.readRadixNumber(8);if(98===t||66===t)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(e);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(e);case 124:case 38:return this.readToken_pipe_amp(e);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(e);case 60:case 62:return this.readToken_lt_gt(e);case 61:case 33:return this.readToken_eq_excl(e);case 63:return this.readToken_question();case 126:return this.finishOp(types$1.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,"Unexpected character '"+codePointToString(e)+"'")},pp.finishOp=function(e,t){var n=this.input.slice(this.pos,this.pos+t);return this.pos+=t,this.finishToken(e,n)},pp.readRegexp=function(){for(var e,t,n=this.pos;;){this.pos>=this.input.length&&this.raise(n,"Unterminated regular expression");var r=this.input.charAt(this.pos);if(lineBreak$1.test(r)&&this.raise(n,"Unterminated regular expression"),e)e=!1;else{if("["===r)t=!0;else if("]"===r&&t)t=!1;else if("/"===r&&!t)break;e="\\"===r}++this.pos}var i=this.input.slice(n,this.pos);++this.pos;var a=this.pos,o=this.readWord1();this.containsEsc&&this.unexpected(a);var s=this.regexpState||(this.regexpState=new RegExpValidationState(this));s.reset(n,i,o),this.validateRegExpFlags(s),this.validateRegExpPattern(s);var c=null;try{c=new RegExp(i,o)}catch(e){}return this.finishToken(types$1.regexp,{pattern:i,flags:o,value:c})},pp.readInt=function(e,t,n){for(var r=this.options.ecmaVersion>=12&&void 0===t,i=n&&48===this.input.charCodeAt(this.pos),a=this.pos,o=0,s=0,c=0,l=null==t?1/0:t;c=97?u-97+10:u>=65?u-65+10:u>=48&&u<=57?u-48:1/0)>=e)break;s=u,o=o*e+d}}return r&&95===s&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===a||null!=t&&this.pos-a!==t?null:o},pp.readRadixNumber=function(e){var t=this.pos;this.pos+=2;var n=this.readInt(e);return null==n&&this.raise(this.start+2,"Expected number in radix "+e),this.options.ecmaVersion>=11&&110===this.input.charCodeAt(this.pos)?(n=stringToBigInt(this.input.slice(t,this.pos)),++this.pos):isIdentifierStart(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(types$1.num,n)},pp.readNumber=function(e){var t=this.pos;e||null!==this.readInt(10,void 0,!0)||this.raise(t,"Invalid number");var n=this.pos-t>=2&&48===this.input.charCodeAt(t);n&&this.strict&&this.raise(t,"Invalid number");var r=this.input.charCodeAt(this.pos);if(!n&&!e&&this.options.ecmaVersion>=11&&110===r){var i=stringToBigInt(this.input.slice(t,this.pos));return++this.pos,isIdentifierStart(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(types$1.num,i)}n&&/[89]/.test(this.input.slice(t,this.pos))&&(n=!1),46!==r||n||(++this.pos,this.readInt(10),r=this.input.charCodeAt(this.pos)),69!==r&&101!==r||n||(43!==(r=this.input.charCodeAt(++this.pos))&&45!==r||++this.pos,null===this.readInt(10)&&this.raise(t,"Invalid number")),isIdentifierStart(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var a=stringToNumber(this.input.slice(t,this.pos),n);return this.finishToken(types$1.num,a)},pp.readCodePoint=function(){var e;if(123===this.input.charCodeAt(this.pos)){this.options.ecmaVersion<6&&this.unexpected();var t=++this.pos;e=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,e>1114111&&this.invalidStringToken(t,"Code point out of bounds")}else e=this.readHexChar(4);return e},pp.readString=function(e){for(var t="",n=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var r=this.input.charCodeAt(this.pos);if(r===e)break;92===r?(t+=this.input.slice(n,this.pos),t+=this.readEscapedChar(!1),n=this.pos):8232===r||8233===r?(this.options.ecmaVersion<10&&this.raise(this.start,"Unterminated string constant"),++this.pos,this.options.locations&&(this.curLine++,this.lineStart=this.pos)):(isNewLine(r)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return t+=this.input.slice(n,this.pos++),this.finishToken(types$1.string,t)};var INVALID_TEMPLATE_ESCAPE_ERROR={};pp.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(e){if(e!==INVALID_TEMPLATE_ESCAPE_ERROR)throw e;this.readInvalidTemplateToken()}this.inTemplateElement=!1},pp.invalidStringToken=function(e,t){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw INVALID_TEMPLATE_ESCAPE_ERROR;this.raise(e,t)},pp.readTmplToken=function(){for(var e="",t=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var n=this.input.charCodeAt(this.pos);if(96===n||36===n&&123===this.input.charCodeAt(this.pos+1))return this.pos!==this.start||this.type!==types$1.template&&this.type!==types$1.invalidTemplate?(e+=this.input.slice(t,this.pos),this.finishToken(types$1.template,e)):36===n?(this.pos+=2,this.finishToken(types$1.dollarBraceL)):(++this.pos,this.finishToken(types$1.backQuote));if(92===n)e+=this.input.slice(t,this.pos),e+=this.readEscapedChar(!0),t=this.pos;else if(isNewLine(n)){switch(e+=this.input.slice(t,this.pos),++this.pos,n){case 13:10===this.input.charCodeAt(this.pos)&&++this.pos;case 10:e+="\n";break;default:e+=String.fromCharCode(n)}this.options.locations&&(++this.curLine,this.lineStart=this.pos),t=this.pos}else++this.pos}},pp.readInvalidTemplateToken=function(){for(;this.pos=48&&t<=55){var r=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],i=parseInt(r,8);return i>255&&(r=r.slice(0,-1),i=parseInt(r,8)),this.pos+=r.length-1,t=this.input.charCodeAt(this.pos),"0"===r&&56!==t&&57!==t||!this.strict&&!e||this.invalidStringToken(this.pos-1-r.length,e?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(i)}return isNewLine(t)?(this.options.locations&&(this.lineStart=this.pos,++this.curLine),""):String.fromCharCode(t)}},pp.readHexChar=function(e){var t=this.pos,n=this.readInt(16,e);return null===n&&this.invalidStringToken(t,"Bad character escape sequence"),n},pp.readWord1=function(){this.containsEsc=!1;for(var e="",t=!0,n=this.pos,r=this.options.ecmaVersion>=6;this.pos0===t?e:e.toLowerCase()).join(" ")+"s"}}}class RuleError extends SourceErrorWithNode{constructor(){super(...arguments),this.type=ErrorType.SYNTAX,this.severity=ErrorSeverity.ERROR}}var dummyValue="✖";function isDummy(e){return e.name===dummyValue}function noop(){}var LooseParser=function(e,t){if(void 0===t&&(t={}),this.toks=this.constructor.BaseParser.tokenizer(e,t),this.options=this.toks.options,this.input=this.toks.input,this.tok=this.last={type:types$1.eof,start:0,end:0},this.tok.validateRegExpFlags=noop,this.tok.validateRegExpPattern=noop,this.options.locations){var n=this.toks.curPosition();this.tok.loc=new SourceLocation(this.toks,n,n)}this.ahead=[],this.context=[],this.curIndent=0,this.curLineStart=0,this.nextLineStart=this.lineEnd(this.curLineStart)+1,this.inAsync=!1,this.inGenerator=!1,this.inFunction=!1};LooseParser.prototype.startNode=function(){return new Node(this.toks,this.tok.start,this.options.locations?this.tok.loc.start:null)},LooseParser.prototype.storeCurrentPos=function(){return this.options.locations?[this.tok.start,this.tok.loc.start]:this.tok.start},LooseParser.prototype.startNodeAt=function(e){return this.options.locations?new Node(this.toks,e[0],e[1]):new Node(this.toks,e)},LooseParser.prototype.finishNode=function(e,t){return e.type=t,e.end=this.last.end,this.options.locations&&(e.loc.end=this.last.loc.end),this.options.ranges&&(e.range[1]=this.last.end),e},LooseParser.prototype.dummyNode=function(e){var t=this.startNode();return t.type=e,t.end=t.start,this.options.locations&&(t.loc.end=t.loc.start),this.options.ranges&&(t.range[1]=t.start),this.last={type:types$1.name,start:t.start,end:t.start,loc:t.loc},t},LooseParser.prototype.dummyIdent=function(){var e=this.dummyNode("Identifier");return e.name=dummyValue,e},LooseParser.prototype.dummyString=function(){var e=this.dummyNode("Literal");return e.value=e.raw=dummyValue,e},LooseParser.prototype.eat=function(e){return this.tok.type===e&&(this.next(),!0)},LooseParser.prototype.isContextual=function(e){return this.tok.type===types$1.name&&this.tok.value===e},LooseParser.prototype.eatContextual=function(e){return this.tok.value===e&&this.eat(types$1.name)},LooseParser.prototype.canInsertSemicolon=function(){return this.tok.type===types$1.eof||this.tok.type===types$1.braceR||lineBreak$1.test(this.input.slice(this.last.end,this.tok.start))},LooseParser.prototype.semicolon=function(){return this.eat(types$1.semi)},LooseParser.prototype.expect=function(e){if(this.eat(e))return!0;for(var t=1;t<=2;t++)if(this.lookAhead(t).type===e){for(var n=0;n=this.input.length||this.indentationAfter(this.nextLineStart)=this.curLineStart;--e){var t=this.input.charCodeAt(e);if(9!==t&&32!==t)return!1}return!0},LooseParser.prototype.extend=function(e,t){this[e]=t(this[e])},LooseParser.prototype.parse=function(){return this.next(),this.parseTopLevel()},LooseParser.extend=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];for(var n=this,r=0;r8||32===e||160===e||isNewLine(e)}lp$2.next=function(){if(this.last=this.tok,this.ahead.length?this.tok=this.ahead.shift():this.tok=this.readToken(),this.tok.start>=this.nextLineStart){for(;this.tok.start>=this.nextLineStart;)this.curLineStart=this.nextLineStart,this.nextLineStart=this.lineEnd(this.curLineStart)+1;this.curIndent=this.indentationAfter(this.curLineStart)}},lp$2.readToken=function(){for(;;)try{return this.toks.next(),this.toks.type===types$1.dot&&"."===this.input.substr(this.toks.end,1)&&this.options.ecmaVersion>=6&&(this.toks.end++,this.toks.type=types$1.ellipsis),new Token(this.toks)}catch(a){if(!(a instanceof SyntaxError))throw a;var e=a.message,t=a.raisedAt,n=!0;if(/unterminated/i.test(e))if(t=this.lineEnd(a.pos+1),/string/.test(e))n={start:a.pos,end:t,type:types$1.string,value:this.input.slice(a.pos+1,t)};else if(/regular expr/i.test(e)){var r=this.input.slice(a.pos,t);try{r=new RegExp(r)}catch(e){}n={start:a.pos,end:t,type:types$1.regexp,value:r}}else n=!!/template/.test(e)&&{start:a.pos,end:t,type:types$1.template,value:this.input.slice(a.pos,t)};else if(/invalid (unicode|regexp|number)|expecting unicode|octal literal|is reserved|directly after number|expected number in radix|numeric separator/i.test(e))for(;t]/.test(n)||/[enwfd]/.test(n)&&/\b(case|else|return|throw|new|in|(instance|type)?of|delete|void)$/.test(this.input.slice(e-10,e)),this.options.locations)for(this.toks.curLine=1,this.toks.lineStart=lineBreakG.lastIndex=0;(t=lineBreakG.exec(this.input))&&t.indexthis.ahead.length;)this.ahead.push(this.readToken());return this.ahead[e-1]};var lp$1=LooseParser.prototype;lp$1.parseTopLevel=function(){var e=this.startNodeAt(this.options.locations?[0,getLineInfo(this.input,0)]:0);for(e.body=[];this.tok.type!==types$1.eof;)e.body.push(this.parseStatement());return this.toks.adaptDirectivePrologue(e.body),this.last=this.tok,e.sourceType="commonjs"===this.options.sourceType?"script":this.options.sourceType,this.finishNode(e,"Program")},lp$1.parseStatement=function(){var e,t=this.tok.type,n=this.startNode();switch(this.toks.isLet()&&(t=types$1._var,e="let"),t){case types$1._break:case types$1._continue:this.next();var r=t===types$1._break;return this.semicolon()||this.canInsertSemicolon()?n.label=null:(n.label=this.tok.type===types$1.name?this.parseIdent():null,this.semicolon()),this.finishNode(n,r?"BreakStatement":"ContinueStatement");case types$1._debugger:return this.next(),this.semicolon(),this.finishNode(n,"DebuggerStatement");case types$1._do:return this.next(),n.body=this.parseStatement(),n.test=this.eat(types$1._while)?this.parseParenExpression():this.dummyIdent(),this.semicolon(),this.finishNode(n,"DoWhileStatement");case types$1._for:this.next();var i=this.options.ecmaVersion>=9&&this.eatContextual("await");if(this.pushCx(),this.expect(types$1.parenL),this.tok.type===types$1.semi)return this.parseFor(n,null);var a=this.toks.isLet(),o=this.toks.isAwaitUsing(!0),s=!o&&this.toks.isUsing(!0);if(a||this.tok.type===types$1._var||this.tok.type===types$1._const||s||o){var c=a?"let":s?"using":o?"await using":this.tok.value,l=this.startNode();return s||o?(o&&this.next(),this.parseVar(l,!0,c)):l=this.parseVar(l,!0,c),1!==l.declarations.length||this.tok.type!==types$1._in&&!this.isContextual("of")?this.parseFor(n,l):(this.options.ecmaVersion>=9&&this.tok.type!==types$1._in&&(n.await=i),this.parseForIn(n,l))}var u=this.parseExpression(!0);return this.tok.type===types$1._in||this.isContextual("of")?(this.options.ecmaVersion>=9&&this.tok.type!==types$1._in&&(n.await=i),this.parseForIn(n,this.toAssignable(u))):this.parseFor(n,u);case types$1._function:return this.next(),this.parseFunction(n,!0);case types$1._if:return this.next(),n.test=this.parseParenExpression(),n.consequent=this.parseStatement(),n.alternate=this.eat(types$1._else)?this.parseStatement():null,this.finishNode(n,"IfStatement");case types$1._return:return this.next(),this.eat(types$1.semi)||this.canInsertSemicolon()?n.argument=null:(n.argument=this.parseExpression(),this.semicolon()),this.finishNode(n,"ReturnStatement");case types$1._switch:var d,p=this.curIndent,m=this.curLineStart;for(this.next(),n.discriminant=this.parseParenExpression(),n.cases=[],this.pushCx(),this.expect(types$1.braceL);!this.closes(types$1.braceR,p,m,!0);)if(this.tok.type===types$1._case||this.tok.type===types$1._default){var f=this.tok.type===types$1._case;d&&this.finishNode(d,"SwitchCase"),n.cases.push(d=this.startNode()),d.consequent=[],this.next(),d.test=f?this.parseExpression():null,this.expect(types$1.colon)}else d||(n.cases.push(d=this.startNode()),d.consequent=[],d.test=null),d.consequent.push(this.parseStatement());return d&&this.finishNode(d,"SwitchCase"),this.popCx(),this.eat(types$1.braceR),this.finishNode(n,"SwitchStatement");case types$1._throw:return this.next(),n.argument=this.parseExpression(),this.semicolon(),this.finishNode(n,"ThrowStatement");case types$1._try:if(this.next(),n.block=this.parseBlock(),n.handler=null,this.tok.type===types$1._catch){var _=this.startNode();this.next(),this.eat(types$1.parenL)?(_.param=this.toAssignable(this.parseExprAtom(),!0),this.expect(types$1.parenR)):_.param=null,_.body=this.parseBlock(),n.handler=this.finishNode(_,"CatchClause")}return n.finalizer=this.eat(types$1._finally)?this.parseBlock():null,n.handler||n.finalizer?this.finishNode(n,"TryStatement"):n.block;case types$1._var:case types$1._const:return this.parseVar(n,!1,e||this.tok.value);case types$1._while:return this.next(),n.test=this.parseParenExpression(),n.body=this.parseStatement(),this.finishNode(n,"WhileStatement");case types$1._with:return this.next(),n.object=this.parseParenExpression(),n.body=this.parseStatement(),this.finishNode(n,"WithStatement");case types$1.braceL:return this.parseBlock();case types$1.semi:return this.next(),this.finishNode(n,"EmptyStatement");case types$1._class:return this.parseClass(!0);case types$1._import:if(this.options.ecmaVersion>10){var h=this.lookAhead(1).type;if(h===types$1.parenL||h===types$1.dot)return n.expression=this.parseExpression(),this.semicolon(),this.finishNode(n,"ExpressionStatement")}return this.parseImport();case types$1._export:return this.parseExport();default:if(this.toks.isAsyncFunction())return this.next(),this.next(),this.parseFunction(n,!0,!0);if(this.toks.isUsing(!1))return this.parseVar(n,!1,"using");if(this.toks.isAwaitUsing(!1))return this.next(),this.parseVar(n,!1,"await using");var g=this.parseExpression();return isDummy(g)?(this.next(),this.tok.type===types$1.eof?this.finishNode(n,"EmptyStatement"):this.parseStatement()):t===types$1.name&&"Identifier"===g.type&&this.eat(types$1.colon)?(n.body=this.parseStatement(),n.label=g,this.finishNode(n,"LabeledStatement")):(n.expression=g,this.semicolon(),this.finishNode(n,"ExpressionStatement"))}},lp$1.parseBlock=function(){var e=this.startNode();this.pushCx(),this.expect(types$1.braceL);var t=this.curIndent,n=this.curLineStart;for(e.body=[];!this.closes(types$1.braceR,t,n,!0);)e.body.push(this.parseStatement());return this.popCx(),this.eat(types$1.braceR),this.finishNode(e,"BlockStatement")},lp$1.parseFor=function(e,t){return e.init=t,e.test=e.update=null,this.eat(types$1.semi)&&this.tok.type!==types$1.semi&&(e.test=this.parseExpression()),this.eat(types$1.semi)&&this.tok.type!==types$1.parenR&&(e.update=this.parseExpression()),this.popCx(),this.expect(types$1.parenR),e.body=this.parseStatement(),this.finishNode(e,"ForStatement")},lp$1.parseForIn=function(e,t){var n=this.tok.type===types$1._in?"ForInStatement":"ForOfStatement";return this.next(),e.left=t,e.right=this.parseExpression(),this.popCx(),this.expect(types$1.parenR),e.body=this.parseStatement(),this.finishNode(e,n)},lp$1.parseVar=function(e,t,n){e.kind=n,this.next(),e.declarations=[];do{var r=this.startNode();r.id=this.options.ecmaVersion>=6?this.toAssignable(this.parseExprAtom(),!0):this.parseIdent(),r.init=this.eat(types$1.eq)?this.parseMaybeAssign(t):null,e.declarations.push(this.finishNode(r,"VariableDeclarator"))}while(this.eat(types$1.comma));if(!e.declarations.length){var i=this.startNode();i.id=this.dummyIdent(),e.declarations.push(this.finishNode(i,"VariableDeclarator"))}return t||this.semicolon(),this.finishNode(e,"VariableDeclaration")},lp$1.parseClass=function(e){var t=this.startNode();this.next(),this.tok.type===types$1.name?t.id=this.parseIdent():t.id=!0===e?this.dummyIdent():null,t.superClass=this.eat(types$1._extends)?this.parseExpression():null,t.body=this.startNode(),t.body.body=[],this.pushCx();var n=this.curIndent+1,r=this.curLineStart;for(this.eat(types$1.braceL),this.curIndent+1=13&&this.eat(types$1.braceL))return this.parseClassStaticBlock(a),a;this.isClassElementNameStart()||this.toks.type===types$1.star?u=!0:o="static"}if(a.static=u,!o&&t>=8&&this.eatContextual("async")&&(!this.isClassElementNameStart()&&this.toks.type!==types$1.star||this.canInsertSemicolon()?o="async":c=!0),!o){s=this.eat(types$1.star);var d=this.toks.value;(this.eatContextual("get")||this.eatContextual("set"))&&(this.isClassElementNameStart()?l=d:o=d)}if(o)a.computed=!1,a.key=this.startNodeAt(n?[this.toks.lastTokStart,this.toks.lastTokStartLoc]:this.toks.lastTokStart),a.key.name=o,this.finishNode(a.key,"Identifier");else if(this.parseClassElementName(a),isDummy(a.key))return isDummy(this.parseMaybeAssign())&&this.next(),this.eat(types$1.comma),null;if(t<13||this.toks.type===types$1.parenL||"method"!==l||s||c){var p=!a.computed&&!a.static&&!s&&!c&&"method"===l&&("Identifier"===a.key.type&&"constructor"===a.key.name||"Literal"===a.key.type&&"constructor"===a.key.value);a.kind=p?"constructor":l,a.value=this.parseMethod(s,c),this.finishNode(a,"MethodDefinition")}else{if(this.eat(types$1.eq))if(this.curLineStart!==i&&this.curIndent<=r&&this.tokenStartsLine())a.value=null;else{var m=this.inAsync,f=this.inGenerator;this.inAsync=!1,this.inGenerator=!1,a.value=this.parseMaybeAssign(),this.inAsync=m,this.inGenerator=f}else a.value=null;this.semicolon(),this.finishNode(a,"PropertyDefinition")}return a},lp$1.parseClassStaticBlock=function(e){var t=this.curIndent,n=this.curLineStart;for(e.body=[],this.pushCx();!this.closes(types$1.braceR,t,n,!0);)e.body.push(this.parseStatement());return this.popCx(),this.eat(types$1.braceR),this.finishNode(e,"StaticBlock")},lp$1.isClassElementNameStart=function(){return this.toks.isClassElementNameStart()},lp$1.parseClassElementName=function(e){this.toks.type===types$1.privateId?(e.computed=!1,e.key=this.parsePrivateIdent()):this.parsePropertyName(e)},lp$1.parseFunction=function(e,t,n){var r=this.inAsync,i=this.inGenerator,a=this.inFunction;return this.initFunction(e),this.options.ecmaVersion>=6&&(e.generator=this.eat(types$1.star)),this.options.ecmaVersion>=8&&(e.async=!!n),this.tok.type===types$1.name?e.id=this.parseIdent():!0===t&&(e.id=this.dummyIdent()),this.inAsync=e.async,this.inGenerator=e.generator,this.inFunction=!0,e.params=this.parseFunctionParams(),e.body=this.parseBlock(),this.toks.adaptDirectivePrologue(e.body.body),this.inAsync=r,this.inGenerator=i,this.inFunction=a,this.finishNode(e,t?"FunctionDeclaration":"FunctionExpression")},lp$1.parseExport=function(){var e=this.startNode();if(this.next(),this.eat(types$1.star))return this.options.ecmaVersion>=11&&(this.eatContextual("as")?e.exported=this.parseExprAtom():e.exported=null),e.source=this.eatContextual("from")?this.parseExprAtom():this.dummyString(),this.options.ecmaVersion>=16&&(e.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(e,"ExportAllDeclaration");if(this.eat(types$1._default)){var t;if(this.tok.type===types$1._function||(t=this.toks.isAsyncFunction())){var n=this.startNode();this.next(),t&&this.next(),e.declaration=this.parseFunction(n,"nullableID",t)}else this.tok.type===types$1._class?e.declaration=this.parseClass("nullableID"):(e.declaration=this.parseMaybeAssign(),this.semicolon());return this.finishNode(e,"ExportDefaultDeclaration")}return this.tok.type.keyword||this.toks.isLet()||this.toks.isAsyncFunction()?(e.declaration=this.parseStatement(),e.specifiers=[],e.source=null):(e.declaration=null,e.specifiers=this.parseExportSpecifierList(),e.source=this.eatContextual("from")?this.parseExprAtom():null,this.options.ecmaVersion>=16&&(e.attributes=this.parseWithClause()),this.semicolon()),this.finishNode(e,"ExportNamedDeclaration")},lp$1.parseImport=function(){var e,t=this.startNode();return this.next(),this.tok.type===types$1.string?(t.specifiers=[],t.source=this.parseExprAtom()):(this.tok.type===types$1.name&&"from"!==this.tok.value&&((e=this.startNode()).local=this.parseIdent(),this.finishNode(e,"ImportDefaultSpecifier"),this.eat(types$1.comma)),t.specifiers=this.parseImportSpecifiers(),t.source=this.eatContextual("from")&&this.tok.type===types$1.string?this.parseExprAtom():this.dummyString(),e&&t.specifiers.unshift(e)),this.options.ecmaVersion>=16&&(t.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(t,"ImportDeclaration")},lp$1.parseImportSpecifiers=function(){var e=[];if(this.tok.type===types$1.star){var t=this.startNode();this.next(),t.local=this.eatContextual("as")?this.parseIdent():this.dummyIdent(),e.push(this.finishNode(t,"ImportNamespaceSpecifier"))}else{var n=this.curIndent,r=this.curLineStart,i=this.nextLineStart;for(this.pushCx(),this.eat(types$1.braceL),this.curLineStart>i&&(i=this.curLineStart);!this.closes(types$1.braceR,n+(this.curLineStart<=i?1:0),r);){var a=this.startNode();if(this.eat(types$1.star))a.local=this.eatContextual("as")?this.parseModuleExportName():this.dummyIdent(),this.finishNode(a,"ImportNamespaceSpecifier");else{if(this.isContextual("from"))break;if(a.imported=this.parseModuleExportName(),isDummy(a.imported))break;a.local=this.eatContextual("as")?this.parseModuleExportName():a.imported,this.finishNode(a,"ImportSpecifier")}e.push(a),this.eat(types$1.comma)}this.eat(types$1.braceR),this.popCx()}return e},lp$1.parseWithClause=function(){var e=[];if(!this.eat(types$1._with))return e;var t=this.curIndent,n=this.curLineStart,r=this.nextLineStart;for(this.pushCx(),this.eat(types$1.braceL),this.curLineStart>r&&(r=this.curLineStart);!this.closes(types$1.braceR,t+(this.curLineStart<=r?1:0),n);){var i=this.startNode();if(i.key=this.tok.type===types$1.string?this.parseExprAtom():this.parseIdent(),this.eat(types$1.colon))this.tok.type===types$1.string?i.value=this.parseExprAtom():i.value=this.dummyString();else{if(isDummy(i.key))break;if(this.tok.type!==types$1.string)break;i.value=this.parseExprAtom()}e.push(this.finishNode(i,"ImportAttribute")),this.eat(types$1.comma)}return this.eat(types$1.braceR),this.popCx(),e},lp$1.parseExportSpecifierList=function(){var e=[],t=this.curIndent,n=this.curLineStart,r=this.nextLineStart;for(this.pushCx(),this.eat(types$1.braceL),this.curLineStart>r&&(r=this.curLineStart);!this.closes(types$1.braceR,t+(this.curLineStart<=r?1:0),n)&&!this.isContextual("from");){var i=this.startNode();if(i.local=this.parseModuleExportName(),isDummy(i.local))break;i.exported=this.eatContextual("as")?this.parseModuleExportName():i.local,this.finishNode(i,"ExportSpecifier"),e.push(i),this.eat(types$1.comma)}return this.eat(types$1.braceR),this.popCx(),e},lp$1.parseModuleExportName=function(){return this.options.ecmaVersion>=13&&this.tok.type===types$1.string?this.parseExprAtom():this.parseIdent()};var lp=LooseParser.prototype;function parse$5(e,t){return LooseParser.parse(e,t)}lp.checkLVal=function(e){if(!e)return e;switch(e.type){case"Identifier":case"MemberExpression":return e;case"ParenthesizedExpression":return e.expression=this.checkLVal(e.expression),e;default:return this.dummyIdent()}},lp.parseExpression=function(e){var t=this.storeCurrentPos(),n=this.parseMaybeAssign(e);if(this.tok.type===types$1.comma){var r=this.startNodeAt(t);for(r.expressions=[n];this.eat(types$1.comma);)r.expressions.push(this.parseMaybeAssign(e));return this.finishNode(r,"SequenceExpression")}return n},lp.parseParenExpression=function(){this.pushCx(),this.expect(types$1.parenL);var e=this.parseExpression();return this.popCx(),this.expect(types$1.parenR),e},lp.parseMaybeAssign=function(e){if(this.inGenerator&&this.toks.isContextual("yield")){var t=this.startNode();return this.next(),this.semicolon()||this.canInsertSemicolon()||this.tok.type!==types$1.star&&!this.tok.type.startsExpr?(t.delegate=!1,t.argument=null):(t.delegate=this.eat(types$1.star),t.argument=this.parseMaybeAssign()),this.finishNode(t,"YieldExpression")}var n=this.storeCurrentPos(),r=this.parseMaybeConditional(e);if(this.tok.type.isAssign){var i=this.startNodeAt(n);return i.operator=this.tok.value,i.left=this.tok.type===types$1.eq?this.toAssignable(r):this.checkLVal(r),this.next(),i.right=this.parseMaybeAssign(e),this.finishNode(i,"AssignmentExpression")}return r},lp.parseMaybeConditional=function(e){var t=this.storeCurrentPos(),n=this.parseExprOps(e);if(this.eat(types$1.question)){var r=this.startNodeAt(t);return r.test=n,r.consequent=this.parseMaybeAssign(),r.alternate=this.expect(types$1.colon)?this.parseMaybeAssign(e):this.dummyIdent(),this.finishNode(r,"ConditionalExpression")}return n},lp.parseExprOps=function(e){var t=this.storeCurrentPos(),n=this.curIndent,r=this.curLineStart;return this.parseExprOp(this.parseMaybeUnary(!1),t,-1,e,n,r)},lp.parseExprOp=function(e,t,n,r,i,a){if(this.curLineStart!==a&&this.curIndentn){var s=this.startNodeAt(t);if(s.left=e,s.operator=this.tok.value,this.next(),this.curLineStart!==a&&this.curIndent=8&&this.toks.isContextual("await")&&(this.inAsync||this.toks.inModule&&this.options.ecmaVersion>=13||!this.inFunction&&this.options.allowAwaitOutsideFunction))t=this.parseAwait(),e=!0;else if(this.tok.type.prefix){var r=this.startNode(),i=this.tok.type===types$1.incDec;i||(e=!0),r.operator=this.tok.value,r.prefix=!0,this.next(),r.argument=this.parseMaybeUnary(!0),i&&(r.argument=this.checkLVal(r.argument)),t=this.finishNode(r,i?"UpdateExpression":"UnaryExpression")}else if(this.tok.type===types$1.ellipsis){var a=this.startNode();this.next(),a.argument=this.parseMaybeUnary(e),t=this.finishNode(a,"SpreadElement")}else if(e||this.tok.type!==types$1.privateId)for(t=this.parseExprSubscripts();this.tok.type.postfix&&!this.canInsertSemicolon();){var o=this.startNodeAt(n);o.operator=this.tok.value,o.prefix=!1,o.argument=this.checkLVal(t),this.next(),t=this.finishNode(o,"UpdateExpression")}else t=this.parsePrivateIdent();if(!e&&this.eat(types$1.starstar)){var s=this.startNodeAt(n);return s.operator="**",s.left=t,s.right=this.parseMaybeUnary(!1),this.finishNode(s,"BinaryExpression")}return t},lp.parseExprSubscripts=function(){var e=this.storeCurrentPos();return this.parseSubscripts(this.parseExprAtom(),e,!1,this.curIndent,this.curLineStart)},lp.parseSubscripts=function(e,t,n,r,i){for(var a=this.options.ecmaVersion>=11,o=!1;;){if(this.curLineStart!==i&&this.curIndent<=r&&this.tokenStartsLine()){if(this.tok.type!==types$1.dot||this.curIndent!==r)break;--r}var s="Identifier"===e.type&&"async"===e.name&&!this.canInsertSemicolon(),c=a&&this.eat(types$1.questionDot);if(c&&(o=!0),c&&this.tok.type!==types$1.parenL&&this.tok.type!==types$1.bracketL&&this.tok.type!==types$1.backQuote||this.eat(types$1.dot)){var l=this.startNodeAt(t);l.object=e,this.curLineStart!==i&&this.curIndent<=r&&this.tokenStartsLine()?l.property=this.dummyIdent():l.property=this.parsePropertyAccessor()||this.dummyIdent(),l.computed=!1,a&&(l.optional=c),e=this.finishNode(l,"MemberExpression")}else if(this.tok.type===types$1.bracketL){this.pushCx(),this.next();var u=this.startNodeAt(t);u.object=e,u.property=this.parseExpression(),u.computed=!0,a&&(u.optional=c),this.popCx(),this.expect(types$1.bracketR),e=this.finishNode(u,"MemberExpression")}else if(n||this.tok.type!==types$1.parenL){if(this.tok.type!==types$1.backQuote)break;var d=this.startNodeAt(t);d.tag=e,d.quasi=this.parseTemplate(),e=this.finishNode(d,"TaggedTemplateExpression")}else{var p=this.parseExprList(types$1.parenR);if(s&&this.eat(types$1.arrow))return this.parseArrowExpression(this.startNodeAt(t),p,!0);var m=this.startNodeAt(t);m.callee=e,m.arguments=p,a&&(m.optional=c),e=this.finishNode(m,"CallExpression")}}if(o){var f=this.startNodeAt(t);f.expression=e,e=this.finishNode(f,"ChainExpression")}return e},lp.parseExprAtom=function(){var e;switch(this.tok.type){case types$1._this:case types$1._super:var t=this.tok.type===types$1._this?"ThisExpression":"Super";return e=this.startNode(),this.next(),this.finishNode(e,t);case types$1.name:var n=this.storeCurrentPos(),r=this.parseIdent(),i=!1;if("async"===r.name&&!this.canInsertSemicolon()){if(this.eat(types$1._function))return this.toks.overrideContext(types$2.f_expr),this.parseFunction(this.startNodeAt(n),!1,!0);this.tok.type===types$1.name&&(r=this.parseIdent(),i=!0)}return this.eat(types$1.arrow)?this.parseArrowExpression(this.startNodeAt(n),[r],i):r;case types$1.regexp:e=this.startNode();var a=this.tok.value;return e.regex={pattern:a.pattern,flags:a.flags},e.value=a.value,e.raw=this.input.slice(this.tok.start,this.tok.end),this.next(),this.finishNode(e,"Literal");case types$1.num:case types$1.string:return(e=this.startNode()).value=this.tok.value,e.raw=this.input.slice(this.tok.start,this.tok.end),this.tok.type===types$1.num&&110===e.raw.charCodeAt(e.raw.length-1)&&(e.bigint=null!=e.value?e.value.toString():e.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(e,"Literal");case types$1._null:case types$1._true:case types$1._false:return(e=this.startNode()).value=this.tok.type===types$1._null?null:this.tok.type===types$1._true,e.raw=this.tok.type.keyword,this.next(),this.finishNode(e,"Literal");case types$1.parenL:var o=this.storeCurrentPos();this.next();var s=this.parseExpression();if(this.expect(types$1.parenR),this.eat(types$1.arrow)){var c=s.expressions||[s];return c.length&&isDummy(c[c.length-1])&&c.pop(),this.parseArrowExpression(this.startNodeAt(o),c)}if(this.options.preserveParens){var l=this.startNodeAt(o);l.expression=s,s=this.finishNode(l,"ParenthesizedExpression")}return s;case types$1.bracketL:return(e=this.startNode()).elements=this.parseExprList(types$1.bracketR,!0),this.finishNode(e,"ArrayExpression");case types$1.braceL:return this.toks.overrideContext(types$2.b_expr),this.parseObj();case types$1._class:return this.parseClass(!1);case types$1._function:return e=this.startNode(),this.next(),this.parseFunction(e,!1);case types$1._new:return this.parseNew();case types$1.backQuote:return this.parseTemplate();case types$1._import:return this.options.ecmaVersion>=11?this.parseExprImport():this.dummyIdent();default:return this.dummyIdent()}},lp.parseExprImport=function(){var e=this.startNode(),t=this.parseIdent(!0);switch(this.tok.type){case types$1.parenL:return this.parseDynamicImport(e);case types$1.dot:return e.meta=t,this.parseImportMeta(e);default:return e.name="import",this.finishNode(e,"Identifier")}},lp.parseDynamicImport=function(e){var t=this.parseExprList(types$1.parenR);return e.source=t[0]||this.dummyString(),e.options=t[1]||null,this.finishNode(e,"ImportExpression")},lp.parseImportMeta=function(e){return this.next(),e.property=this.parseIdent(!0),this.finishNode(e,"MetaProperty")},lp.parseNew=function(){var e=this.startNode(),t=this.curIndent,n=this.curLineStart,r=this.parseIdent(!0);if(this.options.ecmaVersion>=6&&this.eat(types$1.dot))return e.meta=r,e.property=this.parseIdent(!0),this.finishNode(e,"MetaProperty");var i=this.storeCurrentPos();return e.callee=this.parseSubscripts(this.parseExprAtom(),i,!0,t,n),this.tok.type===types$1.parenL?e.arguments=this.parseExprList(types$1.parenR):e.arguments=[],this.finishNode(e,"NewExpression")},lp.parseTemplateElement=function(){var e=this.startNode();return this.tok.type===types$1.invalidTemplate?e.value={raw:this.tok.value,cooked:null}:e.value={raw:this.input.slice(this.tok.start,this.tok.end).replace(/\r\n?/g,"\n"),cooked:this.tok.value},this.next(),e.tail=this.tok.type===types$1.backQuote,this.finishNode(e,"TemplateElement")},lp.parseTemplate=function(){var e=this.startNode();this.next(),e.expressions=[];var t=this.parseTemplateElement();for(e.quasis=[t];!t.tail;)this.next(),e.expressions.push(this.parseExpression()),this.expect(types$1.braceR)?t=this.parseTemplateElement():((t=this.startNode()).value={cooked:"",raw:""},t.tail=!0,this.finishNode(t,"TemplateElement")),e.quasis.push(t);return this.expect(types$1.backQuote),this.finishNode(e,"TemplateLiteral")},lp.parseObj=function(){var e=this.startNode();e.properties=[],this.pushCx();var t=this.curIndent+1,n=this.curLineStart;for(this.eat(types$1.braceL),this.curIndent+1=9&&this.eat(types$1.ellipsis))r.argument=this.parseMaybeAssign(),e.properties.push(this.finishNode(r,"SpreadElement")),this.eat(types$1.comma);else if(this.options.ecmaVersion>=6&&(o=this.storeCurrentPos(),r.method=!1,r.shorthand=!1,i=this.eat(types$1.star)),this.parsePropertyName(r),this.toks.isAsyncProp(r)?(a=!0,i=this.options.ecmaVersion>=9&&this.eat(types$1.star),this.parsePropertyName(r)):a=!1,isDummy(r.key))isDummy(this.parseMaybeAssign())&&this.next(),this.eat(types$1.comma);else{if(this.eat(types$1.colon))r.kind="init",r.value=this.parseMaybeAssign();else if(this.options.ecmaVersion>=6&&(this.tok.type===types$1.parenL||this.tok.type===types$1.braceL))r.kind="init",r.method=!0,r.value=this.parseMethod(i,a);else if(this.options.ecmaVersion>=5&&"Identifier"===r.key.type&&!r.computed&&("get"===r.key.name||"set"===r.key.name)&&this.tok.type!==types$1.comma&&this.tok.type!==types$1.braceR&&this.tok.type!==types$1.eq)r.kind=r.key.name,this.parsePropertyName(r),r.value=this.parseMethod(!1);else{if(r.kind="init",this.options.ecmaVersion>=6)if(this.eat(types$1.eq)){var s=this.startNodeAt(o);s.operator="=",s.left=r.key,s.right=this.parseMaybeAssign(),r.value=this.finishNode(s,"AssignmentExpression")}else r.value=r.key;else r.value=this.dummyIdent();r.shorthand=!0}e.properties.push(this.finishNode(r,"Property")),this.eat(types$1.comma)}}return this.popCx(),this.eat(types$1.braceR)||(this.last.end=this.tok.start,this.options.locations&&(this.last.loc.end=this.tok.loc.start)),this.finishNode(e,"ObjectExpression")},lp.parsePropertyName=function(e){if(this.options.ecmaVersion>=6){if(this.eat(types$1.bracketL))return e.computed=!0,e.key=this.parseExpression(),void this.expect(types$1.bracketR);e.computed=!1}var t=this.tok.type===types$1.num||this.tok.type===types$1.string?this.parseExprAtom():this.parseIdent();e.key=t||this.dummyIdent()},lp.parsePropertyAccessor=function(){return this.tok.type===types$1.name||this.tok.type.keyword?this.parseIdent():this.tok.type===types$1.privateId?this.parsePrivateIdent():void 0},lp.parseIdent=function(){var e=this.tok.type===types$1.name?this.tok.value:this.tok.type.keyword;if(!e)return this.dummyIdent();this.tok.type.keyword&&(this.toks.type=types$1.name);var t=this.startNode();return this.next(),t.name=e,this.finishNode(t,"Identifier")},lp.parsePrivateIdent=function(){var e=this.startNode();return e.name=this.tok.value,this.next(),this.finishNode(e,"PrivateIdentifier")},lp.initFunction=function(e){e.id=null,e.params=[],this.options.ecmaVersion>=6&&(e.generator=!1,e.expression=!1),this.options.ecmaVersion>=8&&(e.async=!1)},lp.toAssignable=function(e,t){if(!e||"Identifier"===e.type||"MemberExpression"===e.type&&!t);else if("ParenthesizedExpression"===e.type)this.toAssignable(e.expression,t);else{if(this.options.ecmaVersion<6)return this.dummyIdent();if("ObjectExpression"===e.type){e.type="ObjectPattern";for(var n=0,r=e.properties;n=6&&(n.generator=!!e),this.options.ecmaVersion>=8&&(n.async=!!t),this.inAsync=n.async,this.inGenerator=n.generator,this.inFunction=!0,n.params=this.parseFunctionParams(),n.body=this.parseBlock(),this.toks.adaptDirectivePrologue(n.body.body),this.inAsync=r,this.inGenerator=i,this.inFunction=a,this.finishNode(n,"FunctionExpression")},lp.parseArrowExpression=function(e,t,n){var r=this.inAsync,i=this.inGenerator,a=this.inFunction;return this.initFunction(e),this.options.ecmaVersion>=8&&(e.async=!!n),this.inAsync=e.async,this.inGenerator=!1,this.inFunction=!0,e.params=this.toAssignableList(t,!0),e.expression=this.tok.type!==types$1.braceL,e.expression?e.body=this.parseMaybeAssign():(e.body=this.parseBlock(),this.toks.adaptDirectivePrologue(e.body.body)),this.inAsync=r,this.inGenerator=i,this.inFunction=a,this.finishNode(e,"ArrowFunctionExpression")},lp.parseExprList=function(e,t){this.pushCx();var n=this.curIndent,r=this.curLineStart,i=[];for(this.next();!this.closes(e,n+1,r);)if(this.eat(types$1.comma))i.push(t?null:this.dummyIdent());else{var a=this.parseMaybeAssign();if(isDummy(a)){if(this.closes(e,n,r))break;this.next()}else i.push(a);this.eat(types$1.comma)}return this.popCx(),this.eat(e)||(this.last.end=this.tok.start,this.options.locations&&(this.last.loc.end=this.tok.loc.start)),i},lp.parseAwait=function(){var e=this.startNode();return this.next(),e.argument=this.parseMaybeUnary(),this.finishNode(e,"AwaitExpression")},defaultOptions.tabSize=4;const createAcornParserOptions=(e,t,n,r)=>({ecmaVersion:e,sourceType:"module",locations:!0,onInsertedSemicolon(e,r){const i=new MissingSemicolonError(positionToSourceLocation(r,n?.sourceFile));t?.push(i)},onTrailingComma(e,r){const i=new TrailingCommaError(positionToSourceLocation(r,n?.sourceFile));t?.push(i)},...n});function parseAt(e,t,n=DEFAULT_ECMA_VERSION){try{return parseExpressionAt(e,t,{ecmaVersion:n})}catch{return null}}function parseWithComments(e,t=DEFAULT_ECMA_VERSION){let n=[];const r=createAcornParserOptions(t,void 0,{onComment:n});let i;try{i=parse$6(e,r)}catch{n=[],i=parse$5(e,r)}return[i,n]}function looseParse(e,t){return parse$5(e,createAcornParserOptions(DEFAULT_ECMA_VERSION,t.errors))}const positionToSourceLocation=(e,t)=>({start:{...e},end:{...e,column:e.column+1},source:t}),defaultBabelOptions={sourceType:"module",plugins:["typescript","estree"]};class FullJSParser{parse(e,t,n,r){try{return parse$6(e,{sourceType:"module",ecmaVersion:"latest",locations:!0,...n})}catch(e){if(e instanceof SyntaxError&&(e=new FatalSyntaxError(positionToSourceLocation(e.loc),e.toString())),r)throw e;t.errors.push(e)}return null}validate(e,t,n){return!0}toString(){return"FullJSParser"}}var lib={},hasRequiredLib;function requireLib(){if(hasRequiredLib)return lib;function e(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}hasRequiredLib=1,Object.defineProperty(lib,"__esModule",{value:!0});class t{constructor(e,t,n){this.line=void 0,this.column=void 0,this.index=void 0,this.line=e,this.column=t,this.index=n}}class n{constructor(e,t){this.start=void 0,this.end=void 0,this.filename=void 0,this.identifierName=void 0,this.start=e,this.end=t}}function r(e,n){const{line:r,column:i,index:a}=e;return new t(r,i+n,a+n)}const i="BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED";var a={ImportMetaOutsideModule:{message:"import.meta may appear only with 'sourceType: \"module\"'",code:i},ImportOutsideModule:{message:"'import' and 'export' may appear only with 'sourceType: \"module\"'",code:i}};const o={ArrayPattern:"array destructuring pattern",AssignmentExpression:"assignment expression",AssignmentPattern:"assignment expression",ArrowFunctionExpression:"arrow function expression",ConditionalExpression:"conditional expression",CatchClause:"catch clause",ForOfStatement:"for-of statement",ForInStatement:"for-in statement",ForStatement:"for-loop",FormalParameters:"function parameter list",Identifier:"identifier",ImportSpecifier:"import specifier",ImportDefaultSpecifier:"import default specifier",ImportNamespaceSpecifier:"import namespace specifier",ObjectPattern:"object destructuring pattern",ParenthesizedExpression:"parenthesized expression",RestElement:"rest element",UpdateExpression:{true:"prefix operation",false:"postfix operation"},VariableDeclarator:"variable declaration",YieldExpression:"yield expression"},s=e=>"UpdateExpression"===e.type?o.UpdateExpression[`${e.prefix}`]:o[e.type];var c={AccessorIsGenerator:({kind:e})=>`A ${e}ter cannot be a generator.`,ArgumentsInClass:"'arguments' is only allowed in functions and class methods.",AsyncFunctionInSingleStatementContext:"Async functions can only be declared at the top level or inside a block.",AwaitBindingIdentifier:"Can not use 'await' as identifier inside an async function.",AwaitBindingIdentifierInStaticBlock:"Can not use 'await' as identifier inside a static block.",AwaitExpressionFormalParameter:"'await' is not allowed in async function parameters.",AwaitUsingNotInAsyncContext:"'await using' is only allowed within async functions and at the top levels of modules.",AwaitNotInAsyncContext:"'await' is only allowed within async functions and at the top levels of modules.",BadGetterArity:"A 'get' accessor must not have any formal parameters.",BadSetterArity:"A 'set' accessor must have exactly one formal parameter.",BadSetterRestParameter:"A 'set' accessor function argument must not be a rest parameter.",ConstructorClassField:"Classes may not have a field named 'constructor'.",ConstructorClassPrivateField:"Classes may not have a private field named '#constructor'.",ConstructorIsAccessor:"Class constructor may not be an accessor.",ConstructorIsAsync:"Constructor can't be an async function.",ConstructorIsGenerator:"Constructor can't be a generator.",DeclarationMissingInitializer:({kind:e})=>`Missing initializer in ${e} declaration.`,DecoratorArgumentsOutsideParentheses:"Decorator arguments must be moved inside parentheses: use '@(decorator(args))' instead of '@(decorator)(args)'.",DecoratorBeforeExport:"Decorators must be placed *before* the 'export' keyword. Remove the 'decoratorsBeforeExport: true' option to use the 'export @decorator class {}' syntax.",DecoratorsBeforeAfterExport:"Decorators can be placed *either* before or after the 'export' keyword, but not in both locations at the same time.",DecoratorConstructor:"Decorators can't be used with a constructor. Did you mean '@dec class { ... }'?",DecoratorExportClass:"Decorators must be placed *after* the 'export' keyword. Remove the 'decoratorsBeforeExport: false' option to use the '@decorator export class {}' syntax.",DecoratorSemicolon:"Decorators must not be followed by a semicolon.",DecoratorStaticBlock:"Decorators can't be used with a static block.",DeferImportRequiresNamespace:'Only `import defer * as x from "./module"` is valid.',DeletePrivateField:"Deleting a private field is not allowed.",DestructureNamedImport:"ES2015 named imports do not destructure. Use another statement for destructuring after the import.",DuplicateConstructor:"Duplicate constructor in the same class.",DuplicateDefaultExport:"Only one default export allowed per module.",DuplicateExport:({exportName:e})=>`\`${e}\` has already been exported. Exported identifiers must be unique.`,DuplicateProto:"Redefinition of __proto__ property.",DuplicateRegExpFlags:"Duplicate regular expression flag.",ElementAfterRest:"Rest element must be last element.",EscapedCharNotAnIdentifier:"Invalid Unicode escape.",ExportBindingIsString:({localName:e,exportName:t})=>`A string literal cannot be used as an exported binding without \`from\`.\n- Did you mean \`export { '${e}' as '${t}' } from 'some-module'\`?`,ExportDefaultFromAsIdentifier:"'from' is not allowed as an identifier after 'export default'.",ForInOfLoopInitializer:({type:e})=>`'${"ForInStatement"===e?"for-in":"for-of"}' loop variable declaration may not have an initializer.`,ForInUsing:"For-in loop may not start with 'using' declaration.",ForOfAsync:"The left-hand side of a for-of loop may not be 'async'.",ForOfLet:"The left-hand side of a for-of loop may not start with 'let'.",GeneratorInSingleStatementContext:"Generators can only be declared at the top level or inside a block.",IllegalBreakContinue:({type:e})=>`Unsyntactic ${"BreakStatement"===e?"break":"continue"}.`,IllegalLanguageModeDirective:"Illegal 'use strict' directive in function with non-simple parameter list.",IllegalReturn:"'return' outside of function.",ImportAttributesUseAssert:"The `assert` keyword in import attributes is deprecated and it has been replaced by the `with` keyword. You can enable the `deprecatedImportAssert` parser plugin to suppress this error.",ImportBindingIsString:({importName:e})=>`A string literal cannot be used as an imported binding.\n- Did you mean \`import { "${e}" as foo }\`?`,ImportCallArity:"`import()` requires exactly one or two arguments.",ImportCallNotNewExpression:"Cannot use new with import(...).",ImportCallSpreadArgument:"`...` is not allowed in `import()`.",ImportJSONBindingNotDefault:"A JSON module can only be imported with `default`.",ImportReflectionHasAssertion:"`import module x` cannot have assertions.",ImportReflectionNotBinding:'Only `import module x from "./module"` is valid.',IncompatibleRegExpUVFlags:"The 'u' and 'v' regular expression flags cannot be enabled at the same time.",InvalidBigIntLiteral:"Invalid BigIntLiteral.",InvalidCodePoint:"Code point out of bounds.",InvalidCoverDiscardElement:"'void' must be followed by an expression when not used in a binding position.",InvalidCoverInitializedName:"Invalid shorthand property initializer.",InvalidDecimal:"Invalid decimal.",InvalidDigit:({radix:e})=>`Expected number in radix ${e}.`,InvalidEscapeSequence:"Bad character escape sequence.",InvalidEscapeSequenceTemplate:"Invalid escape sequence in template.",InvalidEscapedReservedWord:({reservedWord:e})=>`Escape sequence in keyword ${e}.`,InvalidIdentifier:({identifierName:e})=>`Invalid identifier ${e}.`,InvalidLhs:({ancestor:e})=>`Invalid left-hand side in ${s(e)}.`,InvalidLhsBinding:({ancestor:e})=>`Binding invalid left-hand side in ${s(e)}.`,InvalidLhsOptionalChaining:({ancestor:e})=>`Invalid optional chaining in the left-hand side of ${s(e)}.`,InvalidNumber:"Invalid number.",InvalidOrMissingExponent:"Floating-point numbers require a valid exponent after the 'e'.",InvalidOrUnexpectedToken:({unexpected:e})=>`Unexpected character '${e}'.`,InvalidParenthesizedAssignment:"Invalid parenthesized assignment pattern.",InvalidPrivateFieldResolution:({identifierName:e})=>`Private name #${e} is not defined.`,InvalidPropertyBindingPattern:"Binding member expression.",InvalidRecordProperty:"Only properties and spread elements are allowed in record definitions.",InvalidRestAssignmentPattern:"Invalid rest operator's argument.",LabelRedeclaration:({labelName:e})=>`Label '${e}' is already declared.`,LetInLexicalBinding:"'let' is disallowed as a lexically bound name.",LineTerminatorBeforeArrow:"No line break is allowed before '=>'.",MalformedRegExpFlags:"Invalid regular expression flag.",MissingClassName:"A class name is required.",MissingEqInAssignment:"Only '=' operator can be used for specifying default value.",MissingSemicolon:"Missing semicolon.",MissingPlugin:({missingPlugin:e})=>`This experimental syntax requires enabling the parser plugin: ${e.map(e=>JSON.stringify(e)).join(", ")}.`,MissingOneOfPlugins:({missingPlugin:e})=>`This experimental syntax requires enabling one of the following parser plugin(s): ${e.map(e=>JSON.stringify(e)).join(", ")}.`,MissingUnicodeEscape:"Expecting Unicode escape sequence \\uXXXX.",MixingCoalesceWithLogical:"Nullish coalescing operator(??) requires parens when mixing with logical operators.",ModuleAttributeDifferentFromType:"The only accepted module attribute is `type`.",ModuleAttributeInvalidValue:"Only string literals are allowed as module attribute values.",ModuleAttributesWithDuplicateKeys:({key:e})=>`Duplicate key "${e}" is not allowed in module attributes.`,ModuleExportNameHasLoneSurrogate:({surrogateCharCode:e})=>`An export name cannot include a lone surrogate, found '\\u${e.toString(16)}'.`,ModuleExportUndefined:({localName:e})=>`Export '${e}' is not defined.`,MultipleDefaultsInSwitch:"Multiple default clauses.",NewlineAfterThrow:"Illegal newline after throw.",NoCatchOrFinally:"Missing catch or finally clause.",NumberIdentifier:"Identifier directly after number.",NumericSeparatorInEscapeSequence:"Numeric separators are not allowed inside unicode escape sequences or hex escape sequences.",ObsoleteAwaitStar:"'await*' has been removed from the async functions proposal. Use Promise.all() instead.",OptionalChainingNoNew:"Constructors in/after an Optional Chain are not allowed.",OptionalChainingNoTemplate:"Tagged Template Literals are not allowed in optionalChain.",OverrideOnConstructor:"'override' modifier cannot appear on a constructor declaration.",ParamDupe:"Argument name clash.",PatternHasAccessor:"Object pattern can't contain getter or setter.",PatternHasMethod:"Object pattern can't contain methods.",PrivateInExpectedIn:({identifierName:e})=>`Private names are only allowed in property accesses (\`obj.#${e}\`) or in \`in\` expressions (\`#${e} in obj\`).`,PrivateNameRedeclaration:({identifierName:e})=>`Duplicate private name #${e}.`,RecordExpressionBarIncorrectEndSyntaxType:"Record expressions ending with '|}' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",RecordExpressionBarIncorrectStartSyntaxType:"Record expressions starting with '{|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",RecordExpressionHashIncorrectStartSyntaxType:"Record expressions starting with '#{' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.",RecordNoProto:"'__proto__' is not allowed in Record expressions.",RestTrailingComma:"Unexpected trailing comma after rest element.",SloppyFunction:"In non-strict mode code, functions can only be declared at top level or inside a block.",SloppyFunctionAnnexB:"In non-strict mode code, functions can only be declared at top level, inside a block, or as the body of an if statement.",SourcePhaseImportRequiresDefault:'Only `import source x from "./module"` is valid.',StaticPrototype:"Classes may not have static property named prototype.",SuperNotAllowed:"`super()` is only valid inside a class constructor of a subclass. Maybe a typo in the method name ('constructor') or not extending another class?",SuperPrivateField:"Private fields can't be accessed on super.",TrailingDecorator:"Decorators must be attached to a class element.",TupleExpressionBarIncorrectEndSyntaxType:"Tuple expressions ending with '|]' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",TupleExpressionBarIncorrectStartSyntaxType:"Tuple expressions starting with '[|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",TupleExpressionHashIncorrectStartSyntaxType:"Tuple expressions starting with '#[' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.",UnexpectedArgumentPlaceholder:"Unexpected argument placeholder.",UnexpectedAwaitAfterPipelineBody:'Unexpected "await" after pipeline body; await must have parentheses in minimal proposal.',UnexpectedDigitAfterHash:"Unexpected digit after hash token.",UnexpectedImportExport:"'import' and 'export' may only appear at the top level.",UnexpectedKeyword:({keyword:e})=>`Unexpected keyword '${e}'.`,UnexpectedLeadingDecorator:"Leading decorators must be attached to a class declaration.",UnexpectedLexicalDeclaration:"Lexical declaration cannot appear in a single-statement context.",UnexpectedNewTarget:"`new.target` can only be used in functions or class properties.",UnexpectedNumericSeparator:"A numeric separator is only allowed between two digits.",UnexpectedPrivateField:"Unexpected private name.",UnexpectedReservedWord:({reservedWord:e})=>`Unexpected reserved word '${e}'.`,UnexpectedSuper:"'super' is only allowed in object methods and classes.",UnexpectedToken:({expected:e,unexpected:t})=>`Unexpected token${t?` '${t}'.`:""}${e?`, expected "${e}"`:""}`,UnexpectedTokenUnaryExponentiation:"Illegal expression. Wrap left hand side or entire exponentiation in parentheses.",UnexpectedUsingDeclaration:"Using declaration cannot appear in the top level when source type is `script` or in the bare case statement.",UnexpectedVoidPattern:"Unexpected void binding.",UnsupportedBind:"Binding should be performed on object property.",UnsupportedDecoratorExport:"A decorated export must export a class declaration.",UnsupportedDefaultExport:"Only expressions, functions or classes are allowed as the `default` export.",UnsupportedImport:"`import` can only be used in `import()` or `import.meta`.",UnsupportedMetaProperty:({target:e,onlyValidPropertyName:t})=>`The only valid meta property for ${e} is ${e}.${t}.`,UnsupportedParameterDecorator:"Decorators cannot be used to decorate parameters.",UnsupportedPropertyDecorator:"Decorators cannot be used to decorate object literal properties.",UnsupportedSuper:"'super' can only be used with function calls (i.e. super()) or in property accesses (i.e. super.prop or super[prop]).",UnterminatedComment:"Unterminated comment.",UnterminatedRegExp:"Unterminated regular expression.",UnterminatedString:"Unterminated string constant.",UnterminatedTemplate:"Unterminated template.",UsingDeclarationExport:"Using declaration cannot be exported.",UsingDeclarationHasBindingPattern:"Using declaration cannot have destructuring patterns.",VarRedeclaration:({identifierName:e})=>`Identifier '${e}' has already been declared.`,VoidPatternCatchClauseParam:"A void binding can not be the catch clause parameter. Use `try { ... } catch { ... }` if you want to discard the caught error.",VoidPatternInitializer:"A void binding may not have an initializer.",YieldBindingIdentifier:"Can not use 'yield' as identifier inside a generator.",YieldInParameter:"Yield expression is not allowed in formal parameters.",YieldNotInGeneratorFunction:"'yield' is only allowed within generator functions.",ZeroDigitNumericSeparator:"Numeric separator can not be used after leading 0."},l={ParseExpressionEmptyInput:"Unexpected parseExpression() input: The input is empty or contains only comments.",ParseExpressionExpectsEOF:({unexpected:e})=>`Unexpected parseExpression() input: The input should contain exactly one expression, but the first expression is followed by the unexpected character \`${String.fromCodePoint(e)}\`.`};const u=new Set(["ArrowFunctionExpression","AssignmentExpression","ConditionalExpression","YieldExpression"]);var d=Object.assign({PipeBodyIsTighter:"Unexpected yield after pipeline body; any yield expression acting as Hack-style pipe body must be parenthesized due to its loose operator precedence.",PipeTopicRequiresHackPipes:'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.',PipeTopicUnbound:"Topic reference is unbound; it must be inside a pipe body.",PipeTopicUnconfiguredToken:({token:e})=>`Invalid topic token ${e}. In order to use ${e} as a topic reference, the pipelineOperator plugin must be configured with { "proposal": "hack", "topicToken": "${e}" }.`,PipeTopicUnused:"Hack-style pipe body does not contain a topic reference; Hack-style pipes must use topic at least once.",PipeUnparenthesizedBody:({type:e})=>`Hack-style pipe body cannot be an unparenthesized ${s({type:e})}; please wrap it in parentheses.`},{PipelineBodyNoArrow:'Unexpected arrow "=>" after pipeline body; arrow function in pipeline body must be parenthesized.',PipelineBodySequenceExpression:"Pipeline body may not be a comma-separated sequence expression.",PipelineHeadSequenceExpression:"Pipeline head should not be a comma-separated sequence expression.",PipelineTopicUnused:"Pipeline is in topic style but does not use topic reference.",PrimaryTopicNotAllowed:"Topic reference was used in a lexical context without topic binding.",PrimaryTopicRequiresSmartPipeline:'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.'});const p=["message"];function m(e,t,n){Object.defineProperty(e,t,{enumerable:!1,configurable:!0,value:n})}function f({toMessage:e,code:n,reasonCode:r,syntaxPlugin:i}){const a="MissingPlugin"===r||"MissingOneOfPlugins"===r,o={AccessorCannotDeclareThisParameter:"AccesorCannotDeclareThisParameter",AccessorCannotHaveTypeParameters:"AccesorCannotHaveTypeParameters",ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference:"ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference",SetAccessorCannotHaveOptionalParameter:"SetAccesorCannotHaveOptionalParameter",SetAccessorCannotHaveRestParameter:"SetAccesorCannotHaveRestParameter",SetAccessorCannotHaveReturnType:"SetAccesorCannotHaveReturnType"};return o[r]&&(r=o[r]),function o(s,c){const l=new SyntaxError;return l.code=n,l.reasonCode=r,l.loc=s,l.pos=s.index,l.syntaxPlugin=i,a&&(l.missingPlugin=c.missingPlugin),m(l,"clone",function(e={}){var n;const{line:r,column:i,index:a}=null!=(n=e.loc)?n:s;return o(new t(r,i,a),Object.assign({},c,e.details))}),m(l,"details",c),Object.defineProperty(l,"message",{configurable:!0,get(){const t=`${e(c)} (${s.line}:${s.column})`;return this.message=t,t},set(e){Object.defineProperty(this,"message",{value:e,writable:!0})}}),l}}function _(t,n){if(Array.isArray(t))return e=>_(e,t[0]);const r={};for(const i of Object.keys(t)){const a=t[i],o="string"==typeof a?{message:()=>a}:"function"==typeof a?{message:a}:a,{message:s}=o,c=e(o,p),l="string"==typeof s?()=>s:s;r[i]=f(Object.assign({code:"BABEL_PARSER_SYNTAX_ERROR",reasonCode:i,toMessage:l},n?{syntaxPlugin:n}:{},c))}return r}const h=Object.assign({},_(a),_(c),_({StrictDelete:"Deleting local variable in strict mode.",StrictEvalArguments:({referenceName:e})=>`Assigning to '${e}' in strict mode.`,StrictEvalArgumentsBinding:({bindingName:e})=>`Binding '${e}' in strict mode.`,StrictFunction:"In strict mode code, functions can only be declared at top level or inside a block.",StrictNumericEscape:"The only valid numeric escape in strict mode is '\\0'.",StrictOctalLiteral:"Legacy octal literals are not allowed in strict mode.",StrictWith:"'with' in strict mode."}),_(l),_`pipelineOperator`(d)),{defineProperty:g}=Object,y=(e,t)=>{e&&g(e,t,{enumerable:!1,value:e[t]})};function v(e){return y(e.loc.start,"index"),y(e.loc.end,"index"),e}class b{constructor(e,t){this.token=void 0,this.preserveSpace=void 0,this.token=e,this.preserveSpace=!!t}}const E={brace:new b("{"),j_oTag:new b("...",!0)};E.template=new b("`",!0);const x=!0,S=!0,T=!0,C=!0,D=!0;class L{constructor(e,t={}){this.label=void 0,this.keyword=void 0,this.beforeExpr=void 0,this.startsExpr=void 0,this.rightAssociative=void 0,this.isLoop=void 0,this.isAssign=void 0,this.prefix=void 0,this.postfix=void 0,this.binop=void 0,this.label=e,this.keyword=t.keyword,this.beforeExpr=!!t.beforeExpr,this.startsExpr=!!t.startsExpr,this.rightAssociative=!!t.rightAssociative,this.isLoop=!!t.isLoop,this.isAssign=!!t.isAssign,this.prefix=!!t.prefix,this.postfix=!!t.postfix,this.binop=null!=t.binop?t.binop:null,this.updateContext=null}}const A=new Map;function N(e,t={}){t.keyword=e;const n=G(e,t);return A.set(e,n),n}function k(e,t){return G(e,{beforeExpr:x,binop:t})}let I=-1;const P=[],w=[],O=[],R=[],M=[],F=[];function G(e,t={}){var n,r,i,a;return++I,w.push(e),O.push(null!=(n=t.binop)?n:-1),R.push(null!=(r=t.beforeExpr)&&r),M.push(null!=(i=t.startsExpr)&&i),F.push(null!=(a=t.prefix)&&a),P.push(new L(e,t)),I}function B(e,t={}){var n,r,i,a;return++I,A.set(e,I),w.push(e),O.push(null!=(n=t.binop)?n:-1),R.push(null!=(r=t.beforeExpr)&&r),M.push(null!=(i=t.startsExpr)&&i),F.push(null!=(a=t.prefix)&&a),P.push(new L("name",t)),I}const U={bracketL:G("[",{beforeExpr:x,startsExpr:S}),bracketHashL:G("#[",{beforeExpr:x,startsExpr:S}),bracketBarL:G("[|",{beforeExpr:x,startsExpr:S}),bracketR:G("]"),bracketBarR:G("|]"),braceL:G("{",{beforeExpr:x,startsExpr:S}),braceBarL:G("{|",{beforeExpr:x,startsExpr:S}),braceHashL:G("#{",{beforeExpr:x,startsExpr:S}),braceR:G("}"),braceBarR:G("|}"),parenL:G("(",{beforeExpr:x,startsExpr:S}),parenR:G(")"),comma:G(",",{beforeExpr:x}),semi:G(";",{beforeExpr:x}),colon:G(":",{beforeExpr:x}),doubleColon:G("::",{beforeExpr:x}),dot:G("."),question:G("?",{beforeExpr:x}),questionDot:G("?."),arrow:G("=>",{beforeExpr:x}),template:G("template"),ellipsis:G("...",{beforeExpr:x}),backQuote:G("`",{startsExpr:S}),dollarBraceL:G("${",{beforeExpr:x,startsExpr:S}),templateTail:G("...`",{startsExpr:S}),templateNonTail:G("...${",{beforeExpr:x,startsExpr:S}),at:G("@"),hash:G("#",{startsExpr:S}),interpreterDirective:G("#!..."),eq:G("=",{beforeExpr:x,isAssign:C}),assign:G("_=",{beforeExpr:x,isAssign:C}),slashAssign:G("_=",{beforeExpr:x,isAssign:C}),xorAssign:G("_=",{beforeExpr:x,isAssign:C}),moduloAssign:G("_=",{beforeExpr:x,isAssign:C}),incDec:G("++/--",{prefix:D,postfix:!0,startsExpr:S}),bang:G("!",{beforeExpr:x,prefix:D,startsExpr:S}),tilde:G("~",{beforeExpr:x,prefix:D,startsExpr:S}),doubleCaret:G("^^",{startsExpr:S}),doubleAt:G("@@",{startsExpr:S}),pipeline:k("|>",0),nullishCoalescing:k("??",1),logicalOR:k("||",1),logicalAND:k("&&",2),bitwiseOR:k("|",3),bitwiseXOR:k("^",4),bitwiseAND:k("&",5),equality:k("==/!=/===/!==",6),lt:k("/<=/>=",7),gt:k("/<=/>=",7),relational:k("/<=/>=",7),bitShift:k("<>/>>>",8),bitShiftL:k("<>/>>>",8),bitShiftR:k("<>/>>>",8),plusMin:G("+/-",{beforeExpr:x,binop:9,prefix:D,startsExpr:S}),modulo:G("%",{binop:10,startsExpr:S}),star:G("*",{binop:10}),slash:k("/",10),exponent:G("**",{beforeExpr:x,binop:11,rightAssociative:!0}),_in:N("in",{beforeExpr:x,binop:7}),_instanceof:N("instanceof",{beforeExpr:x,binop:7}),_break:N("break"),_case:N("case",{beforeExpr:x}),_catch:N("catch"),_continue:N("continue"),_debugger:N("debugger"),_default:N("default",{beforeExpr:x}),_else:N("else",{beforeExpr:x}),_finally:N("finally"),_function:N("function",{startsExpr:S}),_if:N("if"),_return:N("return",{beforeExpr:x}),_switch:N("switch"),_throw:N("throw",{beforeExpr:x,prefix:D,startsExpr:S}),_try:N("try"),_var:N("var"),_const:N("const"),_with:N("with"),_new:N("new",{beforeExpr:x,startsExpr:S}),_this:N("this",{startsExpr:S}),_super:N("super",{startsExpr:S}),_class:N("class",{startsExpr:S}),_extends:N("extends",{beforeExpr:x}),_export:N("export"),_import:N("import",{startsExpr:S}),_null:N("null",{startsExpr:S}),_true:N("true",{startsExpr:S}),_false:N("false",{startsExpr:S}),_typeof:N("typeof",{beforeExpr:x,prefix:D,startsExpr:S}),_void:N("void",{beforeExpr:x,prefix:D,startsExpr:S}),_delete:N("delete",{beforeExpr:x,prefix:D,startsExpr:S}),_do:N("do",{isLoop:T,beforeExpr:x}),_for:N("for",{isLoop:T}),_while:N("while",{isLoop:T}),_as:B("as",{startsExpr:S}),_assert:B("assert",{startsExpr:S}),_async:B("async",{startsExpr:S}),_await:B("await",{startsExpr:S}),_defer:B("defer",{startsExpr:S}),_from:B("from",{startsExpr:S}),_get:B("get",{startsExpr:S}),_let:B("let",{startsExpr:S}),_meta:B("meta",{startsExpr:S}),_of:B("of",{startsExpr:S}),_sent:B("sent",{startsExpr:S}),_set:B("set",{startsExpr:S}),_source:B("source",{startsExpr:S}),_static:B("static",{startsExpr:S}),_using:B("using",{startsExpr:S}),_yield:B("yield",{startsExpr:S}),_asserts:B("asserts",{startsExpr:S}),_checks:B("checks",{startsExpr:S}),_exports:B("exports",{startsExpr:S}),_global:B("global",{startsExpr:S}),_implements:B("implements",{startsExpr:S}),_intrinsic:B("intrinsic",{startsExpr:S}),_infer:B("infer",{startsExpr:S}),_is:B("is",{startsExpr:S}),_mixins:B("mixins",{startsExpr:S}),_proto:B("proto",{startsExpr:S}),_require:B("require",{startsExpr:S}),_satisfies:B("satisfies",{startsExpr:S}),_keyof:B("keyof",{startsExpr:S}),_readonly:B("readonly",{startsExpr:S}),_unique:B("unique",{startsExpr:S}),_abstract:B("abstract",{startsExpr:S}),_declare:B("declare",{startsExpr:S}),_enum:B("enum",{startsExpr:S}),_module:B("module",{startsExpr:S}),_namespace:B("namespace",{startsExpr:S}),_interface:B("interface",{startsExpr:S}),_type:B("type",{startsExpr:S}),_opaque:B("opaque",{startsExpr:S}),name:G("name",{startsExpr:S}),placeholder:G("%%",{startsExpr:S}),string:G("string",{startsExpr:S}),num:G("num",{startsExpr:S}),bigint:G("bigint",{startsExpr:S}),decimal:G("decimal",{startsExpr:S}),regexp:G("regexp",{startsExpr:S}),privateName:G("#name",{startsExpr:S}),eof:G("eof"),jsxName:G("jsxName"),jsxText:G("jsxText",{beforeExpr:x}),jsxTagStart:G("jsxTagStart",{startsExpr:S}),jsxTagEnd:G("jsxTagEnd")};function V(e){return e>=93&&e<=133}function K(e){return e>=58&&e<=133}function j(e){return e>=58&&e<=137}function H(e){return M[e]}function W(e){return e>=129&&e<=131}function $(e){return e>=58&&e<=92}function q(e){return 34===e}function z(e){return w[e]}function J(e){return O[e]}function X(e){return e>=24&&e<=25}function Y(e){return P[e]}P[8].updateContext=e=>{e.pop()},P[5].updateContext=P[7].updateContext=P[23].updateContext=e=>{e.push(E.brace)},P[22].updateContext=e=>{e[e.length-1]===E.template?e.pop():e.push(E.template)},P[143].updateContext=e=>{e.push(E.j_expr,E.j_oTag)};let Q="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-࢏ࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚ౜ౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽ೜-ೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲊᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-Ƛ꟱-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",Z="·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࢗ-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-᫝᫠-᫫ᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‌‍‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・";const ee=new RegExp("["+Q+"]"),te=new RegExp("["+Q+Z+"]");Q=Z=null;const ne=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,7,25,39,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,5,57,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,24,43,261,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,33,24,3,24,45,74,6,0,67,12,65,1,2,0,15,4,10,7381,42,31,98,114,8702,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,208,30,2,2,2,1,2,6,3,4,10,1,225,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4381,3,5773,3,7472,16,621,2467,541,1507,4938,6,8489],re=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,78,5,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,199,7,137,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,55,9,266,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,233,0,3,0,8,1,6,0,475,6,110,6,6,9,4759,9,787719,239];function ie(e,t){let n=65536;for(let r=0,i=t.length;re)return!1;if(n+=t[r+1],n>=e)return!0}return!1}function ae(e){return e<65?36===e:e<=90||(e<97?95===e:e<=122||(e<=65535?e>=170&&ee.test(String.fromCharCode(e)):ie(e,ne)))}function oe(e){return e<48?36===e:e<58||!(e<65)&&(e<=90||(e<97?95===e:e<=122||(e<=65535?e>=170&&te.test(String.fromCharCode(e)):ie(e,ne)||ie(e,re))))}const se=new Set(["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"]),ce=new Set(["implements","interface","let","package","private","protected","public","static","yield"]),le=new Set(["eval","arguments"]);function ue(e,t){return t&&"await"===e||"enum"===e}function de(e,t){return ue(e,t)||ce.has(e)}function pe(e){return le.has(e)}function me(e,t){return de(e,t)||pe(e)}const fe=new Set(["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete","implements","interface","let","package","private","protected","public","static","yield","eval","arguments","enum","await"]);class _e{constructor(e){this.flags=0,this.names=new Map,this.firstLexicalName="",this.flags=e}}class he{constructor(e,t){this.parser=void 0,this.scopeStack=[],this.inModule=void 0,this.undefinedExports=new Map,this.parser=e,this.inModule=t}get inTopLevel(){return(1&this.currentScope().flags)>0}get inFunction(){return(2&this.currentVarScopeFlags())>0}get allowSuper(){return(16&this.currentThisScopeFlags())>0}get allowDirectSuper(){return(32&this.currentThisScopeFlags())>0}get allowNewTarget(){return(512&this.currentThisScopeFlags())>0}get inClass(){return(64&this.currentThisScopeFlags())>0}get inClassAndNotInNonArrowFunction(){const e=this.currentThisScopeFlags();return(64&e)>0&&!(2&e)}get inStaticBlock(){for(let e=this.scopeStack.length-1;;e--){const{flags:t}=this.scopeStack[e];if(128&t)return!0;if(1731&t)return!1}}get inNonArrowFunction(){return(2&this.currentThisScopeFlags())>0}get inBareCaseStatement(){return(256&this.currentScope().flags)>0}get treatFunctionsAsVar(){return this.treatFunctionsAsVarInScope(this.currentScope())}createScope(e){return new _e(e)}enter(e){this.scopeStack.push(this.createScope(e))}exit(){return this.scopeStack.pop().flags}treatFunctionsAsVarInScope(e){return!!(130&e.flags||!this.parser.inModule&&1&e.flags)}declareName(e,t,n){let r=this.currentScope();if(8&t||16&t){this.checkRedeclarationInScope(r,e,t,n);let i=r.names.get(e)||0;16&t?i|=4:(r.firstLexicalName||(r.firstLexicalName=e),i|=2),r.names.set(e,i),8&t&&this.maybeExportDefined(r,e)}else if(4&t)for(let i=this.scopeStack.length-1;i>=0&&(r=this.scopeStack[i],this.checkRedeclarationInScope(r,e,t,n),r.names.set(e,1|(r.names.get(e)||0)),this.maybeExportDefined(r,e),!(1667&r.flags));--i);this.parser.inModule&&1&r.flags&&this.undefinedExports.delete(e)}maybeExportDefined(e,t){this.parser.inModule&&1&e.flags&&this.undefinedExports.delete(t)}checkRedeclarationInScope(e,t,n,r){this.isRedeclaredInScope(e,t,n)&&this.parser.raise(h.VarRedeclaration,r,{identifierName:t})}isRedeclaredInScope(e,t,n){if(!(1&n))return!1;if(8&n)return e.names.has(t);const r=e.names.get(t)||0;return 16&n?(2&r)>0||!this.treatFunctionsAsVarInScope(e)&&(1&r)>0:(2&r)>0&&!(8&e.flags&&e.firstLexicalName===t)||!this.treatFunctionsAsVarInScope(e)&&(4&r)>0}checkLocalExport(e){const{name:t}=e;this.scopeStack[0].names.has(t)||this.undefinedExports.set(t,e.loc.start)}currentScope(){return this.scopeStack[this.scopeStack.length-1]}currentVarScopeFlags(){for(let e=this.scopeStack.length-1;;e--){const{flags:t}=this.scopeStack[e];if(1667&t)return t}}currentThisScopeFlags(){for(let e=this.scopeStack.length-1;;e--){const{flags:t}=this.scopeStack[e];if(1731&t&&!(4&t))return t}}}class ge extends _e{constructor(...e){super(...e),this.declareFunctions=new Set}}class ye extends he{createScope(e){return new ge(e)}declareName(e,t,n){const r=this.currentScope();if(2048&t)return this.checkRedeclarationInScope(r,e,t,n),this.maybeExportDefined(r,e),void r.declareFunctions.add(e);super.declareName(e,t,n)}isRedeclaredInScope(e,t,n){if(super.isRedeclaredInScope(e,t,n))return!0;if(2048&n&&!e.declareFunctions.has(t)){const n=e.names.get(t);return(4&n)>0||(2&n)>0}return!1}checkLocalExport(e){this.scopeStack[0].declareFunctions.has(e.name)||super.checkLocalExport(e)}}const ve=new Set(["_","any","bool","boolean","empty","extends","false","interface","mixed","null","number","static","string","true","typeof","void"]),be=_`flow`({AmbiguousConditionalArrow:"Ambiguous expression: wrap the arrow functions in parentheses to disambiguate.",AmbiguousDeclareModuleKind:"Found both `declare module.exports` and `declare export` in the same module. Modules can only have 1 since they are either an ES module or they are a CommonJS module.",AssignReservedType:({reservedType:e})=>`Cannot overwrite reserved type ${e}.`,DeclareClassElement:"The `declare` modifier can only appear on class fields.",DeclareClassFieldInitializer:"Initializers are not allowed in fields with the `declare` modifier.",DuplicateDeclareModuleExports:"Duplicate `declare module.exports` statement.",EnumBooleanMemberNotInitialized:({memberName:e,enumName:t})=>`Boolean enum members need to be initialized. Use either \`${e} = true,\` or \`${e} = false,\` in enum \`${t}\`.`,EnumDuplicateMemberName:({memberName:e,enumName:t})=>`Enum member names need to be unique, but the name \`${e}\` has already been used before in enum \`${t}\`.`,EnumInconsistentMemberValues:({enumName:e})=>`Enum \`${e}\` has inconsistent member initializers. Either use no initializers, or consistently use literals (either booleans, numbers, or strings) for all member initializers.`,EnumInvalidExplicitType:({invalidEnumType:e,enumName:t})=>`Enum type \`${e}\` is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${t}\`.`,EnumInvalidExplicitTypeUnknownSupplied:({enumName:e})=>`Supplied enum type is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${e}\`.`,EnumInvalidMemberInitializerPrimaryType:({enumName:e,memberName:t,explicitType:n})=>`Enum \`${e}\` has type \`${n}\`, so the initializer of \`${t}\` needs to be a ${n} literal.`,EnumInvalidMemberInitializerSymbolType:({enumName:e,memberName:t})=>`Symbol enum members cannot be initialized. Use \`${t},\` in enum \`${e}\`.`,EnumInvalidMemberInitializerUnknownType:({enumName:e,memberName:t})=>`The enum member initializer for \`${t}\` needs to be a literal (either a boolean, number, or string) in enum \`${e}\`.`,EnumInvalidMemberName:({enumName:e,memberName:t,suggestion:n})=>`Enum member names cannot start with lowercase 'a' through 'z'. Instead of using \`${t}\`, consider using \`${n}\`, in enum \`${e}\`.`,EnumNumberMemberNotInitialized:({enumName:e,memberName:t})=>`Number enum members need to be initialized, e.g. \`${t} = 1\` in enum \`${e}\`.`,EnumStringMemberInconsistentlyInitialized:({enumName:e})=>`String enum members need to consistently either all use initializers, or use no initializers, in enum \`${e}\`.`,GetterMayNotHaveThisParam:"A getter cannot have a `this` parameter.",ImportReflectionHasImportType:"An `import module` declaration can not use `type` or `typeof` keyword.",ImportTypeShorthandOnlyInPureImport:"The `type` and `typeof` keywords on named imports can only be used on regular `import` statements. It cannot be used with `import type` or `import typeof` statements.",InexactInsideExact:"Explicit inexact syntax cannot appear inside an explicit exact object type.",InexactInsideNonObject:"Explicit inexact syntax cannot appear in class or interface definitions.",InexactVariance:"Explicit inexact syntax cannot have variance.",InvalidNonTypeImportInDeclareModule:"Imports within a `declare module` body must always be `import type` or `import typeof`.",MissingTypeParamDefault:"Type parameter declaration needs a default, since a preceding type parameter declaration has a default.",NestedDeclareModule:"`declare module` cannot be used inside another `declare module`.",NestedFlowComment:"Cannot have a flow comment inside another flow comment.",PatternIsOptional:Object.assign({message:"A binding pattern parameter cannot be optional in an implementation signature."},{reasonCode:"OptionalBindingPattern"}),SetterMayNotHaveThisParam:"A setter cannot have a `this` parameter.",SpreadVariance:"Spread properties cannot have variance.",ThisParamAnnotationRequired:"A type annotation is required for the `this` parameter.",ThisParamBannedInConstructor:"Constructors cannot have a `this` parameter; constructors don't bind `this` like other functions.",ThisParamMayNotBeOptional:"The `this` parameter cannot be optional.",ThisParamMustBeFirst:"The `this` parameter must be the first function parameter.",ThisParamNoDefault:"The `this` parameter may not have a default value.",TypeBeforeInitializer:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeCastInPattern:"The type cast expression is expected to be wrapped with parenthesis.",UnexpectedExplicitInexactInObject:"Explicit inexact syntax must appear at the end of an inexact object.",UnexpectedReservedType:({reservedType:e})=>`Unexpected reserved type ${e}.`,UnexpectedReservedUnderscore:"`_` is only allowed as a type argument to call or new.",UnexpectedSpaceBetweenModuloChecks:"Spaces between `%` and `checks` are not allowed here.",UnexpectedSpreadType:"Spread operator cannot appear in class or interface definitions.",UnexpectedSubtractionOperand:'Unexpected token, expected "number" or "bigint".',UnexpectedTokenAfterTypeParameter:"Expected an arrow function after this type parameter declaration.",UnexpectedTypeParameterBeforeAsyncArrowFunction:"Type parameters must come after the async keyword, e.g. instead of ` async () => {}`, use `async () => {}`.",UnsupportedDeclareExportKind:({unsupportedExportKind:e,suggestion:t})=>`\`declare export ${e}\` is not supported. Use \`${t}\` instead.`,UnsupportedStatementInDeclareModule:"Only declares and type imports are allowed inside declare module.",UnterminatedFlowComment:"Unterminated flow-comment."});function Ee(e){return"type"===e.importKind||"typeof"===e.importKind}const xe={const:"declare export var",let:"declare export var",type:"export type",interface:"export interface"},Se=/\*?\s*@((?:no)?flow)\b/,Te={__proto__:null,quot:'"',amp:"&",apos:"'",lt:"<",gt:">",nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"­",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",fnof:"ƒ",circ:"ˆ",tilde:"˜",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"‍",lrm:"‎",rlm:"‏",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",bull:"•",hellip:"…",permil:"‰",prime:"′",Prime:"″",lsaquo:"‹",rsaquo:"›",oline:"‾",frasl:"⁄",euro:"€",image:"ℑ",weierp:"℘",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦"},Ce=new RegExp(/\r\n|[\r\n\u2028\u2029]/.source,"g");function De(e){switch(e){case 10:case 13:case 8232:case 8233:return!0;default:return!1}}function Le(e,t,n){for(let r=t;r`Expected corresponding JSX closing tag for <${e}>.`,MissingClosingTagFragment:"Expected corresponding JSX closing tag for <>.",UnexpectedSequenceExpression:"Sequence expressions cannot be directly nested inside JSX. Did you mean to wrap it in parentheses (...)?",UnexpectedToken:({unexpected:e,HTMLEntity:t})=>`Unexpected token \`${e}\`. Did you mean \`${t}\` or \`{'${e}'}\`?`,UnsupportedJsxValue:"JSX value should be either an expression or a quoted JSX text.",UnterminatedJsxContent:"Unterminated JSX contents.",UnwrappedAdjacentJSXElements:"Adjacent JSX elements must be wrapped in an enclosing tag. Did you want a JSX fragment <>...?"});function Pe(e){return!!e&&("JSXOpeningFragment"===e.type||"JSXClosingFragment"===e.type)}function we(e){if("JSXIdentifier"===e.type)return e.name;if("JSXNamespacedName"===e.type)return e.namespace.name+":"+e.name.name;if("JSXMemberExpression"===e.type)return we(e.object)+"."+we(e.property);throw new Error("Node had unexpected type: "+e.type)}class Oe extends _e{constructor(...e){super(...e),this.tsNames=new Map}}class Re extends he{constructor(...e){super(...e),this.importsStack=[]}createScope(e){return this.importsStack.push(new Set),new Oe(e)}enter(e){1024===e&&this.importsStack.push(new Set),super.enter(e)}exit(){const e=super.exit();return 1024===e&&this.importsStack.pop(),e}hasImport(e,t){const n=this.importsStack.length;if(this.importsStack[n-1].has(e))return!0;if(!t&&n>1)for(let t=0;t0?!(256&n)||!!(512&n)!=(4&r)>0:128&n&&(8&r)>0?!!(2&e.names.get(t))&&!!(1&n):!!(2&n&&(1&r)>0)||super.isRedeclaredInScope(e,t,n)}checkLocalExport(e){const{name:t}=e;if(!this.hasImport(t)){for(let e=this.scopeStack.length-1;e>=0;e--){const n=this.scopeStack[e].tsNames.get(t);if((1&n)>0||(16&n)>0)return}super.checkLocalExport(e)}}}class Me{constructor(){this.stacks=[]}enter(e){this.stacks.push(e)}exit(){this.stacks.pop()}currentFlags(){return this.stacks[this.stacks.length-1]}get hasAwait(){return(2&this.currentFlags())>0}get hasYield(){return(1&this.currentFlags())>0}get hasReturn(){return(4&this.currentFlags())>0}get hasIn(){return(8&this.currentFlags())>0}}function Fe(e,t){return(e?2:0)|(t?1:0)}class Ge{constructor(){this.sawUnambiguousESM=!1,this.ambiguousScriptDifferentAst=!1}sourceToOffsetPos(e){return e+this.startIndex}offsetToSourcePos(e){return e-this.startIndex}hasPlugin(e){if("string"==typeof e)return this.plugins.has(e);{const[t,n]=e;if(!this.hasPlugin(t))return!1;const r=this.plugins.get(t);for(const e of Object.keys(n))if((null==r?void 0:r[e])!==n[e])return!1;return!0}}getPluginOption(e,t){var n;return null==(n=this.plugins.get(e))?void 0:n[t]}}function Be(e,t){void 0===e.trailingComments?e.trailingComments=t:e.trailingComments.unshift(...t)}function Ue(e,t){void 0===e.innerComments?e.innerComments=t:e.innerComments.unshift(...t)}function Ve(e,t,n){let r=null,i=t.length;for(;null===r&&i>0;)r=t[--i];null===r||r.start>n.start?Ue(e,n.comments):Be(r,n.comments)}class Ke extends Ge{addComment(e){this.filename&&(e.loc.filename=this.filename);const{commentsLen:t}=this.state;this.comments.length!==t&&(this.comments.length=t),this.comments.push(e),this.state.commentsLen++}processComment(e){const{commentStack:t}=this.state,n=t.length;if(0===n)return;let r=n-1;const i=t[r];i.start===e.end&&(i.leadingNode=e,r--);const{start:a}=e;for(;r>=0;r--){const n=t[r],i=n.end;if(!(i>a)){i===a&&(n.trailingNode=e);break}n.containingNode=e,this.finalizeComment(n),t.splice(r,1)}}finalizeComment(e){var t;const{comments:n}=e;if(null!==e.leadingNode||null!==e.trailingNode)null!==e.leadingNode&&Be(e.leadingNode,n),null!==e.trailingNode&&function(e,t){void 0===e.leadingComments?e.leadingComments=t:e.leadingComments.unshift(...t)}(e.trailingNode,n);else{const r=e.containingNode,i=e.start;if(44===this.input.charCodeAt(this.offsetToSourcePos(i)-1))switch(r.type){case"ObjectExpression":case"ObjectPattern":Ve(r,r.properties,e);break;case"CallExpression":case"NewExpression":case"OptionalCallExpression":Ve(r,r.arguments,e);break;case"ImportExpression":Ve(r,[r.source,null!=(t=r.options)?t:null],e);break;case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":case"ObjectMethod":case"ClassMethod":case"ClassPrivateMethod":case"TSTypeParameterDeclaration":Ve(r,r.params,e);break;case"ArrayExpression":case"ArrayPattern":Ve(r,r.elements,e);break;case"ExportNamedDeclaration":case"ImportDeclaration":Ve(r,r.specifiers,e);break;case"TSEnumDeclaration":case"TSEnumBody":Ve(r,r.members,e);break;case"TSInterfaceBody":Ve(r,r.body,e);break;default:if("RecordExpression"===r.type){Ve(r,r.properties,e);break}if("TupleExpression"===r.type){Ve(r,r.elements,e);break}Ue(r,n)}else Ue(r,n)}}finalizeRemainingComments(){const{commentStack:e}=this.state;for(let t=e.length-1;t>=0;t--)this.finalizeComment(e[t]);this.state.commentStack=[]}resetPreviousNodeTrailingComments(e){const{commentStack:t}=this.state,{length:n}=t;if(0===n)return;const r=t[n-1];r.leadingNode===e&&(r.leadingNode=null)}takeSurroundingComments(e,t,n){const{commentStack:r}=this.state,i=r.length;if(0===i)return;let a=i-1;for(;a>=0;a--){const i=r[a],o=i.end;if(i.start===n)i.leadingNode=e;else if(o===t)i.trailingNode=e;else if(o0}set strict(e){e?this.flags|=1:this.flags&=-2}init({strictMode:e,sourceType:n,startIndex:r,startLine:i,startColumn:a}){this.strict=!1!==e&&(!0===e||"module"===n),this.startIndex=r,this.curLine=i,this.lineStart=-a,this.startLoc=this.endLoc=new t(i,a,r)}get maybeInArrowParameters(){return(2&this.flags)>0}set maybeInArrowParameters(e){e?this.flags|=2:this.flags&=-3}get inType(){return(4&this.flags)>0}set inType(e){e?this.flags|=4:this.flags&=-5}get noAnonFunctionType(){return(8&this.flags)>0}set noAnonFunctionType(e){e?this.flags|=8:this.flags&=-9}get hasFlowComment(){return(16&this.flags)>0}set hasFlowComment(e){e?this.flags|=16:this.flags&=-17}get isAmbientContext(){return(32&this.flags)>0}set isAmbientContext(e){e?this.flags|=32:this.flags&=-33}get inAbstractClass(){return(64&this.flags)>0}set inAbstractClass(e){e?this.flags|=64:this.flags&=-65}get inDisallowConditionalTypesContext(){return(128&this.flags)>0}set inDisallowConditionalTypesContext(e){e?this.flags|=128:this.flags&=-129}get soloAwait(){return(256&this.flags)>0}set soloAwait(e){e?this.flags|=256:this.flags&=-257}get inFSharpPipelineDirectBody(){return(512&this.flags)>0}set inFSharpPipelineDirectBody(e){e?this.flags|=512:this.flags&=-513}get canStartJSXElement(){return(1024&this.flags)>0}set canStartJSXElement(e){e?this.flags|=1024:this.flags&=-1025}get containsEsc(){return(2048&this.flags)>0}set containsEsc(e){e?this.flags|=2048:this.flags&=-2049}get hasTopLevelAwait(){return(4096&this.flags)>0}set hasTopLevelAwait(e){e?this.flags|=4096:this.flags&=-4097}curPosition(){return new t(this.curLine,this.pos-this.lineStart,this.pos+this.startIndex)}clone(){const e=new je;return e.flags=this.flags,e.startIndex=this.startIndex,e.curLine=this.curLine,e.lineStart=this.lineStart,e.startLoc=this.startLoc,e.endLoc=this.endLoc,e.errors=this.errors.slice(),e.potentialArrowAt=this.potentialArrowAt,e.noArrowAt=this.noArrowAt.slice(),e.noArrowParamsConversionAt=this.noArrowParamsConversionAt.slice(),e.topicContext=this.topicContext,e.labels=this.labels.slice(),e.commentsLen=this.commentsLen,e.commentStack=this.commentStack.slice(),e.pos=this.pos,e.type=this.type,e.value=this.value,e.start=this.start,e.end=this.end,e.lastTokEndLoc=this.lastTokEndLoc,e.lastTokStartLoc=this.lastTokStartLoc,e.context=this.context.slice(),e.firstInvalidTemplateEscapePos=this.firstInvalidTemplateEscapePos,e.strictErrors=this.strictErrors,e.tokensLength=this.tokensLength,e}}var He=function(e){return e>=48&&e<=57};const We={decBinOct:new Set([46,66,69,79,95,98,101,111]),hex:new Set([46,88,95,120])},$e={bin:e=>48===e||49===e,oct:e=>e>=48&&e<=55,dec:e=>e>=48&&e<=57,hex:e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102};function qe(e,t,n,r,i,a){const o=n,s=r,c=i;let l="",u=null,d=n;const{length:p}=t;for(;;){if(n>=p){a.unterminated(o,s,c),l+=t.slice(d,n);break}const m=t.charCodeAt(n);if(ze(e,m,t,n)){l+=t.slice(d,n);break}if(92===m){l+=t.slice(d,n);const o=Je(t,n,r,i,"template"===e,a);null!==o.ch||u?l+=o.ch:u={pos:n,lineStart:r,curLine:i},({pos:n,lineStart:r,curLine:i}=o),d=n}else 8232===m||8233===m?(++i,r=++n):10===m||13===m?"template"===e?(l+=t.slice(d,n)+"\n",++n,13===m&&10===t.charCodeAt(n)&&++n,++i,d=r=n):a.unterminated(o,s,c):++n}return{pos:n,str:l,firstInvalidLoc:u,lineStart:r,curLine:i,containsInvalid:!!u}}function ze(e,t,n,r){return"template"===e?96===t||36===t&&123===n.charCodeAt(r+1):t===("double"===e?34:39)}function Je(e,t,n,r,i,a){const o=!i;t++;const s=e=>({pos:t,ch:e,lineStart:n,curLine:r}),c=e.charCodeAt(t++);switch(c){case 110:return s("\n");case 114:return s("\r");case 120:{let i;return({code:i,pos:t}=Xe(e,t,n,r,2,!1,o,a)),s(null===i?null:String.fromCharCode(i))}case 117:{let i;return({code:i,pos:t}=Qe(e,t,n,r,o,a)),s(null===i?null:String.fromCodePoint(i))}case 116:return s("\t");case 98:return s("\b");case 118:return s("\v");case 102:return s("\f");case 13:10===e.charCodeAt(t)&&++t;case 10:n=t,++r;case 8232:case 8233:return s("");case 56:case 57:if(i)return s(null);a.strictNumericEscape(t-1,n,r);default:if(c>=48&&c<=55){const o=t-1;let c=/^[0-7]+/.exec(e.slice(o,t+2))[0],l=parseInt(c,8);l>255&&(c=c.slice(0,-1),l=parseInt(c,8)),t+=c.length-1;const u=e.charCodeAt(t);if("0"!==c||56===u||57===u){if(i)return s(null);a.strictNumericEscape(o,n,r)}return s(String.fromCharCode(l))}return s(String.fromCharCode(c))}}function Xe(e,t,n,r,i,a,o,s){const c=t;let l;return({n:l,pos:t}=Ye(e,t,n,r,16,i,a,!1,s,!o)),null===l&&(o?s.invalidEscapeSequence(c,n,r):t=c-1),{code:l,pos:t}}function Ye(e,t,n,r,i,a,o,s,c,l){const u=t,d=16===i?We.hex:We.decBinOct,p=16===i?$e.hex:10===i?$e.dec:8===i?$e.oct:$e.bin;let m=!1,f=0;for(let u=0,_=null==a?1/0:a;u<_;++u){const a=e.charCodeAt(t);let u;if(95===a&&"bail"!==s){const i=e.charCodeAt(t-1),a=e.charCodeAt(t+1);if(s){if(Number.isNaN(a)||!p(a)||d.has(i)||d.has(a)){if(l)return{n:null,pos:t};c.unexpectedNumericSeparator(t,n,r)}}else{if(l)return{n:null,pos:t};c.numericSeparatorInEscapeSequence(t,n,r)}++t;continue}if(u=a>=97?a-97+10:a>=65?a-65+10:He(a)?a-48:1/0,u>=i){if(u<=9&&l)return{n:null,pos:t};if(u<=9&&c.invalidDigit(t,n,r,i))u=0;else{if(!o)break;u=0,m=!0}}++t,f=f*i+u}return t===u||null!=a&&t-u!==a||m?{n:null,pos:t}:{n:f,pos:t}}function Qe(e,t,n,r,i,a){let o;if(123===e.charCodeAt(t)){if(++t,({code:o,pos:t}=Xe(e,t,n,r,e.indexOf("}",t)-t,!0,i,a)),++t,null!==o&&o>1114111){if(!i)return{code:null,pos:t};a.invalidCodePoint(t,n,r)}}else({code:o,pos:t}=Xe(e,t,n,r,4,!1,i,a));return{code:o,pos:t}}function Ze(e,n,r){return new t(r,e-n,e)}const et=new Set([103,109,115,105,121,117,100,118]);class tt{constructor(e){const t=e.startIndex||0;this.type=e.type,this.value=e.value,this.start=t+e.start,this.end=t+e.end,this.loc=new n(e.startLoc,e.endLoc)}}class nt extends Ke{constructor(e,t){super(),this.isLookahead=void 0,this.tokens=[],this.errorHandlers_readInt={invalidDigit:(e,t,n,r)=>!!(2048&this.optionFlags)&&(this.raise(h.InvalidDigit,Ze(e,t,n),{radix:r}),!0),numericSeparatorInEscapeSequence:this.errorBuilder(h.NumericSeparatorInEscapeSequence),unexpectedNumericSeparator:this.errorBuilder(h.UnexpectedNumericSeparator)},this.errorHandlers_readCodePoint=Object.assign({},this.errorHandlers_readInt,{invalidEscapeSequence:this.errorBuilder(h.InvalidEscapeSequence),invalidCodePoint:this.errorBuilder(h.InvalidCodePoint)}),this.errorHandlers_readStringContents_string=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:(e,t,n)=>{this.recordStrictModeErrors(h.StrictNumericEscape,Ze(e,t,n))},unterminated:(e,t,n)=>{throw this.raise(h.UnterminatedString,Ze(e-1,t,n))}}),this.errorHandlers_readStringContents_template=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:this.errorBuilder(h.StrictNumericEscape),unterminated:(e,t,n)=>{throw this.raise(h.UnterminatedTemplate,Ze(e,t,n))}}),this.state=new je,this.state.init(e),this.input=t,this.length=t.length,this.comments=[],this.isLookahead=!1}pushToken(e){this.tokens.length=this.state.tokensLength,this.tokens.push(e),++this.state.tokensLength}next(){this.checkKeywordEscapes(),256&this.optionFlags&&this.pushToken(new tt(this.state)),this.state.lastTokEndLoc=this.state.endLoc,this.state.lastTokStartLoc=this.state.startLoc,this.nextToken()}eat(e){return!!this.match(e)&&(this.next(),!0)}match(e){return this.state.type===e}createLookaheadState(e){return{pos:e.pos,value:null,type:e.type,start:e.start,end:e.end,context:[this.curContext()],inType:e.inType,startLoc:e.startLoc,lastTokEndLoc:e.lastTokEndLoc,curLine:e.curLine,lineStart:e.lineStart,curPosition:e.curPosition}}lookahead(){const e=this.state;this.state=this.createLookaheadState(e),this.isLookahead=!0,this.nextToken(),this.isLookahead=!1;const t=this.state;return this.state=e,t}nextTokenStart(){return this.nextTokenStartSince(this.state.pos)}nextTokenStartSince(e){return Ae.lastIndex=e,Ae.test(this.input)?Ae.lastIndex:e}lookaheadCharCode(){return this.lookaheadCharCodeSince(this.state.pos)}lookaheadCharCodeSince(e){return this.input.charCodeAt(this.nextTokenStartSince(e))}nextTokenInLineStart(){return this.nextTokenInLineStartSince(this.state.pos)}nextTokenInLineStartSince(e){return Ne.lastIndex=e,Ne.test(this.input)?Ne.lastIndex:e}lookaheadInLineCharCode(){return this.input.charCodeAt(this.nextTokenInLineStart())}codePointAtPos(e){let t=this.input.charCodeAt(e);if(55296==(64512&t)&&++ethis.raise(e,t)),this.state.strictErrors.clear())}curContext(){return this.state.context[this.state.context.length-1]}nextToken(){this.skipSpace(),this.state.start=this.state.pos,this.isLookahead||(this.state.startLoc=this.state.curPosition()),this.state.pos>=this.length?this.finishToken(140):this.getTokenFromCode(this.codePointAtPos(this.state.pos))}skipBlockComment(e){let t;this.isLookahead||(t=this.state.curPosition());const r=this.state.pos,i=this.input.indexOf(e,r+2);if(-1===i)throw this.raise(h.UnterminatedComment,this.state.curPosition());for(this.state.pos=i+e.length,Ce.lastIndex=r+2;Ce.test(this.input)&&Ce.lastIndex<=i;)++this.state.curLine,this.state.lineStart=Ce.lastIndex;if(this.isLookahead)return;const a={type:"CommentBlock",value:this.input.slice(r+2,i),start:this.sourceToOffsetPos(r),end:this.sourceToOffsetPos(i+e.length),loc:new n(t,this.state.curPosition())};return 256&this.optionFlags&&this.pushToken(a),a}skipLineComment(e){const t=this.state.pos;let r;this.isLookahead||(r=this.state.curPosition());let i=this.input.charCodeAt(this.state.pos+=e);if(this.state.pose))break e;{const e=this.skipLineComment(3);void 0!==e&&(this.addComment(e),null==t||t.push(e))}}else{if(60!==n||this.inModule||!(8192&this.optionFlags))break e;{const e=this.state.pos;if(33!==this.input.charCodeAt(e+1)||45!==this.input.charCodeAt(e+2)||45!==this.input.charCodeAt(e+3))break e;{const e=this.skipLineComment(4);void 0!==e&&(this.addComment(e),null==t||t.push(e))}}}}}if((null==t?void 0:t.length)>0){const n=this.state.pos,r={start:this.sourceToOffsetPos(e),end:this.sourceToOffsetPos(n),comments:t,leadingNode:null,trailingNode:null,containingNode:null};this.state.commentStack.push(r)}}finishToken(e,t){this.state.end=this.state.pos,this.state.endLoc=this.state.curPosition();const n=this.state.type;this.state.type=e,this.state.value=t,this.isLookahead||this.updateContext(n)}replaceToken(e){this.state.type=e,this.updateContext()}readToken_numberSign(){if(0===this.state.pos&&this.readToken_interpreter())return;const e=this.state.pos+1,t=this.codePointAtPos(e);if(t>=48&&t<=57)throw this.raise(h.UnexpectedDigitAfterHash,this.state.curPosition());if(123===t||91===t&&this.hasPlugin("recordAndTuple")){if(this.expectPlugin("recordAndTuple"),"bar"===this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(123===t?h.RecordExpressionHashIncorrectStartSyntaxType:h.TupleExpressionHashIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,123===t?this.finishToken(7):this.finishToken(1)}else ae(t)?(++this.state.pos,this.finishToken(139,this.readWord1(t))):92===t?(++this.state.pos,this.finishToken(139,this.readWord1())):this.finishOp(27,1)}readToken_dot(){const e=this.input.charCodeAt(this.state.pos+1);e>=48&&e<=57?this.readNumber(!0):46===e&&46===this.input.charCodeAt(this.state.pos+2)?(this.state.pos+=3,this.finishToken(21)):(++this.state.pos,this.finishToken(16))}readToken_slash(){61===this.input.charCodeAt(this.state.pos+1)?this.finishOp(31,2):this.finishOp(56,1)}readToken_interpreter(){if(0!==this.state.pos||this.length<2)return!1;let e=this.input.charCodeAt(this.state.pos+1);if(33!==e)return!1;const t=this.state.pos;for(this.state.pos+=1;!De(e)&&++this.state.pos=48&&t<=57?(++this.state.pos,this.finishToken(17)):(this.state.pos+=2,this.finishToken(18))}getTokenFromCode(e){switch(e){case 46:return void this.readToken_dot();case 40:return++this.state.pos,void this.finishToken(10);case 41:return++this.state.pos,void this.finishToken(11);case 59:return++this.state.pos,void this.finishToken(13);case 44:return++this.state.pos,void this.finishToken(12);case 91:if(this.hasPlugin("recordAndTuple")&&124===this.input.charCodeAt(this.state.pos+1)){if("bar"!==this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(h.TupleExpressionBarIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(2)}else++this.state.pos,this.finishToken(0);return;case 93:return++this.state.pos,void this.finishToken(3);case 123:if(this.hasPlugin("recordAndTuple")&&124===this.input.charCodeAt(this.state.pos+1)){if("bar"!==this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(h.RecordExpressionBarIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(6)}else++this.state.pos,this.finishToken(5);return;case 125:return++this.state.pos,void this.finishToken(8);case 58:return void(this.hasPlugin("functionBind")&&58===this.input.charCodeAt(this.state.pos+1)?this.finishOp(15,2):(++this.state.pos,this.finishToken(14)));case 63:return void this.readToken_question();case 96:return void this.readTemplateToken();case 48:{const e=this.input.charCodeAt(this.state.pos+1);if(120===e||88===e)return void this.readRadixNumber(16);if(111===e||79===e)return void this.readRadixNumber(8);if(98===e||66===e)return void this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return void this.readNumber(!1);case 34:case 39:return void this.readString(e);case 47:return void this.readToken_slash();case 37:case 42:return void this.readToken_mult_modulo(e);case 124:case 38:return void this.readToken_pipe_amp(e);case 94:return void this.readToken_caret();case 43:case 45:return void this.readToken_plus_min(e);case 60:return void this.readToken_lt();case 62:return void this.readToken_gt();case 61:case 33:return void this.readToken_eq_excl(e);case 126:return void this.finishOp(36,1);case 64:return void this.readToken_atSign();case 35:return void this.readToken_numberSign();case 92:return void this.readWord();default:if(ae(e))return void this.readWord(e)}throw this.raise(h.InvalidOrUnexpectedToken,this.state.curPosition(),{unexpected:String.fromCodePoint(e)})}finishOp(e,t){const n=this.input.slice(this.state.pos,this.state.pos+t);this.state.pos+=t,this.finishToken(e,n)}readRegexp(){const e=this.state.startLoc,t=this.state.start+1;let n,i,{pos:a}=this.state;for(;;++a){if(a>=this.length)throw this.raise(h.UnterminatedRegExp,r(e,1));const t=this.input.charCodeAt(a);if(De(t))throw this.raise(h.UnterminatedRegExp,r(e,1));if(n)n=!1;else{if(91===t)i=!0;else if(93===t&&i)i=!1;else if(47===t&&!i)break;n=92===t}}const o=this.input.slice(t,a);++a;let s="";const c=()=>r(e,a+2-t);for(;a=2&&48===this.input.charCodeAt(t);if(c){const e=this.input.slice(t,this.state.pos);if(this.recordStrictModeErrors(h.StrictOctalLiteral,n),!this.state.strict){const t=e.indexOf("_");t>0&&this.raise(h.ZeroDigitNumericSeparator,r(n,t))}s=c&&!/[89]/.test(e)}let l=this.input.charCodeAt(this.state.pos);if(46!==l||s||(++this.state.pos,this.readInt(10),i=!0,l=this.input.charCodeAt(this.state.pos)),69!==l&&101!==l||s||(l=this.input.charCodeAt(++this.state.pos),43!==l&&45!==l||++this.state.pos,null===this.readInt(10)&&this.raise(h.InvalidOrMissingExponent,n),i=!0,o=!0,l=this.input.charCodeAt(this.state.pos)),110===l&&((i||c)&&this.raise(h.InvalidBigIntLiteral,n),++this.state.pos,a=!0),109===l){this.expectPlugin("decimal",this.state.curPosition()),(o||c)&&this.raise(h.InvalidDecimal,n),++this.state.pos;var u=!0}if(ae(this.codePointAtPos(this.state.pos)))throw this.raise(h.NumberIdentifier,this.state.curPosition());const d=this.input.slice(t,this.state.pos).replace(/[_mn]/g,"");if(a)return void this.finishToken(136,d);if(u)return void this.finishToken(137,d);const p=s?parseInt(d,8):parseFloat(d);this.finishToken(135,p)}readCodePoint(e){const{code:t,pos:n}=Qe(this.input,this.state.pos,this.state.lineStart,this.state.curLine,e,this.errorHandlers_readCodePoint);return this.state.pos=n,t}readString(e){const{str:t,pos:n,curLine:r,lineStart:i}=qe(34===e?"double":"single",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_string);this.state.pos=n+1,this.state.lineStart=i,this.state.curLine=r,this.finishToken(134,t)}readTemplateContinuation(){this.match(8)||this.unexpected(null,8),this.state.pos--,this.readTemplateToken()}readTemplateToken(){const e=this.input[this.state.pos],{str:n,firstInvalidLoc:r,pos:i,curLine:a,lineStart:o}=qe("template",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_template);this.state.pos=i+1,this.state.lineStart=o,this.state.curLine=a,r&&(this.state.firstInvalidTemplateEscapePos=new t(r.curLine,r.pos-r.lineStart,this.sourceToOffsetPos(r.pos))),96===this.input.codePointAt(i)?this.finishToken(24,r?null:e+n+"`"):(this.state.pos++,this.finishToken(25,r?null:e+n+"${"))}recordStrictModeErrors(e,t){const n=t.index;this.state.strict&&!this.state.strictErrors.has(n)?this.raise(e,t):this.state.strictErrors.set(n,[e,t])}readWord1(e){this.state.containsEsc=!1;let t="";const n=this.state.pos;let r=this.state.pos;for(void 0!==e&&(this.state.pos+=e<=65535?1:2);this.state.pos=0;t--){const n=o[t];if(n.loc.index===a)return o[t]=e(i,r);if(n.loc.indexthis.hasPlugin(e)))throw this.raise(h.MissingOneOfPlugins,this.state.startLoc,{missingPlugin:e})}errorBuilder(e){return(t,n,r)=>{this.raise(e,Ze(t,n,r))}}}class rt{constructor(){this.privateNames=new Set,this.loneAccessors=new Map,this.undefinedPrivateNames=new Map}}class it{constructor(e){this.parser=void 0,this.stack=[],this.undefinedPrivateNames=new Map,this.parser=e}current(){return this.stack[this.stack.length-1]}enter(){this.stack.push(new rt)}exit(){const e=this.stack.pop(),t=this.current();for(const[n,r]of Array.from(e.undefinedPrivateNames))t?t.undefinedPrivateNames.has(n)||t.undefinedPrivateNames.set(n,r):this.parser.raise(h.InvalidPrivateFieldResolution,r,{identifierName:n})}declarePrivateName(e,t,n){const{privateNames:r,loneAccessors:i,undefinedPrivateNames:a}=this.current();let o=r.has(e);if(3&t){const n=o&&i.get(e);n?(o=(3&n)==(3&t)||(4&n)!=(4&t),o||i.delete(e)):o||i.set(e,t)}o&&this.parser.raise(h.PrivateNameRedeclaration,n,{identifierName:e}),r.add(e),a.delete(e)}usePrivateName(e,t){let n;for(n of this.stack)if(n.privateNames.has(e))return;n?n.undefinedPrivateNames.set(e,t):this.parser.raise(h.InvalidPrivateFieldResolution,t,{identifierName:e})}}class at{constructor(e=0){this.type=e}canBeArrowParameterDeclaration(){return 2===this.type||1===this.type}isCertainlyParameterDeclaration(){return 3===this.type}}class ot extends at{constructor(e){super(e),this.declarationErrors=new Map}recordDeclarationError(e,t){const n=t.index;this.declarationErrors.set(n,[e,t])}clearDeclarationError(e){this.declarationErrors.delete(e)}iterateErrors(e){this.declarationErrors.forEach(e)}}class st{constructor(e){this.parser=void 0,this.stack=[new at],this.parser=e}enter(e){this.stack.push(e)}exit(){this.stack.pop()}recordParameterInitializerError(e,t){const n=t.loc.start,{stack:r}=this;let i=r.length-1,a=r[i];for(;!a.isCertainlyParameterDeclaration();){if(!a.canBeArrowParameterDeclaration())return;a.recordDeclarationError(e,n),a=r[--i]}this.parser.raise(e,n)}recordArrowParameterBindingError(e,t){const{stack:n}=this,r=n[n.length-1],i=t.loc.start;if(r.isCertainlyParameterDeclaration())this.parser.raise(e,i);else{if(!r.canBeArrowParameterDeclaration())return;r.recordDeclarationError(e,i)}}recordAsyncArrowParametersError(e){const{stack:t}=this;let n=t.length-1,r=t[n];for(;r.canBeArrowParameterDeclaration();)2===r.type&&r.recordDeclarationError(h.AwaitBindingIdentifier,e),r=t[--n]}validateAsPattern(){const{stack:e}=this,t=e[e.length-1];t.canBeArrowParameterDeclaration()&&t.iterateErrors(([t,n])=>{this.parser.raise(t,n);let r=e.length-2,i=e[r];for(;i.canBeArrowParameterDeclaration();)i.clearDeclarationError(n.index),i=e[--r]})}}function ct(){return new at}class lt extends nt{addExtra(e,t,n,r=!0){if(!e)return;let{extra:i}=e;null==i&&(i={},e.extra=i),r?i[t]=n:Object.defineProperty(i,t,{enumerable:r,value:n})}isContextual(e){return this.state.type===e&&!this.state.containsEsc}isUnparsedContextual(e,t){if(this.input.startsWith(t,e)){const n=this.input.charCodeAt(e+t.length);return!(oe(n)||55296==(64512&n))}return!1}isLookaheadContextual(e){const t=this.nextTokenStart();return this.isUnparsedContextual(t,e)}eatContextual(e){return!!this.isContextual(e)&&(this.next(),!0)}expectContextual(e,t){if(!this.eatContextual(e)){if(null!=t)throw this.raise(t,this.state.startLoc);this.unexpected(null,e)}}canInsertSemicolon(){return this.match(140)||this.match(8)||this.hasPrecedingLineBreak()}hasPrecedingLineBreak(){return Le(this.input,this.offsetToSourcePos(this.state.lastTokEndLoc.index),this.state.start)}hasFollowingLineBreak(){return Le(this.input,this.state.end,this.nextTokenStart())}isLineTerminator(){return this.eat(13)||this.canInsertSemicolon()}semicolon(e=!0){(e?this.isLineTerminator():this.eat(13))||this.raise(h.MissingSemicolon,this.state.lastTokEndLoc)}expect(e,t){this.eat(e)||this.unexpected(t,e)}tryParse(e,t=this.state.clone()){const n={node:null};try{const r=e((e=null)=>{throw n.node=e,n});if(this.state.errors.length>t.errors.length){const e=this.state;return this.state=t,this.state.tokensLength=e.tokensLength,{node:r,error:e.errors[t.errors.length],thrown:!1,aborted:!1,failState:e}}return{node:r,error:null,thrown:!1,aborted:!1,failState:null}}catch(e){const r=this.state;if(this.state=t,e instanceof SyntaxError)return{node:null,error:e,thrown:!0,aborted:!1,failState:r};if(e===n)return{node:n.node,error:null,thrown:!1,aborted:!0,failState:r};throw e}}checkExpressionErrors(e,t){if(!e)return!1;const{shorthandAssignLoc:n,doubleProtoLoc:r,privateKeyLoc:i,optionalParametersLoc:a,voidPatternLoc:o}=e;if(!t)return!!(n||r||a||i||o);null!=n&&this.raise(h.InvalidCoverInitializedName,n),null!=r&&this.raise(h.DuplicateProto,r),null!=i&&this.raise(h.UnexpectedPrivateField,i),null!=a&&this.unexpected(a),null!=o&&this.raise(h.InvalidCoverDiscardElement,o)}isLiteralPropertyName(){return j(this.state.type)}isPrivateName(e){return"PrivateName"===e.type}getPrivateNameSV(e){return e.id.name}hasPropertyAsPrivateName(e){return("MemberExpression"===e.type||"OptionalMemberExpression"===e.type)&&this.isPrivateName(e.property)}isObjectProperty(e){return"ObjectProperty"===e.type}isObjectMethod(e){return"ObjectMethod"===e.type}initializeScopes(e="module"===this.options.sourceType){const t=this.state.labels;this.state.labels=[];const n=this.exportedIdentifiers;this.exportedIdentifiers=new Set;const r=this.inModule;this.inModule=e;const i=this.scope,a=this.getScopeHandler();this.scope=new a(this,e);const o=this.prodParam;this.prodParam=new Me;const s=this.classScope;this.classScope=new it(this);const c=this.expressionScope;return this.expressionScope=new st(this),()=>{this.state.labels=t,this.exportedIdentifiers=n,this.inModule=r,this.scope=i,this.prodParam=o,this.classScope=s,this.expressionScope=c}}enterInitialScopes(){let e=0;(this.inModule||1&this.optionFlags)&&(e|=2),32&this.optionFlags&&(e|=1);const t=!this.inModule&&"commonjs"===this.options.sourceType;(t||2&this.optionFlags)&&(e|=4),this.prodParam.enter(e);let n=t?514:1;4&this.optionFlags&&(n|=512),this.scope.enter(n)}checkDestructuringPrivate(e){const{privateKeyLoc:t}=e;null!==t&&this.expectPlugin("destructuringPrivate",t)}}class ut{constructor(){this.shorthandAssignLoc=null,this.doubleProtoLoc=null,this.privateKeyLoc=null,this.optionalParametersLoc=null,this.voidPatternLoc=null}}class dt{constructor(e,t,r){this.type="",this.start=t,this.end=0,this.loc=new n(r),128&(null==e?void 0:e.optionFlags)&&(this.range=[t,0]),null!=e&&e.filename&&(this.loc.filename=e.filename)}}const pt=dt.prototype;pt.__clone=function(){const e=new dt(void 0,this.start,this.loc.start),t=Object.keys(this);for(let n=0,r=t.length;n"ParenthesizedExpression"===e.type?ft(e.expression):e;class _t extends mt{toAssignable(e,t=!1){var n,r;let i;switch(("ParenthesizedExpression"===e.type||null!=(n=e.extra)&&n.parenthesized)&&(i=ft(e),t?"Identifier"===i.type?this.expressionScope.recordArrowParameterBindingError(h.InvalidParenthesizedAssignment,e):"CallExpression"===i.type||"MemberExpression"===i.type||this.isOptionalMemberExpression(i)||this.raise(h.InvalidParenthesizedAssignment,e):this.raise(h.InvalidParenthesizedAssignment,e)),e.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":case"VoidPattern":break;case"ObjectExpression":this.castNodeTo(e,"ObjectPattern");for(let n=0,r=e.properties.length,i=r-1;n"ObjectMethod"!==e.type&&(n===t||"SpreadElement"!==e.type)&&this.isAssignable(e))}case"ObjectProperty":return this.isAssignable(e.value);case"SpreadElement":return this.isAssignable(e.argument);case"ArrayExpression":return e.elements.every(e=>null===e||this.isAssignable(e));case"AssignmentExpression":return"="===e.operator;case"ParenthesizedExpression":return this.isAssignable(e.expression);case"MemberExpression":case"OptionalMemberExpression":return!t;default:return!1}}toReferencedList(e,t){return e}toReferencedListDeep(e,t){this.toReferencedList(e,t);for(const t of e)"ArrayExpression"===(null==t?void 0:t.type)&&this.toReferencedListDeep(t.elements)}parseSpread(e){const t=this.startNode();return this.next(),t.argument=this.parseMaybeAssignAllowIn(e,void 0),this.finishNode(t,"SpreadElement")}parseRestBinding(){const e=this.startNode();this.next();const t=this.parseBindingAtom();return"VoidPattern"===t.type&&this.raise(h.UnexpectedVoidPattern,t),e.argument=t,this.finishNode(e,"RestElement")}parseBindingAtom(){switch(this.state.type){case 0:{const e=this.startNode();return this.next(),e.elements=this.parseBindingList(3,93,1),this.finishNode(e,"ArrayPattern")}case 5:return this.parseObjectLike(8,!0);case 88:return this.parseVoidPattern(null)}return this.parseIdentifier()}parseBindingList(e,t,n){const r=1&n,i=[];let a=!0;for(;!this.eat(e);)if(a?a=!1:this.expect(12),r&&this.match(12))i.push(null);else{if(this.eat(e))break;if(this.match(21)){let r=this.parseRestBinding();if((this.hasPlugin("flow")||2&n)&&(r=this.parseFunctionParamType(r)),i.push(r),!this.checkCommaAfterRest(t)){this.expect(e);break}}else{const e=[];if(2&n)for(this.match(26)&&this.hasPlugin("decorators")&&this.raise(h.UnsupportedParameterDecorator,this.state.startLoc);this.match(26);)e.push(this.parseDecorator());i.push(this.parseBindingElement(n,e))}}return i}parseBindingRestProperty(e){return this.next(),this.hasPlugin("discardBinding")&&this.match(88)?(e.argument=this.parseVoidPattern(null),this.raise(h.UnexpectedVoidPattern,e.argument)):e.argument=this.parseIdentifier(),this.checkCommaAfterRest(125),this.finishNode(e,"RestElement")}parseBindingProperty(){const{type:e,startLoc:t}=this.state;if(21===e)return this.parseBindingRestProperty(this.startNode());const n=this.startNode();return 139===e?(this.expectPlugin("destructuringPrivate",t),this.classScope.usePrivateName(this.state.value,t),n.key=this.parsePrivateName()):this.parsePropertyName(n),n.method=!1,this.parseObjPropValue(n,t,!1,!1,!0,!1)}parseBindingElement(e,t){const n=this.parseMaybeDefault();return(this.hasPlugin("flow")||2&e)&&this.parseFunctionParamType(n),t.length&&(n.decorators=t,this.resetStartLocationFromNode(n,t[0])),this.parseMaybeDefault(n.loc.start,n)}parseFunctionParamType(e){return e}parseMaybeDefault(e,t){if(null!=e||(e=this.state.startLoc),t=null!=t?t:this.parseBindingAtom(),!this.eat(29))return t;const n=this.startNodeAt(e);return"VoidPattern"===t.type&&this.raise(h.VoidPatternInitializer,t),n.left=t,n.right=this.parseMaybeAssignAllowIn(),this.finishNode(n,"AssignmentPattern")}isValidLVal(e,t,n,r){switch(e){case"AssignmentPattern":return"left";case"RestElement":return"argument";case"ObjectProperty":return"value";case"ParenthesizedExpression":return"expression";case"ArrayPattern":return"elements";case"ObjectPattern":return"properties";case"VoidPattern":return!0;case"CallExpression":if(!t&&!this.state.strict&&8192&this.optionFlags)return!0}return!1}isOptionalMemberExpression(e){return"OptionalMemberExpression"===e.type}checkLVal(e,t,n=64,r=!1,i=!1,a=!1,o=!1){var s;const c=e.type;if(this.isObjectMethod(e))return;const l=this.isOptionalMemberExpression(e);if(l||"MemberExpression"===c)return l&&(this.expectPlugin("optionalChainingAssign",e.loc.start),"AssignmentExpression"!==t.type&&this.raise(h.InvalidLhsOptionalChaining,e,{ancestor:t})),void(64!==n&&this.raise(h.InvalidPropertyBindingPattern,e));if("Identifier"===c){this.checkIdentifier(e,n,i);const{name:t}=e;return void(r&&(r.has(t)?this.raise(h.ParamDupe,e):r.add(t)))}"VoidPattern"===c&&"CatchClause"===t.type&&this.raise(h.VoidPatternCatchClauseParam,e);const u=ft(e);o||(o="CallExpression"===u.type&&("Import"===u.callee.type||"Super"===u.callee.type));const d=this.isValidLVal(c,o,!(a||null!=(s=e.extra)&&s.parenthesized)&&"AssignmentExpression"===t.type,n);if(!0===d)return;if(!1===d){const r=64===n?h.InvalidLhs:h.InvalidLhsBinding;return void this.raise(r,e,{ancestor:t})}let p,m;"string"==typeof d?(p=d,m="ParenthesizedExpression"===c):[p,m]=d;const f="ArrayPattern"===c||"ObjectPattern"===c?{type:c}:t,_=e[p];if(Array.isArray(_))for(const e of _)e&&this.checkLVal(e,f,n,r,i,m,!0);else _&&this.checkLVal(_,f,n,r,i,m,o)}checkIdentifier(e,t,n=!1){this.state.strict&&(n?me(e.name,this.inModule):pe(e.name))&&(64===t?this.raise(h.StrictEvalArguments,e,{referenceName:e.name}):this.raise(h.StrictEvalArgumentsBinding,e,{bindingName:e.name})),8192&t&&"let"===e.name&&this.raise(h.LetInLexicalBinding,e),64&t||this.declareNameFromIdentifier(e,t)}declareNameFromIdentifier(e,t){this.scope.declareName(e.name,t,e.loc.start)}checkToRestConversion(e,t){switch(e.type){case"ParenthesizedExpression":this.checkToRestConversion(e.expression,t);break;case"Identifier":case"MemberExpression":break;case"ArrayExpression":case"ObjectExpression":if(t)break;default:this.raise(h.InvalidRestAssignmentPattern,e)}}checkCommaAfterRest(e){return!!this.match(12)&&(this.raise(this.lookaheadCharCode()===e?h.RestTrailingComma:h.ElementAfterRest,this.state.startLoc),!0)}}const ht=/in(?:stanceof)?|as|satisfies/y;function gt(e){if(!e)throw new Error("Assert fail")}const yt=_`typescript`({AbstractMethodHasImplementation:({methodName:e})=>`Method '${e}' cannot have an implementation because it is marked abstract.`,AbstractPropertyHasInitializer:({propertyName:e})=>`Property '${e}' cannot have an initializer because it is marked abstract.`,AccessorCannotBeOptional:"An 'accessor' property cannot be declared optional.",AccessorCannotDeclareThisParameter:"'get' and 'set' accessors cannot declare 'this' parameters.",AccessorCannotHaveTypeParameters:"An accessor cannot have type parameters.",ClassMethodHasDeclare:"Class methods cannot have the 'declare' modifier.",ClassMethodHasReadonly:"Class methods cannot have the 'readonly' modifier.",ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference:"A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference.",ConstructorHasTypeParameters:"Type parameters cannot appear on a constructor declaration.",DeclareAccessor:({kind:e})=>`'declare' is not allowed in ${e}ters.`,DeclareClassFieldHasInitializer:"Initializers are not allowed in ambient contexts.",DeclareFunctionHasImplementation:"An implementation cannot be declared in ambient contexts.",DuplicateAccessibilityModifier:({modifier:e})=>`Accessibility modifier already seen: '${e}'.`,DuplicateModifier:({modifier:e})=>`Duplicate modifier: '${e}'.`,EmptyHeritageClauseType:({token:e})=>`'${e}' list cannot be empty.`,EmptyTypeArguments:"Type argument list cannot be empty.",EmptyTypeParameters:"Type parameter list cannot be empty.",ExpectedAmbientAfterExportDeclare:"'export declare' must be followed by an ambient declaration.",ImportAliasHasImportType:"An import alias can not use 'import type'.",ImportReflectionHasImportType:"An `import module` declaration can not use `type` modifier",IncompatibleModifiers:({modifiers:e})=>`'${e[0]}' modifier cannot be used with '${e[1]}' modifier.`,IndexSignatureHasAbstract:"Index signatures cannot have the 'abstract' modifier.",IndexSignatureHasAccessibility:({modifier:e})=>`Index signatures cannot have an accessibility modifier ('${e}').`,IndexSignatureHasDeclare:"Index signatures cannot have the 'declare' modifier.",IndexSignatureHasOverride:"'override' modifier cannot appear on an index signature.",IndexSignatureHasStatic:"Index signatures cannot have the 'static' modifier.",InitializerNotAllowedInAmbientContext:"Initializers are not allowed in ambient contexts.",InvalidHeritageClauseType:({token:e})=>`'${e}' list can only include identifiers or qualified-names with optional type arguments.`,InvalidModifierOnAwaitUsingDeclaration:e=>`'${e}' modifier cannot appear on an await using declaration.`,InvalidModifierOnTypeMember:({modifier:e})=>`'${e}' modifier cannot appear on a type member.`,InvalidModifierOnTypeParameter:({modifier:e})=>`'${e}' modifier cannot appear on a type parameter.`,InvalidModifierOnTypeParameterPositions:({modifier:e})=>`'${e}' modifier can only appear on a type parameter of a class, interface or type alias.`,InvalidModifierOnUsingDeclaration:e=>`'${e}' modifier cannot appear on a using declaration.`,InvalidModifiersOrder:({orderedModifiers:e})=>`'${e[0]}' modifier must precede '${e[1]}' modifier.`,InvalidPropertyAccessAfterInstantiationExpression:"Invalid property access after an instantiation expression. You can either wrap the instantiation expression in parentheses, or delete the type arguments.",InvalidTupleMemberLabel:"Tuple members must be labeled with a simple identifier.",MissingInterfaceName:"'interface' declarations must be followed by an identifier.",NonAbstractClassHasAbstractMethod:"Abstract methods can only appear within an abstract class.",NonClassMethodPropertyHasAbstractModifier:"'abstract' modifier can only appear on a class, method, or property declaration.",OptionalTypeBeforeRequired:"A required element cannot follow an optional element.",OverrideNotInSubClass:"This member cannot have an 'override' modifier because its containing class does not extend another class.",PatternIsOptional:"A binding pattern parameter cannot be optional in an implementation signature.",PrivateElementHasAbstract:"Private elements cannot have the 'abstract' modifier.",PrivateElementHasAccessibility:({modifier:e})=>`Private elements cannot have an accessibility modifier ('${e}').`,ReadonlyForMethodSignature:"'readonly' modifier can only appear on a property declaration or index signature.",ReservedArrowTypeParam:"This syntax is reserved in files with the .mts or .cts extension. Add a trailing comma, as in `() => ...`.",ReservedTypeAssertion:"This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead.",SetAccessorCannotHaveOptionalParameter:"A 'set' accessor cannot have an optional parameter.",SetAccessorCannotHaveRestParameter:"A 'set' accessor cannot have rest parameter.",SetAccessorCannotHaveReturnType:"A 'set' accessor cannot have a return type annotation.",SingleTypeParameterWithoutTrailingComma:({typeParameterName:e})=>`Single type parameter ${e} should have a trailing comma. Example usage: <${e},>.`,StaticBlockCannotHaveModifier:"Static class blocks cannot have any modifier.",TupleOptionalAfterType:"A labeled tuple optional element must be declared using a question mark after the name and before the colon (`name?: type`), rather than after the type (`name: type?`).",TypeAnnotationAfterAssign:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeImportCannotSpecifyDefaultAndNamed:"A type-only import can specify a default import or named bindings, but not both.",TypeModifierIsUsedInTypeExports:"The 'type' modifier cannot be used on a named export when 'export type' is used on its export statement.",TypeModifierIsUsedInTypeImports:"The 'type' modifier cannot be used on a named import when 'import type' is used on its import statement.",UnexpectedParameterModifier:"A parameter property is only allowed in a constructor implementation.",UnexpectedReadonly:"'readonly' type modifier is only permitted on array and tuple literal types.",UnexpectedTypeAnnotation:"Did not expect a type annotation here.",UnexpectedTypeCastInParameter:"Unexpected type cast in parameter position.",UnsupportedImportTypeArgument:"Argument in a type import must be a string literal.",UnsupportedParameterPropertyKind:"A parameter property may not be declared using a binding pattern.",UnsupportedSignatureParameterKind:({type:e})=>`Name in a signature must be an Identifier, ObjectPattern or ArrayPattern, instead got ${e}.`,UsingDeclarationInAmbientContext:e=>`'${e}' declarations are not allowed in ambient contexts.`});function vt(e){return"private"===e||"public"===e||"protected"===e}function bt(e){return"in"===e||"out"===e}function Et(e){if("MemberExpression"!==e.type)return!1;const{computed:t,property:n}=e;return(!t||"StringLiteral"===n.type||!("TemplateLiteral"!==n.type||n.expressions.length>0))&&Tt(e.object)}function xt(e,t){var n;const{type:r}=e;if(null!=(n=e.extra)&&n.parenthesized)return!1;if(t){if("Literal"===r){const{value:t}=e;if("string"==typeof t||"boolean"==typeof t)return!0}}else if("StringLiteral"===r||"BooleanLiteral"===r)return!0;return!(!St(e,t)&&!function(e,t){if("UnaryExpression"===e.type){const{operator:n,argument:r}=e;if("-"===n&&St(r,t))return!0}return!1}(e,t))||"TemplateLiteral"===r&&0===e.expressions.length||!!Et(e)}function St(e,t){return t?"Literal"===e.type&&("number"==typeof e.value||"bigint"in e):"NumericLiteral"===e.type||"BigIntLiteral"===e.type}function Tt(e){return"Identifier"===e.type||"MemberExpression"===e.type&&!e.computed&&Tt(e.object)}const Ct=_`placeholders`({ClassNameIsRequired:"A class name is required.",UnexpectedSpace:"Unexpected space in placeholder."}),Dt=["minimal","fsharp","hack","smart"],Lt=["^^","@@","^","%","#"],At={estree:e=>class extends e{parse(){const e=v(super.parse());return 256&this.optionFlags&&(e.tokens=e.tokens.map(v)),e}parseRegExpLiteral({pattern:e,flags:t}){let n=null;try{n=new RegExp(e,t)}catch(e){}const r=this.estreeParseLiteral(n);return r.regex={pattern:e,flags:t},r}parseBigIntLiteral(e){let t;try{t=BigInt(e)}catch(e){t=null}const n=this.estreeParseLiteral(t);return n.bigint=String(n.value||e),n}parseDecimalLiteral(e){const t=this.estreeParseLiteral(null);return t.decimal=String(t.value||e),t}estreeParseLiteral(e){return this.parseLiteral(e,"Literal")}parseStringLiteral(e){return this.estreeParseLiteral(e)}parseNumericLiteral(e){return this.estreeParseLiteral(e)}parseNullLiteral(){return this.estreeParseLiteral(null)}parseBooleanLiteral(e){return this.estreeParseLiteral(e)}estreeParseChainExpression(e,t){const n=this.startNodeAtNode(e);return n.expression=e,this.finishNodeAt(n,"ChainExpression",t)}directiveToStmt(e){const t=e.value;delete e.value,this.castNodeTo(t,"Literal"),t.raw=t.extra.raw,t.value=t.extra.expressionValue;const n=this.castNodeTo(e,"ExpressionStatement");return n.expression=t,n.directive=t.extra.rawValue,delete t.extra,n}fillOptionalPropertiesForTSESLint(e){}cloneEstreeStringLiteral(e){const{start:t,end:n,loc:r,range:i,raw:a,value:o}=e,s=Object.create(e.constructor.prototype);return s.type="Literal",s.start=t,s.end=n,s.loc=r,s.range=i,s.raw=a,s.value=o,s}initFunction(e,t){super.initFunction(e,t),e.expression=!1}checkDeclaration(e){null!=e&&this.isObjectProperty(e)?this.checkDeclaration(e.value):super.checkDeclaration(e)}getObjectOrClassMethodParams(e){return e.value.params}isValidDirective(e){var t;return"ExpressionStatement"===e.type&&"Literal"===e.expression.type&&"string"==typeof e.expression.value&&!(null!=(t=e.expression.extra)&&t.parenthesized)}parseBlockBody(e,t,n,r,i){super.parseBlockBody(e,t,n,r,i);const a=e.directives.map(e=>this.directiveToStmt(e));e.body=a.concat(e.body),delete e.directives}parsePrivateName(){const e=super.parsePrivateName();return this.getPluginOption("estree","classFeatures")?this.convertPrivateNameToPrivateIdentifier(e):e}convertPrivateNameToPrivateIdentifier(e){const t=super.getPrivateNameSV(e);return delete e.id,e.name=t,this.castNodeTo(e,"PrivateIdentifier")}isPrivateName(e){return this.getPluginOption("estree","classFeatures")?"PrivateIdentifier"===e.type:super.isPrivateName(e)}getPrivateNameSV(e){return this.getPluginOption("estree","classFeatures")?e.name:super.getPrivateNameSV(e)}parseLiteral(e,t){const n=super.parseLiteral(e,t);return n.raw=n.extra.raw,delete n.extra,n}parseFunctionBody(e,t,n=!1){super.parseFunctionBody(e,t,n),e.expression="BlockStatement"!==e.body.type}parseMethod(e,t,n,r,i,a,o=!1){let s=this.startNode();s.kind=e.kind,s=super.parseMethod(s,t,n,r,i,a,o),delete s.kind;const{typeParameters:c}=e;c&&(delete e.typeParameters,s.typeParameters=c,this.resetStartLocationFromNode(s,c));const l=this.castNodeTo(s,"FunctionExpression");return e.value=l,"ClassPrivateMethod"===a&&(e.computed=!1),"ObjectMethod"===a?("method"===e.kind&&(e.kind="init"),e.shorthand=!1,this.finishNode(e,"Property")):this.finishNode(e,"MethodDefinition")}nameIsConstructor(e){return"Literal"===e.type?"constructor"===e.value:super.nameIsConstructor(e)}parseClassProperty(...e){const t=super.parseClassProperty(...e);return this.getPluginOption("estree","classFeatures")?(this.castNodeTo(t,"PropertyDefinition"),t):t}parseClassPrivateProperty(...e){const t=super.parseClassPrivateProperty(...e);return this.getPluginOption("estree","classFeatures")?(this.castNodeTo(t,"PropertyDefinition"),t.computed=!1,t):t}parseClassAccessorProperty(e){const t=super.parseClassAccessorProperty(e);return this.getPluginOption("estree","classFeatures")?(t.abstract&&this.hasPlugin("typescript")?(delete t.abstract,this.castNodeTo(t,"TSAbstractAccessorProperty")):this.castNodeTo(t,"AccessorProperty"),t):t}parseObjectProperty(e,t,n,r){const i=super.parseObjectProperty(e,t,n,r);return i&&(i.kind="init",this.castNodeTo(i,"Property")),i}finishObjectProperty(e){return e.kind="init",this.finishNode(e,"Property")}isValidLVal(e,t,n,r){return"Property"===e?"value":super.isValidLVal(e,t,n,r)}isAssignable(e,t){return null!=e&&this.isObjectProperty(e)?this.isAssignable(e.value,t):super.isAssignable(e,t)}toAssignable(e,t=!1){if(null!=e&&this.isObjectProperty(e)){const{key:n,value:r}=e;this.isPrivateName(n)&&this.classScope.usePrivateName(this.getPrivateNameSV(n),n.loc.start),this.toAssignable(r,t)}else super.toAssignable(e,t)}toAssignableObjectExpressionProp(e,t,n){"Property"!==e.type||"get"!==e.kind&&"set"!==e.kind?"Property"===e.type&&e.method?this.raise(h.PatternHasMethod,e.key):super.toAssignableObjectExpressionProp(e,t,n):this.raise(h.PatternHasAccessor,e.key)}finishCallExpression(e,t){const n=super.finishCallExpression(e,t);var r,i;return"Import"===n.callee.type?(this.castNodeTo(n,"ImportExpression"),n.source=n.arguments[0],n.options=null!=(r=n.arguments[1])?r:null,n.attributes=null!=(i=n.arguments[1])?i:null,delete n.arguments,delete n.callee):"OptionalCallExpression"===n.type?this.castNodeTo(n,"CallExpression"):n.optional=!1,n}toReferencedArguments(e){"ImportExpression"!==e.type&&super.toReferencedArguments(e)}parseExport(e,t){const n=this.state.lastTokStartLoc,r=super.parseExport(e,t);switch(r.type){case"ExportAllDeclaration":r.exported=null;break;case"ExportNamedDeclaration":1===r.specifiers.length&&"ExportNamespaceSpecifier"===r.specifiers[0].type&&(this.castNodeTo(r,"ExportAllDeclaration"),r.exported=r.specifiers[0].exported,delete r.specifiers);case"ExportDefaultDeclaration":{var i;const{declaration:e}=r;"ClassDeclaration"===(null==e?void 0:e.type)&&(null==(i=e.decorators)?void 0:i.length)>0&&e.start===r.start&&this.resetStartLocation(r,n)}}return r}stopParseSubscript(e,t){const n=super.stopParseSubscript(e,t);return t.optionalChainMember?this.estreeParseChainExpression(n,e.loc.end):n}parseMember(e,t,n,r,i){const a=super.parseMember(e,t,n,r,i);return"OptionalMemberExpression"===a.type?this.castNodeTo(a,"MemberExpression"):a.optional=!1,a}isOptionalMemberExpression(e){return"ChainExpression"===e.type?"MemberExpression"===e.expression.type:super.isOptionalMemberExpression(e)}hasPropertyAsPrivateName(e){return"ChainExpression"===e.type&&(e=e.expression),super.hasPropertyAsPrivateName(e)}isObjectProperty(e){return"Property"===e.type&&"init"===e.kind&&!e.method}isObjectMethod(e){return"Property"===e.type&&(e.method||"get"===e.kind||"set"===e.kind)}castNodeTo(e,t){const n=super.castNodeTo(e,t);return this.fillOptionalPropertiesForTSESLint(n),n}cloneIdentifier(e){const t=super.cloneIdentifier(e);return this.fillOptionalPropertiesForTSESLint(t),t}cloneStringLiteral(e){return"Literal"===e.type?this.cloneEstreeStringLiteral(e):super.cloneStringLiteral(e)}finishNodeAt(e,t,n){return v(super.finishNodeAt(e,t,n))}finishNode(e,t){const n=super.finishNode(e,t);return this.fillOptionalPropertiesForTSESLint(n),n}resetStartLocation(e,t){super.resetStartLocation(e,t),v(e)}resetEndLocation(e,t=this.state.lastTokEndLoc){super.resetEndLocation(e,t),v(e)}},jsx:e=>class extends e{jsxReadToken(){let e="",t=this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(Ie.UnterminatedJsxContent,this.state.startLoc);const n=this.input.charCodeAt(this.state.pos);switch(n){case 60:case 123:return this.state.pos===this.state.start?void(60===n&&this.state.canStartJSXElement?(++this.state.pos,this.finishToken(143)):super.getTokenFromCode(n)):(e+=this.input.slice(t,this.state.pos),void this.finishToken(142,e));case 38:e+=this.input.slice(t,this.state.pos),e+=this.jsxReadEntity(),t=this.state.pos;break;default:De(n)?(e+=this.input.slice(t,this.state.pos),e+=this.jsxReadNewLine(!0),t=this.state.pos):++this.state.pos}}}jsxReadNewLine(e){const t=this.input.charCodeAt(this.state.pos);let n;return++this.state.pos,13===t&&10===this.input.charCodeAt(this.state.pos)?(++this.state.pos,n=e?"\n":"\r\n"):n=String.fromCharCode(t),++this.state.curLine,this.state.lineStart=this.state.pos,n}jsxReadString(e){let t="",n=++this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(h.UnterminatedString,this.state.startLoc);const r=this.input.charCodeAt(this.state.pos);if(r===e)break;38===r?(t+=this.input.slice(n,this.state.pos),t+=this.jsxReadEntity(),n=this.state.pos):De(r)?(t+=this.input.slice(n,this.state.pos),t+=this.jsxReadNewLine(!1),n=this.state.pos):++this.state.pos}t+=this.input.slice(n,this.state.pos++),this.finishToken(134,t)}jsxReadEntity(){const e=++this.state.pos;if(35===this.codePointAtPos(this.state.pos)){++this.state.pos;let e=10;120===this.codePointAtPos(this.state.pos)&&(e=16,++this.state.pos);const t=this.readInt(e,void 0,!1,"bail");if(null!==t&&59===this.codePointAtPos(this.state.pos))return++this.state.pos,String.fromCodePoint(t)}else{let t=0,n=!1;for(;t++<10&&this.state.posclass extends e{constructor(...e){super(...e),this.flowPragma=void 0}getScopeHandler(){return ye}shouldParseTypes(){return this.getPluginOption("flow","all")||"flow"===this.flowPragma}finishToken(e,t){134!==e&&13!==e&&28!==e&&void 0===this.flowPragma&&(this.flowPragma=null),super.finishToken(e,t)}addComment(e){if(void 0===this.flowPragma){const t=Se.exec(e.value);if(t)if("flow"===t[1])this.flowPragma="flow";else{if("noflow"!==t[1])throw new Error("Unexpected flow pragma");this.flowPragma="noflow"}}super.addComment(e)}flowParseTypeInitialiser(e){const t=this.state.inType;this.state.inType=!0,this.expect(e||14);const n=this.flowParseType();return this.state.inType=t,n}flowParsePredicate(){const e=this.startNode(),t=this.state.startLoc;return this.next(),this.expectContextual(110),this.state.lastTokStartLoc.index>t.index+1&&this.raise(be.UnexpectedSpaceBetweenModuloChecks,t),this.eat(10)?(e.value=super.parseExpression(),this.expect(11),this.finishNode(e,"DeclaredPredicate")):this.finishNode(e,"InferredPredicate")}flowParseTypeAndPredicateInitialiser(){const e=this.state.inType;this.state.inType=!0,this.expect(14);let t=null,n=null;return this.match(54)?(this.state.inType=e,n=this.flowParsePredicate()):(t=this.flowParseType(),this.state.inType=e,this.match(54)&&(n=this.flowParsePredicate())),[t,n]}flowParseDeclareClass(e){return this.next(),this.flowParseInterfaceish(e,!0),this.finishNode(e,"DeclareClass")}flowParseDeclareFunction(e){this.next();const t=e.id=this.parseIdentifier(),n=this.startNode(),r=this.startNode();this.match(47)?n.typeParameters=this.flowParseTypeParameterDeclaration():n.typeParameters=null,this.expect(10);const i=this.flowParseFunctionTypeParams();return n.params=i.params,n.rest=i.rest,n.this=i._this,this.expect(11),[n.returnType,e.predicate]=this.flowParseTypeAndPredicateInitialiser(),r.typeAnnotation=this.finishNode(n,"FunctionTypeAnnotation"),t.typeAnnotation=this.finishNode(r,"TypeAnnotation"),this.resetEndLocation(t),this.semicolon(),this.scope.declareName(e.id.name,2048,e.id.loc.start),this.finishNode(e,"DeclareFunction")}flowParseDeclare(e,t){if(this.match(80))return this.flowParseDeclareClass(e);if(this.match(68))return this.flowParseDeclareFunction(e);if(this.match(74))return this.flowParseDeclareVariable(e);if(this.eatContextual(127))return this.match(16)?this.flowParseDeclareModuleExports(e):(t&&this.raise(be.NestedDeclareModule,this.state.lastTokStartLoc),this.flowParseDeclareModule(e));if(this.isContextual(130))return this.flowParseDeclareTypeAlias(e);if(this.isContextual(131))return this.flowParseDeclareOpaqueType(e);if(this.isContextual(129))return this.flowParseDeclareInterface(e);if(this.match(82))return this.flowParseDeclareExportDeclaration(e,t);throw this.unexpected()}flowParseDeclareVariable(e){return this.next(),e.id=this.flowParseTypeAnnotatableIdentifier(),this.scope.declareName(e.id.name,5,e.id.loc.start),this.semicolon(),this.finishNode(e,"DeclareVariable")}flowParseDeclareModule(e){this.scope.enter(0),this.match(134)?e.id=super.parseExprAtom():e.id=this.parseIdentifier();const t=e.body=this.startNode(),n=t.body=[];for(this.expect(5);!this.match(8);){const e=this.startNode();this.match(83)?(this.next(),this.isContextual(130)||this.match(87)||this.raise(be.InvalidNonTypeImportInDeclareModule,this.state.lastTokStartLoc),n.push(super.parseImport(e))):(this.expectContextual(125,be.UnsupportedStatementInDeclareModule),n.push(this.flowParseDeclare(e,!0)))}this.scope.exit(),this.expect(8),this.finishNode(t,"BlockStatement");let r=null,i=!1;return n.forEach(e=>{!function(e){return"DeclareExportAllDeclaration"===e.type||"DeclareExportDeclaration"===e.type&&(!e.declaration||"TypeAlias"!==e.declaration.type&&"InterfaceDeclaration"!==e.declaration.type)}(e)?"DeclareModuleExports"===e.type&&(i&&this.raise(be.DuplicateDeclareModuleExports,e),"ES"===r&&this.raise(be.AmbiguousDeclareModuleKind,e),r="CommonJS",i=!0):("CommonJS"===r&&this.raise(be.AmbiguousDeclareModuleKind,e),r="ES")}),e.kind=r||"CommonJS",this.finishNode(e,"DeclareModule")}flowParseDeclareExportDeclaration(e,t){if(this.expect(82),this.eat(65))return this.match(68)||this.match(80)?e.declaration=this.flowParseDeclare(this.startNode()):(e.declaration=this.flowParseType(),this.semicolon()),e.default=!0,this.finishNode(e,"DeclareExportDeclaration");if(this.match(75)||this.isLet()||(this.isContextual(130)||this.isContextual(129))&&!t){const e=this.state.value;throw this.raise(be.UnsupportedDeclareExportKind,this.state.startLoc,{unsupportedExportKind:e,suggestion:xe[e]})}if(this.match(74)||this.match(68)||this.match(80)||this.isContextual(131))return e.declaration=this.flowParseDeclare(this.startNode()),e.default=!1,this.finishNode(e,"DeclareExportDeclaration");if(this.match(55)||this.match(5)||this.isContextual(129)||this.isContextual(130)||this.isContextual(131))return"ExportNamedDeclaration"===(e=this.parseExport(e,null)).type?(e.default=!1,delete e.exportKind,this.castNodeTo(e,"DeclareExportDeclaration")):this.castNodeTo(e,"DeclareExportAllDeclaration");throw this.unexpected()}flowParseDeclareModuleExports(e){return this.next(),this.expectContextual(111),e.typeAnnotation=this.flowParseTypeAnnotation(),this.semicolon(),this.finishNode(e,"DeclareModuleExports")}flowParseDeclareTypeAlias(e){this.next();const t=this.flowParseTypeAlias(e);return this.castNodeTo(t,"DeclareTypeAlias"),t}flowParseDeclareOpaqueType(e){this.next();const t=this.flowParseOpaqueType(e,!0);return this.castNodeTo(t,"DeclareOpaqueType"),t}flowParseDeclareInterface(e){return this.next(),this.flowParseInterfaceish(e,!1),this.finishNode(e,"DeclareInterface")}flowParseInterfaceish(e,t){if(e.id=this.flowParseRestrictedIdentifier(!t,!0),this.scope.declareName(e.id.name,t?17:8201,e.id.loc.start),this.match(47)?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.extends=[],this.eat(81))do{e.extends.push(this.flowParseInterfaceExtends())}while(!t&&this.eat(12));if(t){if(e.implements=[],e.mixins=[],this.eatContextual(117))do{e.mixins.push(this.flowParseInterfaceExtends())}while(this.eat(12));if(this.eatContextual(113))do{e.implements.push(this.flowParseInterfaceExtends())}while(this.eat(12))}e.body=this.flowParseObjectType({allowStatic:t,allowExact:!1,allowSpread:!1,allowProto:t,allowInexact:!1})}flowParseInterfaceExtends(){const e=this.startNode();return e.id=this.flowParseQualifiedTypeIdentifier(),this.match(47)?e.typeParameters=this.flowParseTypeParameterInstantiation():e.typeParameters=null,this.finishNode(e,"InterfaceExtends")}flowParseInterface(e){return this.flowParseInterfaceish(e,!1),this.finishNode(e,"InterfaceDeclaration")}checkNotUnderscore(e){"_"===e&&this.raise(be.UnexpectedReservedUnderscore,this.state.startLoc)}checkReservedType(e,t,n){ve.has(e)&&this.raise(n?be.AssignReservedType:be.UnexpectedReservedType,t,{reservedType:e})}flowParseRestrictedIdentifierName(e,t){return this.checkReservedType(this.state.value,this.state.startLoc,t),this.parseIdentifierName(e)}flowParseRestrictedIdentifier(e,t){const n=this.startNode(),r=this.flowParseRestrictedIdentifierName(e,t);return this.createIdentifier(n,r)}flowParseTypeAlias(e){return e.id=this.flowParseRestrictedIdentifier(!1,!0),this.scope.declareName(e.id.name,8201,e.id.loc.start),this.match(47)?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.right=this.flowParseTypeInitialiser(29),this.semicolon(),this.finishNode(e,"TypeAlias")}flowParseOpaqueType(e,t){return this.expectContextual(130),e.id=this.flowParseRestrictedIdentifier(!0,!0),this.scope.declareName(e.id.name,8201,e.id.loc.start),this.match(47)?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.supertype=null,this.match(14)&&(e.supertype=this.flowParseTypeInitialiser(14)),e.impltype=null,t||(e.impltype=this.flowParseTypeInitialiser(29)),this.semicolon(),this.finishNode(e,"OpaqueType")}flowParseTypeParameterBound(){if(this.match(14)||this.isContextual(81)){const e=this.startNode();return this.next(),e.typeAnnotation=this.flowParseType(),this.finishNode(e,"TypeAnnotation")}}flowParseTypeParameter(e=!1){const t=this.state.startLoc,n=this.startNode(),r=this.flowParseVariance();return n.name=this.flowParseRestrictedIdentifierName(),n.variance=r,n.bound=this.flowParseTypeParameterBound(),this.match(29)?(this.eat(29),n.default=this.flowParseType()):e&&this.raise(be.MissingTypeParamDefault,t),this.finishNode(n,"TypeParameter")}flowParseTypeParameterDeclaration(){const e=this.state.inType,t=this.startNode();t.params=[],this.state.inType=!0,this.match(47)||this.match(143)?this.next():this.unexpected();let n=!1;do{const e=this.flowParseTypeParameter(n);t.params.push(e),e.default&&(n=!0),this.match(48)||this.expect(12)}while(!this.match(48));return this.expect(48),this.state.inType=e,this.finishNode(t,"TypeParameterDeclaration")}flowInTopLevelContext(e){if(this.curContext()===E.brace)return e();{const t=this.state.context;this.state.context=[t[0]];try{return e()}finally{this.state.context=t}}}flowParseTypeParameterInstantiationInExpression(){if(47===this.reScan_lt())return this.flowParseTypeParameterInstantiation()}flowParseTypeParameterInstantiation(){const e=this.startNode(),t=this.state.inType;return this.state.inType=!0,e.params=[],this.flowInTopLevelContext(()=>{this.expect(47);const t=this.state.noAnonFunctionType;for(this.state.noAnonFunctionType=!1;!this.match(48);)e.params.push(this.flowParseType()),this.match(48)||this.expect(12);this.state.noAnonFunctionType=t}),this.state.inType=t,this.state.inType||this.curContext()!==E.brace||this.reScan_lt_gt(),this.expect(48),this.finishNode(e,"TypeParameterInstantiation")}flowParseTypeParameterInstantiationCallOrNew(){if(47!==this.reScan_lt())return null;const e=this.startNode(),t=this.state.inType;for(e.params=[],this.state.inType=!0,this.expect(47);!this.match(48);)e.params.push(this.flowParseTypeOrImplicitInstantiation()),this.match(48)||this.expect(12);return this.expect(48),this.state.inType=t,this.finishNode(e,"TypeParameterInstantiation")}flowParseInterfaceType(){const e=this.startNode();if(this.expectContextual(129),e.extends=[],this.eat(81))do{e.extends.push(this.flowParseInterfaceExtends())}while(this.eat(12));return e.body=this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!1,allowProto:!1,allowInexact:!1}),this.finishNode(e,"InterfaceTypeAnnotation")}flowParseObjectPropertyKey(){return this.match(135)||this.match(134)?super.parseExprAtom():this.parseIdentifier(!0)}flowParseObjectTypeIndexer(e,t,n){return e.static=t,14===this.lookahead().type?(e.id=this.flowParseObjectPropertyKey(),e.key=this.flowParseTypeInitialiser()):(e.id=null,e.key=this.flowParseType()),this.expect(3),e.value=this.flowParseTypeInitialiser(),e.variance=n,this.finishNode(e,"ObjectTypeIndexer")}flowParseObjectTypeInternalSlot(e,t){return e.static=t,e.id=this.flowParseObjectPropertyKey(),this.expect(3),this.expect(3),this.match(47)||this.match(10)?(e.method=!0,e.optional=!1,e.value=this.flowParseObjectTypeMethodish(this.startNodeAt(e.loc.start))):(e.method=!1,this.eat(17)&&(e.optional=!0),e.value=this.flowParseTypeInitialiser()),this.finishNode(e,"ObjectTypeInternalSlot")}flowParseObjectTypeMethodish(e){for(e.params=[],e.rest=null,e.typeParameters=null,e.this=null,this.match(47)&&(e.typeParameters=this.flowParseTypeParameterDeclaration()),this.expect(10),this.match(78)&&(e.this=this.flowParseFunctionTypeParam(!0),e.this.name=null,this.match(11)||this.expect(12));!this.match(11)&&!this.match(21);)e.params.push(this.flowParseFunctionTypeParam(!1)),this.match(11)||this.expect(12);return this.eat(21)&&(e.rest=this.flowParseFunctionTypeParam(!1)),this.expect(11),e.returnType=this.flowParseTypeInitialiser(),this.finishNode(e,"FunctionTypeAnnotation")}flowParseObjectTypeCallProperty(e,t){const n=this.startNode();return e.static=t,e.value=this.flowParseObjectTypeMethodish(n),this.finishNode(e,"ObjectTypeCallProperty")}flowParseObjectType({allowStatic:e,allowExact:t,allowSpread:n,allowProto:r,allowInexact:i}){const a=this.state.inType;this.state.inType=!0;const o=this.startNode();let s,c;o.callProperties=[],o.properties=[],o.indexers=[],o.internalSlots=[];let l=!1;for(t&&this.match(6)?(this.expect(6),s=9,c=!0):(this.expect(5),s=8,c=!1),o.exact=c;!this.match(s);){let t=!1,a=null,s=null;const u=this.startNode();if(r&&this.isContextual(118)){const t=this.lookahead();14!==t.type&&17!==t.type&&(this.next(),a=this.state.startLoc,e=!1)}if(e&&this.isContextual(106)){const e=this.lookahead();14!==e.type&&17!==e.type&&(this.next(),t=!0)}const d=this.flowParseVariance();if(this.eat(0))null!=a&&this.unexpected(a),this.eat(0)?(d&&this.unexpected(d.loc.start),o.internalSlots.push(this.flowParseObjectTypeInternalSlot(u,t))):o.indexers.push(this.flowParseObjectTypeIndexer(u,t,d));else if(this.match(10)||this.match(47))null!=a&&this.unexpected(a),d&&this.unexpected(d.loc.start),o.callProperties.push(this.flowParseObjectTypeCallProperty(u,t));else{let e="init";(this.isContextual(99)||this.isContextual(104))&&j(this.lookahead().type)&&(e=this.state.value,this.next());const r=this.flowParseObjectTypeProperty(u,t,a,d,e,n,null!=i?i:!c);null===r?(l=!0,s=this.state.lastTokStartLoc):o.properties.push(r)}this.flowObjectTypeSemicolon(),!s||this.match(8)||this.match(9)||this.raise(be.UnexpectedExplicitInexactInObject,s)}this.expect(s),n&&(o.inexact=l);const u=this.finishNode(o,"ObjectTypeAnnotation");return this.state.inType=a,u}flowParseObjectTypeProperty(e,t,n,r,i,a,o){if(this.eat(21))return this.match(12)||this.match(13)||this.match(8)||this.match(9)?(a?o||this.raise(be.InexactInsideExact,this.state.lastTokStartLoc):this.raise(be.InexactInsideNonObject,this.state.lastTokStartLoc),r&&this.raise(be.InexactVariance,r),null):(a||this.raise(be.UnexpectedSpreadType,this.state.lastTokStartLoc),null!=n&&this.unexpected(n),r&&this.raise(be.SpreadVariance,r),e.argument=this.flowParseType(),this.finishNode(e,"ObjectTypeSpreadProperty"));{e.key=this.flowParseObjectPropertyKey(),e.static=t,e.proto=null!=n,e.kind=i;let o=!1;return this.match(47)||this.match(10)?(e.method=!0,null!=n&&this.unexpected(n),r&&this.unexpected(r.loc.start),e.value=this.flowParseObjectTypeMethodish(this.startNodeAt(e.loc.start)),"get"!==i&&"set"!==i||this.flowCheckGetterSetterParams(e),!a&&"constructor"===e.key.name&&e.value.this&&this.raise(be.ThisParamBannedInConstructor,e.value.this)):("init"!==i&&this.unexpected(),e.method=!1,this.eat(17)&&(o=!0),e.value=this.flowParseTypeInitialiser(),e.variance=r),e.optional=o,this.finishNode(e,"ObjectTypeProperty")}}flowCheckGetterSetterParams(e){const t="get"===e.kind?0:1,n=e.value.params.length+(e.value.rest?1:0);e.value.this&&this.raise("get"===e.kind?be.GetterMayNotHaveThisParam:be.SetterMayNotHaveThisParam,e.value.this),n!==t&&this.raise("get"===e.kind?h.BadGetterArity:h.BadSetterArity,e),"set"===e.kind&&e.value.rest&&this.raise(h.BadSetterRestParameter,e)}flowObjectTypeSemicolon(){this.eat(13)||this.eat(12)||this.match(8)||this.match(9)||this.unexpected()}flowParseQualifiedTypeIdentifier(e,t){null!=e||(e=this.state.startLoc);let n=t||this.flowParseRestrictedIdentifier(!0);for(;this.eat(16);){const t=this.startNodeAt(e);t.qualification=n,t.id=this.flowParseRestrictedIdentifier(!0),n=this.finishNode(t,"QualifiedTypeIdentifier")}return n}flowParseGenericType(e,t){const n=this.startNodeAt(e);return n.typeParameters=null,n.id=this.flowParseQualifiedTypeIdentifier(e,t),this.match(47)&&(n.typeParameters=this.flowParseTypeParameterInstantiation()),this.finishNode(n,"GenericTypeAnnotation")}flowParseTypeofType(){const e=this.startNode();return this.expect(87),e.argument=this.flowParsePrimaryType(),this.finishNode(e,"TypeofTypeAnnotation")}flowParseTupleType(){const e=this.startNode();for(e.types=[],this.expect(0);this.state.possuper.parseFunctionBody(e,!0,n)):super.parseFunctionBody(e,!1,n)}parseFunctionBodyAndFinish(e,t,n=!1){if(this.match(14)){const t=this.startNode();[t.typeAnnotation,e.predicate]=this.flowParseTypeAndPredicateInitialiser(),e.returnType=t.typeAnnotation?this.finishNode(t,"TypeAnnotation"):null}return super.parseFunctionBodyAndFinish(e,t,n)}parseStatementLike(e){if(this.state.strict&&this.isContextual(129)){if(K(this.lookahead().type)){const e=this.startNode();return this.next(),this.flowParseInterface(e)}}else if(this.isContextual(126)){const e=this.startNode();return this.next(),this.flowParseEnumDeclaration(e)}const t=super.parseStatementLike(e);return void 0!==this.flowPragma||this.isValidDirective(t)||(this.flowPragma=null),t}parseExpressionStatement(e,t,n){if("Identifier"===t.type)if("declare"===t.name){if(this.match(80)||V(this.state.type)||this.match(68)||this.match(74)||this.match(82))return this.flowParseDeclare(e)}else if(V(this.state.type)){if("interface"===t.name)return this.flowParseInterface(e);if("type"===t.name)return this.flowParseTypeAlias(e);if("opaque"===t.name)return this.flowParseOpaqueType(e,!1)}return super.parseExpressionStatement(e,t,n)}shouldParseExportDeclaration(){const{type:e}=this.state;return 126===e||W(e)?!this.state.containsEsc:super.shouldParseExportDeclaration()}isExportDefaultSpecifier(){const{type:e}=this.state;return 126===e||W(e)?this.state.containsEsc:super.isExportDefaultSpecifier()}parseExportDefaultExpression(){if(this.isContextual(126)){const e=this.startNode();return this.next(),this.flowParseEnumDeclaration(e)}return super.parseExportDefaultExpression()}parseConditional(e,t,n){if(!this.match(17))return e;if(this.state.maybeInArrowParameters){const t=this.lookaheadCharCode();if(44===t||61===t||58===t||41===t)return this.setOptionalParametersError(n),e}this.expect(17);const r=this.state.clone(),i=this.state.noArrowAt,a=this.startNodeAt(t);let{consequent:o,failed:s}=this.tryParseConditionalConsequent(),[c,l]=this.getArrowLikeExpressions(o);if(s||l.length>0){const e=[...i];if(l.length>0){this.state=r,this.state.noArrowAt=e;for(let t=0;t1&&this.raise(be.AmbiguousConditionalArrow,r.startLoc),s&&1===c.length&&(this.state=r,e.push(c[0].start),this.state.noArrowAt=e,({consequent:o,failed:s}=this.tryParseConditionalConsequent()))}return this.getArrowLikeExpressions(o,!0),this.state.noArrowAt=i,this.expect(14),a.test=e,a.consequent=o,a.alternate=this.forwardNoArrowParamsConversionAt(a,()=>this.parseMaybeAssign(void 0,void 0)),this.finishNode(a,"ConditionalExpression")}tryParseConditionalConsequent(){this.state.noArrowParamsConversionAt.push(this.state.start);const e=this.parseMaybeAssignAllowIn(),t=!this.match(14);return this.state.noArrowParamsConversionAt.pop(),{consequent:e,failed:t}}getArrowLikeExpressions(e,t){const n=[e],r=[];for(;0!==n.length;){const e=n.pop();"ArrowFunctionExpression"===e.type&&"BlockStatement"!==e.body.type?(e.typeParameters||!e.returnType?this.finishArrowValidation(e):r.push(e),n.push(e.body)):"ConditionalExpression"===e.type&&(n.push(e.consequent),n.push(e.alternate))}return t?(r.forEach(e=>this.finishArrowValidation(e)),[r,[]]):function(e,t){const n=[],r=[];for(let i=0;ie.params.every(e=>this.isAssignable(e,!0)))}finishArrowValidation(e){var t;this.toAssignableList(e.params,null==(t=e.extra)?void 0:t.trailingCommaLoc,!1),this.scope.enter(518),super.checkParams(e,!1,!0),this.scope.exit()}forwardNoArrowParamsConversionAt(e,t){let n;return this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(e.start))?(this.state.noArrowParamsConversionAt.push(this.state.start),n=t(),this.state.noArrowParamsConversionAt.pop()):n=t(),n}parseParenItem(e,t){const n=super.parseParenItem(e,t);if(this.eat(17)&&(n.optional=!0,this.resetEndLocation(e)),this.match(14)){const e=this.startNodeAt(t);return e.expression=n,e.typeAnnotation=this.flowParseTypeAnnotation(),this.finishNode(e,"TypeCastExpression")}return n}assertModuleNodeAllowed(e){"ImportDeclaration"===e.type&&("type"===e.importKind||"typeof"===e.importKind)||"ExportNamedDeclaration"===e.type&&"type"===e.exportKind||"ExportAllDeclaration"===e.type&&"type"===e.exportKind||super.assertModuleNodeAllowed(e)}parseExportDeclaration(e){if(this.isContextual(130)){e.exportKind="type";const t=this.startNode();return this.next(),this.match(5)?(e.specifiers=this.parseExportSpecifiers(!0),super.parseExportFrom(e),null):this.flowParseTypeAlias(t)}if(this.isContextual(131)){e.exportKind="type";const t=this.startNode();return this.next(),this.flowParseOpaqueType(t,!1)}if(this.isContextual(129)){e.exportKind="type";const t=this.startNode();return this.next(),this.flowParseInterface(t)}if(this.isContextual(126)){e.exportKind="value";const t=this.startNode();return this.next(),this.flowParseEnumDeclaration(t)}return super.parseExportDeclaration(e)}eatExportStar(e){return!!super.eatExportStar(e)||!(!this.isContextual(130)||55!==this.lookahead().type)&&(e.exportKind="type",this.next(),this.next(),!0)}maybeParseExportNamespaceSpecifier(e){const{startLoc:t}=this.state,n=super.maybeParseExportNamespaceSpecifier(e);return n&&"type"===e.exportKind&&this.unexpected(t),n}parseClassId(e,t,n){super.parseClassId(e,t,n),this.match(47)&&(e.typeParameters=this.flowParseTypeParameterDeclaration())}parseClassMember(e,t,n){const{startLoc:r}=this.state;if(this.isContextual(125)){if(super.parseClassMemberFromModifier(e,t))return;t.declare=!0}super.parseClassMember(e,t,n),t.declare&&("ClassProperty"!==t.type&&"ClassPrivateProperty"!==t.type&&"PropertyDefinition"!==t.type?this.raise(be.DeclareClassElement,r):t.value&&this.raise(be.DeclareClassFieldInitializer,t.value))}isIterator(e){return"iterator"===e||"asyncIterator"===e}readIterator(){const e=super.readWord1(),t="@@"+e;this.isIterator(e)&&this.state.inType||this.raise(h.InvalidIdentifier,this.state.curPosition(),{identifierName:t}),this.finishToken(132,t)}getTokenFromCode(e){const t=this.input.charCodeAt(this.state.pos+1);123===e&&124===t?this.finishOp(6,2):!this.state.inType||62!==e&&60!==e?this.state.inType&&63===e?46===t?this.finishOp(18,2):this.finishOp(17,1):function(e,t,n){return 64===e&&64===t&&ae(n)}(e,t,this.input.charCodeAt(this.state.pos+2))?(this.state.pos+=2,this.readIterator()):super.getTokenFromCode(e):this.finishOp(62===e?48:47,1)}isAssignable(e,t){return"TypeCastExpression"===e.type?this.isAssignable(e.expression,t):super.isAssignable(e,t)}toAssignable(e,t=!1){t||"AssignmentExpression"!==e.type||"TypeCastExpression"!==e.left.type||(e.left=this.typeCastToParameter(e.left)),super.toAssignable(e,t)}toAssignableList(e,t,n){for(let t=0;t1)&&t||this.raise(be.TypeCastInPattern,i.typeAnnotation)}return e}parseArrayLike(e,t,n){const r=super.parseArrayLike(e,t,n);return null==n||this.state.maybeInArrowParameters||this.toReferencedList(r.elements),r}isValidLVal(e,t,n,r){return"TypeCastExpression"===e||super.isValidLVal(e,t,n,r)}parseClassProperty(e){return this.match(14)&&(e.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassProperty(e)}parseClassPrivateProperty(e){return this.match(14)&&(e.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassPrivateProperty(e)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(14)||super.isClassProperty()}isNonstaticConstructor(e){return!this.match(14)&&super.isNonstaticConstructor(e)}pushClassMethod(e,t,n,r,i,a){if(t.variance&&this.unexpected(t.variance.loc.start),delete t.variance,this.match(47)&&(t.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassMethod(e,t,n,r,i,a),t.params&&i){const e=t.params;e.length>0&&this.isThisParam(e[0])&&this.raise(be.ThisParamBannedInConstructor,t)}else if("MethodDefinition"===t.type&&i&&t.value.params){const e=t.value.params;e.length>0&&this.isThisParam(e[0])&&this.raise(be.ThisParamBannedInConstructor,t)}}pushClassPrivateMethod(e,t,n,r){t.variance&&this.unexpected(t.variance.loc.start),delete t.variance,this.match(47)&&(t.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassPrivateMethod(e,t,n,r)}parseClassSuper(e){if(super.parseClassSuper(e),e.superClass&&(this.match(47)||this.match(51))&&(e.superTypeParameters=this.flowParseTypeParameterInstantiationInExpression()),this.isContextual(113)){this.next();const t=e.implements=[];do{const e=this.startNode();e.id=this.flowParseRestrictedIdentifier(!0),this.match(47)?e.typeParameters=this.flowParseTypeParameterInstantiation():e.typeParameters=null,t.push(this.finishNode(e,"ClassImplements"))}while(this.eat(12))}}checkGetterSetterParams(e){super.checkGetterSetterParams(e);const t=this.getObjectOrClassMethodParams(e);if(t.length>0){const n=t[0];this.isThisParam(n)&&"get"===e.kind?this.raise(be.GetterMayNotHaveThisParam,n):this.isThisParam(n)&&this.raise(be.SetterMayNotHaveThisParam,n)}}parsePropertyNamePrefixOperator(e){e.variance=this.flowParseVariance()}parseObjPropValue(e,t,n,r,i,a,o){let s;e.variance&&this.unexpected(e.variance.loc.start),delete e.variance,this.match(47)&&!a&&(s=this.flowParseTypeParameterDeclaration(),this.match(10)||this.unexpected());const c=super.parseObjPropValue(e,t,n,r,i,a,o);return s&&((c.value||c).typeParameters=s),c}parseFunctionParamType(e){return this.eat(17)&&("Identifier"!==e.type&&this.raise(be.PatternIsOptional,e),this.isThisParam(e)&&this.raise(be.ThisParamMayNotBeOptional,e),e.optional=!0),this.match(14)?e.typeAnnotation=this.flowParseTypeAnnotation():this.isThisParam(e)&&this.raise(be.ThisParamAnnotationRequired,e),this.match(29)&&this.isThisParam(e)&&this.raise(be.ThisParamNoDefault,e),this.resetEndLocation(e),e}parseMaybeDefault(e,t){const n=super.parseMaybeDefault(e,t);return"AssignmentPattern"===n.type&&n.typeAnnotation&&n.right.startsuper.parseMaybeAssign(e,t),i),!r.error)return r.node;const{context:n}=this.state,a=n[n.length-1];a!==E.j_oTag&&a!==E.j_expr||n.pop()}if(null!=(n=r)&&n.error||this.match(47)){var a,o;let n;i=i||this.state.clone();const s=this.tryParse(r=>{var i;n=this.flowParseTypeParameterDeclaration();const a=this.forwardNoArrowParamsConversionAt(n,()=>{const r=super.parseMaybeAssign(e,t);return this.resetStartLocationFromNode(r,n),r});null!=(i=a.extra)&&i.parenthesized&&r();const o=this.maybeUnwrapTypeCastExpression(a);return"ArrowFunctionExpression"!==o.type&&r(),o.typeParameters=n,this.resetStartLocationFromNode(o,n),a},i);let c=null;if(s.node&&"ArrowFunctionExpression"===this.maybeUnwrapTypeCastExpression(s.node).type){if(!s.error&&!s.aborted)return s.node.async&&this.raise(be.UnexpectedTypeParameterBeforeAsyncArrowFunction,n),s.node;c=s.node}if(null!=(a=r)&&a.node)return this.state=r.failState,r.node;if(c)return this.state=s.failState,c;if(null!=(o=r)&&o.thrown)throw r.error;if(s.thrown)throw s.error;throw this.raise(be.UnexpectedTokenAfterTypeParameter,n)}return super.parseMaybeAssign(e,t)}parseArrow(e){if(this.match(14)){const t=this.tryParse(()=>{const t=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0;const n=this.startNode();return[n.typeAnnotation,e.predicate]=this.flowParseTypeAndPredicateInitialiser(),this.state.noAnonFunctionType=t,this.canInsertSemicolon()&&this.unexpected(),this.match(19)||this.unexpected(),n});if(t.thrown)return null;t.error&&(this.state=t.failState),e.returnType=t.node.typeAnnotation?this.finishNode(t.node,"TypeAnnotation"):null}return super.parseArrow(e)}shouldParseArrow(e){return this.match(14)||super.shouldParseArrow(e)}setArrowFunctionParameters(e,t){this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(e.start))?e.params=t:super.setArrowFunctionParameters(e,t)}checkParams(e,t,n,r=!0){if(!n||!this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(e.start))){for(let t=0;t0&&this.raise(be.ThisParamMustBeFirst,e.params[t]);super.checkParams(e,t,n,r)}}parseParenAndDistinguishExpression(e){return super.parseParenAndDistinguishExpression(e&&!this.state.noArrowAt.includes(this.sourceToOffsetPos(this.state.start)))}parseSubscripts(e,t,n){if("Identifier"===e.type&&"async"===e.name&&this.state.noArrowAt.includes(t.index)){this.next();const n=this.startNodeAt(t);n.callee=e,n.arguments=super.parseCallExpressionArguments(),e=this.finishNode(n,"CallExpression")}else if("Identifier"===e.type&&"async"===e.name&&this.match(47)){const r=this.state.clone(),i=this.tryParse(e=>this.parseAsyncArrowWithTypeParameters(t)||e(),r);if(!i.error&&!i.aborted)return i.node;const a=this.tryParse(()=>super.parseSubscripts(e,t,n),r);if(a.node&&!a.error)return a.node;if(i.node)return this.state=i.failState,i.node;if(a.node)return this.state=a.failState,a.node;throw i.error||a.error}return super.parseSubscripts(e,t,n)}parseSubscript(e,t,n,r){if(this.match(18)&&this.isLookaheadToken_lt()){if(r.optionalChainMember=!0,n)return r.stop=!0,e;this.next();const i=this.startNodeAt(t);return i.callee=e,i.typeArguments=this.flowParseTypeParameterInstantiationInExpression(),this.expect(10),i.arguments=this.parseCallExpressionArguments(),i.optional=!0,this.finishCallExpression(i,!0)}if(!n&&this.shouldParseTypes()&&(this.match(47)||this.match(51))){const n=this.startNodeAt(t);n.callee=e;const i=this.tryParse(()=>(n.typeArguments=this.flowParseTypeParameterInstantiationCallOrNew(),this.expect(10),n.arguments=super.parseCallExpressionArguments(),r.optionalChainMember&&(n.optional=!1),this.finishCallExpression(n,r.optionalChainMember)));if(i.node)return i.error&&(this.state=i.failState),i.node}return super.parseSubscript(e,t,n,r)}parseNewCallee(e){super.parseNewCallee(e);let t=null;this.shouldParseTypes()&&this.match(47)&&(t=this.tryParse(()=>this.flowParseTypeParameterInstantiationCallOrNew()).node),e.typeArguments=t}parseAsyncArrowWithTypeParameters(e){const t=this.startNodeAt(e);if(this.parseFunctionParams(t,!1),this.parseArrow(t))return super.parseArrowExpression(t,void 0,!0)}readToken_mult_modulo(e){const t=this.input.charCodeAt(this.state.pos+1);if(42===e&&47===t&&this.state.hasFlowComment)return this.state.hasFlowComment=!1,this.state.pos+=2,void this.nextToken();super.readToken_mult_modulo(e)}readToken_pipe_amp(e){const t=this.input.charCodeAt(this.state.pos+1);124!==e||125!==t?super.readToken_pipe_amp(e):this.finishOp(9,2)}parseTopLevel(e,t){const n=super.parseTopLevel(e,t);return this.state.hasFlowComment&&this.raise(be.UnterminatedFlowComment,this.state.curPosition()),n}skipBlockComment(){if(this.hasPlugin("flowComments")&&this.skipFlowComment()){if(this.state.hasFlowComment)throw this.raise(be.NestedFlowComment,this.state.startLoc);this.hasFlowCommentCompletion();const e=this.skipFlowComment();return void(e&&(this.state.pos+=e,this.state.hasFlowComment=!0))}return super.skipBlockComment(this.state.hasFlowComment?"*-/":"*/")}skipFlowComment(){const{pos:e}=this.state;let t=2;for(;[32,9].includes(this.input.charCodeAt(e+t));)t++;const n=this.input.charCodeAt(t+e),r=this.input.charCodeAt(t+e+1);return 58===n&&58===r?t+2:"flow-include"===this.input.slice(t+e,t+e+12)?t+12:58===n&&58!==r&&t}hasFlowCommentCompletion(){if(-1===this.input.indexOf("*/",this.state.pos))throw this.raise(h.UnterminatedComment,this.state.curPosition())}flowEnumErrorBooleanMemberNotInitialized(e,{enumName:t,memberName:n}){this.raise(be.EnumBooleanMemberNotInitialized,e,{memberName:n,enumName:t})}flowEnumErrorInvalidMemberInitializer(e,t){return this.raise(t.explicitType?"symbol"===t.explicitType?be.EnumInvalidMemberInitializerSymbolType:be.EnumInvalidMemberInitializerPrimaryType:be.EnumInvalidMemberInitializerUnknownType,e,t)}flowEnumErrorNumberMemberNotInitialized(e,t){this.raise(be.EnumNumberMemberNotInitialized,e,t)}flowEnumErrorStringMemberInconsistentlyInitialized(e,t){this.raise(be.EnumStringMemberInconsistentlyInitialized,e,t)}flowEnumMemberInit(){const e=this.state.startLoc,t=()=>this.match(12)||this.match(8);switch(this.state.type){case 135:{const n=this.parseNumericLiteral(this.state.value);return t()?{type:"number",loc:n.loc.start,value:n}:{type:"invalid",loc:e}}case 134:{const n=this.parseStringLiteral(this.state.value);return t()?{type:"string",loc:n.loc.start,value:n}:{type:"invalid",loc:e}}case 85:case 86:{const n=this.parseBooleanLiteral(this.match(85));return t()?{type:"boolean",loc:n.loc.start,value:n}:{type:"invalid",loc:e}}default:return{type:"invalid",loc:e}}}flowEnumMemberRaw(){const e=this.state.startLoc;return{id:this.parseIdentifier(!0),init:this.eat(29)?this.flowEnumMemberInit():{type:"none",loc:e}}}flowEnumCheckExplicitTypeMismatch(e,t,n){const{explicitType:r}=t;null!==r&&r!==n&&this.flowEnumErrorInvalidMemberInitializer(e,t)}flowEnumMembers({enumName:e,explicitType:t}){const n=new Set,r={booleanMembers:[],numberMembers:[],stringMembers:[],defaultedMembers:[]};let i=!1;for(;!this.match(8);){if(this.eat(21)){i=!0;break}const a=this.startNode(),{id:o,init:s}=this.flowEnumMemberRaw(),c=o.name;if(""===c)continue;/^[a-z]/.test(c)&&this.raise(be.EnumInvalidMemberName,o,{memberName:c,suggestion:c[0].toUpperCase()+c.slice(1),enumName:e}),n.has(c)&&this.raise(be.EnumDuplicateMemberName,o,{memberName:c,enumName:e}),n.add(c);const l={enumName:e,explicitType:t,memberName:c};switch(a.id=o,s.type){case"boolean":this.flowEnumCheckExplicitTypeMismatch(s.loc,l,"boolean"),a.init=s.value,r.booleanMembers.push(this.finishNode(a,"EnumBooleanMember"));break;case"number":this.flowEnumCheckExplicitTypeMismatch(s.loc,l,"number"),a.init=s.value,r.numberMembers.push(this.finishNode(a,"EnumNumberMember"));break;case"string":this.flowEnumCheckExplicitTypeMismatch(s.loc,l,"string"),a.init=s.value,r.stringMembers.push(this.finishNode(a,"EnumStringMember"));break;case"invalid":throw this.flowEnumErrorInvalidMemberInitializer(s.loc,l);case"none":switch(t){case"boolean":this.flowEnumErrorBooleanMemberNotInitialized(s.loc,l);break;case"number":this.flowEnumErrorNumberMemberNotInitialized(s.loc,l);break;default:r.defaultedMembers.push(this.finishNode(a,"EnumDefaultedMember"))}}this.match(8)||this.expect(12)}return{members:r,hasUnknownMembers:i}}flowEnumStringMembers(e,t,{enumName:n}){if(0===e.length)return t;if(0===t.length)return e;if(t.length>e.length){for(const t of e)this.flowEnumErrorStringMemberInconsistentlyInitialized(t,{enumName:n});return t}for(const e of t)this.flowEnumErrorStringMemberInconsistentlyInitialized(e,{enumName:n});return e}flowEnumParseExplicitType({enumName:e}){if(!this.eatContextual(102))return null;if(!V(this.state.type))throw this.raise(be.EnumInvalidExplicitTypeUnknownSupplied,this.state.startLoc,{enumName:e});const{value:t}=this.state;return this.next(),"boolean"!==t&&"number"!==t&&"string"!==t&&"symbol"!==t&&this.raise(be.EnumInvalidExplicitType,this.state.startLoc,{enumName:e,invalidEnumType:t}),t}flowEnumBody(e,t){const n=t.name,r=t.loc.start,i=this.flowEnumParseExplicitType({enumName:n});this.expect(5);const{members:a,hasUnknownMembers:o}=this.flowEnumMembers({enumName:n,explicitType:i});switch(e.hasUnknownMembers=o,i){case"boolean":return e.explicitType=!0,e.members=a.booleanMembers,this.expect(8),this.finishNode(e,"EnumBooleanBody");case"number":return e.explicitType=!0,e.members=a.numberMembers,this.expect(8),this.finishNode(e,"EnumNumberBody");case"string":return e.explicitType=!0,e.members=this.flowEnumStringMembers(a.stringMembers,a.defaultedMembers,{enumName:n}),this.expect(8),this.finishNode(e,"EnumStringBody");case"symbol":return e.members=a.defaultedMembers,this.expect(8),this.finishNode(e,"EnumSymbolBody");default:{const t=()=>(e.members=[],this.expect(8),this.finishNode(e,"EnumStringBody"));e.explicitType=!1;const i=a.booleanMembers.length,o=a.numberMembers.length,s=a.stringMembers.length,c=a.defaultedMembers.length;if(i||o||s||c){if(i||o){if(!o&&!s&&i>=c){for(const e of a.defaultedMembers)this.flowEnumErrorBooleanMemberNotInitialized(e.loc.start,{enumName:n,memberName:e.id.name});return e.members=a.booleanMembers,this.expect(8),this.finishNode(e,"EnumBooleanBody")}if(!i&&!s&&o>=c){for(const e of a.defaultedMembers)this.flowEnumErrorNumberMemberNotInitialized(e.loc.start,{enumName:n,memberName:e.id.name});return e.members=a.numberMembers,this.expect(8),this.finishNode(e,"EnumNumberBody")}return this.raise(be.EnumInconsistentMemberValues,r,{enumName:n}),t()}return e.members=this.flowEnumStringMembers(a.stringMembers,a.defaultedMembers,{enumName:n}),this.expect(8),this.finishNode(e,"EnumStringBody")}return t()}}}flowParseEnumDeclaration(e){const t=this.parseIdentifier();return e.id=t,e.body=this.flowEnumBody(this.startNode(),t),this.finishNode(e,"EnumDeclaration")}jsxParseOpeningElementAfterName(e){return this.shouldParseTypes()&&(this.match(47)||this.match(51))&&(e.typeArguments=this.flowParseTypeParameterInstantiationInExpression()),super.jsxParseOpeningElementAfterName(e)}isLookaheadToken_lt(){const e=this.nextTokenStart();if(60===this.input.charCodeAt(e)){const t=this.input.charCodeAt(e+1);return 60!==t&&61!==t}return!1}reScan_lt_gt(){const{type:e}=this.state;47===e?(this.state.pos-=1,this.readToken_lt()):48===e&&(this.state.pos-=1,this.readToken_gt())}reScan_lt(){const{type:e}=this.state;return 51===e?(this.state.pos-=2,this.finishOp(47,1),47):e}maybeUnwrapTypeCastExpression(e){return"TypeCastExpression"===e.type?e.expression:e}},typescript:e=>class extends e{constructor(...e){super(...e),this.tsParseInOutModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:["in","out"],disallowedModifiers:["const","public","private","protected","readonly","declare","abstract","override"],errorTemplate:yt.InvalidModifierOnTypeParameter}),this.tsParseConstModifier=this.tsParseModifiers.bind(this,{allowedModifiers:["const"],disallowedModifiers:["in","out"],errorTemplate:yt.InvalidModifierOnTypeParameterPositions}),this.tsParseInOutConstModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:["in","out","const"],disallowedModifiers:["public","private","protected","readonly","declare","abstract","override"],errorTemplate:yt.InvalidModifierOnTypeParameter})}getScopeHandler(){return Re}tsIsIdentifier(){return V(this.state.type)}tsTokenCanFollowModifier(){return this.match(0)||this.match(5)||this.match(55)||this.match(21)||this.match(139)||this.isLiteralPropertyName()}tsNextTokenOnSameLineAndCanFollowModifier(){return this.next(),!this.hasPrecedingLineBreak()&&this.tsTokenCanFollowModifier()}tsNextTokenCanFollowModifier(){return this.match(106)?(this.next(),this.tsTokenCanFollowModifier()):this.tsNextTokenOnSameLineAndCanFollowModifier()}tsParseModifier(e,t,n){if(!V(this.state.type)&&58!==this.state.type&&75!==this.state.type)return;const r=this.state.value;if(e.includes(r)){if(n&&this.match(106))return;if(t&&this.tsIsStartOfStaticBlocks())return;if(this.tsTryParse(this.tsNextTokenCanFollowModifier.bind(this)))return r}}tsParseModifiers({allowedModifiers:e,disallowedModifiers:t,stopOnStartOfClassStaticBlock:n,errorTemplate:r=yt.InvalidModifierOnTypeMember},i){const a=(e,t,n,r)=>{t===n&&i[r]&&this.raise(yt.InvalidModifiersOrder,e,{orderedModifiers:[n,r]})},o=(e,t,n,r)=>{(i[n]&&t===r||i[r]&&t===n)&&this.raise(yt.IncompatibleModifiers,e,{modifiers:[n,r]})};for(;;){const{startLoc:s}=this.state,c=this.tsParseModifier(e.concat(null!=t?t:[]),n,i.static);if(!c)break;vt(c)?i.accessibility?this.raise(yt.DuplicateAccessibilityModifier,s,{modifier:c}):(a(s,c,c,"override"),a(s,c,c,"static"),a(s,c,c,"readonly"),i.accessibility=c):bt(c)?(i[c]&&this.raise(yt.DuplicateModifier,s,{modifier:c}),i[c]=!0,a(s,c,"in","out")):(hasOwnProperty.call(i,c)?this.raise(yt.DuplicateModifier,s,{modifier:c}):(a(s,c,"static","readonly"),a(s,c,"static","override"),a(s,c,"override","readonly"),a(s,c,"abstract","override"),o(s,c,"declare","override"),o(s,c,"static","abstract")),i[c]=!0),null!=t&&t.includes(c)&&this.raise(r,s,{modifier:c})}}tsIsListTerminator(e){switch(e){case"EnumMembers":case"TypeMembers":return this.match(8);case"HeritageClauseElement":return this.match(5);case"TupleElementTypes":return this.match(3);case"TypeParametersOrArguments":return this.match(48)}}tsParseList(e,t){const n=[];for(;!this.tsIsListTerminator(e);)n.push(t());return n}tsParseDelimitedList(e,t,n){return function(e){if(null==e)throw new Error(`Unexpected ${e} value.`);return e}(this.tsParseDelimitedListWorker(e,t,!0,n))}tsParseDelimitedListWorker(e,t,n,r){const i=[];let a=-1;for(;!this.tsIsListTerminator(e);){a=-1;const r=t();if(null==r)return;if(i.push(r),!this.eat(12)){if(this.tsIsListTerminator(e))break;return void(n&&this.expect(12))}a=this.state.lastTokStartLoc.index}return r&&(r.value=a),i}tsParseBracketedList(e,t,n,r,i){r||(n?this.expect(0):this.expect(47));const a=this.tsParseDelimitedList(e,t,i);return n?this.expect(3):this.expect(48),a}tsParseImportType(){const e=this.startNode();return this.expect(83),this.expect(10),this.match(134)?e.argument=this.parseStringLiteral(this.state.value):(this.raise(yt.UnsupportedImportTypeArgument,this.state.startLoc),e.argument=super.parseExprAtom()),this.eat(12)?e.options=this.tsParseImportTypeOptions():e.options=null,this.expect(11),this.eat(16)&&(e.qualifier=this.tsParseEntityName(3)),this.match(47)&&(e.typeParameters=this.tsParseTypeArguments()),this.finishNode(e,"TSImportType")}tsParseImportTypeOptions(){const e=this.startNode();this.expect(5);const t=this.startNode();return this.isContextual(76)?(t.method=!1,t.key=this.parseIdentifier(!0),t.computed=!1,t.shorthand=!1):this.unexpected(null,76),this.expect(14),t.value=this.tsParseImportTypeWithPropertyValue(),e.properties=[this.finishObjectProperty(t)],this.eat(12),this.expect(8),this.finishNode(e,"ObjectExpression")}tsParseImportTypeWithPropertyValue(){const e=this.startNode(),t=[];for(this.expect(5);!this.match(8);){const e=this.state.type;V(e)||134===e?t.push(super.parsePropertyDefinition(null)):this.unexpected(),this.eat(12)}return e.properties=t,this.next(),this.finishNode(e,"ObjectExpression")}tsParseEntityName(e){let t;if(1&e&&this.match(78))if(2&e)t=this.parseIdentifier(!0);else{const e=this.startNode();this.next(),t=this.finishNode(e,"ThisExpression")}else t=this.parseIdentifier(!!(1&e));for(;this.eat(16);){const n=this.startNodeAtNode(t);n.left=t,n.right=this.parseIdentifier(!!(1&e)),t=this.finishNode(n,"TSQualifiedName")}return t}tsParseTypeReference(){const e=this.startNode();return e.typeName=this.tsParseEntityName(1),!this.hasPrecedingLineBreak()&&this.match(47)&&(e.typeParameters=this.tsParseTypeArguments()),this.finishNode(e,"TSTypeReference")}tsParseThisTypePredicate(e){this.next();const t=this.startNodeAtNode(e);return t.parameterName=e,t.typeAnnotation=this.tsParseTypeAnnotation(!1),t.asserts=!1,this.finishNode(t,"TSTypePredicate")}tsParseThisTypeNode(){const e=this.startNode();return this.next(),this.finishNode(e,"TSThisType")}tsParseTypeQuery(){const e=this.startNode();return this.expect(87),this.match(83)?e.exprName=this.tsParseImportType():e.exprName=this.tsParseEntityName(3),!this.hasPrecedingLineBreak()&&this.match(47)&&(e.typeParameters=this.tsParseTypeArguments()),this.finishNode(e,"TSTypeQuery")}tsParseTypeParameter(e){const t=this.startNode();return e(t),t.name=this.tsParseTypeParameterName(),t.constraint=this.tsEatThenParseType(81),t.default=this.tsEatThenParseType(29),this.finishNode(t,"TSTypeParameter")}tsTryParseTypeParameters(e){if(this.match(47))return this.tsParseTypeParameters(e)}tsParseTypeParameters(e){const t=this.startNode();this.match(47)||this.match(143)?this.next():this.unexpected();const n={value:-1};return t.params=this.tsParseBracketedList("TypeParametersOrArguments",this.tsParseTypeParameter.bind(this,e),!1,!0,n),0===t.params.length&&this.raise(yt.EmptyTypeParameters,t),-1!==n.value&&this.addExtra(t,"trailingComma",n.value),this.finishNode(t,"TSTypeParameterDeclaration")}tsFillSignature(e,t){const n=19===e;t.typeParameters=this.tsTryParseTypeParameters(this.tsParseConstModifier),this.expect(10),t.parameters=this.tsParseBindingListForSignature(),(n||this.match(e))&&(t.typeAnnotation=this.tsParseTypeOrTypePredicateAnnotation(e))}tsParseBindingListForSignature(){const e=super.parseBindingList(11,41,2);for(const t of e){const{type:e}=t;"AssignmentPattern"!==e&&"TSParameterProperty"!==e||this.raise(yt.UnsupportedSignatureParameterKind,t,{type:e})}return e}tsParseTypeMemberSemicolon(){this.eat(12)||this.isLineTerminator()||this.expect(13)}tsParseSignatureMember(e,t){return this.tsFillSignature(14,t),this.tsParseTypeMemberSemicolon(),this.finishNode(t,e)}tsIsUnambiguouslyIndexSignature(){return this.next(),!!V(this.state.type)&&(this.next(),this.match(14))}tsTryParseIndexSignature(e){if(!this.match(0)||!this.tsLookAhead(this.tsIsUnambiguouslyIndexSignature.bind(this)))return;this.expect(0);const t=this.parseIdentifier();t.typeAnnotation=this.tsParseTypeAnnotation(),this.resetEndLocation(t),this.expect(3),e.parameters=[t];const n=this.tsTryParseTypeAnnotation();return n&&(e.typeAnnotation=n),this.tsParseTypeMemberSemicolon(),this.finishNode(e,"TSIndexSignature")}tsParsePropertyOrMethodSignature(e,t){if(this.eat(17)&&(e.optional=!0),this.match(10)||this.match(47)){t&&this.raise(yt.ReadonlyForMethodSignature,e);const n=e;n.kind&&this.match(47)&&this.raise(yt.AccessorCannotHaveTypeParameters,this.state.curPosition()),this.tsFillSignature(14,n),this.tsParseTypeMemberSemicolon();const r="parameters",i="typeAnnotation";if("get"===n.kind)n[r].length>0&&(this.raise(h.BadGetterArity,this.state.curPosition()),this.isThisParam(n[r][0])&&this.raise(yt.AccessorCannotDeclareThisParameter,this.state.curPosition()));else if("set"===n.kind){if(1!==n[r].length)this.raise(h.BadSetterArity,this.state.curPosition());else{const e=n[r][0];this.isThisParam(e)&&this.raise(yt.AccessorCannotDeclareThisParameter,this.state.curPosition()),"Identifier"===e.type&&e.optional&&this.raise(yt.SetAccessorCannotHaveOptionalParameter,this.state.curPosition()),"RestElement"===e.type&&this.raise(yt.SetAccessorCannotHaveRestParameter,this.state.curPosition())}n[i]&&this.raise(yt.SetAccessorCannotHaveReturnType,n[i])}else n.kind="method";return this.finishNode(n,"TSMethodSignature")}{const n=e;t&&(n.readonly=!0);const r=this.tsTryParseTypeAnnotation();return r&&(n.typeAnnotation=r),this.tsParseTypeMemberSemicolon(),this.finishNode(n,"TSPropertySignature")}}tsParseTypeMember(){const e=this.startNode();if(this.match(10)||this.match(47))return this.tsParseSignatureMember("TSCallSignatureDeclaration",e);if(this.match(77)){const t=this.startNode();return this.next(),this.match(10)||this.match(47)?this.tsParseSignatureMember("TSConstructSignatureDeclaration",e):(e.key=this.createIdentifier(t,"new"),this.tsParsePropertyOrMethodSignature(e,!1))}this.tsParseModifiers({allowedModifiers:["readonly"],disallowedModifiers:["declare","abstract","private","protected","public","static","override"]},e);return this.tsTryParseIndexSignature(e)||(super.parsePropertyName(e),e.computed||"Identifier"!==e.key.type||"get"!==e.key.name&&"set"!==e.key.name||!this.tsTokenCanFollowModifier()||(e.kind=e.key.name,super.parsePropertyName(e),this.match(10)||this.match(47)||this.unexpected(null,10)),this.tsParsePropertyOrMethodSignature(e,!!e.readonly))}tsParseTypeLiteral(){const e=this.startNode();return e.members=this.tsParseObjectTypeMembers(),this.finishNode(e,"TSTypeLiteral")}tsParseObjectTypeMembers(){this.expect(5);const e=this.tsParseList("TypeMembers",this.tsParseTypeMember.bind(this));return this.expect(8),e}tsIsStartOfMappedType(){return this.next(),this.eat(53)?this.isContextual(122):(this.isContextual(122)&&this.next(),!!this.match(0)&&(this.next(),!!this.tsIsIdentifier()&&(this.next(),this.match(58))))}tsParseMappedType(){const e=this.startNode();this.expect(5),this.match(53)?(e.readonly=this.state.value,this.next(),this.expectContextual(122)):this.eatContextual(122)&&(e.readonly=!0),this.expect(0);const t=this.startNode();return t.name=this.tsParseTypeParameterName(),t.constraint=this.tsExpectThenParseType(58),e.typeParameter=this.finishNode(t,"TSTypeParameter"),e.nameType=this.eatContextual(93)?this.tsParseType():null,this.expect(3),this.match(53)?(e.optional=this.state.value,this.next(),this.expect(17)):this.eat(17)&&(e.optional=!0),e.typeAnnotation=this.tsTryParseType(),this.semicolon(),this.expect(8),this.finishNode(e,"TSMappedType")}tsParseTupleType(){const e=this.startNode();e.elementTypes=this.tsParseBracketedList("TupleElementTypes",this.tsParseTupleElementType.bind(this),!0,!1);let t=!1;return e.elementTypes.forEach(e=>{const{type:n}=e;!t||"TSRestType"===n||"TSOptionalType"===n||"TSNamedTupleMember"===n&&e.optional||this.raise(yt.OptionalTypeBeforeRequired,e),t||(t="TSNamedTupleMember"===n&&e.optional||"TSOptionalType"===n)}),this.finishNode(e,"TSTupleType")}tsParseTupleElementType(){const e=this.state.startLoc,t=this.eat(21),{startLoc:n}=this.state;let r,i,a,o;const s=K(this.state.type)?this.lookaheadCharCode():null;if(58===s)r=!0,a=!1,i=this.parseIdentifier(!0),this.expect(14),o=this.tsParseType();else if(63===s){a=!0;const e=this.state.value,t=this.tsParseNonArrayType();58===this.lookaheadCharCode()?(r=!0,i=this.createIdentifier(this.startNodeAt(n),e),this.expect(17),this.expect(14),o=this.tsParseType()):(r=!1,o=t,this.expect(17))}else o=this.tsParseType(),a=this.eat(17),r=this.eat(14);if(r){let e;i?(e=this.startNodeAt(n),e.optional=a,e.label=i,e.elementType=o,this.eat(17)&&(e.optional=!0,this.raise(yt.TupleOptionalAfterType,this.state.lastTokStartLoc))):(e=this.startNodeAt(n),e.optional=a,this.raise(yt.InvalidTupleMemberLabel,o),e.label=o,e.elementType=this.tsParseType()),o=this.finishNode(e,"TSNamedTupleMember")}else if(a){const e=this.startNodeAt(n);e.typeAnnotation=o,o=this.finishNode(e,"TSOptionalType")}if(t){const t=this.startNodeAt(e);t.typeAnnotation=o,o=this.finishNode(t,"TSRestType")}return o}tsParseParenthesizedType(){const e=this.startNode();return this.expect(10),e.typeAnnotation=this.tsParseType(),this.expect(11),this.finishNode(e,"TSParenthesizedType")}tsParseFunctionOrConstructorType(e,t){const n=this.startNode();return"TSConstructorType"===e&&(n.abstract=!!t,t&&this.next(),this.next()),this.tsInAllowConditionalTypesContext(()=>this.tsFillSignature(19,n)),this.finishNode(n,e)}tsParseLiteralTypeNode(){const e=this.startNode();switch(this.state.type){case 135:case 136:case 134:case 85:case 86:e.literal=super.parseExprAtom();break;default:this.unexpected()}return this.finishNode(e,"TSLiteralType")}tsParseTemplateLiteralType(){const e=this.startNode();return e.literal=super.parseTemplate(!1),this.finishNode(e,"TSLiteralType")}parseTemplateSubstitution(){return this.state.inType?this.tsParseType():super.parseTemplateSubstitution()}tsParseThisTypeOrThisTypePredicate(){const e=this.tsParseThisTypeNode();return this.isContextual(116)&&!this.hasPrecedingLineBreak()?this.tsParseThisTypePredicate(e):e}tsParseNonArrayType(){switch(this.state.type){case 134:case 135:case 136:case 85:case 86:return this.tsParseLiteralTypeNode();case 53:if("-"===this.state.value){const e=this.startNode(),t=this.lookahead();return 135!==t.type&&136!==t.type&&this.unexpected(),e.literal=this.parseMaybeUnary(),this.finishNode(e,"TSLiteralType")}break;case 78:return this.tsParseThisTypeOrThisTypePredicate();case 87:return this.tsParseTypeQuery();case 83:return this.tsParseImportType();case 5:return this.tsLookAhead(this.tsIsStartOfMappedType.bind(this))?this.tsParseMappedType():this.tsParseTypeLiteral();case 0:return this.tsParseTupleType();case 10:return this.tsParseParenthesizedType();case 25:case 24:return this.tsParseTemplateLiteralType();default:{const{type:e}=this.state;if(V(e)||88===e||84===e){const t=88===e?"TSVoidKeyword":84===e?"TSNullKeyword":function(e){switch(e){case"any":return"TSAnyKeyword";case"boolean":return"TSBooleanKeyword";case"bigint":return"TSBigIntKeyword";case"never":return"TSNeverKeyword";case"number":return"TSNumberKeyword";case"object":return"TSObjectKeyword";case"string":return"TSStringKeyword";case"symbol":return"TSSymbolKeyword";case"undefined":return"TSUndefinedKeyword";case"unknown":return"TSUnknownKeyword";default:return}}(this.state.value);if(void 0!==t&&46!==this.lookaheadCharCode()){const e=this.startNode();return this.next(),this.finishNode(e,t)}return this.tsParseTypeReference()}}}throw this.unexpected()}tsParseArrayTypeOrHigher(){const{startLoc:e}=this.state;let t=this.tsParseNonArrayType();for(;!this.hasPrecedingLineBreak()&&this.eat(0);)if(this.match(3)){const n=this.startNodeAt(e);n.elementType=t,this.expect(3),t=this.finishNode(n,"TSArrayType")}else{const n=this.startNodeAt(e);n.objectType=t,n.indexType=this.tsParseType(),this.expect(3),t=this.finishNode(n,"TSIndexedAccessType")}return t}tsParseTypeOperator(){const e=this.startNode(),t=this.state.value;return this.next(),e.operator=t,e.typeAnnotation=this.tsParseTypeOperatorOrHigher(),"readonly"===t&&this.tsCheckTypeAnnotationForReadOnly(e),this.finishNode(e,"TSTypeOperator")}tsCheckTypeAnnotationForReadOnly(e){switch(e.typeAnnotation.type){case"TSTupleType":case"TSArrayType":return;default:this.raise(yt.UnexpectedReadonly,e)}}tsParseInferType(){const e=this.startNode();this.expectContextual(115);const t=this.startNode();return t.name=this.tsParseTypeParameterName(),t.constraint=this.tsTryParse(()=>this.tsParseConstraintForInferType()),e.typeParameter=this.finishNode(t,"TSTypeParameter"),this.finishNode(e,"TSInferType")}tsParseConstraintForInferType(){if(this.eat(81)){const e=this.tsInDisallowConditionalTypesContext(()=>this.tsParseType());if(this.state.inDisallowConditionalTypesContext||!this.match(17))return e}}tsParseTypeOperatorOrHigher(){var e;return(e=this.state.type)>=121&&e<=123&&!this.state.containsEsc?this.tsParseTypeOperator():this.isContextual(115)?this.tsParseInferType():this.tsInAllowConditionalTypesContext(()=>this.tsParseArrayTypeOrHigher())}tsParseUnionOrIntersectionType(e,t,n){const r=this.startNode(),i=this.eat(n),a=[];do{a.push(t())}while(this.eat(n));return 1!==a.length||i?(r.types=a,this.finishNode(r,e)):a[0]}tsParseIntersectionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSIntersectionType",this.tsParseTypeOperatorOrHigher.bind(this),45)}tsParseUnionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSUnionType",this.tsParseIntersectionTypeOrHigher.bind(this),43)}tsIsStartOfFunctionType(){return!!this.match(47)||this.match(10)&&this.tsLookAhead(this.tsIsUnambiguouslyStartOfFunctionType.bind(this))}tsSkipParameterStart(){if(V(this.state.type)||this.match(78))return this.next(),!0;if(this.match(5)){const{errors:e}=this.state,t=e.length;try{return this.parseObjectLike(8,!0),e.length===t}catch(e){return!1}}if(this.match(0)){this.next();const{errors:e}=this.state,t=e.length;try{return super.parseBindingList(3,93,1),e.length===t}catch(e){return!1}}return!1}tsIsUnambiguouslyStartOfFunctionType(){if(this.next(),this.match(11)||this.match(21))return!0;if(this.tsSkipParameterStart()){if(this.match(14)||this.match(12)||this.match(17)||this.match(29))return!0;if(this.match(11)&&(this.next(),this.match(19)))return!0}return!1}tsParseTypeOrTypePredicateAnnotation(e){return this.tsInType(()=>{const t=this.startNode();this.expect(e);const n=this.startNode(),r=!!this.tsTryParse(this.tsParseTypePredicateAsserts.bind(this));if(r&&this.match(78)){let e=this.tsParseThisTypeOrThisTypePredicate();return"TSThisType"===e.type?(n.parameterName=e,n.asserts=!0,n.typeAnnotation=null,e=this.finishNode(n,"TSTypePredicate")):(this.resetStartLocationFromNode(e,n),e.asserts=!0),t.typeAnnotation=e,this.finishNode(t,"TSTypeAnnotation")}const i=this.tsIsIdentifier()&&this.tsTryParse(this.tsParseTypePredicatePrefix.bind(this));if(!i)return r?(n.parameterName=this.parseIdentifier(),n.asserts=r,n.typeAnnotation=null,t.typeAnnotation=this.finishNode(n,"TSTypePredicate"),this.finishNode(t,"TSTypeAnnotation")):this.tsParseTypeAnnotation(!1,t);const a=this.tsParseTypeAnnotation(!1);return n.parameterName=i,n.typeAnnotation=a,n.asserts=r,t.typeAnnotation=this.finishNode(n,"TSTypePredicate"),this.finishNode(t,"TSTypeAnnotation")})}tsTryParseTypeOrTypePredicateAnnotation(){if(this.match(14))return this.tsParseTypeOrTypePredicateAnnotation(14)}tsTryParseTypeAnnotation(){if(this.match(14))return this.tsParseTypeAnnotation()}tsTryParseType(){return this.tsEatThenParseType(14)}tsParseTypePredicatePrefix(){const e=this.parseIdentifier();if(this.isContextual(116)&&!this.hasPrecedingLineBreak())return this.next(),e}tsParseTypePredicateAsserts(){if(109!==this.state.type)return!1;const e=this.state.containsEsc;return this.next(),!(!V(this.state.type)&&!this.match(78)||(e&&this.raise(h.InvalidEscapedReservedWord,this.state.lastTokStartLoc,{reservedWord:"asserts"}),0))}tsParseTypeAnnotation(e=!0,t=this.startNode()){return this.tsInType(()=>{e&&this.expect(14),t.typeAnnotation=this.tsParseType()}),this.finishNode(t,"TSTypeAnnotation")}tsParseType(){gt(this.state.inType);const e=this.tsParseNonConditionalType();if(this.state.inDisallowConditionalTypesContext||this.hasPrecedingLineBreak()||!this.eat(81))return e;const t=this.startNodeAtNode(e);return t.checkType=e,t.extendsType=this.tsInDisallowConditionalTypesContext(()=>this.tsParseNonConditionalType()),this.expect(17),t.trueType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.expect(14),t.falseType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.finishNode(t,"TSConditionalType")}isAbstractConstructorSignature(){return this.isContextual(124)&&this.isLookaheadContextual("new")}tsParseNonConditionalType(){return this.tsIsStartOfFunctionType()?this.tsParseFunctionOrConstructorType("TSFunctionType"):this.match(77)?this.tsParseFunctionOrConstructorType("TSConstructorType"):this.isAbstractConstructorSignature()?this.tsParseFunctionOrConstructorType("TSConstructorType",!0):this.tsParseUnionTypeOrHigher()}tsParseTypeAssertion(){this.getPluginOption("typescript","disallowAmbiguousJSXLike")&&this.raise(yt.ReservedTypeAssertion,this.state.startLoc);const e=this.startNode();return e.typeAnnotation=this.tsInType(()=>(this.next(),this.match(75)?this.tsParseTypeReference():this.tsParseType())),this.expect(48),e.expression=this.parseMaybeUnary(),this.finishNode(e,"TSTypeAssertion")}tsParseHeritageClause(e){const t=this.state.startLoc,n=this.tsParseDelimitedList("HeritageClauseElement",()=>{const e=this.startNode();return e.expression=this.tsParseEntityName(3),this.match(47)&&(e.typeParameters=this.tsParseTypeArguments()),this.finishNode(e,"TSExpressionWithTypeArguments")});return n.length||this.raise(yt.EmptyHeritageClauseType,t,{token:e}),n}tsParseInterfaceDeclaration(e,t={}){if(this.hasFollowingLineBreak())return null;this.expectContextual(129),t.declare&&(e.declare=!0),V(this.state.type)?(e.id=this.parseIdentifier(),this.checkIdentifier(e.id,130)):(e.id=null,this.raise(yt.MissingInterfaceName,this.state.startLoc)),e.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers),this.eat(81)&&(e.extends=this.tsParseHeritageClause("extends"));const n=this.startNode();return n.body=this.tsInType(this.tsParseObjectTypeMembers.bind(this)),e.body=this.finishNode(n,"TSInterfaceBody"),this.finishNode(e,"TSInterfaceDeclaration")}tsParseTypeAliasDeclaration(e){return e.id=this.parseIdentifier(),this.checkIdentifier(e.id,2),e.typeAnnotation=this.tsInType(()=>{if(e.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutModifiers),this.expect(29),this.isContextual(114)&&46!==this.lookaheadCharCode()){const e=this.startNode();return this.next(),this.finishNode(e,"TSIntrinsicKeyword")}return this.tsParseType()}),this.semicolon(),this.finishNode(e,"TSTypeAliasDeclaration")}tsInTopLevelContext(e){if(this.curContext()===E.brace)return e();{const t=this.state.context;this.state.context=[t[0]];try{return e()}finally{this.state.context=t}}}tsInType(e){const t=this.state.inType;this.state.inType=!0;try{return e()}finally{this.state.inType=t}}tsInDisallowConditionalTypesContext(e){const t=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!0;try{return e()}finally{this.state.inDisallowConditionalTypesContext=t}}tsInAllowConditionalTypesContext(e){const t=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!1;try{return e()}finally{this.state.inDisallowConditionalTypesContext=t}}tsEatThenParseType(e){if(this.match(e))return this.tsNextThenParseType()}tsExpectThenParseType(e){return this.tsInType(()=>(this.expect(e),this.tsParseType()))}tsNextThenParseType(){return this.tsInType(()=>(this.next(),this.tsParseType()))}tsParseEnumMember(){const e=this.startNode();return e.id=this.match(134)?super.parseStringLiteral(this.state.value):this.parseIdentifier(!0),this.eat(29)&&(e.initializer=super.parseMaybeAssignAllowIn()),this.finishNode(e,"TSEnumMember")}tsParseEnumDeclaration(e,t={}){return t.const&&(e.const=!0),t.declare&&(e.declare=!0),this.expectContextual(126),e.id=this.parseIdentifier(),this.checkIdentifier(e.id,e.const?8971:8459),this.expect(5),e.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this)),this.expect(8),this.finishNode(e,"TSEnumDeclaration")}tsParseEnumBody(){const e=this.startNode();return this.expect(5),e.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this)),this.expect(8),this.finishNode(e,"TSEnumBody")}tsParseModuleBlock(){const e=this.startNode();return this.scope.enter(0),this.expect(5),super.parseBlockOrModuleBlockBody(e.body=[],void 0,!0,8),this.scope.exit(),this.finishNode(e,"TSModuleBlock")}tsParseModuleOrNamespaceDeclaration(e,t=!1){if(e.id=this.parseIdentifier(),t||this.checkIdentifier(e.id,1024),this.eat(16)){const t=this.startNode();this.tsParseModuleOrNamespaceDeclaration(t,!0),e.body=t}else this.scope.enter(1024),this.prodParam.enter(0),e.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit();return this.finishNode(e,"TSModuleDeclaration")}tsParseAmbientExternalModuleDeclaration(e){return this.isContextual(112)?(e.kind="global",e.global=!0,e.id=this.parseIdentifier()):this.match(134)?(e.kind="module",e.id=super.parseStringLiteral(this.state.value)):this.unexpected(),this.match(5)?(this.scope.enter(1024),this.prodParam.enter(0),e.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit()):this.semicolon(),this.finishNode(e,"TSModuleDeclaration")}tsParseImportEqualsDeclaration(e,t,n){e.isExport=n||!1,e.id=t||this.parseIdentifier(),this.checkIdentifier(e.id,4096),this.expect(29);const r=this.tsParseModuleReference();return"type"===e.importKind&&"TSExternalModuleReference"!==r.type&&this.raise(yt.ImportAliasHasImportType,r),e.moduleReference=r,this.semicolon(),this.finishNode(e,"TSImportEqualsDeclaration")}tsIsExternalModuleReference(){return this.isContextual(119)&&40===this.lookaheadCharCode()}tsParseModuleReference(){return this.tsIsExternalModuleReference()?this.tsParseExternalModuleReference():this.tsParseEntityName(0)}tsParseExternalModuleReference(){const e=this.startNode();return this.expectContextual(119),this.expect(10),this.match(134)||this.unexpected(),e.expression=super.parseExprAtom(),this.expect(11),this.sawUnambiguousESM=!0,this.finishNode(e,"TSExternalModuleReference")}tsLookAhead(e){const t=this.state.clone(),n=e();return this.state=t,n}tsTryParseAndCatch(e){const t=this.tryParse(t=>e()||t());if(!t.aborted&&t.node)return t.error&&(this.state=t.failState),t.node}tsTryParse(e){const t=this.state.clone(),n=e();if(void 0!==n&&!1!==n)return n;this.state=t}tsTryParseDeclare(e){if(this.isLineTerminator())return;const t=this.state.type;return this.tsInAmbientContext(()=>{switch(t){case 68:return e.declare=!0,super.parseFunctionStatement(e,!1,!1);case 80:return e.declare=!0,this.parseClass(e,!0,!1);case 126:return this.tsParseEnumDeclaration(e,{declare:!0});case 112:return this.tsParseAmbientExternalModuleDeclaration(e);case 100:if(this.state.containsEsc)return;case 75:case 74:return this.match(75)&&this.isLookaheadContextual("enum")?(this.expect(75),this.tsParseEnumDeclaration(e,{const:!0,declare:!0})):(e.declare=!0,this.parseVarStatement(e,this.state.value,!0));case 107:if(this.isUsing())return this.raise(yt.InvalidModifierOnUsingDeclaration,this.state.startLoc,"declare"),e.declare=!0,this.parseVarStatement(e,"using",!0);break;case 96:if(this.isAwaitUsing())return this.raise(yt.InvalidModifierOnAwaitUsingDeclaration,this.state.startLoc,"declare"),e.declare=!0,this.next(),this.parseVarStatement(e,"await using",!0);break;case 129:{const t=this.tsParseInterfaceDeclaration(e,{declare:!0});if(t)return t}default:if(V(t))return this.tsParseDeclaration(e,this.state.type,!0,null)}})}tsTryParseExportDeclaration(){return this.tsParseDeclaration(this.startNode(),this.state.type,!0,null)}tsParseDeclaration(e,t,n,r){switch(t){case 124:if(this.tsCheckLineTerminator(n)&&(this.match(80)||V(this.state.type)))return this.tsParseAbstractDeclaration(e,r);break;case 127:if(this.tsCheckLineTerminator(n)){if(this.match(134))return this.tsParseAmbientExternalModuleDeclaration(e);if(V(this.state.type))return e.kind="module",this.tsParseModuleOrNamespaceDeclaration(e)}break;case 128:if(this.tsCheckLineTerminator(n)&&V(this.state.type))return e.kind="namespace",this.tsParseModuleOrNamespaceDeclaration(e);break;case 130:if(this.tsCheckLineTerminator(n)&&V(this.state.type))return this.tsParseTypeAliasDeclaration(e)}}tsCheckLineTerminator(e){return e?!this.hasFollowingLineBreak()&&(this.next(),!0):!this.isLineTerminator()}tsTryParseGenericAsyncArrowFunction(e){if(!this.match(47))return;const t=this.state.maybeInArrowParameters;this.state.maybeInArrowParameters=!0;const n=this.tsTryParseAndCatch(()=>{const t=this.startNodeAt(e);return t.typeParameters=this.tsParseTypeParameters(this.tsParseConstModifier),super.parseFunctionParams(t),t.returnType=this.tsTryParseTypeOrTypePredicateAnnotation(),this.expect(19),t});return this.state.maybeInArrowParameters=t,n?super.parseArrowExpression(n,null,!0):void 0}tsParseTypeArgumentsInExpression(){if(47===this.reScan_lt())return this.tsParseTypeArguments()}tsParseTypeArguments(){const e=this.startNode();return e.params=this.tsInType(()=>this.tsInTopLevelContext(()=>(this.expect(47),this.tsParseDelimitedList("TypeParametersOrArguments",this.tsParseType.bind(this))))),0===e.params.length?this.raise(yt.EmptyTypeArguments,e):this.state.inType||this.curContext()!==E.brace||this.reScan_lt_gt(),this.expect(48),this.finishNode(e,"TSTypeParameterInstantiation")}tsIsDeclarationStart(){return(e=this.state.type)>=124&&e<=130;var e}isExportDefaultSpecifier(){return!this.tsIsDeclarationStart()&&super.isExportDefaultSpecifier()}parseBindingElement(e,t){const n=t.length?t[0].loc.start:this.state.startLoc,r={};this.tsParseModifiers({allowedModifiers:["public","private","protected","override","readonly"]},r);const i=r.accessibility,a=r.override,o=r.readonly;4&e||!(i||o||a)||this.raise(yt.UnexpectedParameterModifier,n);const s=this.parseMaybeDefault();2&e&&this.parseFunctionParamType(s);const c=this.parseMaybeDefault(s.loc.start,s);if(i||o||a){const e=this.startNodeAt(n);return t.length&&(e.decorators=t),i&&(e.accessibility=i),o&&(e.readonly=o),a&&(e.override=a),"Identifier"!==c.type&&"AssignmentPattern"!==c.type&&this.raise(yt.UnsupportedParameterPropertyKind,e),e.parameter=c,this.finishNode(e,"TSParameterProperty")}return t.length&&(s.decorators=t),c}isSimpleParameter(e){return"TSParameterProperty"===e.type&&super.isSimpleParameter(e.parameter)||super.isSimpleParameter(e)}tsDisallowOptionalPattern(e){for(const t of e.params)"Identifier"!==t.type&&t.optional&&!this.state.isAmbientContext&&this.raise(yt.PatternIsOptional,t)}setArrowFunctionParameters(e,t,n){super.setArrowFunctionParameters(e,t,n),this.tsDisallowOptionalPattern(e)}parseFunctionBodyAndFinish(e,t,n=!1){this.match(14)&&(e.returnType=this.tsParseTypeOrTypePredicateAnnotation(14));const r="FunctionDeclaration"===t?"TSDeclareFunction":"ClassMethod"===t||"ClassPrivateMethod"===t?"TSDeclareMethod":void 0;return r&&!this.match(5)&&this.isLineTerminator()?this.finishNode(e,r):"TSDeclareFunction"===r&&this.state.isAmbientContext&&(this.raise(yt.DeclareFunctionHasImplementation,e),e.declare)?super.parseFunctionBodyAndFinish(e,r,n):(this.tsDisallowOptionalPattern(e),super.parseFunctionBodyAndFinish(e,t,n))}registerFunctionStatementId(e){!e.body&&e.id?this.checkIdentifier(e.id,1024):super.registerFunctionStatementId(e)}tsCheckForInvalidTypeCasts(e){e.forEach(e=>{"TSTypeCastExpression"===(null==e?void 0:e.type)&&this.raise(yt.UnexpectedTypeAnnotation,e.typeAnnotation)})}toReferencedList(e,t){return this.tsCheckForInvalidTypeCasts(e),e}parseArrayLike(e,t,n){const r=super.parseArrayLike(e,t,n);return"ArrayExpression"===r.type&&this.tsCheckForInvalidTypeCasts(r.elements),r}parseSubscript(e,t,n,r){if(!this.hasPrecedingLineBreak()&&this.match(35)){this.state.canStartJSXElement=!1,this.next();const n=this.startNodeAt(t);return n.expression=e,this.finishNode(n,"TSNonNullExpression")}let i=!1;if(this.match(18)&&60===this.lookaheadCharCode()){if(n)return r.stop=!0,e;r.optionalChainMember=i=!0,this.next()}if(this.match(47)||this.match(51)){let a;const o=this.tsTryParseAndCatch(()=>{if(!n&&this.atPossibleAsyncArrow(e)){const e=this.tsTryParseGenericAsyncArrowFunction(t);if(e)return r.stop=!0,e}const o=this.tsParseTypeArgumentsInExpression();if(!o)return;if(i&&!this.match(10))return void(a=this.state.curPosition());if(X(this.state.type)){const n=super.parseTaggedTemplateExpression(e,t,r);return n.typeParameters=o,n}if(!n&&this.eat(10)){const n=this.startNodeAt(t);return n.callee=e,n.arguments=this.parseCallExpressionArguments(),this.tsCheckForInvalidTypeCasts(n.arguments),n.typeParameters=o,r.optionalChainMember&&(n.optional=i),this.finishCallExpression(n,r.optionalChainMember)}const s=this.state.type;if(48===s||52===s||10!==s&&93!==s&&120!==s&&H(s)&&!this.hasPrecedingLineBreak())return;const c=this.startNodeAt(t);return c.expression=e,c.typeParameters=o,this.finishNode(c,"TSInstantiationExpression")});if(a&&this.unexpected(a,10),o)return"TSInstantiationExpression"===o.type&&((this.match(16)||this.match(18)&&40!==this.lookaheadCharCode())&&this.raise(yt.InvalidPropertyAccessAfterInstantiationExpression,this.state.startLoc),this.match(16)||this.match(18)||(o.expression=super.stopParseSubscript(e,r))),o}return super.parseSubscript(e,t,n,r)}parseNewCallee(e){var t;super.parseNewCallee(e);const{callee:n}=e;"TSInstantiationExpression"!==n.type||null!=(t=n.extra)&&t.parenthesized||(e.typeParameters=n.typeParameters,e.callee=n.expression)}parseExprOp(e,t,n){let r;if(J(58)>n&&!this.hasPrecedingLineBreak()&&(this.isContextual(93)||(r=this.isContextual(120)))){const i=this.startNodeAt(t);return i.expression=e,i.typeAnnotation=this.tsInType(()=>(this.next(),this.match(75)?(r&&this.raise(h.UnexpectedKeyword,this.state.startLoc,{keyword:"const"}),this.tsParseTypeReference()):this.tsParseType())),this.finishNode(i,r?"TSSatisfiesExpression":"TSAsExpression"),this.reScan_lt_gt(),this.parseExprOp(i,t,n)}return super.parseExprOp(e,t,n)}checkReservedWord(e,t,n,r){this.state.isAmbientContext||super.checkReservedWord(e,t,n,r)}checkImportReflection(e){super.checkImportReflection(e),e.module&&"value"!==e.importKind&&this.raise(yt.ImportReflectionHasImportType,e.specifiers[0].loc.start)}checkDuplicateExports(){}isPotentialImportPhase(e){if(super.isPotentialImportPhase(e))return!0;if(this.isContextual(130)){const t=this.lookaheadCharCode();return e?123===t||42===t:61!==t}return!e&&this.isContextual(87)}applyImportPhase(e,t,n,r){super.applyImportPhase(e,t,n,r),t?e.exportKind="type"===n?"type":"value":e.importKind="type"===n||"typeof"===n?n:"value"}parseImport(e){if(this.match(134))return e.importKind="value",super.parseImport(e);let t;if(V(this.state.type)&&61===this.lookaheadCharCode())return e.importKind="value",this.tsParseImportEqualsDeclaration(e);if(this.isContextual(130)){const n=this.parseMaybeImportPhase(e,!1);if(61===this.lookaheadCharCode())return this.tsParseImportEqualsDeclaration(e,n);t=super.parseImportSpecifiersAndAfter(e,n)}else t=super.parseImport(e);return"type"===t.importKind&&t.specifiers.length>1&&"ImportDefaultSpecifier"===t.specifiers[0].type&&this.raise(yt.TypeImportCannotSpecifyDefaultAndNamed,t),t}parseExport(e,t){if(this.match(83)){const t=e;this.next();let n=null;return this.isContextual(130)&&this.isPotentialImportPhase(!1)?n=this.parseMaybeImportPhase(t,!1):t.importKind="value",this.tsParseImportEqualsDeclaration(t,n,!0)}if(this.eat(29)){const t=e;return t.expression=super.parseExpression(),this.semicolon(),this.sawUnambiguousESM=!0,this.finishNode(t,"TSExportAssignment")}if(this.eatContextual(93)){const t=e;return this.expectContextual(128),t.id=this.parseIdentifier(),this.semicolon(),this.finishNode(t,"TSNamespaceExportDeclaration")}return super.parseExport(e,t)}isAbstractClass(){return this.isContextual(124)&&this.isLookaheadContextual("class")}parseExportDefaultExpression(){if(this.isAbstractClass()){const e=this.startNode();return this.next(),e.abstract=!0,this.parseClass(e,!0,!0)}if(this.match(129)){const e=this.tsParseInterfaceDeclaration(this.startNode());if(e)return e}return super.parseExportDefaultExpression()}parseVarStatement(e,t,n=!1){const{isAmbientContext:r}=this.state,i=super.parseVarStatement(e,t,n||r);if(!r)return i;if(!e.declare&&("using"===t||"await using"===t))return this.raiseOverwrite(yt.UsingDeclarationInAmbientContext,e,t),i;for(const{id:e,init:n}of i.declarations)n&&("var"===t||"let"===t||e.typeAnnotation?this.raise(yt.InitializerNotAllowedInAmbientContext,n):xt(n,this.hasPlugin("estree"))||this.raise(yt.ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference,n));return i}parseStatementContent(e,t){if(!this.state.containsEsc)switch(this.state.type){case 75:if(this.isLookaheadContextual("enum")){const e=this.startNode();return this.expect(75),this.tsParseEnumDeclaration(e,{const:!0})}break;case 124:case 125:if(this.nextTokenIsIdentifierAndNotTSRelationalOperatorOnSameLine()){const e=this.state.type,n=this.startNode();this.next();const r=125===e?this.tsTryParseDeclare(n):this.tsParseAbstractDeclaration(n,t);return r?(125===e&&(r.declare=!0),r):(n.expression=this.createIdentifier(this.startNodeAt(n.loc.start),125===e?"declare":"abstract"),this.semicolon(!1),this.finishNode(n,"ExpressionStatement"))}break;case 126:return this.tsParseEnumDeclaration(this.startNode());case 112:if(123===this.lookaheadCharCode()){const e=this.startNode();return this.tsParseAmbientExternalModuleDeclaration(e)}break;case 129:{const e=this.tsParseInterfaceDeclaration(this.startNode());if(e)return e;break}case 127:if(this.nextTokenIsIdentifierOrStringLiteralOnSameLine()){const e=this.startNode();return this.next(),this.tsParseDeclaration(e,127,!1,t)}break;case 128:if(this.nextTokenIsIdentifierOnSameLine()){const e=this.startNode();return this.next(),this.tsParseDeclaration(e,128,!1,t)}break;case 130:if(this.nextTokenIsIdentifierOnSameLine()){const e=this.startNode();return this.next(),this.tsParseTypeAliasDeclaration(e)}}return super.parseStatementContent(e,t)}parseAccessModifier(){return this.tsParseModifier(["public","protected","private"])}tsHasSomeModifiers(e,t){return t.some(t=>vt(t)?e.accessibility===t:!!e[t])}tsIsStartOfStaticBlocks(){return this.isContextual(106)&&123===this.lookaheadCharCode()}parseClassMember(e,t,n){const r=["declare","private","public","protected","override","abstract","readonly","static"];this.tsParseModifiers({allowedModifiers:r,disallowedModifiers:["in","out"],stopOnStartOfClassStaticBlock:!0,errorTemplate:yt.InvalidModifierOnTypeParameterPositions},t);const i=()=>{this.tsIsStartOfStaticBlocks()?(this.next(),this.next(),this.tsHasSomeModifiers(t,r)&&this.raise(yt.StaticBlockCannotHaveModifier,this.state.curPosition()),super.parseClassStaticBlock(e,t)):this.parseClassMemberWithIsStatic(e,t,n,!!t.static)};t.declare?this.tsInAmbientContext(i):i()}parseClassMemberWithIsStatic(e,t,n,r){const i=this.tsTryParseIndexSignature(t);if(i)return e.body.push(i),t.abstract&&this.raise(yt.IndexSignatureHasAbstract,t),t.accessibility&&this.raise(yt.IndexSignatureHasAccessibility,t,{modifier:t.accessibility}),t.declare&&this.raise(yt.IndexSignatureHasDeclare,t),void(t.override&&this.raise(yt.IndexSignatureHasOverride,t));!this.state.inAbstractClass&&t.abstract&&this.raise(yt.NonAbstractClassHasAbstractMethod,t),t.override&&(n.hadSuperClass||this.raise(yt.OverrideNotInSubClass,t)),super.parseClassMemberWithIsStatic(e,t,n,r)}parsePostMemberNameModifiers(e){this.eat(17)&&(e.optional=!0),e.readonly&&this.match(10)&&this.raise(yt.ClassMethodHasReadonly,e),e.declare&&this.match(10)&&this.raise(yt.ClassMethodHasDeclare,e)}shouldParseExportDeclaration(){return!!this.tsIsDeclarationStart()||super.shouldParseExportDeclaration()}parseConditional(e,t,n){if(!this.match(17))return e;if(this.state.maybeInArrowParameters){const t=this.lookaheadCharCode();if(44===t||61===t||58===t||41===t)return this.setOptionalParametersError(n),e}return super.parseConditional(e,t,n)}parseParenItem(e,t){const n=super.parseParenItem(e,t);if(this.eat(17)&&(n.optional=!0,this.resetEndLocation(e)),this.match(14)){const n=this.startNodeAt(t);return n.expression=e,n.typeAnnotation=this.tsParseTypeAnnotation(),this.finishNode(n,"TSTypeCastExpression")}return e}parseExportDeclaration(e){if(!this.state.isAmbientContext&&this.isContextual(125))return this.tsInAmbientContext(()=>this.parseExportDeclaration(e));const t=this.state.startLoc,n=this.eatContextual(125);if(n&&(this.isContextual(125)||!this.shouldParseExportDeclaration()))throw this.raise(yt.ExpectedAmbientAfterExportDeclare,this.state.startLoc);const r=V(this.state.type)&&this.tsTryParseExportDeclaration()||super.parseExportDeclaration(e);return r?(("TSInterfaceDeclaration"===r.type||"TSTypeAliasDeclaration"===r.type||n)&&(e.exportKind="type"),n&&"TSImportEqualsDeclaration"!==r.type&&(this.resetStartLocation(r,t),r.declare=!0),r):null}parseClassId(e,t,n,r){if((!t||n)&&this.isContextual(113))return;super.parseClassId(e,t,n,e.declare?1024:8331);const i=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers);i&&(e.typeParameters=i)}parseClassPropertyAnnotation(e){e.optional||(this.eat(35)?e.definite=!0:this.eat(17)&&(e.optional=!0));const t=this.tsTryParseTypeAnnotation();t&&(e.typeAnnotation=t)}parseClassProperty(e){if(this.parseClassPropertyAnnotation(e),this.state.isAmbientContext&&(!e.readonly||e.typeAnnotation)&&this.match(29)&&this.raise(yt.DeclareClassFieldHasInitializer,this.state.startLoc),e.abstract&&this.match(29)){const{key:t}=e;this.raise(yt.AbstractPropertyHasInitializer,this.state.startLoc,{propertyName:"Identifier"!==t.type||e.computed?`[${this.input.slice(this.offsetToSourcePos(t.start),this.offsetToSourcePos(t.end))}]`:t.name})}return super.parseClassProperty(e)}parseClassPrivateProperty(e){return e.abstract&&this.raise(yt.PrivateElementHasAbstract,e),e.accessibility&&this.raise(yt.PrivateElementHasAccessibility,e,{modifier:e.accessibility}),this.parseClassPropertyAnnotation(e),super.parseClassPrivateProperty(e)}parseClassAccessorProperty(e){return this.parseClassPropertyAnnotation(e),e.optional&&this.raise(yt.AccessorCannotBeOptional,e),super.parseClassAccessorProperty(e)}pushClassMethod(e,t,n,r,i,a){const o=this.tsTryParseTypeParameters(this.tsParseConstModifier);o&&i&&this.raise(yt.ConstructorHasTypeParameters,o);const{declare:s=!1,kind:c}=t;!s||"get"!==c&&"set"!==c||this.raise(yt.DeclareAccessor,t,{kind:c}),o&&(t.typeParameters=o),super.pushClassMethod(e,t,n,r,i,a)}pushClassPrivateMethod(e,t,n,r){const i=this.tsTryParseTypeParameters(this.tsParseConstModifier);i&&(t.typeParameters=i),super.pushClassPrivateMethod(e,t,n,r)}declareClassPrivateMethodInScope(e,t){"TSDeclareMethod"!==e.type&&("MethodDefinition"===e.type&&null==e.value.body||super.declareClassPrivateMethodInScope(e,t))}parseClassSuper(e){if(super.parseClassSuper(e),e.superClass)if("TSInstantiationExpression"===e.superClass.type){const t=e.superClass,n=t.expression;this.takeSurroundingComments(n,n.start,n.end);const r=t.typeParameters;this.takeSurroundingComments(r,r.start,r.end),e.superClass=n,e.superTypeParameters=r}else(this.match(47)||this.match(51))&&(e.superTypeParameters=this.tsParseTypeArgumentsInExpression());this.eatContextual(113)&&(e.implements=this.tsParseHeritageClause("implements"))}parseObjPropValue(e,t,n,r,i,a,o){const s=this.tsTryParseTypeParameters(this.tsParseConstModifier);return s&&(e.typeParameters=s),super.parseObjPropValue(e,t,n,r,i,a,o)}parseFunctionParams(e,t){const n=this.tsTryParseTypeParameters(this.tsParseConstModifier);n&&(e.typeParameters=n),super.parseFunctionParams(e,t)}parseVarId(e,t){super.parseVarId(e,t),"Identifier"===e.id.type&&!this.hasPrecedingLineBreak()&&this.eat(35)&&(e.definite=!0);const n=this.tsTryParseTypeAnnotation();n&&(e.id.typeAnnotation=n,this.resetEndLocation(e.id))}parseAsyncArrowFromCallExpression(e,t){return this.match(14)&&(e.returnType=this.tsParseTypeAnnotation()),super.parseAsyncArrowFromCallExpression(e,t)}parseMaybeAssign(e,t){var n,r,i,a,o;let s,c,l,u;if(this.hasPlugin("jsx")&&(this.match(143)||this.match(47))){if(s=this.state.clone(),c=this.tryParse(()=>super.parseMaybeAssign(e,t),s),!c.error)return c.node;const{context:n}=this.state,r=n[n.length-1];r!==E.j_oTag&&r!==E.j_expr||n.pop()}if(!(null!=(n=c)&&n.error||this.match(47)))return super.parseMaybeAssign(e,t);s&&s!==this.state||(s=this.state.clone());const d=this.tryParse(n=>{var r,i;u=this.tsParseTypeParameters(this.tsParseConstModifier);const a=super.parseMaybeAssign(e,t);return("ArrowFunctionExpression"!==a.type||null!=(r=a.extra)&&r.parenthesized)&&n(),0!==(null==(i=u)?void 0:i.params.length)&&this.resetStartLocationFromNode(a,u),a.typeParameters=u,a},s);if(!d.error&&!d.aborted)return u&&this.reportReservedArrowTypeParam(u),d.node;if(!c&&(gt(!this.hasPlugin("jsx")),l=this.tryParse(()=>super.parseMaybeAssign(e,t),s),!l.error))return l.node;if(null!=(r=c)&&r.node)return this.state=c.failState,c.node;if(d.node)return this.state=d.failState,u&&this.reportReservedArrowTypeParam(u),d.node;if(null!=(i=l)&&i.node)return this.state=l.failState,l.node;throw(null==(a=c)?void 0:a.error)||d.error||(null==(o=l)?void 0:o.error)}reportReservedArrowTypeParam(e){var t;1!==e.params.length||e.params[0].constraint||null!=(t=e.extra)&&t.trailingComma||!this.getPluginOption("typescript","disallowAmbiguousJSXLike")||this.raise(yt.ReservedArrowTypeParam,e)}parseMaybeUnary(e,t){return!this.hasPlugin("jsx")&&this.match(47)?this.tsParseTypeAssertion():super.parseMaybeUnary(e,t)}parseArrow(e){if(this.match(14)){const t=this.tryParse(e=>{const t=this.tsParseTypeOrTypePredicateAnnotation(14);return!this.canInsertSemicolon()&&this.match(19)||e(),t});if(t.aborted)return;t.thrown||(t.error&&(this.state=t.failState),e.returnType=t.node)}return super.parseArrow(e)}parseFunctionParamType(e){this.eat(17)&&(e.optional=!0);const t=this.tsTryParseTypeAnnotation();return t&&(e.typeAnnotation=t),this.resetEndLocation(e),e}isAssignable(e,t){switch(e.type){case"TSTypeCastExpression":return this.isAssignable(e.expression,t);case"TSParameterProperty":return!0;default:return super.isAssignable(e,t)}}toAssignable(e,t=!1){switch(e.type){case"ParenthesizedExpression":this.toAssignableParenthesizedExpression(e,t);break;case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":t?this.expressionScope.recordArrowParameterBindingError(yt.UnexpectedTypeCastInParameter,e):this.raise(yt.UnexpectedTypeCastInParameter,e),this.toAssignable(e.expression,t);break;case"AssignmentExpression":t||"TSTypeCastExpression"!==e.left.type||(e.left=this.typeCastToParameter(e.left));default:super.toAssignable(e,t)}}toAssignableParenthesizedExpression(e,t){switch(e.expression.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":case"ParenthesizedExpression":this.toAssignable(e.expression,t);break;default:super.toAssignable(e,t)}}checkToRestConversion(e,t){switch(e.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":this.checkToRestConversion(e.expression,!1);break;default:super.checkToRestConversion(e,t)}}isValidLVal(e,t,n,r){switch(e){case"TSTypeCastExpression":return!0;case"TSParameterProperty":return"parameter";case"TSNonNullExpression":return"expression";case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":return(64!==r||!n)&&["expression",!0];default:return super.isValidLVal(e,t,n,r)}}parseBindingAtom(){return 78===this.state.type?this.parseIdentifier(!0):super.parseBindingAtom()}parseMaybeDecoratorArguments(e,t){if(this.match(47)||this.match(51)){const n=this.tsParseTypeArgumentsInExpression();if(this.match(10)){const r=super.parseMaybeDecoratorArguments(e,t);return r.typeParameters=n,r}this.unexpected(null,10)}return super.parseMaybeDecoratorArguments(e,t)}checkCommaAfterRest(e){return this.state.isAmbientContext&&this.match(12)&&this.lookaheadCharCode()===e?(this.next(),!1):super.checkCommaAfterRest(e)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(35)||this.match(14)||super.isClassProperty()}parseMaybeDefault(e,t){const n=super.parseMaybeDefault(e,t);return"AssignmentPattern"===n.type&&n.typeAnnotation&&n.right.startthis.isAssignable(e,!0)):super.shouldParseArrow(e)}shouldParseAsyncArrow(){return this.match(14)||super.shouldParseAsyncArrow()}canHaveLeadingDecorator(){return super.canHaveLeadingDecorator()||this.isAbstractClass()}jsxParseOpeningElementAfterName(e){if(this.match(47)||this.match(51)){const t=this.tsTryParseAndCatch(()=>this.tsParseTypeArgumentsInExpression());t&&(e.typeParameters=t)}return super.jsxParseOpeningElementAfterName(e)}getGetterSetterExpectedParamCount(e){const t=super.getGetterSetterExpectedParamCount(e),n=this.getObjectOrClassMethodParams(e)[0];return n&&this.isThisParam(n)?t+1:t}parseCatchClauseParam(){const e=super.parseCatchClauseParam(),t=this.tsTryParseTypeAnnotation();return t&&(e.typeAnnotation=t,this.resetEndLocation(e)),e}tsInAmbientContext(e){const{isAmbientContext:t,strict:n}=this.state;this.state.isAmbientContext=!0,this.state.strict=!1;try{return e()}finally{this.state.isAmbientContext=t,this.state.strict=n}}parseClass(e,t,n){const r=this.state.inAbstractClass;this.state.inAbstractClass=!!e.abstract;try{return super.parseClass(e,t,n)}finally{this.state.inAbstractClass=r}}tsParseAbstractDeclaration(e,t){if(this.match(80))return e.abstract=!0,this.maybeTakeDecorators(t,this.parseClass(e,!0,!1));if(this.isContextual(129))return this.hasFollowingLineBreak()?null:(e.abstract=!0,this.raise(yt.NonClassMethodPropertyHasAbstractModifier,e),this.tsParseInterfaceDeclaration(e));throw this.unexpected(null,80)}parseMethod(e,t,n,r,i,a,o){const s=super.parseMethod(e,t,n,r,i,a,o);if((s.abstract||"TSAbstractMethodDefinition"===s.type)&&(this.hasPlugin("estree")?s.value:s).body){const{key:e}=s;this.raise(yt.AbstractMethodHasImplementation,s,{methodName:"Identifier"!==e.type||s.computed?`[${this.input.slice(this.offsetToSourcePos(e.start),this.offsetToSourcePos(e.end))}]`:e.name})}return s}tsParseTypeParameterName(){return this.parseIdentifier().name}shouldParseAsAmbientContext(){return!!this.getPluginOption("typescript","dts")}parse(){return this.shouldParseAsAmbientContext()&&(this.state.isAmbientContext=!0),super.parse()}getExpression(){return this.shouldParseAsAmbientContext()&&(this.state.isAmbientContext=!0),super.getExpression()}parseExportSpecifier(e,t,n,r){return!t&&r?(this.parseTypeOnlyImportExportSpecifier(e,!1,n),this.finishNode(e,"ExportSpecifier")):(e.exportKind="value",super.parseExportSpecifier(e,t,n,r))}parseImportSpecifier(e,t,n,r,i){return!t&&r?(this.parseTypeOnlyImportExportSpecifier(e,!0,n),this.finishNode(e,"ImportSpecifier")):(e.importKind="value",super.parseImportSpecifier(e,t,n,r,n?4098:4096))}parseTypeOnlyImportExportSpecifier(e,t,n){const r=t?"imported":"local",i=t?"local":"exported";let a,o=e[r],s=!1,c=!0;const l=o.loc.start;if(this.isContextual(93)){const e=this.parseIdentifier();if(this.isContextual(93)){const n=this.parseIdentifier();K(this.state.type)?(s=!0,o=e,a=t?this.parseIdentifier():this.parseModuleExportName(),c=!1):(a=n,c=!1)}else K(this.state.type)?(c=!1,a=t?this.parseIdentifier():this.parseModuleExportName()):(s=!0,o=e)}else K(this.state.type)&&(s=!0,t?(o=this.parseIdentifier(!0),this.isContextual(93)||this.checkReservedWord(o.name,o.loc.start,!0,!0)):o=this.parseModuleExportName());s&&n&&this.raise(t?yt.TypeModifierIsUsedInTypeImports:yt.TypeModifierIsUsedInTypeExports,l),e[r]=o,e[i]=a,e[t?"importKind":"exportKind"]=s?"type":"value",c&&this.eatContextual(93)&&(e[i]=t?this.parseIdentifier():this.parseModuleExportName()),e[i]||(e[i]=this.cloneIdentifier(e[r])),t&&this.checkIdentifier(e[i],s?4098:4096)}fillOptionalPropertiesForTSESLint(e){switch(e.type){case"ExpressionStatement":return void(null!=e.directive||(e.directive=void 0));case"RestElement":e.value=void 0;case"Identifier":case"ArrayPattern":case"AssignmentPattern":case"ObjectPattern":return null!=e.decorators||(e.decorators=[]),null!=e.optional||(e.optional=!1),void(null!=e.typeAnnotation||(e.typeAnnotation=void 0));case"TSParameterProperty":return null!=e.accessibility||(e.accessibility=void 0),null!=e.decorators||(e.decorators=[]),null!=e.override||(e.override=!1),null!=e.readonly||(e.readonly=!1),void(null!=e.static||(e.static=!1));case"TSEmptyBodyFunctionExpression":e.body=null;case"TSDeclareFunction":case"FunctionDeclaration":case"FunctionExpression":case"ClassMethod":case"ClassPrivateMethod":return null!=e.declare||(e.declare=!1),null!=e.returnType||(e.returnType=void 0),void(null!=e.typeParameters||(e.typeParameters=void 0));case"Property":return void(null!=e.optional||(e.optional=!1));case"TSMethodSignature":case"TSPropertySignature":null!=e.optional||(e.optional=!1);case"TSIndexSignature":return null!=e.accessibility||(e.accessibility=void 0),null!=e.readonly||(e.readonly=!1),void(null!=e.static||(e.static=!1));case"TSAbstractPropertyDefinition":case"PropertyDefinition":case"TSAbstractAccessorProperty":case"AccessorProperty":null!=e.declare||(e.declare=!1),null!=e.definite||(e.definite=!1),null!=e.readonly||(e.readonly=!1),null!=e.typeAnnotation||(e.typeAnnotation=void 0);case"TSAbstractMethodDefinition":case"MethodDefinition":return null!=e.accessibility||(e.accessibility=void 0),null!=e.decorators||(e.decorators=[]),null!=e.override||(e.override=!1),void(null!=e.optional||(e.optional=!1));case"ClassExpression":null!=e.id||(e.id=null);case"ClassDeclaration":return null!=e.abstract||(e.abstract=!1),null!=e.declare||(e.declare=!1),null!=e.decorators||(e.decorators=[]),null!=e.implements||(e.implements=[]),null!=e.superTypeArguments||(e.superTypeArguments=void 0),void(null!=e.typeParameters||(e.typeParameters=void 0));case"TSTypeAliasDeclaration":case"VariableDeclaration":return void(null!=e.declare||(e.declare=!1));case"VariableDeclarator":return void(null!=e.definite||(e.definite=!1));case"TSEnumDeclaration":return null!=e.const||(e.const=!1),void(null!=e.declare||(e.declare=!1));case"TSEnumMember":return void(null!=e.computed||(e.computed=!1));case"TSImportType":return null!=e.qualifier||(e.qualifier=null),void(null!=e.options||(e.options=null));case"TSInterfaceDeclaration":return null!=e.declare||(e.declare=!1),void(null!=e.extends||(e.extends=[]));case"TSMappedType":return null!=e.optional||(e.optional=!1),void(null!=e.readonly||(e.readonly=void 0));case"TSModuleDeclaration":return null!=e.declare||(e.declare=!1),void(null!=e.global||(e.global="global"===e.kind));case"TSTypeParameter":return null!=e.const||(e.const=!1),null!=e.in||(e.in=!1),void(null!=e.out||(e.out=!1))}}chStartsBindingIdentifierAndNotRelationalOperator(e,t){if(ae(e)){if(ht.lastIndex=t,ht.test(this.input)){const e=this.codePointAtPos(ht.lastIndex);if(!oe(e)&&92!==e)return!1}return!0}return 92===e}nextTokenIsIdentifierAndNotTSRelationalOperatorOnSameLine(){const e=this.nextTokenInLineStart(),t=this.codePointAtPos(e);return this.chStartsBindingIdentifierAndNotRelationalOperator(t,e)}nextTokenIsIdentifierOrStringLiteralOnSameLine(){const e=this.nextTokenInLineStart(),t=this.codePointAtPos(e);return this.chStartsBindingIdentifier(t,e)||34===t||39===t}},v8intrinsic:e=>class extends e{parseV8Intrinsic(){if(this.match(54)){const e=this.state.startLoc,t=this.startNode();if(this.next(),V(this.state.type)){const e=this.parseIdentifierName(),n=this.createIdentifier(t,e);if(this.castNodeTo(n,"V8IntrinsicIdentifier"),this.match(10))return n}this.unexpected(e)}}parseExprAtom(e){return this.parseV8Intrinsic()||super.parseExprAtom(e)}},placeholders:e=>class extends e{parsePlaceholder(e){if(this.match(133)){const t=this.startNode();return this.next(),this.assertNoSpace(),t.name=super.parseIdentifier(!0),this.assertNoSpace(),this.expect(133),this.finishPlaceholder(t,e)}}finishPlaceholder(e,t){let n=e;return n.expectedNode&&n.type||(n=this.finishNode(n,"Placeholder")),n.expectedNode=t,n}getTokenFromCode(e){37===e&&37===this.input.charCodeAt(this.state.pos+1)?this.finishOp(133,2):super.getTokenFromCode(e)}parseExprAtom(e){return this.parsePlaceholder("Expression")||super.parseExprAtom(e)}parseIdentifier(e){return this.parsePlaceholder("Identifier")||super.parseIdentifier(e)}checkReservedWord(e,t,n,r){void 0!==e&&super.checkReservedWord(e,t,n,r)}cloneIdentifier(e){const t=super.cloneIdentifier(e);return"Placeholder"===t.type&&(t.expectedNode=e.expectedNode),t}cloneStringLiteral(e){return"Placeholder"===e.type?this.cloneIdentifier(e):super.cloneStringLiteral(e)}parseBindingAtom(){return this.parsePlaceholder("Pattern")||super.parseBindingAtom()}isValidLVal(e,t,n,r){return"Placeholder"===e||super.isValidLVal(e,t,n,r)}toAssignable(e,t){e&&"Placeholder"===e.type&&"Expression"===e.expectedNode?e.expectedNode="Pattern":super.toAssignable(e,t)}chStartsBindingIdentifier(e,t){if(super.chStartsBindingIdentifier(e,t))return!0;const n=this.nextTokenStart();return 37===this.input.charCodeAt(n)&&37===this.input.charCodeAt(n+1)}verifyBreakContinue(e,t){var n;"Placeholder"!==(null==(n=e.label)?void 0:n.type)&&super.verifyBreakContinue(e,t)}parseExpressionStatement(e,t){var n;if("Placeholder"!==t.type||null!=(n=t.extra)&&n.parenthesized)return super.parseExpressionStatement(e,t);if(this.match(14)){const n=e;return n.label=this.finishPlaceholder(t,"Identifier"),this.next(),n.body=super.parseStatementOrSloppyAnnexBFunctionDeclaration(),this.finishNode(n,"LabeledStatement")}this.semicolon();const r=e;return r.name=t.name,this.finishPlaceholder(r,"Statement")}parseBlock(e,t,n){return this.parsePlaceholder("BlockStatement")||super.parseBlock(e,t,n)}parseFunctionId(e){return this.parsePlaceholder("Identifier")||super.parseFunctionId(e)}parseClass(e,t,n){const r=t?"ClassDeclaration":"ClassExpression";this.next();const i=this.state.strict,a=this.parsePlaceholder("Identifier");if(a){if(!(this.match(81)||this.match(133)||this.match(5))){if(n||!t)return e.id=null,e.body=this.finishPlaceholder(a,"ClassBody"),this.finishNode(e,r);throw this.raise(Ct.ClassNameIsRequired,this.state.startLoc)}e.id=a}else this.parseClassId(e,t,n);return super.parseClassSuper(e),e.body=this.parsePlaceholder("ClassBody")||super.parseClassBody(!!e.superClass,i),this.finishNode(e,r)}parseExport(e,t){const n=this.parsePlaceholder("Identifier");if(!n)return super.parseExport(e,t);const r=e;if(!this.isContextual(98)&&!this.match(12))return r.specifiers=[],r.source=null,r.declaration=this.finishPlaceholder(n,"Declaration"),this.finishNode(r,"ExportNamedDeclaration");this.expectPlugin("exportDefaultFrom");const i=this.startNode();return i.exported=n,r.specifiers=[this.finishNode(i,"ExportDefaultSpecifier")],super.parseExport(r,t)}isExportDefaultSpecifier(){if(this.match(65)){const e=this.nextTokenStart();if(this.isUnparsedContextual(e,"from")&&this.input.startsWith(z(133),this.nextTokenStartSince(e+4)))return!0}return super.isExportDefaultSpecifier()}maybeParseExportDefaultSpecifier(e,t){var n;return!(null==(n=e.specifiers)||!n.length)||super.maybeParseExportDefaultSpecifier(e,t)}checkExport(e){const{specifiers:t}=e;null!=t&&t.length&&(e.specifiers=t.filter(e=>"Placeholder"===e.exported.type)),super.checkExport(e),e.specifiers=t}parseImport(e){const t=this.parsePlaceholder("Identifier");if(!t)return super.parseImport(e);if(e.specifiers=[],!this.isContextual(98)&&!this.match(12))return e.source=this.finishPlaceholder(t,"StringLiteral"),this.semicolon(),this.finishNode(e,"ImportDeclaration");const n=this.startNodeAtNode(t);return n.local=t,e.specifiers.push(this.finishNode(n,"ImportDefaultSpecifier")),this.eat(12)&&(this.maybeParseStarImportSpecifier(e)||this.parseNamedImportSpecifiers(e)),this.expectContextual(98),e.source=this.parseImportSource(),this.semicolon(),this.finishNode(e,"ImportDeclaration")}parseImportSource(){return this.parsePlaceholder("StringLiteral")||super.parseImportSource()}assertNoSpace(){this.state.start>this.offsetToSourcePos(this.state.lastTokEndLoc.index)&&this.raise(Ct.UnexpectedSpace,this.state.lastTokEndLoc)}}},Nt=Object.keys(At);class kt extends _t{checkProto(e,t,n,r){if("SpreadElement"===e.type||this.isObjectMethod(e)||e.computed||e.shorthand)return n;const i=e.key;return"__proto__"===("Identifier"===i.type?i.name:i.value)?t?(this.raise(h.RecordNoProto,i),!0):(n&&(r?null===r.doubleProtoLoc&&(r.doubleProtoLoc=i.loc.start):this.raise(h.DuplicateProto,i)),!0):n}shouldExitDescending(e,t){return"ArrowFunctionExpression"===e.type&&this.offsetToSourcePos(e.start)===t}getExpression(){if(this.enterInitialScopes(),this.nextToken(),this.match(140))throw this.raise(h.ParseExpressionEmptyInput,this.state.startLoc);const e=this.parseExpression();if(!this.match(140))throw this.raise(h.ParseExpressionExpectsEOF,this.state.startLoc,{unexpected:this.input.codePointAt(this.state.start)});return this.finalizeRemainingComments(),e.comments=this.comments,e.errors=this.state.errors,256&this.optionFlags&&(e.tokens=this.tokens),e}parseExpression(e,t){return e?this.disallowInAnd(()=>this.parseExpressionBase(t)):this.allowInAnd(()=>this.parseExpressionBase(t))}parseExpressionBase(e){const t=this.state.startLoc,n=this.parseMaybeAssign(e);if(this.match(12)){const r=this.startNodeAt(t);for(r.expressions=[n];this.eat(12);)r.expressions.push(this.parseMaybeAssign(e));return this.toReferencedList(r.expressions),this.finishNode(r,"SequenceExpression")}return n}parseMaybeAssignDisallowIn(e,t){return this.disallowInAnd(()=>this.parseMaybeAssign(e,t))}parseMaybeAssignAllowIn(e,t){return this.allowInAnd(()=>this.parseMaybeAssign(e,t))}setOptionalParametersError(e){e.optionalParametersLoc=this.state.startLoc}parseMaybeAssign(e,t){const n=this.state.startLoc,r=this.isContextual(108);if(r&&this.prodParam.hasYield){this.next();let e=this.parseYield(n);return t&&(e=t.call(this,e,n)),e}let i;e?i=!1:(e=new ut,i=!0);const{type:a}=this.state;(10===a||V(a))&&(this.state.potentialArrowAt=this.state.start);let o=this.parseMaybeConditional(e);if(t&&(o=t.call(this,o,n)),(s=this.state.type)>=29&&s<=33){const t=this.startNodeAt(n),r=this.state.value;if(t.operator=r,this.match(29)){this.toAssignable(o,!0),t.left=o;const r=n.index;null!=e.doubleProtoLoc&&e.doubleProtoLoc.index>=r&&(e.doubleProtoLoc=null),null!=e.shorthandAssignLoc&&e.shorthandAssignLoc.index>=r&&(e.shorthandAssignLoc=null),null!=e.privateKeyLoc&&e.privateKeyLoc.index>=r&&(this.checkDestructuringPrivate(e),e.privateKeyLoc=null),null!=e.voidPatternLoc&&e.voidPatternLoc.index>=r&&(e.voidPatternLoc=null)}else t.left=o;return this.next(),t.right=this.parseMaybeAssign(),this.checkLVal(o,this.finishNode(t,"AssignmentExpression"),void 0,void 0,void 0,void 0,"||="===r||"&&="===r||"??="===r),t}var s;if(i&&this.checkExpressionErrors(e,!0),r){const{type:e}=this.state;if((this.hasPlugin("v8intrinsic")?H(e):H(e)&&!this.match(54))&&!this.isAmbiguousPrefixOrIdentifier())return this.raiseOverwrite(h.YieldNotInGeneratorFunction,n),this.parseYield(n)}return o}parseMaybeConditional(e){const t=this.state.startLoc,n=this.state.potentialArrowAt,r=this.parseExprOps(e);return this.shouldExitDescending(r,n)?r:this.parseConditional(r,t,e)}parseConditional(e,t,n){if(this.eat(17)){const n=this.startNodeAt(t);return n.test=e,n.consequent=this.parseMaybeAssignAllowIn(),this.expect(14),n.alternate=this.parseMaybeAssign(),this.finishNode(n,"ConditionalExpression")}return e}parseMaybeUnaryOrPrivate(e){return this.match(139)?this.parsePrivateName():this.parseMaybeUnary(e)}parseExprOps(e){const t=this.state.startLoc,n=this.state.potentialArrowAt,r=this.parseMaybeUnaryOrPrivate(e);return this.shouldExitDescending(r,n)?r:this.parseExprOp(r,t,-1)}parseExprOp(e,t,n){if(this.isPrivateName(e)){const t=this.getPrivateNameSV(e);(n>=J(58)||!this.prodParam.hasIn||!this.match(58))&&this.raise(h.PrivateInExpectedIn,e,{identifierName:t}),this.classScope.usePrivateName(t,e.loc.start)}const r=this.state.type;if((i=r)>=39&&i<=59&&(this.prodParam.hasIn||!this.match(58))){let i=J(r);if(i>n){if(39===r){if(this.expectPlugin("pipelineOperator"),this.state.inFSharpPipelineDirectBody)return e;this.checkPipelineAtInfixOperator(e,t)}const a=this.startNodeAt(t);a.left=e,a.operator=this.state.value;const o=41===r||42===r,s=40===r;if(s&&(i=J(42)),this.next(),39===r&&this.hasPlugin(["pipelineOperator",{proposal:"minimal"}])&&96===this.state.type&&this.prodParam.hasAwait)throw this.raise(h.UnexpectedAwaitAfterPipelineBody,this.state.startLoc);a.right=this.parseExprOpRightExpr(r,i);const c=this.finishNode(a,o||s?"LogicalExpression":"BinaryExpression"),l=this.state.type;if(s&&(41===l||42===l)||o&&40===l)throw this.raise(h.MixingCoalesceWithLogical,this.state.startLoc);return this.parseExprOp(c,t,n)}}var i;return e}parseExprOpRightExpr(e,t){const n=this.state.startLoc;if(39===e){switch(this.getPluginOption("pipelineOperator","proposal")){case"hack":return this.withTopicBindingContext(()=>this.parseHackPipeBody());case"fsharp":return this.withSoloAwaitPermittingContext(()=>this.parseFSharpPipelineBody(t))}if("smart"===this.getPluginOption("pipelineOperator","proposal"))return this.withTopicBindingContext(()=>{if(this.prodParam.hasYield&&this.isContextual(108))throw this.raise(h.PipeBodyIsTighter,this.state.startLoc);return this.parseSmartPipelineBodyInStyle(this.parseExprOpBaseRightExpr(e,t),n)})}return this.parseExprOpBaseRightExpr(e,t)}parseExprOpBaseRightExpr(e,t){const n=this.state.startLoc;return this.parseExprOp(this.parseMaybeUnaryOrPrivate(),n,57===e?t-1:t)}parseHackPipeBody(){var e;const{startLoc:t}=this.state,n=this.parseMaybeAssign();return!u.has(n.type)||null!=(e=n.extra)&&e.parenthesized||this.raise(h.PipeUnparenthesizedBody,t,{type:n.type}),this.topicReferenceWasUsedInCurrentContext()||this.raise(h.PipeTopicUnused,t),n}checkExponentialAfterUnary(e){this.match(57)&&this.raise(h.UnexpectedTokenUnaryExponentiation,e.argument)}parseMaybeUnary(e,t){const n=this.state.startLoc,r=this.isContextual(96);if(r&&this.recordAwaitIfAllowed()){this.next();const e=this.parseAwait(n);return t||this.checkExponentialAfterUnary(e),e}const i=this.match(34),a=this.startNode();if(o=this.state.type,F[o]){a.operator=this.state.value,a.prefix=!0,this.match(72)&&this.expectPlugin("throwExpressions");const n=this.match(89);if(this.next(),a.argument=this.parseMaybeUnary(null,!0),this.checkExpressionErrors(e,!0),this.state.strict&&n){const e=a.argument;"Identifier"===e.type?this.raise(h.StrictDelete,a):this.hasPropertyAsPrivateName(e)&&this.raise(h.DeletePrivateField,a)}if(!i)return t||this.checkExponentialAfterUnary(a),this.finishNode(a,"UnaryExpression")}var o;const s=this.parseUpdate(a,i,e);if(r){const{type:e}=this.state;if((this.hasPlugin("v8intrinsic")?H(e):H(e)&&!this.match(54))&&!this.isAmbiguousPrefixOrIdentifier())return this.raiseOverwrite(h.AwaitNotInAsyncContext,n),this.parseAwait(n)}return s}parseUpdate(e,t,n){if(t){const t=e;return this.checkLVal(t.argument,this.finishNode(t,"UpdateExpression")),e}const r=this.state.startLoc;let i=this.parseExprSubscripts(n);if(this.checkExpressionErrors(n,!1))return i;for(;q(this.state.type)&&!this.canInsertSemicolon();){const e=this.startNodeAt(r);e.operator=this.state.value,e.prefix=!1,e.argument=i,this.next(),this.checkLVal(i,i=this.finishNode(e,"UpdateExpression"))}return i}parseExprSubscripts(e){const t=this.state.startLoc,n=this.state.potentialArrowAt,r=this.parseExprAtom(e);return this.shouldExitDescending(r,n)?r:this.parseSubscripts(r,t)}parseSubscripts(e,t,n){const r={optionalChainMember:!1,maybeAsyncArrow:this.atPossibleAsyncArrow(e),stop:!1};do{e=this.parseSubscript(e,t,n,r),r.maybeAsyncArrow=!1}while(!r.stop);return e}parseSubscript(e,t,n,r){const{type:i}=this.state;if(!n&&15===i)return this.parseBind(e,t,n,r);if(X(i))return this.parseTaggedTemplateExpression(e,t,r);let a=!1;if(18===i){if(n&&(this.raise(h.OptionalChainingNoNew,this.state.startLoc),40===this.lookaheadCharCode()))return this.stopParseSubscript(e,r);r.optionalChainMember=a=!0,this.next()}if(!n&&this.match(10))return this.parseCoverCallAndAsyncArrowHead(e,t,r,a);{const n=this.eat(0);return n||a||this.eat(16)?this.parseMember(e,t,r,n,a):this.stopParseSubscript(e,r)}}stopParseSubscript(e,t){return t.stop=!0,e}parseMember(e,t,n,r,i){const a=this.startNodeAt(t);return a.object=e,a.computed=r,r?(a.property=this.parseExpression(),this.expect(3)):this.match(139)?("Super"===e.type&&this.raise(h.SuperPrivateField,t),this.classScope.usePrivateName(this.state.value,this.state.startLoc),a.property=this.parsePrivateName()):a.property=this.parseIdentifier(!0),n.optionalChainMember?(a.optional=i,this.finishNode(a,"OptionalMemberExpression")):this.finishNode(a,"MemberExpression")}parseBind(e,t,n,r){const i=this.startNodeAt(t);return i.object=e,this.next(),i.callee=this.parseNoCallExpr(),r.stop=!0,this.parseSubscripts(this.finishNode(i,"BindExpression"),t,n)}parseCoverCallAndAsyncArrowHead(e,t,n,r){const i=this.state.maybeInArrowParameters;let a=null;this.state.maybeInArrowParameters=!0,this.next();const o=this.startNodeAt(t);o.callee=e;const{maybeAsyncArrow:s,optionalChainMember:c}=n;s&&(this.expressionScope.enter(new ot(2)),a=new ut),c&&(o.optional=r),o.arguments=r?this.parseCallExpressionArguments():this.parseCallExpressionArguments("Super"!==e.type,o,a);let l=this.finishCallExpression(o,c);return s&&this.shouldParseAsyncArrow()&&!r?(n.stop=!0,this.checkDestructuringPrivate(a),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),l=this.parseAsyncArrowFromCallExpression(this.startNodeAt(t),l)):(s&&(this.checkExpressionErrors(a,!0),this.expressionScope.exit()),this.toReferencedArguments(l)),this.state.maybeInArrowParameters=i,l}toReferencedArguments(e,t){this.toReferencedListDeep(e.arguments,t)}parseTaggedTemplateExpression(e,t,n){const r=this.startNodeAt(t);return r.tag=e,r.quasi=this.parseTemplate(!0),n.optionalChainMember&&this.raise(h.OptionalChainingNoTemplate,t),this.finishNode(r,"TaggedTemplateExpression")}atPossibleAsyncArrow(e){return"Identifier"===e.type&&"async"===e.name&&this.state.lastTokEndLoc.index===e.end&&!this.canInsertSemicolon()&&e.end-e.start===5&&this.offsetToSourcePos(e.start)===this.state.potentialArrowAt}finishCallExpression(e,t){if("Import"===e.callee.type)if(0===e.arguments.length||e.arguments.length>2)this.raise(h.ImportCallArity,e);else for(const t of e.arguments)"SpreadElement"===t.type&&this.raise(h.ImportCallSpreadArgument,t);return this.finishNode(e,t?"OptionalCallExpression":"CallExpression")}parseCallExpressionArguments(e,t,n){const r=[];let i=!0;const a=this.state.inFSharpPipelineDirectBody;for(this.state.inFSharpPipelineDirectBody=!1;!this.eat(11);){if(i)i=!1;else if(this.expect(12),this.match(11)){t&&this.addTrailingCommaExtraToNode(t),this.next();break}r.push(this.parseExprListItem(11,!1,n,e))}return this.state.inFSharpPipelineDirectBody=a,r}shouldParseAsyncArrow(){return this.match(19)&&!this.canInsertSemicolon()}parseAsyncArrowFromCallExpression(e,t){var n;return this.resetPreviousNodeTrailingComments(t),this.expect(19),this.parseArrowExpression(e,t.arguments,!0,null==(n=t.extra)?void 0:n.trailingCommaLoc),t.innerComments&&Ue(e,t.innerComments),t.callee.trailingComments&&Ue(e,t.callee.trailingComments),e}parseNoCallExpr(){const e=this.state.startLoc;return this.parseSubscripts(this.parseExprAtom(),e,!0)}parseExprAtom(e){let t,n=null;const{type:r}=this.state;switch(r){case 79:return this.parseSuper();case 83:return t=this.startNode(),this.next(),this.match(16)?this.parseImportMetaPropertyOrPhaseCall(t):this.match(10)?512&this.optionFlags?this.parseImportCall(t):this.finishNode(t,"Import"):(this.raise(h.UnsupportedImport,this.state.lastTokStartLoc),this.finishNode(t,"Import"));case 78:return t=this.startNode(),this.next(),this.finishNode(t,"ThisExpression");case 90:return this.parseDo(this.startNode(),!1);case 56:case 31:return this.readRegexp(),this.parseRegExpLiteral(this.state.value);case 135:return this.parseNumericLiteral(this.state.value);case 136:return this.parseBigIntLiteral(this.state.value);case 134:return this.parseStringLiteral(this.state.value);case 84:return this.parseNullLiteral();case 85:return this.parseBooleanLiteral(!0);case 86:return this.parseBooleanLiteral(!1);case 10:{const e=this.state.potentialArrowAt===this.state.start;return this.parseParenAndDistinguishExpression(e)}case 0:return this.parseArrayLike(3,!1,e);case 5:return this.parseObjectLike(8,!1,!1,e);case 68:return this.parseFunctionOrFunctionSent();case 26:n=this.parseDecorators();case 80:return this.parseClass(this.maybeTakeDecorators(n,this.startNode()),!1);case 77:return this.parseNewOrNewTarget();case 25:case 24:return this.parseTemplate(!1);case 15:{t=this.startNode(),this.next(),t.object=null;const e=t.callee=this.parseNoCallExpr();if("MemberExpression"===e.type)return this.finishNode(t,"BindExpression");throw this.raise(h.UnsupportedBind,e)}case 139:return this.raise(h.PrivateInExpectedIn,this.state.startLoc,{identifierName:this.state.value}),this.parsePrivateName();case 33:return this.parseTopicReferenceThenEqualsSign(54,"%");case 32:return this.parseTopicReferenceThenEqualsSign(44,"^");case 37:case 38:return this.parseTopicReference("hack");case 44:case 54:case 27:{const e=this.getPluginOption("pipelineOperator","proposal");if(e)return this.parseTopicReference(e);throw this.unexpected()}case 47:{const e=this.input.codePointAt(this.nextTokenStart());if(ae(e)||62===e)throw this.expectOnePlugin(["jsx","flow","typescript"]);throw this.unexpected()}default:if(137===r)return this.parseDecimalLiteral(this.state.value);if(2===r||1===r)return this.parseArrayLike(2===this.state.type?4:3,!0);if(6===r||7===r)return this.parseObjectLike(6===this.state.type?9:8,!1,!0);if(V(r)){if(this.isContextual(127)&&123===this.lookaheadInLineCharCode())return this.parseModuleExpression();const e=this.state.potentialArrowAt===this.state.start,t=this.state.containsEsc,n=this.parseIdentifier();if(!t&&"async"===n.name&&!this.canInsertSemicolon()){const{type:t}=this.state;if(68===t)return this.resetPreviousNodeTrailingComments(n),this.next(),this.parseAsyncFunctionExpression(this.startNodeAtNode(n));if(V(t))return e&&61===this.lookaheadCharCode()?this.parseAsyncArrowUnaryFunction(this.startNodeAtNode(n)):n;if(90===t)return this.resetPreviousNodeTrailingComments(n),this.parseDo(this.startNodeAtNode(n),!0)}return e&&this.match(19)&&!this.canInsertSemicolon()?(this.next(),this.parseArrowExpression(this.startNodeAtNode(n),[n],!1)):n}throw this.unexpected()}}parseTopicReferenceThenEqualsSign(e,t){const n=this.getPluginOption("pipelineOperator","proposal");if(n)return this.state.type=e,this.state.value=t,this.state.pos--,this.state.end--,this.state.endLoc=r(this.state.endLoc,-1),this.parseTopicReference(n);throw this.unexpected()}parseTopicReference(e){const t=this.startNode(),n=this.state.startLoc,r=this.state.type;return this.next(),this.finishTopicReference(t,n,e,r)}finishTopicReference(e,t,n,r){if(this.testTopicReferenceConfiguration(n,t,r))return"hack"===n?(this.topicReferenceIsAllowedInCurrentContext()||this.raise(h.PipeTopicUnbound,t),this.registerTopicReference(),this.finishNode(e,"TopicReference")):(this.topicReferenceIsAllowedInCurrentContext()||this.raise(h.PrimaryTopicNotAllowed,t),this.registerTopicReference(),this.finishNode(e,"PipelinePrimaryTopicReference"));throw this.raise(h.PipeTopicUnconfiguredToken,t,{token:z(r)})}testTopicReferenceConfiguration(e,t,n){switch(e){case"hack":return this.hasPlugin(["pipelineOperator",{topicToken:z(n)}]);case"smart":return 27===n;default:throw this.raise(h.PipeTopicRequiresHackPipes,t)}}parseAsyncArrowUnaryFunction(e){this.prodParam.enter(Fe(!0,this.prodParam.hasYield));const t=[this.parseIdentifier()];return this.prodParam.exit(),this.hasPrecedingLineBreak()&&this.raise(h.LineTerminatorBeforeArrow,this.state.curPosition()),this.expect(19),this.parseArrowExpression(e,t,!0)}parseDo(e,t){this.expectPlugin("doExpressions"),t&&this.expectPlugin("asyncDoExpressions"),e.async=t,this.next();const n=this.state.labels;return this.state.labels=[],t?(this.prodParam.enter(2),e.body=this.parseBlock(),this.prodParam.exit()):e.body=this.parseBlock(),this.state.labels=n,this.finishNode(e,"DoExpression")}parseSuper(){const e=this.startNode();return this.next(),this.match(10)&&!this.scope.allowDirectSuper?16&this.optionFlags||this.raise(h.SuperNotAllowed,e):this.scope.allowSuper||16&this.optionFlags||this.raise(h.UnexpectedSuper,e),this.match(10)||this.match(0)||this.match(16)||this.raise(h.UnsupportedSuper,e),this.finishNode(e,"Super")}parsePrivateName(){const e=this.startNode(),t=this.startNodeAt(r(this.state.startLoc,1)),n=this.state.value;return this.next(),e.id=this.createIdentifier(t,n),this.finishNode(e,"PrivateName")}parseFunctionOrFunctionSent(){const e=this.startNode();if(this.next(),this.prodParam.hasYield&&this.match(16)){const t=this.createIdentifier(this.startNodeAtNode(e),"function");return this.next(),this.match(103)?this.expectPlugin("functionSent"):this.hasPlugin("functionSent")||this.unexpected(),this.parseMetaProperty(e,t,"sent")}return this.parseFunction(e)}parseMetaProperty(e,t,n){e.meta=t;const r=this.state.containsEsc;return e.property=this.parseIdentifier(!0),(e.property.name!==n||r)&&this.raise(h.UnsupportedMetaProperty,e.property,{target:t.name,onlyValidPropertyName:n}),this.finishNode(e,"MetaProperty")}parseImportMetaPropertyOrPhaseCall(e){if(this.next(),this.isContextual(105)||this.isContextual(97)){const t=this.isContextual(105);return this.expectPlugin(t?"sourcePhaseImports":"deferredImportEvaluation"),this.next(),e.phase=t?"source":"defer",this.parseImportCall(e)}{const t=this.createIdentifierAt(this.startNodeAtNode(e),"import",this.state.lastTokStartLoc);return this.isContextual(101)&&(this.inModule||this.raise(h.ImportMetaOutsideModule,t),this.sawUnambiguousESM=!0),this.parseMetaProperty(e,t,"meta")}}parseLiteralAtNode(e,t,n){return this.addExtra(n,"rawValue",e),this.addExtra(n,"raw",this.input.slice(this.offsetToSourcePos(n.start),this.state.end)),n.value=e,this.next(),this.finishNode(n,t)}parseLiteral(e,t){const n=this.startNode();return this.parseLiteralAtNode(e,t,n)}parseStringLiteral(e){return this.parseLiteral(e,"StringLiteral")}parseNumericLiteral(e){return this.parseLiteral(e,"NumericLiteral")}parseBigIntLiteral(e){return this.parseLiteral(e,"BigIntLiteral")}parseDecimalLiteral(e){return this.parseLiteral(e,"DecimalLiteral")}parseRegExpLiteral(e){const t=this.startNode();return this.addExtra(t,"raw",this.input.slice(this.offsetToSourcePos(t.start),this.state.end)),t.pattern=e.pattern,t.flags=e.flags,this.next(),this.finishNode(t,"RegExpLiteral")}parseBooleanLiteral(e){const t=this.startNode();return t.value=e,this.next(),this.finishNode(t,"BooleanLiteral")}parseNullLiteral(){const e=this.startNode();return this.next(),this.finishNode(e,"NullLiteral")}parseParenAndDistinguishExpression(e){const t=this.state.startLoc;let n;this.next(),this.expressionScope.enter(new ot(1));const r=this.state.maybeInArrowParameters,i=this.state.inFSharpPipelineDirectBody;this.state.maybeInArrowParameters=!0,this.state.inFSharpPipelineDirectBody=!1;const a=this.state.startLoc,o=[],s=new ut;let c,l,u=!0;for(;!this.match(11);){if(u)u=!1;else if(this.expect(12,null===s.optionalParametersLoc?null:s.optionalParametersLoc),this.match(11)){l=this.state.startLoc;break}if(this.match(21)){const e=this.state.startLoc;if(c=this.state.startLoc,o.push(this.parseParenItem(this.parseRestBinding(),e)),!this.checkCommaAfterRest(41))break}else o.push(this.parseMaybeAssignAllowInOrVoidPattern(11,s,this.parseParenItem))}const d=this.state.lastTokEndLoc;this.expect(11),this.state.maybeInArrowParameters=r,this.state.inFSharpPipelineDirectBody=i;let p=this.startNodeAt(t);return e&&this.shouldParseArrow(o)&&(p=this.parseArrow(p))?(this.checkDestructuringPrivate(s),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),this.parseArrowExpression(p,o,!1),p):(this.expressionScope.exit(),o.length||this.unexpected(this.state.lastTokStartLoc),l&&this.unexpected(l),c&&this.unexpected(c),this.checkExpressionErrors(s,!0),this.toReferencedListDeep(o,!0),o.length>1?(n=this.startNodeAt(a),n.expressions=o,this.finishNode(n,"SequenceExpression"),this.resetEndLocation(n,d)):n=o[0],this.wrapParenthesis(t,n))}wrapParenthesis(e,t){if(!(1024&this.optionFlags))return this.addExtra(t,"parenthesized",!0),this.addExtra(t,"parenStart",e.index),this.takeSurroundingComments(t,e.index,this.state.lastTokEndLoc.index),t;const n=this.startNodeAt(e);return n.expression=t,this.finishNode(n,"ParenthesizedExpression")}shouldParseArrow(e){return!this.canInsertSemicolon()}parseArrow(e){if(this.eat(19))return e}parseParenItem(e,t){return e}parseNewOrNewTarget(){const e=this.startNode();if(this.next(),this.match(16)){const t=this.createIdentifier(this.startNodeAtNode(e),"new");this.next();const n=this.parseMetaProperty(e,t,"target");return this.scope.allowNewTarget||this.raise(h.UnexpectedNewTarget,n),n}return this.parseNew(e)}parseNew(e){if(this.parseNewCallee(e),this.eat(10)){const t=this.parseExprList(11);this.toReferencedList(t),e.arguments=t}else e.arguments=[];return this.finishNode(e,"NewExpression")}parseNewCallee(e){const t=this.match(83),n=this.parseNoCallExpr();e.callee=n,!t||"Import"!==n.type&&"ImportExpression"!==n.type||this.raise(h.ImportCallNotNewExpression,n)}parseTemplateElement(e){const{start:t,startLoc:n,end:i,value:a}=this.state,o=t+1,s=this.startNodeAt(r(n,1));null===a&&(e||this.raise(h.InvalidEscapeSequenceTemplate,r(this.state.firstInvalidTemplateEscapePos,1)));const c=this.match(24),l=c?-1:-2,u=i+l;s.value={raw:this.input.slice(o,u).replace(/\r\n?/g,"\n"),cooked:null===a?null:a.slice(1,l)},s.tail=c,this.next();const d=this.finishNode(s,"TemplateElement");return this.resetEndLocation(d,r(this.state.lastTokEndLoc,l)),d}parseTemplate(e){const t=this.startNode();let n=this.parseTemplateElement(e);const r=[n],i=[];for(;!n.tail;)i.push(this.parseTemplateSubstitution()),this.readTemplateContinuation(),r.push(n=this.parseTemplateElement(e));return t.expressions=i,t.quasis=r,this.finishNode(t,"TemplateLiteral")}parseTemplateSubstitution(){return this.parseExpression()}parseObjectLike(e,t,n,r){n&&this.expectPlugin("recordAndTuple");const i=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;let a=!1,o=!0;const s=this.startNode();for(s.properties=[],this.next();!this.match(e);){if(o)o=!1;else if(this.expect(12),this.match(e)){this.addTrailingCommaExtraToNode(s);break}let i;t?i=this.parseBindingProperty():(i=this.parsePropertyDefinition(r),a=this.checkProto(i,n,a,r)),n&&!this.isObjectProperty(i)&&"SpreadElement"!==i.type&&this.raise(h.InvalidRecordProperty,i),i.shorthand&&this.addExtra(i,"shorthand",!0),s.properties.push(i)}this.next(),this.state.inFSharpPipelineDirectBody=i;let c="ObjectExpression";return t?c="ObjectPattern":n&&(c="RecordExpression"),this.finishNode(s,c)}addTrailingCommaExtraToNode(e){this.addExtra(e,"trailingComma",this.state.lastTokStartLoc.index),this.addExtra(e,"trailingCommaLoc",this.state.lastTokStartLoc,!1)}maybeAsyncOrAccessorProp(e){return!e.computed&&"Identifier"===e.key.type&&(this.isLiteralPropertyName()||this.match(0)||this.match(55))}parsePropertyDefinition(e){let t=[];if(this.match(26))for(this.hasPlugin("decorators")&&this.raise(h.UnsupportedPropertyDecorator,this.state.startLoc);this.match(26);)t.push(this.parseDecorator());const n=this.startNode();let r,i=!1,a=!1;if(this.match(21))return t.length&&this.unexpected(),this.parseSpread();t.length&&(n.decorators=t,t=[]),n.method=!1,e&&(r=this.state.startLoc);let o=this.eat(55);this.parsePropertyNamePrefixOperator(n);const s=this.state.containsEsc;if(this.parsePropertyName(n,e),!o&&!s&&this.maybeAsyncOrAccessorProp(n)){const{key:e}=n,t=e.name;"async"!==t||this.hasPrecedingLineBreak()||(i=!0,this.resetPreviousNodeTrailingComments(e),o=this.eat(55),this.parsePropertyName(n)),"get"!==t&&"set"!==t||(a=!0,this.resetPreviousNodeTrailingComments(e),n.kind=t,this.match(55)&&(o=!0,this.raise(h.AccessorIsGenerator,this.state.curPosition(),{kind:t}),this.next()),this.parsePropertyName(n))}return this.parseObjPropValue(n,r,o,i,!1,a,e)}getGetterSetterExpectedParamCount(e){return"get"===e.kind?0:1}getObjectOrClassMethodParams(e){return e.params}checkGetterSetterParams(e){var t;const n=this.getGetterSetterExpectedParamCount(e),r=this.getObjectOrClassMethodParams(e);r.length!==n&&this.raise("get"===e.kind?h.BadGetterArity:h.BadSetterArity,e),"set"===e.kind&&"RestElement"===(null==(t=r[r.length-1])?void 0:t.type)&&this.raise(h.BadSetterRestParameter,e)}parseObjectMethod(e,t,n,r,i){if(i){const n=this.parseMethod(e,t,!1,!1,!1,"ObjectMethod");return this.checkGetterSetterParams(n),n}if(n||t||this.match(10))return r&&this.unexpected(),e.kind="method",e.method=!0,this.parseMethod(e,t,n,!1,!1,"ObjectMethod")}parseObjectProperty(e,t,n,r){if(e.shorthand=!1,this.eat(14))return e.value=n?this.parseMaybeDefault(this.state.startLoc):this.parseMaybeAssignAllowInOrVoidPattern(8,r),this.finishObjectProperty(e);if(!e.computed&&"Identifier"===e.key.type){if(this.checkReservedWord(e.key.name,e.key.loc.start,!0,!1),n)e.value=this.parseMaybeDefault(t,this.cloneIdentifier(e.key));else if(this.match(29)){const n=this.state.startLoc;null!=r?null===r.shorthandAssignLoc&&(r.shorthandAssignLoc=n):this.raise(h.InvalidCoverInitializedName,n),e.value=this.parseMaybeDefault(t,this.cloneIdentifier(e.key))}else e.value=this.cloneIdentifier(e.key);return e.shorthand=!0,this.finishObjectProperty(e)}}finishObjectProperty(e){return this.finishNode(e,"ObjectProperty")}parseObjPropValue(e,t,n,r,i,a,o){const s=this.parseObjectMethod(e,n,r,i,a)||this.parseObjectProperty(e,t,i,o);return s||this.unexpected(),s}parsePropertyName(e,t){if(this.eat(0))e.computed=!0,e.key=this.parseMaybeAssignAllowIn(),this.expect(3);else{const{type:n,value:r}=this.state;let i;if(K(n))i=this.parseIdentifier(!0);else switch(n){case 135:i=this.parseNumericLiteral(r);break;case 134:i=this.parseStringLiteral(r);break;case 136:i=this.parseBigIntLiteral(r);break;case 139:{const e=this.state.startLoc;null!=t?null===t.privateKeyLoc&&(t.privateKeyLoc=e):this.raise(h.UnexpectedPrivateField,e),i=this.parsePrivateName();break}default:if(137===n){i=this.parseDecimalLiteral(r);break}this.unexpected()}e.key=i,139!==n&&(e.computed=!1)}}initFunction(e,t){e.id=null,e.generator=!1,e.async=t}parseMethod(e,t,n,r,i,a,o=!1){this.initFunction(e,n),e.generator=t,this.scope.enter(530|(o?576:0)|(i?32:0)),this.prodParam.enter(Fe(n,e.generator)),this.parseFunctionParams(e,r);const s=this.parseFunctionBodyAndFinish(e,a,!0);return this.prodParam.exit(),this.scope.exit(),s}parseArrayLike(e,t,n){t&&this.expectPlugin("recordAndTuple");const r=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;const i=this.startNode();return this.next(),i.elements=this.parseExprList(e,!t,n,i),this.state.inFSharpPipelineDirectBody=r,this.finishNode(i,t?"TupleExpression":"ArrayExpression")}parseArrowExpression(e,t,n,r){this.scope.enter(518);let i=Fe(n,!1);!this.match(5)&&this.prodParam.hasIn&&(i|=8),this.prodParam.enter(i),this.initFunction(e,n);const a=this.state.maybeInArrowParameters;return t&&(this.state.maybeInArrowParameters=!0,this.setArrowFunctionParameters(e,t,r)),this.state.maybeInArrowParameters=!1,this.parseFunctionBody(e,!0),this.prodParam.exit(),this.scope.exit(),this.state.maybeInArrowParameters=a,this.finishNode(e,"ArrowFunctionExpression")}setArrowFunctionParameters(e,t,n){this.toAssignableList(t,n,!1),e.params=t}parseFunctionBodyAndFinish(e,t,n=!1){return this.parseFunctionBody(e,!1,n),this.finishNode(e,t)}parseFunctionBody(e,t,n=!1){const r=t&&!this.match(5);if(this.expressionScope.enter(ct()),r)e.body=this.parseMaybeAssign(),this.checkParams(e,!1,t,!1);else{const r=this.state.strict,i=this.state.labels;this.state.labels=[],this.prodParam.enter(4|this.prodParam.currentFlags()),e.body=this.parseBlock(!0,!1,i=>{const a=!this.isSimpleParamList(e.params);i&&a&&this.raise(h.IllegalLanguageModeDirective,"method"!==e.kind&&"constructor"!==e.kind||!e.key?e:e.key.loc.end);const o=!r&&this.state.strict;this.checkParams(e,!(this.state.strict||t||n||a),t,o),this.state.strict&&e.id&&this.checkIdentifier(e.id,65,o)}),this.prodParam.exit(),this.state.labels=i}this.expressionScope.exit()}isSimpleParameter(e){return"Identifier"===e.type}isSimpleParamList(e){for(let t=0,n=e.length;t10)&&function(e){return fe.has(e)}(e))if(n&&function(e){return se.has(e)}(e))this.raise(h.UnexpectedKeyword,t,{keyword:e});else if((this.state.strict?r?me:de:ue)(e,this.inModule))this.raise(h.UnexpectedReservedWord,t,{reservedWord:e});else if("yield"===e){if(this.prodParam.hasYield)return void this.raise(h.YieldBindingIdentifier,t)}else if("await"===e){if(this.prodParam.hasAwait)return void this.raise(h.AwaitBindingIdentifier,t);if(this.scope.inStaticBlock)return void this.raise(h.AwaitBindingIdentifierInStaticBlock,t);this.expressionScope.recordAsyncArrowParametersError(t)}else if("arguments"===e&&this.scope.inClassAndNotInNonArrowFunction)return void this.raise(h.ArgumentsInClass,t)}recordAwaitIfAllowed(){const e=this.prodParam.hasAwait;return e&&!this.scope.inFunction&&(this.state.hasTopLevelAwait=!0),e}parseAwait(e){const t=this.startNodeAt(e);return this.expressionScope.recordParameterInitializerError(h.AwaitExpressionFormalParameter,t),this.eat(55)&&this.raise(h.ObsoleteAwaitStar,t),this.scope.inFunction||1&this.optionFlags||(this.isAmbiguousPrefixOrIdentifier()?this.ambiguousScriptDifferentAst=!0:this.sawUnambiguousESM=!0),this.state.soloAwait||(t.argument=this.parseMaybeUnary(null,!0)),this.finishNode(t,"AwaitExpression")}isAmbiguousPrefixOrIdentifier(){if(this.hasPrecedingLineBreak())return!0;const{type:e}=this.state;return 53===e||10===e||0===e||X(e)||102===e&&!this.state.containsEsc||138===e||56===e||this.hasPlugin("v8intrinsic")&&54===e}parseYield(e){const t=this.startNodeAt(e);this.expressionScope.recordParameterInitializerError(h.YieldInParameter,t);let n=!1,r=null;if(!this.hasPrecedingLineBreak())switch(n=this.eat(55),this.state.type){case 13:case 140:case 8:case 11:case 3:case 9:case 14:case 12:if(!n)break;default:r=this.parseMaybeAssign()}return t.delegate=n,t.argument=r,this.finishNode(t,"YieldExpression")}parseImportCall(e){if(this.next(),e.source=this.parseMaybeAssignAllowIn(),e.options=null,this.eat(12))if(this.match(11))this.addTrailingCommaExtraToNode(e.source);else if(e.options=this.parseMaybeAssignAllowIn(),this.eat(12)&&(this.addTrailingCommaExtraToNode(e.options),!this.match(11))){do{this.parseMaybeAssignAllowIn()}while(this.eat(12)&&!this.match(11));this.raise(h.ImportCallArity,e)}return this.expect(11),this.finishNode(e,"ImportExpression")}checkPipelineAtInfixOperator(e,t){this.hasPlugin(["pipelineOperator",{proposal:"smart"}])&&"SequenceExpression"===e.type&&this.raise(h.PipelineHeadSequenceExpression,t)}parseSmartPipelineBodyInStyle(e,t){if(this.isSimpleReference(e)){const n=this.startNodeAt(t);return n.callee=e,this.finishNode(n,"PipelineBareFunction")}{const n=this.startNodeAt(t);return this.checkSmartPipeTopicBodyEarlyErrors(t),n.expression=e,this.finishNode(n,"PipelineTopicExpression")}}isSimpleReference(e){switch(e.type){case"MemberExpression":return!e.computed&&this.isSimpleReference(e.object);case"Identifier":return!0;default:return!1}}checkSmartPipeTopicBodyEarlyErrors(e){if(this.match(19))throw this.raise(h.PipelineBodyNoArrow,this.state.startLoc);this.topicReferenceWasUsedInCurrentContext()||this.raise(h.PipelineTopicUnused,e)}withTopicBindingContext(e){const t=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:1,maxTopicIndex:null};try{return e()}finally{this.state.topicContext=t}}withSmartMixTopicForbiddingContext(e){if(!this.hasPlugin(["pipelineOperator",{proposal:"smart"}]))return e();{const t=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null};try{return e()}finally{this.state.topicContext=t}}}withSoloAwaitPermittingContext(e){const t=this.state.soloAwait;this.state.soloAwait=!0;try{return e()}finally{this.state.soloAwait=t}}allowInAnd(e){const t=this.prodParam.currentFlags();if(8&~t){this.prodParam.enter(8|t);try{return e()}finally{this.prodParam.exit()}}return e()}disallowInAnd(e){const t=this.prodParam.currentFlags();if(8&t){this.prodParam.enter(-9&t);try{return e()}finally{this.prodParam.exit()}}return e()}registerTopicReference(){this.state.topicContext.maxTopicIndex=0}topicReferenceIsAllowedInCurrentContext(){return this.state.topicContext.maxNumOfResolvableTopics>=1}topicReferenceWasUsedInCurrentContext(){return null!=this.state.topicContext.maxTopicIndex&&this.state.topicContext.maxTopicIndex>=0}parseFSharpPipelineBody(e){const t=this.state.startLoc;this.state.potentialArrowAt=this.state.start;const n=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!0;const r=this.parseExprOp(this.parseMaybeUnaryOrPrivate(),t,e);return this.state.inFSharpPipelineDirectBody=n,r}parseModuleExpression(){this.expectPlugin("moduleBlocks");const e=this.startNode();this.next(),this.match(5)||this.unexpected(null,5);const t=this.startNodeAt(this.state.endLoc);this.next();const n=this.initializeScopes(!0);this.enterInitialScopes();try{e.body=this.parseProgram(t,8,"module")}finally{n()}return this.finishNode(e,"ModuleExpression")}parseVoidPattern(e){this.expectPlugin("discardBinding");const t=this.startNode();return null!=e&&(e.voidPatternLoc=this.state.startLoc),this.next(),this.finishNode(t,"VoidPattern")}parseMaybeAssignAllowInOrVoidPattern(e,t,n){if(null!=t&&this.match(88)){const n=this.lookaheadCharCode();if(44===n||n===(3===e?93:8===e?125:41)||61===n)return this.parseMaybeDefault(this.state.startLoc,this.parseVoidPattern(t))}return this.parseMaybeAssignAllowIn(t,n)}parsePropertyNamePrefixOperator(e){}}const It={kind:1},Pt={kind:2},wt=/[\uD800-\uDFFF]/u,Ot=/in(?:stanceof)?/y;class Rt extends kt{parseTopLevel(e,t){return e.program=this.parseProgram(t,140,"module"===this.options.sourceType?"module":"script"),e.comments=this.comments,256&this.optionFlags&&(e.tokens=function(e,t,n){for(let i=0;i0)for(const[e,t]of Array.from(this.scope.undefinedExports))this.raise(h.ModuleExportUndefined,t,{localName:e});this.addExtra(e,"topLevelAwait",this.state.hasTopLevelAwait)}let i;return i=140===t?this.finishNode(e,"Program"):this.finishNodeAt(e,"Program",r(this.state.startLoc,-1)),i}stmtToDirective(e){const t=this.castNodeTo(e,"Directive"),n=this.castNodeTo(e.expression,"DirectiveLiteral"),r=n.value,i=this.input.slice(this.offsetToSourcePos(n.start),this.offsetToSourcePos(n.end)),a=n.value=i.slice(1,-1);return this.addExtra(n,"raw",i),this.addExtra(n,"rawValue",a),this.addExtra(n,"expressionValue",r),t.value=n,delete e.expression,t}parseInterpreterDirective(){if(!this.match(28))return null;const e=this.startNode();return e.value=this.state.value,this.next(),this.finishNode(e,"InterpreterDirective")}isLet(){return!!this.isContextual(100)&&this.hasFollowingBindingAtom()}isUsing(){return!!this.isContextual(107)&&this.nextTokenIsIdentifierOnSameLine()}isForUsing(){if(!this.isContextual(107))return!1;const e=this.nextTokenInLineStart(),t=this.codePointAtPos(e);if(this.isUnparsedContextual(e,"of")){const t=this.lookaheadCharCodeSince(e+2);if(61!==t&&58!==t&&59!==t)return!1}return!(!this.chStartsBindingIdentifier(t,e)&&!this.isUnparsedContextual(e,"void"))}nextTokenIsIdentifierOnSameLine(){const e=this.nextTokenInLineStart(),t=this.codePointAtPos(e);return this.chStartsBindingIdentifier(t,e)}isAwaitUsing(){if(!this.isContextual(96))return!1;let e=this.nextTokenInLineStart();if(this.isUnparsedContextual(e,"using")){e=this.nextTokenInLineStartSince(e+5);const t=this.codePointAtPos(e);if(this.chStartsBindingIdentifier(t,e))return!0}return!1}chStartsBindingIdentifier(e,t){if(ae(e)){if(Ot.lastIndex=t,Ot.test(this.input)){const e=this.codePointAtPos(Ot.lastIndex);if(!oe(e)&&92!==e)return!1}return!0}return 92===e}chStartsBindingPattern(e){return 91===e||123===e}hasFollowingBindingAtom(){const e=this.nextTokenStart(),t=this.codePointAtPos(e);return this.chStartsBindingPattern(t)||this.chStartsBindingIdentifier(t,e)}hasInLineFollowingBindingIdentifierOrBrace(){const e=this.nextTokenInLineStart(),t=this.codePointAtPos(e);return 123===t||this.chStartsBindingIdentifier(t,e)}allowsUsing(){return(this.scope.inModule||!this.scope.inTopLevel)&&!this.scope.inBareCaseStatement}parseModuleItem(){return this.parseStatementLike(15)}parseStatementListItem(){return this.parseStatementLike(6|(!this.options.annexB||this.state.strict?0:8))}parseStatementOrSloppyAnnexBFunctionDeclaration(e=!1){let t=0;return this.options.annexB&&!this.state.strict&&(t|=4,e&&(t|=8)),this.parseStatementLike(t)}parseStatement(){return this.parseStatementLike(0)}parseStatementLike(e){let t=null;return this.match(26)&&(t=this.parseDecorators(!0)),this.parseStatementContent(e,t)}parseStatementContent(e,t){const n=this.state.type,r=this.startNode(),i=!!(2&e),a=!!(4&e),o=1&e;switch(n){case 60:return this.parseBreakContinueStatement(r,!0);case 63:return this.parseBreakContinueStatement(r,!1);case 64:return this.parseDebuggerStatement(r);case 90:return this.parseDoWhileStatement(r);case 91:return this.parseForStatement(r);case 68:if(46===this.lookaheadCharCode())break;return a||this.raise(this.state.strict?h.StrictFunction:this.options.annexB?h.SloppyFunctionAnnexB:h.SloppyFunction,this.state.startLoc),this.parseFunctionStatement(r,!1,!i&&a);case 80:return i||this.unexpected(),this.parseClass(this.maybeTakeDecorators(t,r),!0);case 69:return this.parseIfStatement(r);case 70:return this.parseReturnStatement(r);case 71:return this.parseSwitchStatement(r);case 72:return this.parseThrowStatement(r);case 73:return this.parseTryStatement(r);case 96:if(this.isAwaitUsing())return this.allowsUsing()?i?this.recordAwaitIfAllowed()||this.raise(h.AwaitUsingNotInAsyncContext,r):this.raise(h.UnexpectedLexicalDeclaration,r):this.raise(h.UnexpectedUsingDeclaration,r),this.next(),this.parseVarStatement(r,"await using");break;case 107:if(this.state.containsEsc||!this.hasInLineFollowingBindingIdentifierOrBrace())break;return this.allowsUsing()?i||this.raise(h.UnexpectedLexicalDeclaration,this.state.startLoc):this.raise(h.UnexpectedUsingDeclaration,this.state.startLoc),this.parseVarStatement(r,"using");case 100:{if(this.state.containsEsc)break;const e=this.nextTokenStart(),t=this.codePointAtPos(e);if(91!==t){if(!i&&this.hasFollowingLineBreak())break;if(!this.chStartsBindingIdentifier(t,e)&&123!==t)break}}case 75:i||this.raise(h.UnexpectedLexicalDeclaration,this.state.startLoc);case 74:{const e=this.state.value;return this.parseVarStatement(r,e)}case 92:return this.parseWhileStatement(r);case 76:return this.parseWithStatement(r);case 5:return this.parseBlock();case 13:return this.parseEmptyStatement(r);case 83:{const e=this.lookaheadCharCode();if(40===e||46===e)break}case 82:{let e;return 8&this.optionFlags||o||this.raise(h.UnexpectedImportExport,this.state.startLoc),this.next(),e=83===n?this.parseImport(r):this.parseExport(r,t),this.assertModuleNodeAllowed(e),e}default:if(this.isAsyncFunction())return i||this.raise(h.AsyncFunctionInSingleStatementContext,this.state.startLoc),this.next(),this.parseFunctionStatement(r,!0,!i&&a)}const s=this.state.value,c=this.parseExpression();return V(n)&&"Identifier"===c.type&&this.eat(14)?this.parseLabeledStatement(r,s,c,e):this.parseExpressionStatement(r,c,t)}assertModuleNodeAllowed(e){8&this.optionFlags||this.inModule||this.raise(h.ImportOutsideModule,e)}decoratorsEnabledBeforeExport(){return!!this.hasPlugin("decorators-legacy")||this.hasPlugin("decorators")&&!1!==this.getPluginOption("decorators","decoratorsBeforeExport")}maybeTakeDecorators(e,t,n){var r;return e&&(null!=(r=t.decorators)&&r.length?("boolean"!=typeof this.getPluginOption("decorators","decoratorsBeforeExport")&&this.raise(h.DecoratorsBeforeAfterExport,t.decorators[0]),t.decorators.unshift(...e)):t.decorators=e,this.resetStartLocationFromNode(t,e[0]),n&&this.resetStartLocationFromNode(n,t)),t}canHaveLeadingDecorator(){return this.match(80)}parseDecorators(e){const t=[];do{t.push(this.parseDecorator())}while(this.match(26));if(this.match(82))e||this.unexpected(),this.decoratorsEnabledBeforeExport()||this.raise(h.DecoratorExportClass,this.state.startLoc);else if(!this.canHaveLeadingDecorator())throw this.raise(h.UnexpectedLeadingDecorator,this.state.startLoc);return t}parseDecorator(){this.expectOnePlugin(["decorators","decorators-legacy"]);const e=this.startNode();if(this.next(),this.hasPlugin("decorators")){const t=this.state.startLoc;let n;if(this.match(10)){const t=this.state.startLoc;this.next(),n=this.parseExpression(),this.expect(11),n=this.wrapParenthesis(t,n);const r=this.state.startLoc;e.expression=this.parseMaybeDecoratorArguments(n,t),!1===this.getPluginOption("decorators","allowCallParenthesized")&&e.expression!==n&&this.raise(h.DecoratorArgumentsOutsideParentheses,r)}else{for(n=this.parseIdentifier(!1);this.eat(16);){const e=this.startNodeAt(t);e.object=n,this.match(139)?(this.classScope.usePrivateName(this.state.value,this.state.startLoc),e.property=this.parsePrivateName()):e.property=this.parseIdentifier(!0),e.computed=!1,n=this.finishNode(e,"MemberExpression")}e.expression=this.parseMaybeDecoratorArguments(n,t)}}else e.expression=this.parseExprSubscripts();return this.finishNode(e,"Decorator")}parseMaybeDecoratorArguments(e,t){if(this.eat(10)){const n=this.startNodeAt(t);return n.callee=e,n.arguments=this.parseCallExpressionArguments(),this.toReferencedList(n.arguments),this.finishNode(n,"CallExpression")}return e}parseBreakContinueStatement(e,t){return this.next(),this.isLineTerminator()?e.label=null:(e.label=this.parseIdentifier(),this.semicolon()),this.verifyBreakContinue(e,t),this.finishNode(e,t?"BreakStatement":"ContinueStatement")}verifyBreakContinue(e,t){let n;for(n=0;nthis.parseStatement()),this.state.labels.pop(),this.expect(92),e.test=this.parseHeaderExpression(),this.eat(13),this.finishNode(e,"DoWhileStatement")}parseForStatement(e){this.next(),this.state.labels.push(It);let t=null;if(this.isContextual(96)&&this.recordAwaitIfAllowed()&&(t=this.state.startLoc,this.next()),this.scope.enter(0),this.expect(10),this.match(13))return null!==t&&this.unexpected(t),this.parseFor(e,null);const n=this.isContextual(100);{const r=this.isAwaitUsing(),i=r||this.isForUsing(),a=n&&this.hasFollowingBindingAtom()||i;if(this.match(74)||this.match(75)||a){const n=this.startNode();let a;r?(a="await using",this.recordAwaitIfAllowed()||this.raise(h.AwaitUsingNotInAsyncContext,this.state.startLoc),this.next()):a=this.state.value,this.next(),this.parseVar(n,!0,a);const o=this.finishNode(n,"VariableDeclaration"),s=this.match(58);return s&&i&&this.raise(h.ForInUsing,o),(s||this.isContextual(102))&&1===o.declarations.length?this.parseForIn(e,o,t):(null!==t&&this.unexpected(t),this.parseFor(e,o))}}const r=this.isContextual(95),i=new ut,a=this.parseExpression(!0,i),o=this.isContextual(102);if(o&&(n&&this.raise(h.ForOfLet,a),null===t&&r&&"Identifier"===a.type&&this.raise(h.ForOfAsync,a)),o||this.match(58)){this.checkDestructuringPrivate(i),this.toAssignable(a,!0);const n=o?"ForOfStatement":"ForInStatement";return this.checkLVal(a,{type:n}),this.parseForIn(e,a,t)}return this.checkExpressionErrors(i,!0),null!==t&&this.unexpected(t),this.parseFor(e,a)}parseFunctionStatement(e,t,n){return this.next(),this.parseFunction(e,1|(n?2:0)|(t?8:0))}parseIfStatement(e){return this.next(),e.test=this.parseHeaderExpression(),e.consequent=this.parseStatementOrSloppyAnnexBFunctionDeclaration(),e.alternate=this.eat(66)?this.parseStatementOrSloppyAnnexBFunctionDeclaration():null,this.finishNode(e,"IfStatement")}parseReturnStatement(e){return this.prodParam.hasReturn||this.raise(h.IllegalReturn,this.state.startLoc),this.next(),this.isLineTerminator()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,"ReturnStatement")}parseSwitchStatement(e){this.next(),e.discriminant=this.parseHeaderExpression();const t=e.cases=[];let n;this.expect(5),this.state.labels.push(Pt),this.scope.enter(256);for(let e;!this.match(8);)if(this.match(61)||this.match(65)){const r=this.match(61);n&&this.finishNode(n,"SwitchCase"),t.push(n=this.startNode()),n.consequent=[],this.next(),r?n.test=this.parseExpression():(e&&this.raise(h.MultipleDefaultsInSwitch,this.state.lastTokStartLoc),e=!0,n.test=null),this.expect(14)}else n?n.consequent.push(this.parseStatementListItem()):this.unexpected();return this.scope.exit(),n&&this.finishNode(n,"SwitchCase"),this.next(),this.state.labels.pop(),this.finishNode(e,"SwitchStatement")}parseThrowStatement(e){return this.next(),this.hasPrecedingLineBreak()&&this.raise(h.NewlineAfterThrow,this.state.lastTokEndLoc),e.argument=this.parseExpression(),this.semicolon(),this.finishNode(e,"ThrowStatement")}parseCatchClauseParam(){const e=this.parseBindingAtom();return this.scope.enter(this.options.annexB&&"Identifier"===e.type?8:0),this.checkLVal(e,{type:"CatchClause"},9),e}parseTryStatement(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.match(62)){const t=this.startNode();this.next(),this.match(10)?(this.expect(10),t.param=this.parseCatchClauseParam(),this.expect(11)):(t.param=null,this.scope.enter(0)),t.body=this.withSmartMixTopicForbiddingContext(()=>this.parseBlock(!1,!1)),this.scope.exit(),e.handler=this.finishNode(t,"CatchClause")}return e.finalizer=this.eat(67)?this.parseBlock():null,e.handler||e.finalizer||this.raise(h.NoCatchOrFinally,e),this.finishNode(e,"TryStatement")}parseVarStatement(e,t,n=!1){return this.next(),this.parseVar(e,!1,t,n),this.semicolon(),this.finishNode(e,"VariableDeclaration")}parseWhileStatement(e){return this.next(),e.test=this.parseHeaderExpression(),this.state.labels.push(It),e.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.state.labels.pop(),this.finishNode(e,"WhileStatement")}parseWithStatement(e){return this.state.strict&&this.raise(h.StrictWith,this.state.startLoc),this.next(),e.object=this.parseHeaderExpression(),e.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.finishNode(e,"WithStatement")}parseEmptyStatement(e){return this.next(),this.finishNode(e,"EmptyStatement")}parseLabeledStatement(e,t,n,r){for(const e of this.state.labels)e.name===t&&this.raise(h.LabelRedeclaration,n,{labelName:t});const i=(a=this.state.type)>=90&&a<=92?1:this.match(71)?2:null;var a;for(let t=this.state.labels.length-1;t>=0;t--){const n=this.state.labels[t];if(n.statementStart!==e.start)break;n.statementStart=this.sourceToOffsetPos(this.state.start),n.kind=i}return this.state.labels.push({name:t,kind:i,statementStart:this.sourceToOffsetPos(this.state.start)}),e.body=8&r?this.parseStatementOrSloppyAnnexBFunctionDeclaration(!0):this.parseStatement(),this.state.labels.pop(),e.label=n,this.finishNode(e,"LabeledStatement")}parseExpressionStatement(e,t,n){return e.expression=t,this.semicolon(),this.finishNode(e,"ExpressionStatement")}parseBlock(e=!1,t=!0,n){const r=this.startNode();return e&&this.state.strictErrors.clear(),this.expect(5),t&&this.scope.enter(0),this.parseBlockBody(r,e,!1,8,n),t&&this.scope.exit(),this.finishNode(r,"BlockStatement")}isValidDirective(e){return"ExpressionStatement"===e.type&&"StringLiteral"===e.expression.type&&!e.expression.extra.parenthesized}parseBlockBody(e,t,n,r,i){const a=e.body=[],o=e.directives=[];this.parseBlockOrModuleBlockBody(a,t?o:void 0,n,r,i)}parseBlockOrModuleBlockBody(e,t,n,r,i){const a=this.state.strict;let o=!1,s=!1;for(;!this.match(r);){const r=n?this.parseModuleItem():this.parseStatementListItem();if(t&&!s){if(this.isValidDirective(r)){const e=this.stmtToDirective(r);t.push(e),o||"use strict"!==e.value.value||(o=!0,this.setStrict(!0));continue}s=!0,this.state.strictErrors.clear()}e.push(r)}null==i||i.call(this,o),a||this.setStrict(!1),this.next()}parseFor(e,t){return e.init=t,this.semicolon(!1),e.test=this.match(13)?null:this.parseExpression(),this.semicolon(!1),e.update=this.match(11)?null:this.parseExpression(),this.expect(11),e.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.scope.exit(),this.state.labels.pop(),this.finishNode(e,"ForStatement")}parseForIn(e,t,n){const r=this.match(58);return this.next(),r?null!==n&&this.unexpected(n):e.await=null!==n,"VariableDeclaration"!==t.type||null==t.declarations[0].init||r&&this.options.annexB&&!this.state.strict&&"var"===t.kind&&"Identifier"===t.declarations[0].id.type||this.raise(h.ForInOfLoopInitializer,t,{type:r?"ForInStatement":"ForOfStatement"}),"AssignmentPattern"===t.type&&this.raise(h.InvalidLhs,t,{ancestor:{type:"ForStatement"}}),e.left=t,e.right=r?this.parseExpression():this.parseMaybeAssignAllowIn(),this.expect(11),e.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.scope.exit(),this.state.labels.pop(),this.finishNode(e,r?"ForInStatement":"ForOfStatement")}parseVar(e,t,n,r=!1){const i=e.declarations=[];for(e.kind=n;;){const e=this.startNode();if(this.parseVarId(e,n),e.init=this.eat(29)?t?this.parseMaybeAssignDisallowIn():this.parseMaybeAssignAllowIn():null,null!==e.init||r||("Identifier"===e.id.type||t&&(this.match(58)||this.isContextual(102))?"const"!==n&&"using"!==n&&"await using"!==n||this.match(58)||this.isContextual(102)||this.raise(h.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:n}):this.raise(h.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:"destructuring"})),i.push(this.finishNode(e,"VariableDeclarator")),!this.eat(12))break}return e}parseVarId(e,t){const n=this.parseBindingAtom();"using"===t||"await using"===t?"ArrayPattern"!==n.type&&"ObjectPattern"!==n.type||this.raise(h.UsingDeclarationHasBindingPattern,n.loc.start):"VoidPattern"===n.type&&this.raise(h.UnexpectedVoidPattern,n.loc.start),this.checkLVal(n,{type:"VariableDeclarator"},"var"===t?5:8201),e.id=n}parseAsyncFunctionExpression(e){return this.parseFunction(e,8)}parseFunction(e,t=0){const n=2&t,r=!!(1&t),i=r&&!(4&t),a=!!(8&t);this.initFunction(e,a),this.match(55)&&(n&&this.raise(h.GeneratorInSingleStatementContext,this.state.startLoc),this.next(),e.generator=!0),r&&(e.id=this.parseFunctionId(i));const o=this.state.maybeInArrowParameters;return this.state.maybeInArrowParameters=!1,this.scope.enter(514),this.prodParam.enter(Fe(a,e.generator)),r||(e.id=this.parseFunctionId()),this.parseFunctionParams(e,!1),this.withSmartMixTopicForbiddingContext(()=>{this.parseFunctionBodyAndFinish(e,r?"FunctionDeclaration":"FunctionExpression")}),this.prodParam.exit(),this.scope.exit(),r&&!n&&this.registerFunctionStatementId(e),this.state.maybeInArrowParameters=o,e}parseFunctionId(e){return e||V(this.state.type)?this.parseIdentifier():null}parseFunctionParams(e,t){this.expect(10),this.expressionScope.enter(new at(3)),e.params=this.parseBindingList(11,41,2|(t?4:0)),this.expressionScope.exit()}registerFunctionStatementId(e){e.id&&this.scope.declareName(e.id.name,!this.options.annexB||this.state.strict||e.generator||e.async?this.scope.treatFunctionsAsVar?5:8201:17,e.id.loc.start)}parseClass(e,t,n){this.next();const r=this.state.strict;return this.state.strict=!0,this.parseClassId(e,t,n),this.parseClassSuper(e),e.body=this.parseClassBody(!!e.superClass,r),this.finishNode(e,t?"ClassDeclaration":"ClassExpression")}isClassProperty(){return this.match(29)||this.match(13)||this.match(8)}isClassMethod(){return this.match(10)}nameIsConstructor(e){return"Identifier"===e.type&&"constructor"===e.name||"StringLiteral"===e.type&&"constructor"===e.value}isNonstaticConstructor(e){return!e.computed&&!e.static&&this.nameIsConstructor(e.key)}parseClassBody(e,t){this.classScope.enter();const n={hadConstructor:!1,hadSuperClass:e};let r=[];const i=this.startNode();if(i.body=[],this.expect(5),this.withSmartMixTopicForbiddingContext(()=>{for(;!this.match(8);){if(this.eat(13)){if(r.length>0)throw this.raise(h.DecoratorSemicolon,this.state.lastTokEndLoc);continue}if(this.match(26)){r.push(this.parseDecorator());continue}const e=this.startNode();r.length&&(e.decorators=r,this.resetStartLocationFromNode(e,r[0]),r=[]),this.parseClassMember(i,e,n),"constructor"===e.kind&&e.decorators&&e.decorators.length>0&&this.raise(h.DecoratorConstructor,e)}}),this.state.strict=t,this.next(),r.length)throw this.raise(h.TrailingDecorator,this.state.startLoc);return this.classScope.exit(),this.finishNode(i,"ClassBody")}parseClassMemberFromModifier(e,t){const n=this.parseIdentifier(!0);if(this.isClassMethod()){const r=t;return r.kind="method",r.computed=!1,r.key=n,r.static=!1,this.pushClassMethod(e,r,!1,!1,!1,!1),!0}if(this.isClassProperty()){const r=t;return r.computed=!1,r.key=n,r.static=!1,e.body.push(this.parseClassProperty(r)),!0}return this.resetPreviousNodeTrailingComments(n),!1}parseClassMember(e,t,n){const r=this.isContextual(106);if(r){if(this.parseClassMemberFromModifier(e,t))return;if(this.eat(5))return void this.parseClassStaticBlock(e,t)}this.parseClassMemberWithIsStatic(e,t,n,r)}parseClassMemberWithIsStatic(e,t,n,r){const i=t,a=t,o=t,s=t,c=t,l=i,u=i;if(t.static=r,this.parsePropertyNamePrefixOperator(t),this.eat(55)){l.kind="method";const t=this.match(139);return this.parseClassElementName(l),this.parsePostMemberNameModifiers(l),t?void this.pushClassPrivateMethod(e,a,!0,!1):(this.isNonstaticConstructor(i)&&this.raise(h.ConstructorIsGenerator,i.key),void this.pushClassMethod(e,i,!0,!1,!1,!1))}const d=!this.state.containsEsc&&V(this.state.type),p=this.parseClassElementName(t),m=d?p.name:null,f=this.isPrivateName(p),_=this.state.startLoc;if(this.parsePostMemberNameModifiers(u),this.isClassMethod()){if(l.kind="method",f)return void this.pushClassPrivateMethod(e,a,!1,!1);const r=this.isNonstaticConstructor(i);let o=!1;r&&(i.kind="constructor",n.hadConstructor&&!this.hasPlugin("typescript")&&this.raise(h.DuplicateConstructor,p),r&&this.hasPlugin("typescript")&&t.override&&this.raise(h.OverrideOnConstructor,p),n.hadConstructor=!0,o=n.hadSuperClass),this.pushClassMethod(e,i,!1,!1,r,o)}else if(this.isClassProperty())f?this.pushClassPrivateProperty(e,s):this.pushClassProperty(e,o);else if("async"!==m||this.isLineTerminator())if("get"!==m&&"set"!==m||this.match(55)&&this.isLineTerminator())if("accessor"!==m||this.isLineTerminator())this.isLineTerminator()?f?this.pushClassPrivateProperty(e,s):this.pushClassProperty(e,o):this.unexpected();else{this.expectPlugin("decoratorAutoAccessors"),this.resetPreviousNodeTrailingComments(p);const t=this.match(139);this.parseClassElementName(o),this.pushClassAccessorProperty(e,c,t)}else{this.resetPreviousNodeTrailingComments(p),l.kind=m;const t=this.match(139);this.parseClassElementName(i),t?this.pushClassPrivateMethod(e,a,!1,!1):(this.isNonstaticConstructor(i)&&this.raise(h.ConstructorIsAccessor,i.key),this.pushClassMethod(e,i,!1,!1,!1,!1)),this.checkGetterSetterParams(i)}else{this.resetPreviousNodeTrailingComments(p);const t=this.eat(55);u.optional&&this.unexpected(_),l.kind="method";const n=this.match(139);this.parseClassElementName(l),this.parsePostMemberNameModifiers(u),n?this.pushClassPrivateMethod(e,a,t,!0):(this.isNonstaticConstructor(i)&&this.raise(h.ConstructorIsAsync,i.key),this.pushClassMethod(e,i,t,!0,!1,!1))}}parseClassElementName(e){const{type:t,value:n}=this.state;if(132!==t&&134!==t||!e.static||"prototype"!==n||this.raise(h.StaticPrototype,this.state.startLoc),139===t){"constructor"===n&&this.raise(h.ConstructorClassPrivateField,this.state.startLoc);const t=this.parsePrivateName();return e.key=t,t}return this.parsePropertyName(e),e.key}parseClassStaticBlock(e,t){var n;this.scope.enter(720);const r=this.state.labels;this.state.labels=[],this.prodParam.enter(0);const i=t.body=[];this.parseBlockOrModuleBlockBody(i,void 0,!1,8),this.prodParam.exit(),this.scope.exit(),this.state.labels=r,e.body.push(this.finishNode(t,"StaticBlock")),null!=(n=t.decorators)&&n.length&&this.raise(h.DecoratorStaticBlock,t)}pushClassProperty(e,t){!t.computed&&this.nameIsConstructor(t.key)&&this.raise(h.ConstructorClassField,t.key),e.body.push(this.parseClassProperty(t))}pushClassPrivateProperty(e,t){const n=this.parseClassPrivateProperty(t);e.body.push(n),this.classScope.declarePrivateName(this.getPrivateNameSV(n.key),0,n.key.loc.start)}pushClassAccessorProperty(e,t,n){n||t.computed||!this.nameIsConstructor(t.key)||this.raise(h.ConstructorClassField,t.key);const r=this.parseClassAccessorProperty(t);e.body.push(r),n&&this.classScope.declarePrivateName(this.getPrivateNameSV(r.key),0,r.key.loc.start)}pushClassMethod(e,t,n,r,i,a){e.body.push(this.parseMethod(t,n,r,i,a,"ClassMethod",!0))}pushClassPrivateMethod(e,t,n,r){const i=this.parseMethod(t,n,r,!1,!1,"ClassPrivateMethod",!0);e.body.push(i);const a="get"===i.kind?i.static?6:2:"set"===i.kind?i.static?5:1:0;this.declareClassPrivateMethodInScope(i,a)}declareClassPrivateMethodInScope(e,t){this.classScope.declarePrivateName(this.getPrivateNameSV(e.key),t,e.key.loc.start)}parsePostMemberNameModifiers(e){}parseClassPrivateProperty(e){return this.parseInitializer(e),this.semicolon(),this.finishNode(e,"ClassPrivateProperty")}parseClassProperty(e){return this.parseInitializer(e),this.semicolon(),this.finishNode(e,"ClassProperty")}parseClassAccessorProperty(e){return this.parseInitializer(e),this.semicolon(),this.finishNode(e,"ClassAccessorProperty")}parseInitializer(e){this.scope.enter(592),this.expressionScope.enter(ct()),this.prodParam.enter(0),e.value=this.eat(29)?this.parseMaybeAssignAllowIn():null,this.expressionScope.exit(),this.prodParam.exit(),this.scope.exit()}parseClassId(e,t,n,r=8331){if(V(this.state.type))e.id=this.parseIdentifier(),t&&this.declareNameFromIdentifier(e.id,r);else{if(!n&&t)throw this.raise(h.MissingClassName,this.state.startLoc);e.id=null}}parseClassSuper(e){e.superClass=this.eat(81)?this.parseExprSubscripts():null}parseExport(e,t){const n=this.parseMaybeImportPhase(e,!0),r=this.maybeParseExportDefaultSpecifier(e,n),i=!r||this.eat(12),a=i&&this.eatExportStar(e),o=a&&this.maybeParseExportNamespaceSpecifier(e),s=i&&(!o||this.eat(12)),c=r||a;if(a&&!o){if(r&&this.unexpected(),t)throw this.raise(h.UnsupportedDecoratorExport,e);return this.parseExportFrom(e,!0),this.sawUnambiguousESM=!0,this.finishNode(e,"ExportAllDeclaration")}const l=this.maybeParseExportNamedSpecifiers(e);let u;if(r&&i&&!a&&!l&&this.unexpected(null,5),o&&s&&this.unexpected(null,98),c||l){if(u=!1,t)throw this.raise(h.UnsupportedDecoratorExport,e);this.parseExportFrom(e,c)}else u=this.maybeParseExportDeclaration(e);if(c||l||u){var d;const n=e;if(this.checkExport(n,!0,!1,!!n.source),"ClassDeclaration"===(null==(d=n.declaration)?void 0:d.type))this.maybeTakeDecorators(t,n.declaration,n);else if(t)throw this.raise(h.UnsupportedDecoratorExport,e);return this.sawUnambiguousESM=!0,this.finishNode(n,"ExportNamedDeclaration")}if(this.eat(65)){const n=e,r=this.parseExportDefaultExpression();if(n.declaration=r,"ClassDeclaration"===r.type)this.maybeTakeDecorators(t,r,n);else if(t)throw this.raise(h.UnsupportedDecoratorExport,e);return this.checkExport(n,!0,!0),this.sawUnambiguousESM=!0,this.finishNode(n,"ExportDefaultDeclaration")}throw this.unexpected(null,5)}eatExportStar(e){return this.eat(55)}maybeParseExportDefaultSpecifier(e,t){if(t||this.isExportDefaultSpecifier()){this.expectPlugin("exportDefaultFrom",null==t?void 0:t.loc.start);const n=t||this.parseIdentifier(!0),r=this.startNodeAtNode(n);return r.exported=n,e.specifiers=[this.finishNode(r,"ExportDefaultSpecifier")],!0}return!1}maybeParseExportNamespaceSpecifier(e){if(this.isContextual(93)){var t;null!=(t=e).specifiers||(t.specifiers=[]);const n=this.startNodeAt(this.state.lastTokStartLoc);return this.next(),n.exported=this.parseModuleExportName(),e.specifiers.push(this.finishNode(n,"ExportNamespaceSpecifier")),!0}return!1}maybeParseExportNamedSpecifiers(e){if(this.match(5)){const t=e;t.specifiers||(t.specifiers=[]);const n="type"===t.exportKind;return t.specifiers.push(...this.parseExportSpecifiers(n)),t.source=null,this.hasPlugin("importAssertions")?t.assertions=[]:t.attributes=[],t.declaration=null,!0}return!1}maybeParseExportDeclaration(e){return!!this.shouldParseExportDeclaration()&&(e.specifiers=[],e.source=null,this.hasPlugin("importAssertions")?e.assertions=[]:e.attributes=[],e.declaration=this.parseExportDeclaration(e),!0)}isAsyncFunction(){if(!this.isContextual(95))return!1;const e=this.nextTokenInLineStart();return this.isUnparsedContextual(e,"function")}parseExportDefaultExpression(){const e=this.startNode();if(this.match(68))return this.next(),this.parseFunction(e,5);if(this.isAsyncFunction())return this.next(),this.next(),this.parseFunction(e,13);if(this.match(80))return this.parseClass(e,!0,!0);if(this.match(26))return this.hasPlugin("decorators")&&!0===this.getPluginOption("decorators","decoratorsBeforeExport")&&this.raise(h.DecoratorBeforeExport,this.state.startLoc),this.parseClass(this.maybeTakeDecorators(this.parseDecorators(!1),this.startNode()),!0,!0);if(this.match(75)||this.match(74)||this.isLet()||this.isUsing()||this.isAwaitUsing())throw this.raise(h.UnsupportedDefaultExport,this.state.startLoc);const t=this.parseMaybeAssignAllowIn();return this.semicolon(),t}parseExportDeclaration(e){return this.match(80)?this.parseClass(this.startNode(),!0,!1):this.parseStatementListItem()}isExportDefaultSpecifier(){const{type:e}=this.state;if(V(e)){if(95===e&&!this.state.containsEsc||100===e)return!1;if((130===e||129===e)&&!this.state.containsEsc){const e=this.nextTokenStart(),t=this.input.charCodeAt(e);if(123===t||this.chStartsBindingIdentifier(t,e)&&!this.input.startsWith("from",e))return this.expectOnePlugin(["flow","typescript"]),!1}}else if(!this.match(65))return!1;const t=this.nextTokenStart(),n=this.isUnparsedContextual(t,"from");if(44===this.input.charCodeAt(t)||V(this.state.type)&&n)return!0;if(this.match(65)&&n){const e=this.input.charCodeAt(this.nextTokenStartSince(t+4));return 34===e||39===e}return!1}parseExportFrom(e,t){this.eatContextual(98)?(e.source=this.parseImportSource(),this.checkExport(e),this.maybeParseImportAttributes(e),this.checkJSONModuleImport(e)):t&&this.unexpected(),this.semicolon()}shouldParseExportDeclaration(){const{type:e}=this.state;return 26===e&&(this.expectOnePlugin(["decorators","decorators-legacy"]),this.hasPlugin("decorators"))?(!0===this.getPluginOption("decorators","decoratorsBeforeExport")&&this.raise(h.DecoratorBeforeExport,this.state.startLoc),!0):this.isUsing()||this.isAwaitUsing()?(this.raise(h.UsingDeclarationExport,this.state.startLoc),!0):74===e||75===e||68===e||80===e||this.isLet()||this.isAsyncFunction()}checkExport(e,t,n,r){var i;if(t)if(n){if(this.checkDuplicateExports(e,"default"),this.hasPlugin("exportDefaultFrom")){var a;const t=e.declaration;"Identifier"!==t.type||"from"!==t.name||t.end-t.start!==4||null!=(a=t.extra)&&a.parenthesized||this.raise(h.ExportDefaultFromAsIdentifier,t)}}else if(null!=(i=e.specifiers)&&i.length)for(const t of e.specifiers){const{exported:e}=t,n="Identifier"===e.type?e.name:e.value;if(this.checkDuplicateExports(t,n),!r&&t.local){const{local:e}=t;"Identifier"!==e.type?this.raise(h.ExportBindingIsString,t,{localName:e.value,exportName:n}):(this.checkReservedWord(e.name,e.loc.start,!0,!1),this.scope.checkLocalExport(e))}}else if(e.declaration){const t=e.declaration;if("FunctionDeclaration"===t.type||"ClassDeclaration"===t.type){const{id:n}=t;if(!n)throw new Error("Assertion failure");this.checkDuplicateExports(e,n.name)}else if("VariableDeclaration"===t.type)for(const e of t.declarations)this.checkDeclaration(e.id)}}checkDeclaration(e){if("Identifier"===e.type)this.checkDuplicateExports(e,e.name);else if("ObjectPattern"===e.type)for(const t of e.properties)this.checkDeclaration(t);else if("ArrayPattern"===e.type)for(const t of e.elements)t&&this.checkDeclaration(t);else"ObjectProperty"===e.type?this.checkDeclaration(e.value):"RestElement"===e.type?this.checkDeclaration(e.argument):"AssignmentPattern"===e.type&&this.checkDeclaration(e.left)}checkDuplicateExports(e,t){this.exportedIdentifiers.has(t)&&("default"===t?this.raise(h.DuplicateDefaultExport,e):this.raise(h.DuplicateExport,e,{exportName:t})),this.exportedIdentifiers.add(t)}parseExportSpecifiers(e){const t=[];let n=!0;for(this.expect(5);!this.eat(8);){if(n)n=!1;else if(this.expect(12),this.eat(8))break;const r=this.isContextual(130),i=this.match(134),a=this.startNode();a.local=this.parseModuleExportName(),t.push(this.parseExportSpecifier(a,i,e,r))}return t}parseExportSpecifier(e,t,n,r){return this.eatContextual(93)?e.exported=this.parseModuleExportName():t?e.exported=this.cloneStringLiteral(e.local):e.exported||(e.exported=this.cloneIdentifier(e.local)),this.finishNode(e,"ExportSpecifier")}parseModuleExportName(){if(this.match(134)){const e=this.parseStringLiteral(this.state.value),t=wt.exec(e.value);return t&&this.raise(h.ModuleExportNameHasLoneSurrogate,e,{surrogateCharCode:t[0].charCodeAt(0)}),e}return this.parseIdentifier(!0)}isJSONModuleImport(e){return null!=e.assertions&&e.assertions.some(({key:e,value:t})=>"json"===t.value&&("Identifier"===e.type?"type"===e.name:"type"===e.value))}checkImportReflection(e){const{specifiers:t}=e,n=1===t.length?t[0].type:null;if("source"===e.phase)"ImportDefaultSpecifier"!==n&&this.raise(h.SourcePhaseImportRequiresDefault,t[0].loc.start);else if("defer"===e.phase)"ImportNamespaceSpecifier"!==n&&this.raise(h.DeferImportRequiresNamespace,t[0].loc.start);else if(e.module){var r;"ImportDefaultSpecifier"!==n&&this.raise(h.ImportReflectionNotBinding,t[0].loc.start),(null==(r=e.assertions)?void 0:r.length)>0&&this.raise(h.ImportReflectionHasAssertion,t[0].loc.start)}}checkJSONModuleImport(e){if(this.isJSONModuleImport(e)&&"ExportAllDeclaration"!==e.type){const{specifiers:t}=e;if(null!=t){const e=t.find(e=>{let t;if("ExportSpecifier"===e.type?t=e.local:"ImportSpecifier"===e.type&&(t=e.imported),void 0!==t)return"Identifier"===t.type?"default"!==t.name:"default"!==t.value});void 0!==e&&this.raise(h.ImportJSONBindingNotDefault,e.loc.start)}}}isPotentialImportPhase(e){return!e&&(this.isContextual(105)||this.isContextual(97)||this.isContextual(127))}applyImportPhase(e,t,n,r){t||("module"===n?(this.expectPlugin("importReflection",r),e.module=!0):this.hasPlugin("importReflection")&&(e.module=!1),"source"===n?(this.expectPlugin("sourcePhaseImports",r),e.phase="source"):"defer"===n?(this.expectPlugin("deferredImportEvaluation",r),e.phase="defer"):this.hasPlugin("sourcePhaseImports")&&(e.phase=null))}parseMaybeImportPhase(e,t){if(!this.isPotentialImportPhase(t))return this.applyImportPhase(e,t,null),null;const n=this.startNode(),r=this.parseIdentifierName(!0),{type:i}=this.state;return(K(i)?98!==i||102===this.lookaheadCharCode():12!==i)?(this.applyImportPhase(e,t,r,n.loc.start),null):(this.applyImportPhase(e,t,null),this.createIdentifier(n,r))}isPrecedingIdImportPhase(e){const{type:t}=this.state;return V(t)?98!==t||102===this.lookaheadCharCode():12!==t}parseImport(e){return this.match(134)?this.parseImportSourceAndAttributes(e):this.parseImportSpecifiersAndAfter(e,this.parseMaybeImportPhase(e,!1))}parseImportSpecifiersAndAfter(e,t){e.specifiers=[];const n=!this.maybeParseDefaultImportSpecifier(e,t)||this.eat(12),r=n&&this.maybeParseStarImportSpecifier(e);return n&&!r&&this.parseNamedImportSpecifiers(e),this.expectContextual(98),this.parseImportSourceAndAttributes(e)}parseImportSourceAndAttributes(e){return null!=e.specifiers||(e.specifiers=[]),e.source=this.parseImportSource(),this.maybeParseImportAttributes(e),this.checkImportReflection(e),this.checkJSONModuleImport(e),this.semicolon(),this.sawUnambiguousESM=!0,this.finishNode(e,"ImportDeclaration")}parseImportSource(){return this.match(134)||this.unexpected(),this.parseExprAtom()}parseImportSpecifierLocal(e,t,n){t.local=this.parseIdentifier(),e.specifiers.push(this.finishImportSpecifier(t,n))}finishImportSpecifier(e,t,n=8201){return this.checkLVal(e.local,{type:t},n),this.finishNode(e,t)}parseImportAttributes(){this.expect(5);const e=[],t=new Set;do{if(this.match(8))break;const n=this.startNode(),r=this.state.value;if(t.has(r)&&this.raise(h.ModuleAttributesWithDuplicateKeys,this.state.startLoc,{key:r}),t.add(r),this.match(134)?n.key=this.parseStringLiteral(r):n.key=this.parseIdentifier(!0),this.expect(14),!this.match(134))throw this.raise(h.ModuleAttributeInvalidValue,this.state.startLoc);n.value=this.parseStringLiteral(this.state.value),e.push(this.finishNode(n,"ImportAttribute"))}while(this.eat(12));return this.expect(8),e}parseModuleAttributes(){const e=[],t=new Set;do{const n=this.startNode();if(n.key=this.parseIdentifier(!0),"type"!==n.key.name&&this.raise(h.ModuleAttributeDifferentFromType,n.key),t.has(n.key.name)&&this.raise(h.ModuleAttributesWithDuplicateKeys,n.key,{key:n.key.name}),t.add(n.key.name),this.expect(14),!this.match(134))throw this.raise(h.ModuleAttributeInvalidValue,this.state.startLoc);n.value=this.parseStringLiteral(this.state.value),e.push(this.finishNode(n,"ImportAttribute"))}while(this.eat(12));return e}maybeParseImportAttributes(e){let t;var n=!1;if(this.match(76)){if(this.hasPrecedingLineBreak()&&40===this.lookaheadCharCode())return;this.next(),this.hasPlugin("moduleAttributes")?(t=this.parseModuleAttributes(),this.addExtra(e,"deprecatedWithLegacySyntax",!0)):t=this.parseImportAttributes(),n=!0}else this.isContextual(94)&&!this.hasPrecedingLineBreak()?(this.hasPlugin("deprecatedImportAssert")||this.hasPlugin("importAssertions")||this.raise(h.ImportAttributesUseAssert,this.state.startLoc),this.hasPlugin("importAssertions")||this.addExtra(e,"deprecatedAssertSyntax",!0),this.next(),t=this.parseImportAttributes()):t=[];!n&&this.hasPlugin("importAssertions")?e.assertions=t:e.attributes=t}maybeParseDefaultImportSpecifier(e,t){if(t){const n=this.startNodeAtNode(t);return n.local=t,e.specifiers.push(this.finishImportSpecifier(n,"ImportDefaultSpecifier")),!0}return!!K(this.state.type)&&(this.parseImportSpecifierLocal(e,this.startNode(),"ImportDefaultSpecifier"),!0)}maybeParseStarImportSpecifier(e){if(this.match(55)){const t=this.startNode();return this.next(),this.expectContextual(93),this.parseImportSpecifierLocal(e,t,"ImportNamespaceSpecifier"),!0}return!1}parseNamedImportSpecifiers(e){let t=!0;for(this.expect(5);!this.eat(8);){if(t)t=!1;else{if(this.eat(14))throw this.raise(h.DestructureNamedImport,this.state.startLoc);if(this.expect(12),this.eat(8))break}const n=this.startNode(),r=this.match(134),i=this.isContextual(130);n.imported=this.parseModuleExportName();const a=this.parseImportSpecifier(n,r,"type"===e.importKind||"typeof"===e.importKind,i,void 0);e.specifiers.push(a)}}parseImportSpecifier(e,t,n,r,i){if(this.eatContextual(93))e.local=this.parseIdentifier();else{const{imported:n}=e;if(t)throw this.raise(h.ImportBindingIsString,e,{importName:n.value});this.checkReservedWord(n.name,e.loc.start,!0,!0),e.local||(e.local=this.cloneIdentifier(n))}return this.finishImportSpecifier(e,"ImportSpecifier",i)}isThisParam(e){return"Identifier"===e.type&&"this"===e.name}}class Mt extends Rt{constructor(e,t,n){const r=function(e){const t={sourceType:"script",sourceFilename:void 0,startIndex:0,startColumn:0,startLine:1,allowAwaitOutsideFunction:!1,allowReturnOutsideFunction:!1,allowNewTargetOutsideFunction:!1,allowImportExportEverywhere:!1,allowSuperOutsideMethod:!1,allowUndeclaredExports:!1,allowYieldOutsideFunction:!1,plugins:[],strictMode:void 0,ranges:!1,tokens:!1,createImportExpressions:!1,createParenthesizedExpressions:!1,errorRecovery:!1,attachComment:!0,annexB:!0};if(null==e)return t;if(null!=e.annexB&&!1!==e.annexB)throw new Error("The `annexB` option can only be set to `false`.");for(const n of Object.keys(t))null!=e[n]&&(t[n]=e[n]);if(1===t.startLine)null==e.startIndex&&t.startColumn>0?t.startIndex=t.startColumn:null==e.startColumn&&t.startIndex>0&&(t.startColumn=t.startIndex);else if((null==e.startColumn||null==e.startIndex)&&null!=e.startIndex)throw new Error("With a `startLine > 1` you must also specify `startIndex` and `startColumn`.");if("commonjs"===t.sourceType){if(null!=e.allowAwaitOutsideFunction)throw new Error("The `allowAwaitOutsideFunction` option cannot be used with `sourceType: 'commonjs'`.");if(null!=e.allowReturnOutsideFunction)throw new Error("`sourceType: 'commonjs'` implies `allowReturnOutsideFunction: true`, please remove the `allowReturnOutsideFunction` option or use `sourceType: 'script'`.");if(null!=e.allowNewTargetOutsideFunction)throw new Error("`sourceType: 'commonjs'` implies `allowNewTargetOutsideFunction: true`, please remove the `allowNewTargetOutsideFunction` option or use `sourceType: 'script'`.")}return t}(e);super(r,t),this.options=r,this.initializeScopes(),this.plugins=n,this.filename=r.sourceFilename,this.startIndex=r.startIndex;let i=0;r.allowAwaitOutsideFunction&&(i|=1),r.allowReturnOutsideFunction&&(i|=2),r.allowImportExportEverywhere&&(i|=8),r.allowSuperOutsideMethod&&(i|=16),r.allowUndeclaredExports&&(i|=64),r.allowNewTargetOutsideFunction&&(i|=4),r.allowYieldOutsideFunction&&(i|=32),r.ranges&&(i|=128),r.tokens&&(i|=256),r.createImportExpressions&&(i|=512),r.createParenthesizedExpressions&&(i|=1024),r.errorRecovery&&(i|=2048),r.attachComment&&(i|=4096),r.annexB&&(i|=8192),this.optionFlags=i}getScopeHandler(){return he}parse(){this.enterInitialScopes();const e=this.startNode(),t=this.startNode();this.nextToken(),e.errors=null;const n=this.parseTopLevel(e,t);return n.errors=this.state.errors,n.comments.length=this.state.commentsLen,n}}const Ft=function(e){const t={};for(const n of Object.keys(e))t[n]=Y(e[n]);return t}(U);function Gt(e,t){let n=Mt;const r=new Map;if(null!=e&&e.plugins){for(const t of e.plugins){let e,n;"string"==typeof t?e=t:[e,n]=t,r.has(e)||r.set(e,n||{})}!function(e){if(e.has("decorators")){if(e.has("decorators-legacy"))throw new Error("Cannot use the decorators and decorators-legacy plugin together");const t=e.get("decorators").decoratorsBeforeExport;if(null!=t&&"boolean"!=typeof t)throw new Error("'decoratorsBeforeExport' must be a boolean, if specified.");const n=e.get("decorators").allowCallParenthesized;if(null!=n&&"boolean"!=typeof n)throw new Error("'allowCallParenthesized' must be a boolean.")}if(e.has("flow")&&e.has("typescript"))throw new Error("Cannot combine flow and typescript plugins.");if(e.has("placeholders")&&e.has("v8intrinsic"))throw new Error("Cannot combine placeholders and v8intrinsic plugins.");if(e.has("pipelineOperator")){var t;const r=e.get("pipelineOperator").proposal;if(!Dt.includes(r)){const e=Dt.map(e=>`"${e}"`).join(", ");throw new Error(`"pipelineOperator" requires "proposal" option whose value must be one of: ${e}.`)}if("hack"===r){var n;if(e.has("placeholders"))throw new Error("Cannot combine placeholders plugin and Hack-style pipes.");if(e.has("v8intrinsic"))throw new Error("Cannot combine v8intrinsic plugin and Hack-style pipes.");const t=e.get("pipelineOperator").topicToken;if(!Lt.includes(t)){const e=Lt.map(e=>`"${e}"`).join(", ");throw new Error(`"pipelineOperator" in "proposal": "hack" mode also requires a "topicToken" option whose value must be one of: ${e}.`)}if("#"===t&&"hash"===(null==(n=e.get("recordAndTuple"))?void 0:n.syntaxType))throw new Error(`Plugin conflict between \`["pipelineOperator", { proposal: "hack", topicToken: "#" }]\` and \`${JSON.stringify(["recordAndTuple",e.get("recordAndTuple")])}\`.`)}else if("smart"===r&&"hash"===(null==(t=e.get("recordAndTuple"))?void 0:t.syntaxType))throw new Error(`Plugin conflict between \`["pipelineOperator", { proposal: "smart" }]\` and \`${JSON.stringify(["recordAndTuple",e.get("recordAndTuple")])}\`.`)}if(e.has("moduleAttributes")){if(e.has("deprecatedImportAssert")||e.has("importAssertions"))throw new Error("Cannot combine importAssertions, deprecatedImportAssert and moduleAttributes plugins.");if("may-2020"!==e.get("moduleAttributes").version)throw new Error("The 'moduleAttributes' plugin requires a 'version' option, representing the last proposal update. Currently, the only supported value is 'may-2020'.")}if(e.has("importAssertions")&&e.has("deprecatedImportAssert"))throw new Error("Cannot combine importAssertions and deprecatedImportAssert plugins.");if(e.has("deprecatedImportAssert")||e.has("importAttributes")&&e.get("importAttributes").deprecatedAssertSyntax&&e.set("deprecatedImportAssert",{}),e.has("recordAndTuple")){const t=e.get("recordAndTuple").syntaxType;if(null!=t){const e=["hash","bar"];if(!e.includes(t))throw new Error("The 'syntaxType' option of the 'recordAndTuple' plugin must be one of: "+e.map(e=>`'${e}'`).join(", "))}}if(e.has("asyncDoExpressions")&&!e.has("doExpressions")){const e=new Error("'asyncDoExpressions' requires 'doExpressions', please add 'doExpressions' to parser plugins.");throw e.missingPlugins="doExpressions",e}if(e.has("optionalChainingAssign")&&"2023-07"!==e.get("optionalChainingAssign").version)throw new Error("The 'optionalChainingAssign' plugin requires a 'version' option, representing the last proposal update. Currently, the only supported value is '2023-07'.");if(e.has("discardBinding")&&"void"!==e.get("discardBinding").syntaxType)throw new Error("The 'discardBinding' plugin requires a 'syntaxType' option. Currently the only supported value is 'void'.")}(r),n=function(e){const t=[];for(const n of Nt)e.has(n)&&t.push(n);const n=t.join("|");let r=Bt.get(n);if(!r){r=Mt;for(const e of t)r=At[e](r);Bt.set(n,r)}return r}(r)}return new n(e,t,r)}const Bt=new Map;return lib.parse=function(e,t){var n;if("unambiguous"!==(null==(n=t)?void 0:n.sourceType))return Gt(t,e).parse();t=Object.assign({},t);try{t.sourceType="module";const n=Gt(t,e),r=n.parse();if(n.sawUnambiguousESM)return r;if(n.ambiguousScriptDifferentAst)try{return t.sourceType="script",Gt(t,e).parse()}catch(e){}else r.program.sourceType="script";return r}catch(n){try{return t.sourceType="script",Gt(t,e).parse()}catch(e){}throw n}},lib.parseExpression=function(e,t){const n=Gt(t,e);return n.options.strictMode&&(n.state.strict=!0),n.getExpression()},lib.tokTypes=Ft,lib}var libExports=requireLib(),tsMorphBootstrap={},tsMorphCommon={},__dirname$1="/Users/shreyjain/Downloads/source-academy/js-slang/node_modules/@ts-morph/common/dist";function commonjsRequire(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var typescript$1={exports:{}},_endianness;function endianness(){if(void 0===_endianness){var e=new ArrayBuffer(2),t=new Uint8Array(e),n=new Uint16Array(e);if(t[0]=1,t[1]=2,258===n[0])_endianness="BE";else{if(513!==n[0])throw new Error("unable to figure out endianess");_endianness="LE"}}return _endianness}function hostname(){return void 0!==global$1.location?global$1.location.hostname:""}function loadavg(){return[]}function uptime(){return 0}function freemem(){return Number.MAX_VALUE}function totalmem(){return Number.MAX_VALUE}function cpus(){return[]}function type(){return"Browser"}function release(){return void 0!==global$1.navigator?global$1.navigator.appVersion:""}function networkInterfaces(){return{}}function getNetworkInterfaces(){return{}}function arch(){return"javascript"}function platform(){return"browser"}function tmpDir(){return"/tmp"}var tmpdir=tmpDir,EOL="\n";function homedir(){return"$HOME"}var _polyfillNode_os={homedir:homedir,EOL:EOL,arch:arch,platform:platform,tmpdir:tmpdir,tmpDir:tmpDir,networkInterfaces:networkInterfaces,getNetworkInterfaces:getNetworkInterfaces,release:release,type:type,cpus:cpus,totalmem:totalmem,freemem:freemem,uptime:uptime,loadavg:loadavg,hostname:hostname,endianness:endianness},_polyfillNode_os$1=Object.freeze({__proto__:null,EOL:EOL,arch:arch,cpus:cpus,default:_polyfillNode_os,endianness:endianness,freemem:freemem,getNetworkInterfaces:getNetworkInterfaces,homedir:homedir,hostname:hostname,loadavg:loadavg,networkInterfaces:networkInterfaces,platform:platform,release:release,tmpDir:tmpDir,tmpdir:tmpdir,totalmem:totalmem,type:type,uptime:uptime}),require$$5=getAugmentedNamespace(_polyfillNode_os$1),typescript=typescript$1.exports,hasRequiredTypescript,path,hasRequiredPath,balancedMatch,hasRequiredBalancedMatch,braceExpansion,hasRequiredBraceExpansion,minimatch_1,hasRequiredMinimatch;function requireTypescript(){return hasRequiredTypescript||(hasRequiredTypescript=1,function(e){var t,n=typescript&&typescript.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var r,i=0,a=t.length;i0&&i[i.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]0;for(var n=0,r=e;n>1);switch(i(n(e[c],c),t)){case-1:o=c+1;break;case 0:return c;case 1:s=c-1}}return~o}function g(e,t,n,r,i){if(e&&e.length>0){var a=e.length;if(a>0){var o=void 0===r||r<0?0:r,s=void 0===i||o+i>a-1?a-1:o+i,c=void 0;for(arguments.length<=2?(c=e[o],o++):c=n;o<=s;)c=t(c,e[o],o),o++;return c}}return n}e.getIterator=function(t){if(t){if(L(t))return m(t);if(t instanceof e.Map)return t.entries();if(t instanceof e.Set)return t.values();throw new Error("Iteration not supported.")}},e.emptyArray=[],e.emptyMap=new e.Map,e.emptySet=new e.Set,e.length=function(e){return e?e.length:0},e.forEach=function(e,t){if(e)for(var n=0;n=0;n--){var r=t(e[n],n);if(r)return r}},e.firstDefined=function(e,t){if(void 0!==e)for(var n=0;n=0;r--){var i=e[r];if(t(i,r))return i}},e.findIndex=function(e,t,n){if(void 0===e)return-1;for(var r=null!=n?n:0;r=0;r--)if(t(e[r],r))return r;return-1},e.findMap=function(t,n){for(var r=0;r0&&e.Debug.assertGreaterThanOrEqual(r(n[o],n[o-1]),0);t:for(var s=a;as&&e.Debug.assertGreaterThanOrEqual(r(t[a],t[a-1]),0),r(n[o],t[a])){case-1:i.push(n[o]);continue e;case 0:continue e;case 1:continue t}}return i},e.sum=function(e,t){for(var n=0,r=0,i=e;r100&&n>t.length>>1){var i=t.length-n;t.copyWithin(0,n),t.length=i,n=0}return e},isEmpty:r}},e.createSet=function(n,r){var i=new e.Map,a=0;function o(){var e,t=i.values();return{next:function(){for(;;)if(e){if(!(n=e.next()).done)return{value:n.value};e=void 0}else{var n;if((n=t.next()).done)return{value:void 0,done:!0};if(!L(n.value))return{value:n.value};e=m(n.value)}}}}var s={has:function(e){var t=n(e);if(!i.has(t))return!1;var a=i.get(t);if(!L(a))return r(a,e);for(var o=0,s=a;ot?1:0}function G(e,t){return R(e,t)}e.toFileNameLowerCase=w,e.notImplemented=function(){throw new Error("Not implemented")},e.memoize=function(e){var t;return function(){return e&&(t=e(),e=void 0),t}},e.memoizeOne=function(t){var n=new e.Map;return function(e){var r="".concat(typeof e,":").concat(e),i=n.get(r);return void 0!==i||n.has(r)||(i=t(e),n.set(r,i)),i}},e.compose=function(e,t,n,r,i){if(i){for(var a=[],o=0;o0?1:0}function i(e){var t=new Intl.Collator(e,{usage:"sort",sensitivity:"variant"}).compare;return function(e,n){return r(e,n,t)}}function a(e){return void 0!==e?o():function(e,n){return r(e,n,t)};function t(e,t){return e.localeCompare(t)}}function o(){return function(t,n){return r(t,n,e)};function e(e,n){return t(e.toUpperCase(),n.toUpperCase())||t(e,n)}function t(e,t){return et?1:0}}}();function K(e,t,n){for(var r=new Array(t.length+1),i=new Array(t.length+1),a=n+.01,o=0;o<=t.length;o++)r[o]=o;for(o=1;o<=e.length;o++){var s=e.charCodeAt(o-1),c=Math.ceil(o>n?o-n:1),l=Math.floor(t.length>n+o?n+o:t.length);i[0]=o;for(var u=o,d=1;dn)return;var f=r;r=i,i=f}var _=r[t.length];return _>n?void 0:_}function j(e,t){var n=e.length-t.length;return n>=0&&e.indexOf(t,n)===n}function H(e,t){for(var n=t;n=n.length+r.length&&q(t,n)&&j(t,r)}function J(e,t,n,r){for(var i=0,a=e[r];i0;n--){var r=e.charCodeAt(n);if(r>=48&&r<=57)do{--n,r=e.charCodeAt(n)}while(n>0&&r>=48&&r<=57);else{if(!(n>4)||110!==r&&78!==r)break;if(--n,105!==(r=e.charCodeAt(n))&&73!==r)break;if(--n,109!==(r=e.charCodeAt(n))&&77!==r)break;--n,r=e.charCodeAt(n)}if(45!==r&&46!==r)break;t=n}return t===e.length?e:e.slice(0,t)},e.orderedRemoveItem=function(e,t){for(var n=0;ni&&(i=c.prefix.length,r=s)}return r},e.startsWith=q,e.removePrefix=function(e,t){return q(e,t)?e.substr(t.length):e},e.tryRemovePrefix=function(e,t,n){return void 0===n&&(n=N),q(n(e),n(t))?e.substring(t.length):void 0},e.isPatternMatch=z,e.and=function(e,t){return function(n){return e(n)&&t(n)}},e.or=function(){for(var e=[],t=0;t=0&&e.isWhiteSpaceLike(t.charCodeAt(n));)n--;return t.slice(0,n+1)},e.trimStringStart=String.prototype.trimStart?function(e){return e.trimStart()}:function(e){return e.replace(/^\s+/g,"")}}(c||(c={})),function(e){var t;!function(e){e[e.Off=0]="Off",e[e.Error=1]="Error",e[e.Warning=2]="Warning",e[e.Info=3]="Info",e[e.Verbose=4]="Verbose"}(t=e.LogLevel||(e.LogLevel={})),function(n){var r,i,a=0;function o(){return null!=r?r:r=new e.Version(e.version)}function s(e){return n.currentLogLevel<=e}function c(e,t){n.loggingHost&&s(e)&&n.loggingHost.log(e,t)}function l(e){c(t.Info,e)}n.currentLogLevel=t.Warning,n.isDebugging=!1,n.enableDeprecationWarnings=!0,n.getTypeScriptVersion=o,n.shouldLog=s,n.log=l,(i=l=n.log||(n.log={})).error=function(e){c(t.Error,e)},i.warn=function(e){c(t.Warning,e)},i.log=function(e){c(t.Info,e)},i.trace=function(e){c(t.Verbose,e)};var u={};function d(e){return a>=e}function p(t,r){return!!d(t)||(u[r]={level:t,assertion:n[r]},n[r]=e.noop,!1)}function m(e,t){var n=new Error(e?"Debug Failure. ".concat(e):"Debug Failure.");throw Error.captureStackTrace&&Error.captureStackTrace(n,t||m),n}function f(e,t,n,r){e||(t=t?"False expression: ".concat(t):"False expression.",n&&(t+="\r\nVerbose Debug Information: "+("string"==typeof n?n:n())),m(t,r||f))}function _(e,t,n){null==e&&m(t,n||_)}function h(e,t,n){for(var r=0,i=e;r0&&0===i[0][0]?i[0][1]:"0";if(r){for(var a=[],o=t,s=0,c=i;st)break;0!==u&&u&t&&(a.push(d),o&=~u)}if(0===o)return a.join("|")}else for(var p=0,m=i;pr)for(var i=0,o=e.getOwnKeys(u);i=c.level&&(n[s]=c,u[s]=void 0)}},n.shouldAssert=d,n.fail=m,n.failBadSyntaxKind=function e(t,n,r){return m("".concat(n||"Unexpected node.","\r\nNode ").concat(E(t.kind)," was unexpected."),r||e)},n.assert=f,n.assertEqual=function e(t,n,r,i,a){if(t!==n){var o=r?i?"".concat(r," ").concat(i):r:"";m("Expected ".concat(t," === ").concat(n,". ").concat(o),a||e)}},n.assertLessThan=function e(t,n,r,i){t>=n&&m("Expected ".concat(t," < ").concat(n,". ").concat(r||""),i||e)},n.assertLessThanOrEqual=function e(t,n,r){t>n&&m("Expected ".concat(t," <= ").concat(n),r||e)},n.assertGreaterThanOrEqual=function e(t,n,r){t= ").concat(n),r||e)},n.assertIsDefined=_,n.checkDefined=function e(t,n,r){return _(t,n,r||e),t},n.assertEachIsDefined=h,n.checkEachDefined=function e(t,n,r){return h(t,n,r||e),t},n.assertNever=g,n.assertEachNode=function t(n,r,i,a){p(1,"assertEachNode")&&f(void 0===r||e.every(n,r),i||"Unexpected node.",function(){return"Node array did not pass test '".concat(y(r),"'.")},a||t)},n.assertNode=function e(t,n,r,i){p(1,"assertNode")&&f(void 0!==t&&(void 0===n||n(t)),r||"Unexpected node.",function(){return"Node ".concat(E(null==t?void 0:t.kind)," did not pass test '").concat(y(n),"'.")},i||e)},n.assertNotNode=function e(t,n,r,i){p(1,"assertNotNode")&&f(void 0===t||void 0===n||!n(t),r||"Unexpected node.",function(){return"Node ".concat(E(t.kind)," should not have passed test '").concat(y(n),"'.")},i||e)},n.assertOptionalNode=function e(t,n,r,i){p(1,"assertOptionalNode")&&f(void 0===n||void 0===t||n(t),r||"Unexpected node.",function(){return"Node ".concat(E(null==t?void 0:t.kind)," did not pass test '").concat(y(n),"'.")},i||e)},n.assertOptionalToken=function e(t,n,r,i){p(1,"assertOptionalToken")&&f(void 0===n||void 0===t||t.kind===n,r||"Unexpected node.",function(){return"Node ".concat(E(null==t?void 0:t.kind)," was not a '").concat(E(n),"' token.")},i||e)},n.assertMissingNode=function e(t,n,r){p(1,"assertMissingNode")&&f(void 0===t,n||"Unexpected node.",function(){return"Node ".concat(E(t.kind)," was unexpected'.")},r||e)},n.type=function(e){},n.getFunctionName=y,n.formatSymbol=function(t){return"{ name: ".concat(e.unescapeLeadingUnderscores(t.escapedName),"; flags: ").concat(D(t.flags),"; declarations: ").concat(e.map(t.declarations,function(e){return E(e.kind)})," }")},n.formatEnum=v;var b=new e.Map;function E(t){return v(t,e.SyntaxKind,!1)}function x(t){return v(t,e.NodeFlags,!0)}function S(t){return v(t,e.ModifierFlags,!0)}function T(t){return v(t,e.TransformFlags,!0)}function C(t){return v(t,e.EmitFlags,!0)}function D(t){return v(t,e.SymbolFlags,!0)}function L(t){return v(t,e.TypeFlags,!0)}function A(t){return v(t,e.SignatureFlags,!0)}function N(t){return v(t,e.ObjectFlags,!0)}function k(t){return v(t,e.FlowFlags,!0)}n.formatSyntaxKind=E,n.formatSnippetKind=function(t){return v(t,e.SnippetKind,!1)},n.formatNodeFlags=x,n.formatModifierFlags=S,n.formatTransformFlags=T,n.formatEmitFlags=C,n.formatSymbolFlags=D,n.formatTypeFlags=L,n.formatSignatureFlags=A,n.formatObjectFlags=N,n.formatFlowFlags=k,n.formatRelationComparisonResult=function(t){return v(t,e.RelationComparisonResult,!0)},n.formatCheckMode=function(t){return v(t,e.CheckMode,!0)},n.formatSignatureCheckMode=function(t){return v(t,e.SignatureCheckMode,!0)},n.formatTypeFacts=function(t){return v(t,e.TypeFacts,!0)};var I,P,w,O=!1;function R(e){return function(){if(G(),!I)throw new Error("Debugging helpers could not be loaded.");return I}().formatControlFlowGraph(e)}function M(t){"__debugFlowFlags"in t||Object.defineProperties(t,{__tsDebuggerDisplay:{value:function(){var e=2&this.flags?"FlowStart":4&this.flags?"FlowBranchLabel":8&this.flags?"FlowLoopLabel":16&this.flags?"FlowAssignment":32&this.flags?"FlowTrueCondition":64&this.flags?"FlowFalseCondition":128&this.flags?"FlowSwitchClause":256&this.flags?"FlowArrayMutation":512&this.flags?"FlowCall":1024&this.flags?"FlowReduceLabel":1&this.flags?"FlowUnreachable":"UnknownFlow",t=-2048&this.flags;return"".concat(e).concat(t?" (".concat(k(t),")"):"")}},__debugFlowFlags:{get:function(){return v(this.flags,e.FlowFlags,!0)}},__debugToString:{value:function(){return R(this)}}})}function F(e){"__tsDebuggerDisplay"in e||Object.defineProperties(e,{__tsDebuggerDisplay:{value:function(e){return e=String(e).replace(/(?:,[\s\w\d_]+:[^,]+)+\]$/,"]"),"NodeArray ".concat(e)}}})}function G(){if(!O){var t,n;Object.defineProperties(e.objectAllocator.getSymbolConstructor().prototype,{__tsDebuggerDisplay:{value:function(){var t=33554432&this.flags?"TransientSymbol":"Symbol",n=-33554433&this.flags;return"".concat(t," '").concat(e.symbolName(this),"'").concat(n?" (".concat(D(n),")"):"")}},__debugFlags:{get:function(){return D(this.flags)}}}),Object.defineProperties(e.objectAllocator.getTypeConstructor().prototype,{__tsDebuggerDisplay:{value:function(){var t=98304&this.flags?"NullableType":384&this.flags?"LiteralType ".concat(JSON.stringify(this.value)):2048&this.flags?"LiteralType ".concat(this.value.negative?"-":"").concat(this.value.base10Value,"n"):8192&this.flags?"UniqueESSymbolType":32&this.flags?"EnumType":67359327&this.flags?"IntrinsicType ".concat(this.intrinsicName):1048576&this.flags?"UnionType":2097152&this.flags?"IntersectionType":4194304&this.flags?"IndexType":8388608&this.flags?"IndexedAccessType":16777216&this.flags?"ConditionalType":33554432&this.flags?"SubstitutionType":262144&this.flags?"TypeParameter":524288&this.flags?3&this.objectFlags?"InterfaceType":4&this.objectFlags?"TypeReference":8&this.objectFlags?"TupleType":16&this.objectFlags?"AnonymousType":32&this.objectFlags?"MappedType":1024&this.objectFlags?"ReverseMappedType":256&this.objectFlags?"EvolvingArrayType":"ObjectType":"Type",n=524288&this.flags?-1344&this.objectFlags:0;return"".concat(t).concat(this.symbol?" '".concat(e.symbolName(this.symbol),"'"):"").concat(n?" (".concat(N(n),")"):"")}},__debugFlags:{get:function(){return L(this.flags)}},__debugObjectFlags:{get:function(){return 524288&this.flags?N(this.objectFlags):""}},__debugTypeToString:{value:function(){var e=(void 0===t&&"function"==typeof WeakMap&&(t=new WeakMap),t),n=null==e?void 0:e.get(this);return void 0===n&&(n=this.checker.typeToString(this),null==e||e.set(this,n)),n}}}),Object.defineProperties(e.objectAllocator.getSignatureConstructor().prototype,{__debugFlags:{get:function(){return A(this.flags)}},__debugSignatureToString:{value:function(){var e;return null===(e=this.checker)||void 0===e?void 0:e.signatureToString(this)}}});for(var r=0,i=[e.objectAllocator.getNodeConstructor(),e.objectAllocator.getIdentifierConstructor(),e.objectAllocator.getTokenConstructor(),e.objectAllocator.getSourceFileConstructor()];r=0;return p?function(e,t,n,r){var i=B(e,!0,t,n,r);return function(){throw new TypeError(i)}}(t,c,d,r.message):m?function(e,t,r,i){var a=!1;return function(){n.enableDeprecationWarnings&&!a&&(l.warn(B(e,!1,t,r,i)),a=!0)}}(t,c,d,r.message):e.noop}n.printControlFlowGraph=function(e){return console.log(R(e))},n.formatControlFlowGraph=R,n.attachFlowNodeDebugInfo=function(e){O&&("function"==typeof Object.setPrototypeOf?(P||M(P=Object.create(Object.prototype)),Object.setPrototypeOf(e,P)):M(e))},n.attachNodeArrayDebugInfo=function(e){O&&("function"==typeof Object.setPrototypeOf?(w||F(w=Object.create(Array.prototype)),Object.setPrototypeOf(e,w)):F(e))},n.enableDebugInfo=G,n.createDeprecation=U,n.deprecate=function(e,t){var n;return function(e,t){return function(){return e(),t.apply(this,arguments)}}(U(null!==(n=null==t?void 0:t.name)&&void 0!==n?n:y(e),t),e)},n.formatVariance=function(e){var t=7&e,n=0===t?"in out":3===t?"[bivariant]":2===t?"in":1===t?"out":4===t?"[independent]":"";return 8&e?n+=" (unmeasurable)":16&e&&(n+=" (unreliable)"),n};var V=function(){function t(){}return t.prototype.__debugToString=function(){var t;switch(this.kind){case 3:return(null===(t=this.debugInfo)||void 0===t?void 0:t.call(this))||"(function mapper)";case 0:return"".concat(this.source.__debugTypeToString()," -> ").concat(this.target.__debugTypeToString());case 1:return e.zipWith(this.sources,this.targets||e.map(this.sources,function(){return"any"}),function(e,t){return"".concat(e.__debugTypeToString()," -> ").concat("string"==typeof t?t:t.__debugTypeToString())}).join(", ");case 2:return e.zipWith(this.sources,this.targets,function(e,t){return"".concat(e.__debugTypeToString()," -> ").concat(t().__debugTypeToString())}).join(", ");case 5:case 4:return"m1: ".concat(this.mapper1.__debugToString().split("\n").join("\n "),"\nm2: ").concat(this.mapper2.__debugToString().split("\n").join("\n "));default:return g(this)}},t}();n.DebugTypeMapper=V,n.attachDebugPrototypeIfDebug=function(e){return n.isDebugging?Object.setPrototypeOf(e,V.prototype):e}}(e.Debug||(e.Debug={}))}(c||(c={})),function(e){var t=/^(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:\-([a-z0-9-.]+))?(?:\+([a-z0-9-.]+))?)?)?$/i,n=/^(?:0|[1-9]\d*|[a-z-][a-z0-9-]*)(?:\.(?:0|[1-9]\d*|[a-z-][a-z0-9-]*))*$/i,r=/^(?:0|[1-9]\d*|[a-z-][a-z0-9-]*)$/i,i=/^[a-z0-9-]+(?:\.[a-z0-9-]+)*$/i,a=/^[a-z0-9-]+$/i,o=/^(0|[1-9]\d*)$/,s=function(){function t(t,n,i,o,s){if(void 0===n&&(n=0),void 0===i&&(i=0),void 0===o&&(o=""),void 0===s&&(s=""),"string"==typeof t){var l=e.Debug.checkDefined(c(t),"Invalid version");t=l.major,n=l.minor,i=l.patch,o=l.prerelease,s=l.build}e.Debug.assert(t>=0,"Invalid argument: major"),e.Debug.assert(n>=0,"Invalid argument: minor"),e.Debug.assert(i>=0,"Invalid argument: patch");var u=o?e.isArray(o)?o:o.split("."):e.emptyArray,d=s?e.isArray(s)?s:s.split("."):e.emptyArray;e.Debug.assert(e.every(u,function(e){return r.test(e)}),"Invalid argument: prerelease"),e.Debug.assert(e.every(d,function(e){return a.test(e)}),"Invalid argument: build"),this.major=t,this.minor=n,this.patch=i,this.prerelease=u,this.build=d}return t.tryParse=function(e){var n=c(e);if(n)return new t(n.major,n.minor,n.patch,n.prerelease,n.build)},t.prototype.compareTo=function(t){return this===t?0:void 0===t?1:e.compareValues(this.major,t.major)||e.compareValues(this.minor,t.minor)||e.compareValues(this.patch,t.patch)||function(t,n){if(t===n)return 0;if(0===t.length)return 0===n.length?0:1;if(0===n.length)return-1;for(var r=Math.min(t.length,n.length),i=0;i|>=|=)?\s*([a-z0-9-+.*]+)$/i;function _(t){for(var n=[],r=0,i=e.trimString(t).split(u);r=",r.version)),v(i.major)||n.push(v(i.minor)?b("<",i.version.increment("major")):v(i.patch)?b("<",i.version.increment("minor")):b("<=",i.version)),!0)}function y(e,t,n){var r=h(t);if(!r)return!1;var i=r.version,a=r.major,o=r.minor,c=r.patch;if(v(a))"<"!==e&&">"!==e||n.push(b("<",s.zero));else switch(e){case"~":n.push(b(">=",i)),n.push(b("<",i.increment(v(o)?"major":"minor")));break;case"^":n.push(b(">=",i)),n.push(b("<",i.increment(i.major>0||v(o)?"major":i.minor>0||v(c)?"minor":"patch")));break;case"<":case">=":n.push(v(o)||v(c)?b(e,i.with({prerelease:"0"})):b(e,i));break;case"<=":case">":n.push(v(o)?b("<="===e?"<":">=",i.increment("major").with({prerelease:"0"})):v(c)?b("<="===e?"<":">=",i.increment("minor").with({prerelease:"0"})):b(e,i));break;case"=":case void 0:v(o)||v(c)?(n.push(b(">=",i.with({prerelease:"0"}))),n.push(b("<",i.increment(v(o)?"major":"minor").with({prerelease:"0"})))):n.push(b("=",i));break;default:return!1}return!0}function v(e){return"*"===e||"x"===e||"X"===e}function b(e,t){return{operator:e,operand:t}}function E(e,t){for(var n=0,r=t;n":return i>0;case">=":return i>=0;case"=":return 0===i;default:return e.Debug.assertNever(n)}}function S(t){return e.map(t,T).join(" ")}function T(e){return"".concat(e.operator).concat(e.operand)}}(c||(c={})),function(e){var t=function(){if("object"==typeof performance&&"function"==typeof PerformanceObserver&&function(e,t){return"object"==typeof e&&"number"==typeof e.timeOrigin&&"function"==typeof e.mark&&"function"==typeof e.measure&&"function"==typeof e.now&&"function"==typeof e.clearMarks&&"function"==typeof e.clearMeasures&&"function"==typeof t}(performance,PerformanceObserver))return{shouldWriteNativeEvents:!0,performance:performance,PerformanceObserver:PerformanceObserver}}()||void 0,n=null==t?void 0:t.performance;e.tryGetNativePerformanceHooks=function(){return t},e.timestamp=n?function(){return n.now()}:Date.now?Date.now:function(){return+new Date}}(c||(c={})),function(e){!function(t){var n,r;function i(t,n,r){var i=0;return{enter:function(){1===++i&&u(n)},exit:function(){0===--i?(u(r),d(t,n,r)):i<0&&e.Debug.fail("enter/exit count does not match.")}}}t.createTimerIf=function(e,n,r,a){return e?i(n,r,a):t.nullTimer},t.createTimer=i,t.nullTimer={enter:e.noop,exit:e.noop};var a=!1,o=e.timestamp(),s=new e.Map,c=new e.Map,l=new e.Map;function u(t){var n;if(a){var i=null!==(n=c.get(t))&&void 0!==n?n:0;c.set(t,i+1),s.set(t,e.timestamp()),null==r||r.mark(t)}}function d(t,n,i){var c,u;if(a){var d=null!==(c=void 0!==i?s.get(i):void 0)&&void 0!==c?c:e.timestamp(),p=null!==(u=void 0!==n?s.get(n):void 0)&&void 0!==u?u:o,m=l.get(t)||0;l.set(t,m+(d-p)),null==r||r.measure(t,n,i)}}t.mark=u,t.measure=d,t.getCount=function(e){return c.get(e)||0},t.getDuration=function(e){return l.get(e)||0},t.forEachMeasure=function(e){l.forEach(function(t,n){return e(n,t)})},t.forEachMark=function(e){s.forEach(function(t,n){return e(n)})},t.clearMeasures=function(e){void 0!==e?l.delete(e):l.clear(),null==r||r.clearMeasures(e)},t.clearMarks=function(e){void 0!==e?(c.delete(e),s.delete(e)):(c.clear(),s.clear()),null==r||r.clearMarks(e)},t.isEnabled=function(){return a},t.enable=function(t){var i;return void 0===t&&(t=e.sys),a||(a=!0,n||(n=e.tryGetNativePerformanceHooks()),n&&(o=n.performance.timeOrigin,(n.shouldWriteNativeEvents||(null===(i=null==t?void 0:t.cpuProfilingEnabled)||void 0===i?void 0:i.call(t))||(null==t?void 0:t.debugMode))&&(r=n.performance))),!0},t.disable=function(){a&&(s.clear(),c.clear(),l.clear(),r=void 0,a=!1)}}(e.performance||(e.performance={}))}(c||(c={})),function(e){var t,n,r={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};try{n=commonjsRequire(null!==(t=browser$1.env.TS_ETW_MODULE_PATH)&&void 0!==t?t:"./node_modules/@microsoft/typescript-etw")}catch(e){n=void 0}e.perfLogger=n&&n.logEvent?n:r}(c||(c={})),function(e){var t;!function(t){var n,i,a,o,s=0,c=0,l=[],u=[];t.startTracing=function(o,d,p){if(e.Debug.assert(!e.tracing,"Tracing already started"),void 0===n)try{n=require$$3}catch(e){throw new Error("tracing requires having fs\n(original error: ".concat(e.message||e,")"))}i=o,l.length=0,void 0===a&&(a=e.combinePaths(d,"legend.json")),n.existsSync(d)||n.mkdirSync(d,{recursive:!0});var m="build"===i?".".concat(browser$1.pid,"-").concat(++s):"server"===i?".".concat(browser$1.pid):"",f=e.combinePaths(d,"trace".concat(m,".json")),_=e.combinePaths(d,"types".concat(m,".json"));u.push({configFilePath:p,tracePath:f,typesPath:_}),c=n.openSync(f,"w"),e.tracing=t;var h={cat:"__metadata",ph:"M",ts:1e3*e.timestamp(),pid:1,tid:1};n.writeSync(c,"[\n"+[r({name:"process_name",args:{name:"tsc"}},h),r({name:"thread_name",args:{name:"Main"}},h),r(r({name:"TracingStartedInBrowser"},h),{cat:"disabled-by-default-devtools.timeline"})].map(function(e){return JSON.stringify(e)}).join(",\n"))},t.stopTracing=function(){e.Debug.assert(e.tracing,"Tracing is not in progress"),e.Debug.assert(!!l.length==("server"!==i)),n.writeSync(c,"\n]\n"),n.closeSync(c),e.tracing=void 0,l.length?function(t){var i,a,o,s,c,l,d,p,m,f,h,g,y,v,b,E,x,S,T,C,D,L;e.performance.mark("beginDumpTypes");var A=u[u.length-1].typesPath,N=n.openSync(A,"w"),k=new e.Map;n.writeSync(N,"[");for(var I=t.length,P=0;P0),m(d.length-1,1e3*e.timestamp(),t),d.length--},t.popAll=function(){for(var t=1e3*e.timestamp(),n=d.length-1;n>=0;n--)m(n,t);d.length=0};var p=1e4;function m(t,n,i){var a=d[t],o=a.phase,s=a.name,c=a.args,l=a.time;a.separateBeginAndEnd?(e.Debug.assert(!i,"`results` are not supported for events with `separateBeginAndEnd`"),f("E",o,s,c,void 0,n)):p-l%p<=n-l&&f("X",o,s,r(r({},c),{results:i}),'"dur":'.concat(n-l),l)}function f(t,r,a,o,s,l){void 0===l&&(l=1e3*e.timestamp()),"server"===i&&"checkTypes"===r||(e.performance.mark("beginTracing"),n.writeSync(c,',\n{"pid":1,"tid":1,"ph":"'.concat(t,'","cat":"').concat(r,'","ts":').concat(l,',"name":"').concat(a,'"')),s&&n.writeSync(c,",".concat(s)),o&&n.writeSync(c,',"args":'.concat(JSON.stringify(o))),n.writeSync(c,"}"),e.performance.mark("endTracing"),e.performance.measure("Tracing","beginTracing","endTracing"))}function _(t){var n=e.getSourceFileOfNode(t);return n?{path:n.path,start:r(e.getLineAndCharacterOfPosition(n,t.pos)),end:r(e.getLineAndCharacterOfPosition(n,t.end))}:void 0;function r(e){return{line:e.line+1,character:e.character+1}}}t.dumpLegend=function(){a&&n.writeFileSync(a,JSON.stringify(u))}}(t||(t={})),e.startTracing=t.startTracing,e.dumpTracingLegend=t.dumpLegend}(c||(c={})),function(e){var t,n,r,i,a,o,s,c,l;(t=e.SyntaxKind||(e.SyntaxKind={}))[t.Unknown=0]="Unknown",t[t.EndOfFileToken=1]="EndOfFileToken",t[t.SingleLineCommentTrivia=2]="SingleLineCommentTrivia",t[t.MultiLineCommentTrivia=3]="MultiLineCommentTrivia",t[t.NewLineTrivia=4]="NewLineTrivia",t[t.WhitespaceTrivia=5]="WhitespaceTrivia",t[t.ShebangTrivia=6]="ShebangTrivia",t[t.ConflictMarkerTrivia=7]="ConflictMarkerTrivia",t[t.NumericLiteral=8]="NumericLiteral",t[t.BigIntLiteral=9]="BigIntLiteral",t[t.StringLiteral=10]="StringLiteral",t[t.JsxText=11]="JsxText",t[t.JsxTextAllWhiteSpaces=12]="JsxTextAllWhiteSpaces",t[t.RegularExpressionLiteral=13]="RegularExpressionLiteral",t[t.NoSubstitutionTemplateLiteral=14]="NoSubstitutionTemplateLiteral",t[t.TemplateHead=15]="TemplateHead",t[t.TemplateMiddle=16]="TemplateMiddle",t[t.TemplateTail=17]="TemplateTail",t[t.OpenBraceToken=18]="OpenBraceToken",t[t.CloseBraceToken=19]="CloseBraceToken",t[t.OpenParenToken=20]="OpenParenToken",t[t.CloseParenToken=21]="CloseParenToken",t[t.OpenBracketToken=22]="OpenBracketToken",t[t.CloseBracketToken=23]="CloseBracketToken",t[t.DotToken=24]="DotToken",t[t.DotDotDotToken=25]="DotDotDotToken",t[t.SemicolonToken=26]="SemicolonToken",t[t.CommaToken=27]="CommaToken",t[t.QuestionDotToken=28]="QuestionDotToken",t[t.LessThanToken=29]="LessThanToken",t[t.LessThanSlashToken=30]="LessThanSlashToken",t[t.GreaterThanToken=31]="GreaterThanToken",t[t.LessThanEqualsToken=32]="LessThanEqualsToken",t[t.GreaterThanEqualsToken=33]="GreaterThanEqualsToken",t[t.EqualsEqualsToken=34]="EqualsEqualsToken",t[t.ExclamationEqualsToken=35]="ExclamationEqualsToken",t[t.EqualsEqualsEqualsToken=36]="EqualsEqualsEqualsToken",t[t.ExclamationEqualsEqualsToken=37]="ExclamationEqualsEqualsToken",t[t.EqualsGreaterThanToken=38]="EqualsGreaterThanToken",t[t.PlusToken=39]="PlusToken",t[t.MinusToken=40]="MinusToken",t[t.AsteriskToken=41]="AsteriskToken",t[t.AsteriskAsteriskToken=42]="AsteriskAsteriskToken",t[t.SlashToken=43]="SlashToken",t[t.PercentToken=44]="PercentToken",t[t.PlusPlusToken=45]="PlusPlusToken",t[t.MinusMinusToken=46]="MinusMinusToken",t[t.LessThanLessThanToken=47]="LessThanLessThanToken",t[t.GreaterThanGreaterThanToken=48]="GreaterThanGreaterThanToken",t[t.GreaterThanGreaterThanGreaterThanToken=49]="GreaterThanGreaterThanGreaterThanToken",t[t.AmpersandToken=50]="AmpersandToken",t[t.BarToken=51]="BarToken",t[t.CaretToken=52]="CaretToken",t[t.ExclamationToken=53]="ExclamationToken",t[t.TildeToken=54]="TildeToken",t[t.AmpersandAmpersandToken=55]="AmpersandAmpersandToken",t[t.BarBarToken=56]="BarBarToken",t[t.QuestionToken=57]="QuestionToken",t[t.ColonToken=58]="ColonToken",t[t.AtToken=59]="AtToken",t[t.QuestionQuestionToken=60]="QuestionQuestionToken",t[t.BacktickToken=61]="BacktickToken",t[t.HashToken=62]="HashToken",t[t.EqualsToken=63]="EqualsToken",t[t.PlusEqualsToken=64]="PlusEqualsToken",t[t.MinusEqualsToken=65]="MinusEqualsToken",t[t.AsteriskEqualsToken=66]="AsteriskEqualsToken",t[t.AsteriskAsteriskEqualsToken=67]="AsteriskAsteriskEqualsToken",t[t.SlashEqualsToken=68]="SlashEqualsToken",t[t.PercentEqualsToken=69]="PercentEqualsToken",t[t.LessThanLessThanEqualsToken=70]="LessThanLessThanEqualsToken",t[t.GreaterThanGreaterThanEqualsToken=71]="GreaterThanGreaterThanEqualsToken",t[t.GreaterThanGreaterThanGreaterThanEqualsToken=72]="GreaterThanGreaterThanGreaterThanEqualsToken",t[t.AmpersandEqualsToken=73]="AmpersandEqualsToken",t[t.BarEqualsToken=74]="BarEqualsToken",t[t.BarBarEqualsToken=75]="BarBarEqualsToken",t[t.AmpersandAmpersandEqualsToken=76]="AmpersandAmpersandEqualsToken",t[t.QuestionQuestionEqualsToken=77]="QuestionQuestionEqualsToken",t[t.CaretEqualsToken=78]="CaretEqualsToken",t[t.Identifier=79]="Identifier",t[t.PrivateIdentifier=80]="PrivateIdentifier",t[t.BreakKeyword=81]="BreakKeyword",t[t.CaseKeyword=82]="CaseKeyword",t[t.CatchKeyword=83]="CatchKeyword",t[t.ClassKeyword=84]="ClassKeyword",t[t.ConstKeyword=85]="ConstKeyword",t[t.ContinueKeyword=86]="ContinueKeyword",t[t.DebuggerKeyword=87]="DebuggerKeyword",t[t.DefaultKeyword=88]="DefaultKeyword",t[t.DeleteKeyword=89]="DeleteKeyword",t[t.DoKeyword=90]="DoKeyword",t[t.ElseKeyword=91]="ElseKeyword",t[t.EnumKeyword=92]="EnumKeyword",t[t.ExportKeyword=93]="ExportKeyword",t[t.ExtendsKeyword=94]="ExtendsKeyword",t[t.FalseKeyword=95]="FalseKeyword",t[t.FinallyKeyword=96]="FinallyKeyword",t[t.ForKeyword=97]="ForKeyword",t[t.FunctionKeyword=98]="FunctionKeyword",t[t.IfKeyword=99]="IfKeyword",t[t.ImportKeyword=100]="ImportKeyword",t[t.InKeyword=101]="InKeyword",t[t.InstanceOfKeyword=102]="InstanceOfKeyword",t[t.NewKeyword=103]="NewKeyword",t[t.NullKeyword=104]="NullKeyword",t[t.ReturnKeyword=105]="ReturnKeyword",t[t.SuperKeyword=106]="SuperKeyword",t[t.SwitchKeyword=107]="SwitchKeyword",t[t.ThisKeyword=108]="ThisKeyword",t[t.ThrowKeyword=109]="ThrowKeyword",t[t.TrueKeyword=110]="TrueKeyword",t[t.TryKeyword=111]="TryKeyword",t[t.TypeOfKeyword=112]="TypeOfKeyword",t[t.VarKeyword=113]="VarKeyword",t[t.VoidKeyword=114]="VoidKeyword",t[t.WhileKeyword=115]="WhileKeyword",t[t.WithKeyword=116]="WithKeyword",t[t.ImplementsKeyword=117]="ImplementsKeyword",t[t.InterfaceKeyword=118]="InterfaceKeyword",t[t.LetKeyword=119]="LetKeyword",t[t.PackageKeyword=120]="PackageKeyword",t[t.PrivateKeyword=121]="PrivateKeyword",t[t.ProtectedKeyword=122]="ProtectedKeyword",t[t.PublicKeyword=123]="PublicKeyword",t[t.StaticKeyword=124]="StaticKeyword",t[t.YieldKeyword=125]="YieldKeyword",t[t.AbstractKeyword=126]="AbstractKeyword",t[t.AccessorKeyword=127]="AccessorKeyword",t[t.AsKeyword=128]="AsKeyword",t[t.AssertsKeyword=129]="AssertsKeyword",t[t.AssertKeyword=130]="AssertKeyword",t[t.AnyKeyword=131]="AnyKeyword",t[t.AsyncKeyword=132]="AsyncKeyword",t[t.AwaitKeyword=133]="AwaitKeyword",t[t.BooleanKeyword=134]="BooleanKeyword",t[t.ConstructorKeyword=135]="ConstructorKeyword",t[t.DeclareKeyword=136]="DeclareKeyword",t[t.GetKeyword=137]="GetKeyword",t[t.InferKeyword=138]="InferKeyword",t[t.IntrinsicKeyword=139]="IntrinsicKeyword",t[t.IsKeyword=140]="IsKeyword",t[t.KeyOfKeyword=141]="KeyOfKeyword",t[t.ModuleKeyword=142]="ModuleKeyword",t[t.NamespaceKeyword=143]="NamespaceKeyword",t[t.NeverKeyword=144]="NeverKeyword",t[t.OutKeyword=145]="OutKeyword",t[t.ReadonlyKeyword=146]="ReadonlyKeyword",t[t.RequireKeyword=147]="RequireKeyword",t[t.NumberKeyword=148]="NumberKeyword",t[t.ObjectKeyword=149]="ObjectKeyword",t[t.SatisfiesKeyword=150]="SatisfiesKeyword",t[t.SetKeyword=151]="SetKeyword",t[t.StringKeyword=152]="StringKeyword",t[t.SymbolKeyword=153]="SymbolKeyword",t[t.TypeKeyword=154]="TypeKeyword",t[t.UndefinedKeyword=155]="UndefinedKeyword",t[t.UniqueKeyword=156]="UniqueKeyword",t[t.UnknownKeyword=157]="UnknownKeyword",t[t.FromKeyword=158]="FromKeyword",t[t.GlobalKeyword=159]="GlobalKeyword",t[t.BigIntKeyword=160]="BigIntKeyword",t[t.OverrideKeyword=161]="OverrideKeyword",t[t.OfKeyword=162]="OfKeyword",t[t.QualifiedName=163]="QualifiedName",t[t.ComputedPropertyName=164]="ComputedPropertyName",t[t.TypeParameter=165]="TypeParameter",t[t.Parameter=166]="Parameter",t[t.Decorator=167]="Decorator",t[t.PropertySignature=168]="PropertySignature",t[t.PropertyDeclaration=169]="PropertyDeclaration",t[t.MethodSignature=170]="MethodSignature",t[t.MethodDeclaration=171]="MethodDeclaration",t[t.ClassStaticBlockDeclaration=172]="ClassStaticBlockDeclaration",t[t.Constructor=173]="Constructor",t[t.GetAccessor=174]="GetAccessor",t[t.SetAccessor=175]="SetAccessor",t[t.CallSignature=176]="CallSignature",t[t.ConstructSignature=177]="ConstructSignature",t[t.IndexSignature=178]="IndexSignature",t[t.TypePredicate=179]="TypePredicate",t[t.TypeReference=180]="TypeReference",t[t.FunctionType=181]="FunctionType",t[t.ConstructorType=182]="ConstructorType",t[t.TypeQuery=183]="TypeQuery",t[t.TypeLiteral=184]="TypeLiteral",t[t.ArrayType=185]="ArrayType",t[t.TupleType=186]="TupleType",t[t.OptionalType=187]="OptionalType",t[t.RestType=188]="RestType",t[t.UnionType=189]="UnionType",t[t.IntersectionType=190]="IntersectionType",t[t.ConditionalType=191]="ConditionalType",t[t.InferType=192]="InferType",t[t.ParenthesizedType=193]="ParenthesizedType",t[t.ThisType=194]="ThisType",t[t.TypeOperator=195]="TypeOperator",t[t.IndexedAccessType=196]="IndexedAccessType",t[t.MappedType=197]="MappedType",t[t.LiteralType=198]="LiteralType",t[t.NamedTupleMember=199]="NamedTupleMember",t[t.TemplateLiteralType=200]="TemplateLiteralType",t[t.TemplateLiteralTypeSpan=201]="TemplateLiteralTypeSpan",t[t.ImportType=202]="ImportType",t[t.ObjectBindingPattern=203]="ObjectBindingPattern",t[t.ArrayBindingPattern=204]="ArrayBindingPattern",t[t.BindingElement=205]="BindingElement",t[t.ArrayLiteralExpression=206]="ArrayLiteralExpression",t[t.ObjectLiteralExpression=207]="ObjectLiteralExpression",t[t.PropertyAccessExpression=208]="PropertyAccessExpression",t[t.ElementAccessExpression=209]="ElementAccessExpression",t[t.CallExpression=210]="CallExpression",t[t.NewExpression=211]="NewExpression",t[t.TaggedTemplateExpression=212]="TaggedTemplateExpression",t[t.TypeAssertionExpression=213]="TypeAssertionExpression",t[t.ParenthesizedExpression=214]="ParenthesizedExpression",t[t.FunctionExpression=215]="FunctionExpression",t[t.ArrowFunction=216]="ArrowFunction",t[t.DeleteExpression=217]="DeleteExpression",t[t.TypeOfExpression=218]="TypeOfExpression",t[t.VoidExpression=219]="VoidExpression",t[t.AwaitExpression=220]="AwaitExpression",t[t.PrefixUnaryExpression=221]="PrefixUnaryExpression",t[t.PostfixUnaryExpression=222]="PostfixUnaryExpression",t[t.BinaryExpression=223]="BinaryExpression",t[t.ConditionalExpression=224]="ConditionalExpression",t[t.TemplateExpression=225]="TemplateExpression",t[t.YieldExpression=226]="YieldExpression",t[t.SpreadElement=227]="SpreadElement",t[t.ClassExpression=228]="ClassExpression",t[t.OmittedExpression=229]="OmittedExpression",t[t.ExpressionWithTypeArguments=230]="ExpressionWithTypeArguments",t[t.AsExpression=231]="AsExpression",t[t.NonNullExpression=232]="NonNullExpression",t[t.MetaProperty=233]="MetaProperty",t[t.SyntheticExpression=234]="SyntheticExpression",t[t.SatisfiesExpression=235]="SatisfiesExpression",t[t.TemplateSpan=236]="TemplateSpan",t[t.SemicolonClassElement=237]="SemicolonClassElement",t[t.Block=238]="Block",t[t.EmptyStatement=239]="EmptyStatement",t[t.VariableStatement=240]="VariableStatement",t[t.ExpressionStatement=241]="ExpressionStatement",t[t.IfStatement=242]="IfStatement",t[t.DoStatement=243]="DoStatement",t[t.WhileStatement=244]="WhileStatement",t[t.ForStatement=245]="ForStatement",t[t.ForInStatement=246]="ForInStatement",t[t.ForOfStatement=247]="ForOfStatement",t[t.ContinueStatement=248]="ContinueStatement",t[t.BreakStatement=249]="BreakStatement",t[t.ReturnStatement=250]="ReturnStatement",t[t.WithStatement=251]="WithStatement",t[t.SwitchStatement=252]="SwitchStatement",t[t.LabeledStatement=253]="LabeledStatement",t[t.ThrowStatement=254]="ThrowStatement",t[t.TryStatement=255]="TryStatement",t[t.DebuggerStatement=256]="DebuggerStatement",t[t.VariableDeclaration=257]="VariableDeclaration",t[t.VariableDeclarationList=258]="VariableDeclarationList",t[t.FunctionDeclaration=259]="FunctionDeclaration",t[t.ClassDeclaration=260]="ClassDeclaration",t[t.InterfaceDeclaration=261]="InterfaceDeclaration",t[t.TypeAliasDeclaration=262]="TypeAliasDeclaration",t[t.EnumDeclaration=263]="EnumDeclaration",t[t.ModuleDeclaration=264]="ModuleDeclaration",t[t.ModuleBlock=265]="ModuleBlock",t[t.CaseBlock=266]="CaseBlock",t[t.NamespaceExportDeclaration=267]="NamespaceExportDeclaration",t[t.ImportEqualsDeclaration=268]="ImportEqualsDeclaration",t[t.ImportDeclaration=269]="ImportDeclaration",t[t.ImportClause=270]="ImportClause",t[t.NamespaceImport=271]="NamespaceImport",t[t.NamedImports=272]="NamedImports",t[t.ImportSpecifier=273]="ImportSpecifier",t[t.ExportAssignment=274]="ExportAssignment",t[t.ExportDeclaration=275]="ExportDeclaration",t[t.NamedExports=276]="NamedExports",t[t.NamespaceExport=277]="NamespaceExport",t[t.ExportSpecifier=278]="ExportSpecifier",t[t.MissingDeclaration=279]="MissingDeclaration",t[t.ExternalModuleReference=280]="ExternalModuleReference",t[t.JsxElement=281]="JsxElement",t[t.JsxSelfClosingElement=282]="JsxSelfClosingElement",t[t.JsxOpeningElement=283]="JsxOpeningElement",t[t.JsxClosingElement=284]="JsxClosingElement",t[t.JsxFragment=285]="JsxFragment",t[t.JsxOpeningFragment=286]="JsxOpeningFragment",t[t.JsxClosingFragment=287]="JsxClosingFragment",t[t.JsxAttribute=288]="JsxAttribute",t[t.JsxAttributes=289]="JsxAttributes",t[t.JsxSpreadAttribute=290]="JsxSpreadAttribute",t[t.JsxExpression=291]="JsxExpression",t[t.CaseClause=292]="CaseClause",t[t.DefaultClause=293]="DefaultClause",t[t.HeritageClause=294]="HeritageClause",t[t.CatchClause=295]="CatchClause",t[t.AssertClause=296]="AssertClause",t[t.AssertEntry=297]="AssertEntry",t[t.ImportTypeAssertionContainer=298]="ImportTypeAssertionContainer",t[t.PropertyAssignment=299]="PropertyAssignment",t[t.ShorthandPropertyAssignment=300]="ShorthandPropertyAssignment",t[t.SpreadAssignment=301]="SpreadAssignment",t[t.EnumMember=302]="EnumMember",t[t.UnparsedPrologue=303]="UnparsedPrologue",t[t.UnparsedPrepend=304]="UnparsedPrepend",t[t.UnparsedText=305]="UnparsedText",t[t.UnparsedInternalText=306]="UnparsedInternalText",t[t.UnparsedSyntheticReference=307]="UnparsedSyntheticReference",t[t.SourceFile=308]="SourceFile",t[t.Bundle=309]="Bundle",t[t.UnparsedSource=310]="UnparsedSource",t[t.InputFiles=311]="InputFiles",t[t.JSDocTypeExpression=312]="JSDocTypeExpression",t[t.JSDocNameReference=313]="JSDocNameReference",t[t.JSDocMemberName=314]="JSDocMemberName",t[t.JSDocAllType=315]="JSDocAllType",t[t.JSDocUnknownType=316]="JSDocUnknownType",t[t.JSDocNullableType=317]="JSDocNullableType",t[t.JSDocNonNullableType=318]="JSDocNonNullableType",t[t.JSDocOptionalType=319]="JSDocOptionalType",t[t.JSDocFunctionType=320]="JSDocFunctionType",t[t.JSDocVariadicType=321]="JSDocVariadicType",t[t.JSDocNamepathType=322]="JSDocNamepathType",t[t.JSDoc=323]="JSDoc",t[t.JSDocComment=323]="JSDocComment",t[t.JSDocText=324]="JSDocText",t[t.JSDocTypeLiteral=325]="JSDocTypeLiteral",t[t.JSDocSignature=326]="JSDocSignature",t[t.JSDocLink=327]="JSDocLink",t[t.JSDocLinkCode=328]="JSDocLinkCode",t[t.JSDocLinkPlain=329]="JSDocLinkPlain",t[t.JSDocTag=330]="JSDocTag",t[t.JSDocAugmentsTag=331]="JSDocAugmentsTag",t[t.JSDocImplementsTag=332]="JSDocImplementsTag",t[t.JSDocAuthorTag=333]="JSDocAuthorTag",t[t.JSDocDeprecatedTag=334]="JSDocDeprecatedTag",t[t.JSDocClassTag=335]="JSDocClassTag",t[t.JSDocPublicTag=336]="JSDocPublicTag",t[t.JSDocPrivateTag=337]="JSDocPrivateTag",t[t.JSDocProtectedTag=338]="JSDocProtectedTag",t[t.JSDocReadonlyTag=339]="JSDocReadonlyTag",t[t.JSDocOverrideTag=340]="JSDocOverrideTag",t[t.JSDocCallbackTag=341]="JSDocCallbackTag",t[t.JSDocEnumTag=342]="JSDocEnumTag",t[t.JSDocParameterTag=343]="JSDocParameterTag",t[t.JSDocReturnTag=344]="JSDocReturnTag",t[t.JSDocThisTag=345]="JSDocThisTag",t[t.JSDocTypeTag=346]="JSDocTypeTag",t[t.JSDocTemplateTag=347]="JSDocTemplateTag",t[t.JSDocTypedefTag=348]="JSDocTypedefTag",t[t.JSDocSeeTag=349]="JSDocSeeTag",t[t.JSDocPropertyTag=350]="JSDocPropertyTag",t[t.SyntaxList=351]="SyntaxList",t[t.NotEmittedStatement=352]="NotEmittedStatement",t[t.PartiallyEmittedExpression=353]="PartiallyEmittedExpression",t[t.CommaListExpression=354]="CommaListExpression",t[t.MergeDeclarationMarker=355]="MergeDeclarationMarker",t[t.EndOfDeclarationMarker=356]="EndOfDeclarationMarker",t[t.SyntheticReferenceExpression=357]="SyntheticReferenceExpression",t[t.Count=358]="Count",t[t.FirstAssignment=63]="FirstAssignment",t[t.LastAssignment=78]="LastAssignment",t[t.FirstCompoundAssignment=64]="FirstCompoundAssignment",t[t.LastCompoundAssignment=78]="LastCompoundAssignment",t[t.FirstReservedWord=81]="FirstReservedWord",t[t.LastReservedWord=116]="LastReservedWord",t[t.FirstKeyword=81]="FirstKeyword",t[t.LastKeyword=162]="LastKeyword",t[t.FirstFutureReservedWord=117]="FirstFutureReservedWord",t[t.LastFutureReservedWord=125]="LastFutureReservedWord",t[t.FirstTypeNode=179]="FirstTypeNode",t[t.LastTypeNode=202]="LastTypeNode",t[t.FirstPunctuation=18]="FirstPunctuation",t[t.LastPunctuation=78]="LastPunctuation",t[t.FirstToken=0]="FirstToken",t[t.LastToken=162]="LastToken",t[t.FirstTriviaToken=2]="FirstTriviaToken",t[t.LastTriviaToken=7]="LastTriviaToken",t[t.FirstLiteralToken=8]="FirstLiteralToken",t[t.LastLiteralToken=14]="LastLiteralToken",t[t.FirstTemplateToken=14]="FirstTemplateToken",t[t.LastTemplateToken=17]="LastTemplateToken",t[t.FirstBinaryOperator=29]="FirstBinaryOperator",t[t.LastBinaryOperator=78]="LastBinaryOperator",t[t.FirstStatement=240]="FirstStatement",t[t.LastStatement=256]="LastStatement",t[t.FirstNode=163]="FirstNode",t[t.FirstJSDocNode=312]="FirstJSDocNode",t[t.LastJSDocNode=350]="LastJSDocNode",t[t.FirstJSDocTagNode=330]="FirstJSDocTagNode",t[t.LastJSDocTagNode=350]="LastJSDocTagNode",t[t.FirstContextualKeyword=126]="FirstContextualKeyword",t[t.LastContextualKeyword=162]="LastContextualKeyword",(n=e.NodeFlags||(e.NodeFlags={}))[n.None=0]="None",n[n.Let=1]="Let",n[n.Const=2]="Const",n[n.NestedNamespace=4]="NestedNamespace",n[n.Synthesized=8]="Synthesized",n[n.Namespace=16]="Namespace",n[n.OptionalChain=32]="OptionalChain",n[n.ExportContext=64]="ExportContext",n[n.ContainsThis=128]="ContainsThis",n[n.HasImplicitReturn=256]="HasImplicitReturn",n[n.HasExplicitReturn=512]="HasExplicitReturn",n[n.GlobalAugmentation=1024]="GlobalAugmentation",n[n.HasAsyncFunctions=2048]="HasAsyncFunctions",n[n.DisallowInContext=4096]="DisallowInContext",n[n.YieldContext=8192]="YieldContext",n[n.DecoratorContext=16384]="DecoratorContext",n[n.AwaitContext=32768]="AwaitContext",n[n.DisallowConditionalTypesContext=65536]="DisallowConditionalTypesContext",n[n.ThisNodeHasError=131072]="ThisNodeHasError",n[n.JavaScriptFile=262144]="JavaScriptFile",n[n.ThisNodeOrAnySubNodesHasError=524288]="ThisNodeOrAnySubNodesHasError",n[n.HasAggregatedChildData=1048576]="HasAggregatedChildData",n[n.PossiblyContainsDynamicImport=2097152]="PossiblyContainsDynamicImport",n[n.PossiblyContainsImportMeta=4194304]="PossiblyContainsImportMeta",n[n.JSDoc=8388608]="JSDoc",n[n.Ambient=16777216]="Ambient",n[n.InWithStatement=33554432]="InWithStatement",n[n.JsonFile=67108864]="JsonFile",n[n.TypeCached=134217728]="TypeCached",n[n.Deprecated=268435456]="Deprecated",n[n.BlockScoped=3]="BlockScoped",n[n.ReachabilityCheckFlags=768]="ReachabilityCheckFlags",n[n.ReachabilityAndEmitFlags=2816]="ReachabilityAndEmitFlags",n[n.ContextFlags=50720768]="ContextFlags",n[n.TypeExcludesFlags=40960]="TypeExcludesFlags",n[n.PermanentlySetIncrementalFlags=6291456]="PermanentlySetIncrementalFlags",(r=e.ModifierFlags||(e.ModifierFlags={}))[r.None=0]="None",r[r.Export=1]="Export",r[r.Ambient=2]="Ambient",r[r.Public=4]="Public",r[r.Private=8]="Private",r[r.Protected=16]="Protected",r[r.Static=32]="Static",r[r.Readonly=64]="Readonly",r[r.Accessor=128]="Accessor",r[r.Abstract=256]="Abstract",r[r.Async=512]="Async",r[r.Default=1024]="Default",r[r.Const=2048]="Const",r[r.HasComputedJSDocModifiers=4096]="HasComputedJSDocModifiers",r[r.Deprecated=8192]="Deprecated",r[r.Override=16384]="Override",r[r.In=32768]="In",r[r.Out=65536]="Out",r[r.Decorator=131072]="Decorator",r[r.HasComputedFlags=536870912]="HasComputedFlags",r[r.AccessibilityModifier=28]="AccessibilityModifier",r[r.ParameterPropertyModifier=16476]="ParameterPropertyModifier",r[r.NonPublicAccessibilityModifier=24]="NonPublicAccessibilityModifier",r[r.TypeScriptModifier=117086]="TypeScriptModifier",r[r.ExportDefault=1025]="ExportDefault",r[r.All=258047]="All",r[r.Modifier=126975]="Modifier",(i=e.JsxFlags||(e.JsxFlags={}))[i.None=0]="None",i[i.IntrinsicNamedElement=1]="IntrinsicNamedElement",i[i.IntrinsicIndexedElement=2]="IntrinsicIndexedElement",i[i.IntrinsicElement=3]="IntrinsicElement",(a=e.RelationComparisonResult||(e.RelationComparisonResult={}))[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",(o=e.GeneratedIdentifierFlags||(e.GeneratedIdentifierFlags={}))[o.None=0]="None",o[o.Auto=1]="Auto",o[o.Loop=2]="Loop",o[o.Unique=3]="Unique",o[o.Node=4]="Node",o[o.KindMask=7]="KindMask",o[o.ReservedInNestedScopes=8]="ReservedInNestedScopes",o[o.Optimistic=16]="Optimistic",o[o.FileLevel=32]="FileLevel",o[o.AllowNameSubstitution=64]="AllowNameSubstitution",(s=e.TokenFlags||(e.TokenFlags={}))[s.None=0]="None",s[s.PrecedingLineBreak=1]="PrecedingLineBreak",s[s.PrecedingJSDocComment=2]="PrecedingJSDocComment",s[s.Unterminated=4]="Unterminated",s[s.ExtendedUnicodeEscape=8]="ExtendedUnicodeEscape",s[s.Scientific=16]="Scientific",s[s.Octal=32]="Octal",s[s.HexSpecifier=64]="HexSpecifier",s[s.BinarySpecifier=128]="BinarySpecifier",s[s.OctalSpecifier=256]="OctalSpecifier",s[s.ContainsSeparator=512]="ContainsSeparator",s[s.UnicodeEscape=1024]="UnicodeEscape",s[s.ContainsInvalidEscape=2048]="ContainsInvalidEscape",s[s.BinaryOrOctalSpecifier=384]="BinaryOrOctalSpecifier",s[s.NumericLiteralFlags=1008]="NumericLiteralFlags",s[s.TemplateLiteralLikeFlags=2048]="TemplateLiteralLikeFlags",(c=e.FlowFlags||(e.FlowFlags={}))[c.Unreachable=1]="Unreachable",c[c.Start=2]="Start",c[c.BranchLabel=4]="BranchLabel",c[c.LoopLabel=8]="LoopLabel",c[c.Assignment=16]="Assignment",c[c.TrueCondition=32]="TrueCondition",c[c.FalseCondition=64]="FalseCondition",c[c.SwitchClause=128]="SwitchClause",c[c.ArrayMutation=256]="ArrayMutation",c[c.Call=512]="Call",c[c.ReduceLabel=1024]="ReduceLabel",c[c.Referenced=2048]="Referenced",c[c.Shared=4096]="Shared",c[c.Label=12]="Label",c[c.Condition=96]="Condition",(l=e.CommentDirectiveType||(e.CommentDirectiveType={}))[l.ExpectError=0]="ExpectError",l[l.Ignore=1]="Ignore";var u,d,p,m,f,_,h,g,y,v,b,E,x,S,T,C,D,L,A,N,k,I,P,w,O,R,M,F,G,B,U,V,K,j,H,W,$,q,z,J,X,Y,Q,Z,ee,te,ne,re,ie,ae,oe,se,ce,le,ue,de,pe,me,fe;e.OperationCanceledException=function(){},(u=e.FileIncludeKind||(e.FileIncludeKind={}))[u.RootFile=0]="RootFile",u[u.SourceFromProjectReference=1]="SourceFromProjectReference",u[u.OutputFromProjectReference=2]="OutputFromProjectReference",u[u.Import=3]="Import",u[u.ReferenceFile=4]="ReferenceFile",u[u.TypeReferenceDirective=5]="TypeReferenceDirective",u[u.LibFile=6]="LibFile",u[u.LibReferenceDirective=7]="LibReferenceDirective",u[u.AutomaticTypeDirectiveFile=8]="AutomaticTypeDirectiveFile",(d=e.FilePreprocessingDiagnosticsKind||(e.FilePreprocessingDiagnosticsKind={}))[d.FilePreprocessingReferencedDiagnostic=0]="FilePreprocessingReferencedDiagnostic",d[d.FilePreprocessingFileExplainingDiagnostic=1]="FilePreprocessingFileExplainingDiagnostic",(p=e.StructureIsReused||(e.StructureIsReused={}))[p.Not=0]="Not",p[p.SafeModules=1]="SafeModules",p[p.Completely=2]="Completely",(m=e.ExitStatus||(e.ExitStatus={}))[m.Success=0]="Success",m[m.DiagnosticsPresent_OutputsSkipped=1]="DiagnosticsPresent_OutputsSkipped",m[m.DiagnosticsPresent_OutputsGenerated=2]="DiagnosticsPresent_OutputsGenerated",m[m.InvalidProject_OutputsSkipped=3]="InvalidProject_OutputsSkipped",m[m.ProjectReferenceCycle_OutputsSkipped=4]="ProjectReferenceCycle_OutputsSkipped",m[m.ProjectReferenceCycle_OutputsSkupped=4]="ProjectReferenceCycle_OutputsSkupped",(f=e.MemberOverrideStatus||(e.MemberOverrideStatus={}))[f.Ok=0]="Ok",f[f.NeedsOverride=1]="NeedsOverride",f[f.HasInvalidOverride=2]="HasInvalidOverride",(_=e.UnionReduction||(e.UnionReduction={}))[_.None=0]="None",_[_.Literal=1]="Literal",_[_.Subtype=2]="Subtype",(h=e.ContextFlags||(e.ContextFlags={}))[h.None=0]="None",h[h.Signature=1]="Signature",h[h.NoConstraints=2]="NoConstraints",h[h.Completions=4]="Completions",h[h.SkipBindingPatterns=8]="SkipBindingPatterns",(g=e.NodeBuilderFlags||(e.NodeBuilderFlags={}))[g.None=0]="None",g[g.NoTruncation=1]="NoTruncation",g[g.WriteArrayAsGenericType=2]="WriteArrayAsGenericType",g[g.GenerateNamesForShadowedTypeParams=4]="GenerateNamesForShadowedTypeParams",g[g.UseStructuralFallback=8]="UseStructuralFallback",g[g.ForbidIndexedAccessSymbolReferences=16]="ForbidIndexedAccessSymbolReferences",g[g.WriteTypeArgumentsOfSignature=32]="WriteTypeArgumentsOfSignature",g[g.UseFullyQualifiedType=64]="UseFullyQualifiedType",g[g.UseOnlyExternalAliasing=128]="UseOnlyExternalAliasing",g[g.SuppressAnyReturnType=256]="SuppressAnyReturnType",g[g.WriteTypeParametersInQualifiedName=512]="WriteTypeParametersInQualifiedName",g[g.MultilineObjectLiterals=1024]="MultilineObjectLiterals",g[g.WriteClassExpressionAsTypeLiteral=2048]="WriteClassExpressionAsTypeLiteral",g[g.UseTypeOfFunction=4096]="UseTypeOfFunction",g[g.OmitParameterModifiers=8192]="OmitParameterModifiers",g[g.UseAliasDefinedOutsideCurrentScope=16384]="UseAliasDefinedOutsideCurrentScope",g[g.UseSingleQuotesForStringLiteralType=268435456]="UseSingleQuotesForStringLiteralType",g[g.NoTypeReduction=536870912]="NoTypeReduction",g[g.OmitThisParameter=33554432]="OmitThisParameter",g[g.AllowThisInObjectLiteral=32768]="AllowThisInObjectLiteral",g[g.AllowQualifiedNameInPlaceOfIdentifier=65536]="AllowQualifiedNameInPlaceOfIdentifier",g[g.AllowQualifedNameInPlaceOfIdentifier=65536]="AllowQualifedNameInPlaceOfIdentifier",g[g.AllowAnonymousIdentifier=131072]="AllowAnonymousIdentifier",g[g.AllowEmptyUnionOrIntersection=262144]="AllowEmptyUnionOrIntersection",g[g.AllowEmptyTuple=524288]="AllowEmptyTuple",g[g.AllowUniqueESSymbolType=1048576]="AllowUniqueESSymbolType",g[g.AllowEmptyIndexInfoType=2097152]="AllowEmptyIndexInfoType",g[g.WriteComputedProps=1073741824]="WriteComputedProps",g[g.AllowNodeModulesRelativePaths=67108864]="AllowNodeModulesRelativePaths",g[g.DoNotIncludeSymbolChain=134217728]="DoNotIncludeSymbolChain",g[g.IgnoreErrors=70221824]="IgnoreErrors",g[g.InObjectTypeLiteral=4194304]="InObjectTypeLiteral",g[g.InTypeAlias=8388608]="InTypeAlias",g[g.InInitialEntityName=16777216]="InInitialEntityName",(y=e.TypeFormatFlags||(e.TypeFormatFlags={}))[y.None=0]="None",y[y.NoTruncation=1]="NoTruncation",y[y.WriteArrayAsGenericType=2]="WriteArrayAsGenericType",y[y.UseStructuralFallback=8]="UseStructuralFallback",y[y.WriteTypeArgumentsOfSignature=32]="WriteTypeArgumentsOfSignature",y[y.UseFullyQualifiedType=64]="UseFullyQualifiedType",y[y.SuppressAnyReturnType=256]="SuppressAnyReturnType",y[y.MultilineObjectLiterals=1024]="MultilineObjectLiterals",y[y.WriteClassExpressionAsTypeLiteral=2048]="WriteClassExpressionAsTypeLiteral",y[y.UseTypeOfFunction=4096]="UseTypeOfFunction",y[y.OmitParameterModifiers=8192]="OmitParameterModifiers",y[y.UseAliasDefinedOutsideCurrentScope=16384]="UseAliasDefinedOutsideCurrentScope",y[y.UseSingleQuotesForStringLiteralType=268435456]="UseSingleQuotesForStringLiteralType",y[y.NoTypeReduction=536870912]="NoTypeReduction",y[y.OmitThisParameter=33554432]="OmitThisParameter",y[y.AllowUniqueESSymbolType=1048576]="AllowUniqueESSymbolType",y[y.AddUndefined=131072]="AddUndefined",y[y.WriteArrowStyleSignature=262144]="WriteArrowStyleSignature",y[y.InArrayType=524288]="InArrayType",y[y.InElementType=2097152]="InElementType",y[y.InFirstTypeArgument=4194304]="InFirstTypeArgument",y[y.InTypeAlias=8388608]="InTypeAlias",y[y.WriteOwnNameForAnyLike=0]="WriteOwnNameForAnyLike",y[y.NodeBuilderFlagsMask=848330091]="NodeBuilderFlagsMask",(v=e.SymbolFormatFlags||(e.SymbolFormatFlags={}))[v.None=0]="None",v[v.WriteTypeParametersOrArguments=1]="WriteTypeParametersOrArguments",v[v.UseOnlyExternalAliasing=2]="UseOnlyExternalAliasing",v[v.AllowAnyNodeKind=4]="AllowAnyNodeKind",v[v.UseAliasDefinedOutsideCurrentScope=8]="UseAliasDefinedOutsideCurrentScope",v[v.WriteComputedProps=16]="WriteComputedProps",v[v.DoNotIncludeSymbolChain=32]="DoNotIncludeSymbolChain",(b=e.SymbolAccessibility||(e.SymbolAccessibility={}))[b.Accessible=0]="Accessible",b[b.NotAccessible=1]="NotAccessible",b[b.CannotBeNamed=2]="CannotBeNamed",(E=e.SyntheticSymbolKind||(e.SyntheticSymbolKind={}))[E.UnionOrIntersection=0]="UnionOrIntersection",E[E.Spread=1]="Spread",(x=e.TypePredicateKind||(e.TypePredicateKind={}))[x.This=0]="This",x[x.Identifier=1]="Identifier",x[x.AssertsThis=2]="AssertsThis",x[x.AssertsIdentifier=3]="AssertsIdentifier",(S=e.TypeReferenceSerializationKind||(e.TypeReferenceSerializationKind={}))[S.Unknown=0]="Unknown",S[S.TypeWithConstructSignatureAndValue=1]="TypeWithConstructSignatureAndValue",S[S.VoidNullableOrNeverType=2]="VoidNullableOrNeverType",S[S.NumberLikeType=3]="NumberLikeType",S[S.BigIntLikeType=4]="BigIntLikeType",S[S.StringLikeType=5]="StringLikeType",S[S.BooleanType=6]="BooleanType",S[S.ArrayLikeType=7]="ArrayLikeType",S[S.ESSymbolType=8]="ESSymbolType",S[S.Promise=9]="Promise",S[S.TypeWithCallSignature=10]="TypeWithCallSignature",S[S.ObjectType=11]="ObjectType",(T=e.SymbolFlags||(e.SymbolFlags={}))[T.None=0]="None",T[T.FunctionScopedVariable=1]="FunctionScopedVariable",T[T.BlockScopedVariable=2]="BlockScopedVariable",T[T.Property=4]="Property",T[T.EnumMember=8]="EnumMember",T[T.Function=16]="Function",T[T.Class=32]="Class",T[T.Interface=64]="Interface",T[T.ConstEnum=128]="ConstEnum",T[T.RegularEnum=256]="RegularEnum",T[T.ValueModule=512]="ValueModule",T[T.NamespaceModule=1024]="NamespaceModule",T[T.TypeLiteral=2048]="TypeLiteral",T[T.ObjectLiteral=4096]="ObjectLiteral",T[T.Method=8192]="Method",T[T.Constructor=16384]="Constructor",T[T.GetAccessor=32768]="GetAccessor",T[T.SetAccessor=65536]="SetAccessor",T[T.Signature=131072]="Signature",T[T.TypeParameter=262144]="TypeParameter",T[T.TypeAlias=524288]="TypeAlias",T[T.ExportValue=1048576]="ExportValue",T[T.Alias=2097152]="Alias",T[T.Prototype=4194304]="Prototype",T[T.ExportStar=8388608]="ExportStar",T[T.Optional=16777216]="Optional",T[T.Transient=33554432]="Transient",T[T.Assignment=67108864]="Assignment",T[T.ModuleExports=134217728]="ModuleExports",T[T.All=67108863]="All",T[T.Enum=384]="Enum",T[T.Variable=3]="Variable",T[T.Value=111551]="Value",T[T.Type=788968]="Type",T[T.Namespace=1920]="Namespace",T[T.Module=1536]="Module",T[T.Accessor=98304]="Accessor",T[T.FunctionScopedVariableExcludes=111550]="FunctionScopedVariableExcludes",T[T.BlockScopedVariableExcludes=111551]="BlockScopedVariableExcludes",T[T.ParameterExcludes=111551]="ParameterExcludes",T[T.PropertyExcludes=0]="PropertyExcludes",T[T.EnumMemberExcludes=900095]="EnumMemberExcludes",T[T.FunctionExcludes=110991]="FunctionExcludes",T[T.ClassExcludes=899503]="ClassExcludes",T[T.InterfaceExcludes=788872]="InterfaceExcludes",T[T.RegularEnumExcludes=899327]="RegularEnumExcludes",T[T.ConstEnumExcludes=899967]="ConstEnumExcludes",T[T.ValueModuleExcludes=110735]="ValueModuleExcludes",T[T.NamespaceModuleExcludes=0]="NamespaceModuleExcludes",T[T.MethodExcludes=103359]="MethodExcludes",T[T.GetAccessorExcludes=46015]="GetAccessorExcludes",T[T.SetAccessorExcludes=78783]="SetAccessorExcludes",T[T.AccessorExcludes=13247]="AccessorExcludes",T[T.TypeParameterExcludes=526824]="TypeParameterExcludes",T[T.TypeAliasExcludes=788968]="TypeAliasExcludes",T[T.AliasExcludes=2097152]="AliasExcludes",T[T.ModuleMember=2623475]="ModuleMember",T[T.ExportHasLocal=944]="ExportHasLocal",T[T.BlockScoped=418]="BlockScoped",T[T.PropertyOrAccessor=98308]="PropertyOrAccessor",T[T.ClassMember=106500]="ClassMember",T[T.ExportSupportsDefaultModifier=112]="ExportSupportsDefaultModifier",T[T.ExportDoesNotSupportDefaultModifier=-113]="ExportDoesNotSupportDefaultModifier",T[T.Classifiable=2885600]="Classifiable",T[T.LateBindingContainer=6256]="LateBindingContainer",(C=e.EnumKind||(e.EnumKind={}))[C.Numeric=0]="Numeric",C[C.Literal=1]="Literal",(D=e.CheckFlags||(e.CheckFlags={}))[D.Instantiated=1]="Instantiated",D[D.SyntheticProperty=2]="SyntheticProperty",D[D.SyntheticMethod=4]="SyntheticMethod",D[D.Readonly=8]="Readonly",D[D.ReadPartial=16]="ReadPartial",D[D.WritePartial=32]="WritePartial",D[D.HasNonUniformType=64]="HasNonUniformType",D[D.HasLiteralType=128]="HasLiteralType",D[D.ContainsPublic=256]="ContainsPublic",D[D.ContainsProtected=512]="ContainsProtected",D[D.ContainsPrivate=1024]="ContainsPrivate",D[D.ContainsStatic=2048]="ContainsStatic",D[D.Late=4096]="Late",D[D.ReverseMapped=8192]="ReverseMapped",D[D.OptionalParameter=16384]="OptionalParameter",D[D.RestParameter=32768]="RestParameter",D[D.DeferredType=65536]="DeferredType",D[D.HasNeverType=131072]="HasNeverType",D[D.Mapped=262144]="Mapped",D[D.StripOptional=524288]="StripOptional",D[D.Unresolved=1048576]="Unresolved",D[D.Synthetic=6]="Synthetic",D[D.Discriminant=192]="Discriminant",D[D.Partial=48]="Partial",(L=e.InternalSymbolName||(e.InternalSymbolName={})).Call="__call",L.Constructor="__constructor",L.New="__new",L.Index="__index",L.ExportStar="__export",L.Global="__global",L.Missing="__missing",L.Type="__type",L.Object="__object",L.JSXAttributes="__jsxAttributes",L.Class="__class",L.Function="__function",L.Computed="__computed",L.Resolving="__resolving__",L.ExportEquals="export=",L.Default="default",L.This="this",(A=e.NodeCheckFlags||(e.NodeCheckFlags={}))[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.MethodWithSuperPropertyAccessInAsync=2048]="MethodWithSuperPropertyAccessInAsync",A[A.MethodWithSuperPropertyAssignmentInAsync=4096]="MethodWithSuperPropertyAssignmentInAsync",A[A.CaptureArguments=8192]="CaptureArguments",A[A.EnumValuesComputed=16384]="EnumValuesComputed",A[A.LexicalModuleMergesWithClass=32768]="LexicalModuleMergesWithClass",A[A.LoopWithCapturedBlockScopedBinding=65536]="LoopWithCapturedBlockScopedBinding",A[A.ContainsCapturedBlockScopeBinding=131072]="ContainsCapturedBlockScopeBinding",A[A.CapturedBlockScopedBinding=262144]="CapturedBlockScopedBinding",A[A.BlockScopedBindingInLoop=524288]="BlockScopedBindingInLoop",A[A.ClassWithBodyScopedClassBinding=1048576]="ClassWithBodyScopedClassBinding",A[A.BodyScopedClassBinding=2097152]="BodyScopedClassBinding",A[A.NeedsLoopOutParameter=4194304]="NeedsLoopOutParameter",A[A.AssignmentsMarked=8388608]="AssignmentsMarked",A[A.ClassWithConstructorReference=16777216]="ClassWithConstructorReference",A[A.ConstructorReferenceInClass=33554432]="ConstructorReferenceInClass",A[A.ContainsClassWithPrivateIdentifiers=67108864]="ContainsClassWithPrivateIdentifiers",A[A.ContainsSuperPropertyInStaticInitializer=134217728]="ContainsSuperPropertyInStaticInitializer",A[A.InCheckIdentifier=268435456]="InCheckIdentifier",(N=e.TypeFlags||(e.TypeFlags={}))[N.Any=1]="Any",N[N.Unknown=2]="Unknown",N[N.String=4]="String",N[N.Number=8]="Number",N[N.Boolean=16]="Boolean",N[N.Enum=32]="Enum",N[N.BigInt=64]="BigInt",N[N.StringLiteral=128]="StringLiteral",N[N.NumberLiteral=256]="NumberLiteral",N[N.BooleanLiteral=512]="BooleanLiteral",N[N.EnumLiteral=1024]="EnumLiteral",N[N.BigIntLiteral=2048]="BigIntLiteral",N[N.ESSymbol=4096]="ESSymbol",N[N.UniqueESSymbol=8192]="UniqueESSymbol",N[N.Void=16384]="Void",N[N.Undefined=32768]="Undefined",N[N.Null=65536]="Null",N[N.Never=131072]="Never",N[N.TypeParameter=262144]="TypeParameter",N[N.Object=524288]="Object",N[N.Union=1048576]="Union",N[N.Intersection=2097152]="Intersection",N[N.Index=4194304]="Index",N[N.IndexedAccess=8388608]="IndexedAccess",N[N.Conditional=16777216]="Conditional",N[N.Substitution=33554432]="Substitution",N[N.NonPrimitive=67108864]="NonPrimitive",N[N.TemplateLiteral=134217728]="TemplateLiteral",N[N.StringMapping=268435456]="StringMapping",N[N.AnyOrUnknown=3]="AnyOrUnknown",N[N.Nullable=98304]="Nullable",N[N.Literal=2944]="Literal",N[N.Unit=109440]="Unit",N[N.StringOrNumberLiteral=384]="StringOrNumberLiteral",N[N.StringOrNumberLiteralOrUnique=8576]="StringOrNumberLiteralOrUnique",N[N.DefinitelyFalsy=117632]="DefinitelyFalsy",N[N.PossiblyFalsy=117724]="PossiblyFalsy",N[N.Intrinsic=67359327]="Intrinsic",N[N.Primitive=131068]="Primitive",N[N.StringLike=402653316]="StringLike",N[N.NumberLike=296]="NumberLike",N[N.BigIntLike=2112]="BigIntLike",N[N.BooleanLike=528]="BooleanLike",N[N.EnumLike=1056]="EnumLike",N[N.ESSymbolLike=12288]="ESSymbolLike",N[N.VoidLike=49152]="VoidLike",N[N.DefinitelyNonNullable=470302716]="DefinitelyNonNullable",N[N.DisjointDomains=469892092]="DisjointDomains",N[N.UnionOrIntersection=3145728]="UnionOrIntersection",N[N.StructuredType=3670016]="StructuredType",N[N.TypeVariable=8650752]="TypeVariable",N[N.InstantiableNonPrimitive=58982400]="InstantiableNonPrimitive",N[N.InstantiablePrimitive=406847488]="InstantiablePrimitive",N[N.Instantiable=465829888]="Instantiable",N[N.StructuredOrInstantiable=469499904]="StructuredOrInstantiable",N[N.ObjectFlagsType=3899393]="ObjectFlagsType",N[N.Simplifiable=25165824]="Simplifiable",N[N.Singleton=67358815]="Singleton",N[N.Narrowable=536624127]="Narrowable",N[N.IncludesMask=205258751]="IncludesMask",N[N.IncludesMissingType=262144]="IncludesMissingType",N[N.IncludesNonWideningType=4194304]="IncludesNonWideningType",N[N.IncludesWildcard=8388608]="IncludesWildcard",N[N.IncludesEmptyObject=16777216]="IncludesEmptyObject",N[N.IncludesInstantiable=33554432]="IncludesInstantiable",N[N.NotPrimitiveUnion=36323363]="NotPrimitiveUnion",(k=e.ObjectFlags||(e.ObjectFlags={}))[k.Class=1]="Class",k[k.Interface=2]="Interface",k[k.Reference=4]="Reference",k[k.Tuple=8]="Tuple",k[k.Anonymous=16]="Anonymous",k[k.Mapped=32]="Mapped",k[k.Instantiated=64]="Instantiated",k[k.ObjectLiteral=128]="ObjectLiteral",k[k.EvolvingArray=256]="EvolvingArray",k[k.ObjectLiteralPatternWithComputedProperties=512]="ObjectLiteralPatternWithComputedProperties",k[k.ReverseMapped=1024]="ReverseMapped",k[k.JsxAttributes=2048]="JsxAttributes",k[k.JSLiteral=4096]="JSLiteral",k[k.FreshLiteral=8192]="FreshLiteral",k[k.ArrayLiteral=16384]="ArrayLiteral",k[k.PrimitiveUnion=32768]="PrimitiveUnion",k[k.ContainsWideningType=65536]="ContainsWideningType",k[k.ContainsObjectOrArrayLiteral=131072]="ContainsObjectOrArrayLiteral",k[k.NonInferrableType=262144]="NonInferrableType",k[k.CouldContainTypeVariablesComputed=524288]="CouldContainTypeVariablesComputed",k[k.CouldContainTypeVariables=1048576]="CouldContainTypeVariables",k[k.ClassOrInterface=3]="ClassOrInterface",k[k.RequiresWidening=196608]="RequiresWidening",k[k.PropagatingFlags=458752]="PropagatingFlags",k[k.ObjectTypeKindMask=1343]="ObjectTypeKindMask",k[k.ContainsSpread=2097152]="ContainsSpread",k[k.ObjectRestType=4194304]="ObjectRestType",k[k.InstantiationExpressionType=8388608]="InstantiationExpressionType",k[k.IsClassInstanceClone=16777216]="IsClassInstanceClone",k[k.IdenticalBaseTypeCalculated=33554432]="IdenticalBaseTypeCalculated",k[k.IdenticalBaseTypeExists=67108864]="IdenticalBaseTypeExists",k[k.IsGenericTypeComputed=2097152]="IsGenericTypeComputed",k[k.IsGenericObjectType=4194304]="IsGenericObjectType",k[k.IsGenericIndexType=8388608]="IsGenericIndexType",k[k.IsGenericType=12582912]="IsGenericType",k[k.ContainsIntersections=16777216]="ContainsIntersections",k[k.IsUnknownLikeUnionComputed=33554432]="IsUnknownLikeUnionComputed",k[k.IsUnknownLikeUnion=67108864]="IsUnknownLikeUnion",k[k.IsNeverIntersectionComputed=16777216]="IsNeverIntersectionComputed",k[k.IsNeverIntersection=33554432]="IsNeverIntersection",(I=e.VarianceFlags||(e.VarianceFlags={}))[I.Invariant=0]="Invariant",I[I.Covariant=1]="Covariant",I[I.Contravariant=2]="Contravariant",I[I.Bivariant=3]="Bivariant",I[I.Independent=4]="Independent",I[I.VarianceMask=7]="VarianceMask",I[I.Unmeasurable=8]="Unmeasurable",I[I.Unreliable=16]="Unreliable",I[I.AllowsStructuralFallback=24]="AllowsStructuralFallback",(P=e.ElementFlags||(e.ElementFlags={}))[P.Required=1]="Required",P[P.Optional=2]="Optional",P[P.Rest=4]="Rest",P[P.Variadic=8]="Variadic",P[P.Fixed=3]="Fixed",P[P.Variable=12]="Variable",P[P.NonRequired=14]="NonRequired",P[P.NonRest=11]="NonRest",(w=e.AccessFlags||(e.AccessFlags={}))[w.None=0]="None",w[w.IncludeUndefined=1]="IncludeUndefined",w[w.NoIndexSignatures=2]="NoIndexSignatures",w[w.Writing=4]="Writing",w[w.CacheSymbol=8]="CacheSymbol",w[w.NoTupleBoundsCheck=16]="NoTupleBoundsCheck",w[w.ExpressionPosition=32]="ExpressionPosition",w[w.ReportDeprecated=64]="ReportDeprecated",w[w.SuppressNoImplicitAnyError=128]="SuppressNoImplicitAnyError",w[w.Contextual=256]="Contextual",w[w.Persistent=1]="Persistent",(O=e.JsxReferenceKind||(e.JsxReferenceKind={}))[O.Component=0]="Component",O[O.Function=1]="Function",O[O.Mixed=2]="Mixed",(R=e.SignatureKind||(e.SignatureKind={}))[R.Call=0]="Call",R[R.Construct=1]="Construct",(M=e.SignatureFlags||(e.SignatureFlags={}))[M.None=0]="None",M[M.HasRestParameter=1]="HasRestParameter",M[M.HasLiteralTypes=2]="HasLiteralTypes",M[M.Abstract=4]="Abstract",M[M.IsInnerCallChain=8]="IsInnerCallChain",M[M.IsOuterCallChain=16]="IsOuterCallChain",M[M.IsUntypedSignatureInJSFile=32]="IsUntypedSignatureInJSFile",M[M.PropagatingFlags=39]="PropagatingFlags",M[M.CallChainFlags=24]="CallChainFlags",(F=e.IndexKind||(e.IndexKind={}))[F.String=0]="String",F[F.Number=1]="Number",(G=e.TypeMapKind||(e.TypeMapKind={}))[G.Simple=0]="Simple",G[G.Array=1]="Array",G[G.Deferred=2]="Deferred",G[G.Function=3]="Function",G[G.Composite=4]="Composite",G[G.Merged=5]="Merged",(B=e.InferencePriority||(e.InferencePriority={}))[B.NakedTypeVariable=1]="NakedTypeVariable",B[B.SpeculativeTuple=2]="SpeculativeTuple",B[B.SubstituteSource=4]="SubstituteSource",B[B.HomomorphicMappedType=8]="HomomorphicMappedType",B[B.PartialHomomorphicMappedType=16]="PartialHomomorphicMappedType",B[B.MappedTypeConstraint=32]="MappedTypeConstraint",B[B.ContravariantConditional=64]="ContravariantConditional",B[B.ReturnType=128]="ReturnType",B[B.LiteralKeyof=256]="LiteralKeyof",B[B.NoConstraints=512]="NoConstraints",B[B.AlwaysStrict=1024]="AlwaysStrict",B[B.MaxValue=2048]="MaxValue",B[B.PriorityImpliesCombination=416]="PriorityImpliesCombination",B[B.Circularity=-1]="Circularity",(U=e.InferenceFlags||(e.InferenceFlags={}))[U.None=0]="None",U[U.NoDefault=1]="NoDefault",U[U.AnyDefault=2]="AnyDefault",U[U.SkippedGenericFunction=4]="SkippedGenericFunction",(V=e.Ternary||(e.Ternary={}))[V.False=0]="False",V[V.Unknown=1]="Unknown",V[V.Maybe=3]="Maybe",V[V.True=-1]="True",(K=e.AssignmentDeclarationKind||(e.AssignmentDeclarationKind={}))[K.None=0]="None",K[K.ExportsProperty=1]="ExportsProperty",K[K.ModuleExports=2]="ModuleExports",K[K.PrototypeProperty=3]="PrototypeProperty",K[K.ThisProperty=4]="ThisProperty",K[K.Property=5]="Property",K[K.Prototype=6]="Prototype",K[K.ObjectDefinePropertyValue=7]="ObjectDefinePropertyValue",K[K.ObjectDefinePropertyExports=8]="ObjectDefinePropertyExports",K[K.ObjectDefinePrototypeProperty=9]="ObjectDefinePrototypeProperty",function(e){e[e.Warning=0]="Warning",e[e.Error=1]="Error",e[e.Suggestion=2]="Suggestion",e[e.Message=3]="Message"}(j=e.DiagnosticCategory||(e.DiagnosticCategory={})),e.diagnosticCategoryName=function(e,t){void 0===t&&(t=!0);var n=j[e.category];return t?n.toLowerCase():n},(H=e.ModuleResolutionKind||(e.ModuleResolutionKind={}))[H.Classic=1]="Classic",H[H.NodeJs=2]="NodeJs",H[H.Node16=3]="Node16",H[H.NodeNext=99]="NodeNext",(W=e.ModuleDetectionKind||(e.ModuleDetectionKind={}))[W.Legacy=1]="Legacy",W[W.Auto=2]="Auto",W[W.Force=3]="Force",($=e.WatchFileKind||(e.WatchFileKind={}))[$.FixedPollingInterval=0]="FixedPollingInterval",$[$.PriorityPollingInterval=1]="PriorityPollingInterval",$[$.DynamicPriorityPolling=2]="DynamicPriorityPolling",$[$.FixedChunkSizePolling=3]="FixedChunkSizePolling",$[$.UseFsEvents=4]="UseFsEvents",$[$.UseFsEventsOnParentDirectory=5]="UseFsEventsOnParentDirectory",(q=e.WatchDirectoryKind||(e.WatchDirectoryKind={}))[q.UseFsEvents=0]="UseFsEvents",q[q.FixedPollingInterval=1]="FixedPollingInterval",q[q.DynamicPriorityPolling=2]="DynamicPriorityPolling",q[q.FixedChunkSizePolling=3]="FixedChunkSizePolling",(z=e.PollingWatchKind||(e.PollingWatchKind={}))[z.FixedInterval=0]="FixedInterval",z[z.PriorityInterval=1]="PriorityInterval",z[z.DynamicPriority=2]="DynamicPriority",z[z.FixedChunkSize=3]="FixedChunkSize",(J=e.ModuleKind||(e.ModuleKind={}))[J.None=0]="None",J[J.CommonJS=1]="CommonJS",J[J.AMD=2]="AMD",J[J.UMD=3]="UMD",J[J.System=4]="System",J[J.ES2015=5]="ES2015",J[J.ES2020=6]="ES2020",J[J.ES2022=7]="ES2022",J[J.ESNext=99]="ESNext",J[J.Node16=100]="Node16",J[J.NodeNext=199]="NodeNext",(X=e.JsxEmit||(e.JsxEmit={}))[X.None=0]="None",X[X.Preserve=1]="Preserve",X[X.React=2]="React",X[X.ReactNative=3]="ReactNative",X[X.ReactJSX=4]="ReactJSX",X[X.ReactJSXDev=5]="ReactJSXDev",(Y=e.ImportsNotUsedAsValues||(e.ImportsNotUsedAsValues={}))[Y.Remove=0]="Remove",Y[Y.Preserve=1]="Preserve",Y[Y.Error=2]="Error",(Q=e.NewLineKind||(e.NewLineKind={}))[Q.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",Q[Q.LineFeed=1]="LineFeed",(Z=e.ScriptKind||(e.ScriptKind={}))[Z.Unknown=0]="Unknown",Z[Z.JS=1]="JS",Z[Z.JSX=2]="JSX",Z[Z.TS=3]="TS",Z[Z.TSX=4]="TSX",Z[Z.External=5]="External",Z[Z.JSON=6]="JSON",Z[Z.Deferred=7]="Deferred",(ee=e.ScriptTarget||(e.ScriptTarget={}))[ee.ES3=0]="ES3",ee[ee.ES5=1]="ES5",ee[ee.ES2015=2]="ES2015",ee[ee.ES2016=3]="ES2016",ee[ee.ES2017=4]="ES2017",ee[ee.ES2018=5]="ES2018",ee[ee.ES2019=6]="ES2019",ee[ee.ES2020=7]="ES2020",ee[ee.ES2021=8]="ES2021",ee[ee.ES2022=9]="ES2022",ee[ee.ESNext=99]="ESNext",ee[ee.JSON=100]="JSON",ee[ee.Latest=99]="Latest",(te=e.LanguageVariant||(e.LanguageVariant={}))[te.Standard=0]="Standard",te[te.JSX=1]="JSX",(ne=e.WatchDirectoryFlags||(e.WatchDirectoryFlags={}))[ne.None=0]="None",ne[ne.Recursive=1]="Recursive",(re=e.CharacterCodes||(e.CharacterCodes={}))[re.nullCharacter=0]="nullCharacter",re[re.maxAsciiCharacter=127]="maxAsciiCharacter",re[re.lineFeed=10]="lineFeed",re[re.carriageReturn=13]="carriageReturn",re[re.lineSeparator=8232]="lineSeparator",re[re.paragraphSeparator=8233]="paragraphSeparator",re[re.nextLine=133]="nextLine",re[re.space=32]="space",re[re.nonBreakingSpace=160]="nonBreakingSpace",re[re.enQuad=8192]="enQuad",re[re.emQuad=8193]="emQuad",re[re.enSpace=8194]="enSpace",re[re.emSpace=8195]="emSpace",re[re.threePerEmSpace=8196]="threePerEmSpace",re[re.fourPerEmSpace=8197]="fourPerEmSpace",re[re.sixPerEmSpace=8198]="sixPerEmSpace",re[re.figureSpace=8199]="figureSpace",re[re.punctuationSpace=8200]="punctuationSpace",re[re.thinSpace=8201]="thinSpace",re[re.hairSpace=8202]="hairSpace",re[re.zeroWidthSpace=8203]="zeroWidthSpace",re[re.narrowNoBreakSpace=8239]="narrowNoBreakSpace",re[re.ideographicSpace=12288]="ideographicSpace",re[re.mathematicalSpace=8287]="mathematicalSpace",re[re.ogham=5760]="ogham",re[re._=95]="_",re[re.$=36]="$",re[re._0=48]="_0",re[re._1=49]="_1",re[re._2=50]="_2",re[re._3=51]="_3",re[re._4=52]="_4",re[re._5=53]="_5",re[re._6=54]="_6",re[re._7=55]="_7",re[re._8=56]="_8",re[re._9=57]="_9",re[re.a=97]="a",re[re.b=98]="b",re[re.c=99]="c",re[re.d=100]="d",re[re.e=101]="e",re[re.f=102]="f",re[re.g=103]="g",re[re.h=104]="h",re[re.i=105]="i",re[re.j=106]="j",re[re.k=107]="k",re[re.l=108]="l",re[re.m=109]="m",re[re.n=110]="n",re[re.o=111]="o",re[re.p=112]="p",re[re.q=113]="q",re[re.r=114]="r",re[re.s=115]="s",re[re.t=116]="t",re[re.u=117]="u",re[re.v=118]="v",re[re.w=119]="w",re[re.x=120]="x",re[re.y=121]="y",re[re.z=122]="z",re[re.A=65]="A",re[re.B=66]="B",re[re.C=67]="C",re[re.D=68]="D",re[re.E=69]="E",re[re.F=70]="F",re[re.G=71]="G",re[re.H=72]="H",re[re.I=73]="I",re[re.J=74]="J",re[re.K=75]="K",re[re.L=76]="L",re[re.M=77]="M",re[re.N=78]="N",re[re.O=79]="O",re[re.P=80]="P",re[re.Q=81]="Q",re[re.R=82]="R",re[re.S=83]="S",re[re.T=84]="T",re[re.U=85]="U",re[re.V=86]="V",re[re.W=87]="W",re[re.X=88]="X",re[re.Y=89]="Y",re[re.Z=90]="Z",re[re.ampersand=38]="ampersand",re[re.asterisk=42]="asterisk",re[re.at=64]="at",re[re.backslash=92]="backslash",re[re.backtick=96]="backtick",re[re.bar=124]="bar",re[re.caret=94]="caret",re[re.closeBrace=125]="closeBrace",re[re.closeBracket=93]="closeBracket",re[re.closeParen=41]="closeParen",re[re.colon=58]="colon",re[re.comma=44]="comma",re[re.dot=46]="dot",re[re.doubleQuote=34]="doubleQuote",re[re.equals=61]="equals",re[re.exclamation=33]="exclamation",re[re.greaterThan=62]="greaterThan",re[re.hash=35]="hash",re[re.lessThan=60]="lessThan",re[re.minus=45]="minus",re[re.openBrace=123]="openBrace",re[re.openBracket=91]="openBracket",re[re.openParen=40]="openParen",re[re.percent=37]="percent",re[re.plus=43]="plus",re[re.question=63]="question",re[re.semicolon=59]="semicolon",re[re.singleQuote=39]="singleQuote",re[re.slash=47]="slash",re[re.tilde=126]="tilde",re[re.backspace=8]="backspace",re[re.formFeed=12]="formFeed",re[re.byteOrderMark=65279]="byteOrderMark",re[re.tab=9]="tab",re[re.verticalTab=11]="verticalTab",(ie=e.Extension||(e.Extension={})).Ts=".ts",ie.Tsx=".tsx",ie.Dts=".d.ts",ie.Js=".js",ie.Jsx=".jsx",ie.Json=".json",ie.TsBuildInfo=".tsbuildinfo",ie.Mjs=".mjs",ie.Mts=".mts",ie.Dmts=".d.mts",ie.Cjs=".cjs",ie.Cts=".cts",ie.Dcts=".d.cts",(ae=e.TransformFlags||(e.TransformFlags={}))[ae.None=0]="None",ae[ae.ContainsTypeScript=1]="ContainsTypeScript",ae[ae.ContainsJsx=2]="ContainsJsx",ae[ae.ContainsESNext=4]="ContainsESNext",ae[ae.ContainsES2022=8]="ContainsES2022",ae[ae.ContainsES2021=16]="ContainsES2021",ae[ae.ContainsES2020=32]="ContainsES2020",ae[ae.ContainsES2019=64]="ContainsES2019",ae[ae.ContainsES2018=128]="ContainsES2018",ae[ae.ContainsES2017=256]="ContainsES2017",ae[ae.ContainsES2016=512]="ContainsES2016",ae[ae.ContainsES2015=1024]="ContainsES2015",ae[ae.ContainsGenerator=2048]="ContainsGenerator",ae[ae.ContainsDestructuringAssignment=4096]="ContainsDestructuringAssignment",ae[ae.ContainsTypeScriptClassSyntax=8192]="ContainsTypeScriptClassSyntax",ae[ae.ContainsLexicalThis=16384]="ContainsLexicalThis",ae[ae.ContainsRestOrSpread=32768]="ContainsRestOrSpread",ae[ae.ContainsObjectRestOrSpread=65536]="ContainsObjectRestOrSpread",ae[ae.ContainsComputedPropertyName=131072]="ContainsComputedPropertyName",ae[ae.ContainsBlockScopedBinding=262144]="ContainsBlockScopedBinding",ae[ae.ContainsBindingPattern=524288]="ContainsBindingPattern",ae[ae.ContainsYield=1048576]="ContainsYield",ae[ae.ContainsAwait=2097152]="ContainsAwait",ae[ae.ContainsHoistedDeclarationOrCompletion=4194304]="ContainsHoistedDeclarationOrCompletion",ae[ae.ContainsDynamicImport=8388608]="ContainsDynamicImport",ae[ae.ContainsClassFields=16777216]="ContainsClassFields",ae[ae.ContainsDecorators=33554432]="ContainsDecorators",ae[ae.ContainsPossibleTopLevelAwait=67108864]="ContainsPossibleTopLevelAwait",ae[ae.ContainsLexicalSuper=134217728]="ContainsLexicalSuper",ae[ae.ContainsUpdateExpressionForIdentifier=268435456]="ContainsUpdateExpressionForIdentifier",ae[ae.ContainsPrivateIdentifierInExpression=536870912]="ContainsPrivateIdentifierInExpression",ae[ae.HasComputedFlags=-2147483648]="HasComputedFlags",ae[ae.AssertTypeScript=1]="AssertTypeScript",ae[ae.AssertJsx=2]="AssertJsx",ae[ae.AssertESNext=4]="AssertESNext",ae[ae.AssertES2022=8]="AssertES2022",ae[ae.AssertES2021=16]="AssertES2021",ae[ae.AssertES2020=32]="AssertES2020",ae[ae.AssertES2019=64]="AssertES2019",ae[ae.AssertES2018=128]="AssertES2018",ae[ae.AssertES2017=256]="AssertES2017",ae[ae.AssertES2016=512]="AssertES2016",ae[ae.AssertES2015=1024]="AssertES2015",ae[ae.AssertGenerator=2048]="AssertGenerator",ae[ae.AssertDestructuringAssignment=4096]="AssertDestructuringAssignment",ae[ae.OuterExpressionExcludes=-2147483648]="OuterExpressionExcludes",ae[ae.PropertyAccessExcludes=-2147483648]="PropertyAccessExcludes",ae[ae.NodeExcludes=-2147483648]="NodeExcludes",ae[ae.ArrowFunctionExcludes=-2072174592]="ArrowFunctionExcludes",ae[ae.FunctionExcludes=-1937940480]="FunctionExcludes",ae[ae.ConstructorExcludes=-1937948672]="ConstructorExcludes",ae[ae.MethodOrAccessorExcludes=-2005057536]="MethodOrAccessorExcludes",ae[ae.PropertyExcludes=-2013249536]="PropertyExcludes",ae[ae.ClassExcludes=-2147344384]="ClassExcludes",ae[ae.ModuleExcludes=-1941676032]="ModuleExcludes",ae[ae.TypeExcludes=-2]="TypeExcludes",ae[ae.ObjectLiteralExcludes=-2147278848]="ObjectLiteralExcludes",ae[ae.ArrayLiteralOrCallOrNewExcludes=-2147450880]="ArrayLiteralOrCallOrNewExcludes",ae[ae.VariableDeclarationListExcludes=-2146893824]="VariableDeclarationListExcludes",ae[ae.ParameterExcludes=-2147483648]="ParameterExcludes",ae[ae.CatchClauseExcludes=-2147418112]="CatchClauseExcludes",ae[ae.BindingPatternExcludes=-2147450880]="BindingPatternExcludes",ae[ae.ContainsLexicalThisOrSuper=134234112]="ContainsLexicalThisOrSuper",ae[ae.PropertyNamePropagatingFlags=134234112]="PropertyNamePropagatingFlags",(oe=e.SnippetKind||(e.SnippetKind={}))[oe.TabStop=0]="TabStop",oe[oe.Placeholder=1]="Placeholder",oe[oe.Choice=2]="Choice",oe[oe.Variable=3]="Variable",(se=e.EmitFlags||(e.EmitFlags={}))[se.None=0]="None",se[se.SingleLine=1]="SingleLine",se[se.AdviseOnEmitNode=2]="AdviseOnEmitNode",se[se.NoSubstitution=4]="NoSubstitution",se[se.CapturesThis=8]="CapturesThis",se[se.NoLeadingSourceMap=16]="NoLeadingSourceMap",se[se.NoTrailingSourceMap=32]="NoTrailingSourceMap",se[se.NoSourceMap=48]="NoSourceMap",se[se.NoNestedSourceMaps=64]="NoNestedSourceMaps",se[se.NoTokenLeadingSourceMaps=128]="NoTokenLeadingSourceMaps",se[se.NoTokenTrailingSourceMaps=256]="NoTokenTrailingSourceMaps",se[se.NoTokenSourceMaps=384]="NoTokenSourceMaps",se[se.NoLeadingComments=512]="NoLeadingComments",se[se.NoTrailingComments=1024]="NoTrailingComments",se[se.NoComments=1536]="NoComments",se[se.NoNestedComments=2048]="NoNestedComments",se[se.HelperName=4096]="HelperName",se[se.ExportName=8192]="ExportName",se[se.LocalName=16384]="LocalName",se[se.InternalName=32768]="InternalName",se[se.Indented=65536]="Indented",se[se.NoIndentation=131072]="NoIndentation",se[se.AsyncFunctionBody=262144]="AsyncFunctionBody",se[se.ReuseTempVariableScope=524288]="ReuseTempVariableScope",se[se.CustomPrologue=1048576]="CustomPrologue",se[se.NoHoisting=2097152]="NoHoisting",se[se.HasEndOfDeclarationMarker=4194304]="HasEndOfDeclarationMarker",se[se.Iterator=8388608]="Iterator",se[se.NoAsciiEscaping=16777216]="NoAsciiEscaping",se[se.TypeScriptClassWrapper=33554432]="TypeScriptClassWrapper",se[se.NeverApplyImportHelper=67108864]="NeverApplyImportHelper",se[se.IgnoreSourceNewlines=134217728]="IgnoreSourceNewlines",se[se.Immutable=268435456]="Immutable",se[se.IndirectCall=536870912]="IndirectCall",(ce=e.ExternalEmitHelpers||(e.ExternalEmitHelpers={}))[ce.Extends=1]="Extends",ce[ce.Assign=2]="Assign",ce[ce.Rest=4]="Rest",ce[ce.Decorate=8]="Decorate",ce[ce.Metadata=16]="Metadata",ce[ce.Param=32]="Param",ce[ce.Awaiter=64]="Awaiter",ce[ce.Generator=128]="Generator",ce[ce.Values=256]="Values",ce[ce.Read=512]="Read",ce[ce.SpreadArray=1024]="SpreadArray",ce[ce.Await=2048]="Await",ce[ce.AsyncGenerator=4096]="AsyncGenerator",ce[ce.AsyncDelegator=8192]="AsyncDelegator",ce[ce.AsyncValues=16384]="AsyncValues",ce[ce.ExportStar=32768]="ExportStar",ce[ce.ImportStar=65536]="ImportStar",ce[ce.ImportDefault=131072]="ImportDefault",ce[ce.MakeTemplateObject=262144]="MakeTemplateObject",ce[ce.ClassPrivateFieldGet=524288]="ClassPrivateFieldGet",ce[ce.ClassPrivateFieldSet=1048576]="ClassPrivateFieldSet",ce[ce.ClassPrivateFieldIn=2097152]="ClassPrivateFieldIn",ce[ce.CreateBinding=4194304]="CreateBinding",ce[ce.FirstEmitHelper=1]="FirstEmitHelper",ce[ce.LastEmitHelper=4194304]="LastEmitHelper",ce[ce.ForOfIncludes=256]="ForOfIncludes",ce[ce.ForAwaitOfIncludes=16384]="ForAwaitOfIncludes",ce[ce.AsyncGeneratorIncludes=6144]="AsyncGeneratorIncludes",ce[ce.AsyncDelegatorIncludes=26624]="AsyncDelegatorIncludes",ce[ce.SpreadIncludes=1536]="SpreadIncludes",(le=e.EmitHint||(e.EmitHint={}))[le.SourceFile=0]="SourceFile",le[le.Expression=1]="Expression",le[le.IdentifierName=2]="IdentifierName",le[le.MappedTypeParameter=3]="MappedTypeParameter",le[le.Unspecified=4]="Unspecified",le[le.EmbeddedStatement=5]="EmbeddedStatement",le[le.JsxAttributeValue=6]="JsxAttributeValue",(ue=e.OuterExpressionKinds||(e.OuterExpressionKinds={}))[ue.Parentheses=1]="Parentheses",ue[ue.TypeAssertions=2]="TypeAssertions",ue[ue.NonNullAssertions=4]="NonNullAssertions",ue[ue.PartiallyEmittedExpressions=8]="PartiallyEmittedExpressions",ue[ue.Assertions=6]="Assertions",ue[ue.All=15]="All",ue[ue.ExcludeJSDocTypeAssertion=16]="ExcludeJSDocTypeAssertion",(de=e.LexicalEnvironmentFlags||(e.LexicalEnvironmentFlags={}))[de.None=0]="None",de[de.InParameters=1]="InParameters",de[de.VariablesHoistedInParameters=2]="VariablesHoistedInParameters",(pe=e.BundleFileSectionKind||(e.BundleFileSectionKind={})).Prologue="prologue",pe.EmitHelpers="emitHelpers",pe.NoDefaultLib="no-default-lib",pe.Reference="reference",pe.Type="type",pe.TypeResolutionModeRequire="type-require",pe.TypeResolutionModeImport="type-import",pe.Lib="lib",pe.Prepend="prepend",pe.Text="text",pe.Internal="internal",(me=e.ListFormat||(e.ListFormat={}))[me.None=0]="None",me[me.SingleLine=0]="SingleLine",me[me.MultiLine=1]="MultiLine",me[me.PreserveLines=2]="PreserveLines",me[me.LinesMask=3]="LinesMask",me[me.NotDelimited=0]="NotDelimited",me[me.BarDelimited=4]="BarDelimited",me[me.AmpersandDelimited=8]="AmpersandDelimited",me[me.CommaDelimited=16]="CommaDelimited",me[me.AsteriskDelimited=32]="AsteriskDelimited",me[me.DelimitersMask=60]="DelimitersMask",me[me.AllowTrailingComma=64]="AllowTrailingComma",me[me.Indented=128]="Indented",me[me.SpaceBetweenBraces=256]="SpaceBetweenBraces",me[me.SpaceBetweenSiblings=512]="SpaceBetweenSiblings",me[me.Braces=1024]="Braces",me[me.Parenthesis=2048]="Parenthesis",me[me.AngleBrackets=4096]="AngleBrackets",me[me.SquareBrackets=8192]="SquareBrackets",me[me.BracketsMask=15360]="BracketsMask",me[me.OptionalIfUndefined=16384]="OptionalIfUndefined",me[me.OptionalIfEmpty=32768]="OptionalIfEmpty",me[me.Optional=49152]="Optional",me[me.PreferNewLine=65536]="PreferNewLine",me[me.NoTrailingNewLine=131072]="NoTrailingNewLine",me[me.NoInterveningComments=262144]="NoInterveningComments",me[me.NoSpaceIfEmpty=524288]="NoSpaceIfEmpty",me[me.SingleElement=1048576]="SingleElement",me[me.SpaceAfterList=2097152]="SpaceAfterList",me[me.Modifiers=2359808]="Modifiers",me[me.HeritageClauses=512]="HeritageClauses",me[me.SingleLineTypeLiteralMembers=768]="SingleLineTypeLiteralMembers",me[me.MultiLineTypeLiteralMembers=32897]="MultiLineTypeLiteralMembers",me[me.SingleLineTupleTypeElements=528]="SingleLineTupleTypeElements",me[me.MultiLineTupleTypeElements=657]="MultiLineTupleTypeElements",me[me.UnionTypeConstituents=516]="UnionTypeConstituents",me[me.IntersectionTypeConstituents=520]="IntersectionTypeConstituents",me[me.ObjectBindingPatternElements=525136]="ObjectBindingPatternElements",me[me.ArrayBindingPatternElements=524880]="ArrayBindingPatternElements",me[me.ObjectLiteralExpressionProperties=526226]="ObjectLiteralExpressionProperties",me[me.ImportClauseEntries=526226]="ImportClauseEntries",me[me.ArrayLiteralExpressionElements=8914]="ArrayLiteralExpressionElements",me[me.CommaListElements=528]="CommaListElements",me[me.CallExpressionArguments=2576]="CallExpressionArguments",me[me.NewExpressionArguments=18960]="NewExpressionArguments",me[me.TemplateExpressionSpans=262144]="TemplateExpressionSpans",me[me.SingleLineBlockStatements=768]="SingleLineBlockStatements",me[me.MultiLineBlockStatements=129]="MultiLineBlockStatements",me[me.VariableDeclarationList=528]="VariableDeclarationList",me[me.SingleLineFunctionBodyStatements=768]="SingleLineFunctionBodyStatements",me[me.MultiLineFunctionBodyStatements=1]="MultiLineFunctionBodyStatements",me[me.ClassHeritageClauses=0]="ClassHeritageClauses",me[me.ClassMembers=129]="ClassMembers",me[me.InterfaceMembers=129]="InterfaceMembers",me[me.EnumMembers=145]="EnumMembers",me[me.CaseBlockClauses=129]="CaseBlockClauses",me[me.NamedImportsOrExportsElements=525136]="NamedImportsOrExportsElements",me[me.JsxElementOrFragmentChildren=262144]="JsxElementOrFragmentChildren",me[me.JsxElementAttributes=262656]="JsxElementAttributes",me[me.CaseOrDefaultClauseStatements=163969]="CaseOrDefaultClauseStatements",me[me.HeritageClauseTypes=528]="HeritageClauseTypes",me[me.SourceFileStatements=131073]="SourceFileStatements",me[me.Decorators=2146305]="Decorators",me[me.TypeArguments=53776]="TypeArguments",me[me.TypeParameters=53776]="TypeParameters",me[me.Parameters=2576]="Parameters",me[me.IndexSignatureParameters=8848]="IndexSignatureParameters",me[me.JSDocComment=33]="JSDocComment",(fe=e.PragmaKindFlags||(e.PragmaKindFlags={}))[fe.None=0]="None",fe[fe.TripleSlashXML=1]="TripleSlashXML",fe[fe.SingleLine=2]="SingleLine",fe[fe.MultiLine=4]="MultiLine",fe[fe.All=7]="All",fe[fe.Default=7]="Default",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},{name:"resolution-mode",optional:!0}],kind:1},"amd-dependency":{args:[{name:"path"},{name:"name",optional:!0}],kind:1},"amd-module":{args:[{name:"name"}],kind:1},"ts-check":{kind:2},"ts-nocheck":{kind:2},jsx:{args:[{name:"factory"}],kind:4},jsxfrag:{args:[{name:"factory"}],kind:4},jsximportsource:{args:[{name:"factory"}],kind:4},jsxruntime:{args:[{name:"factory"}],kind:4}}}(c||(c={})),function(e){var t,n;function i(t,n){return t.getModifiedTime(n)||e.missingFileModifiedTime}function a(e){var t;return(t={})[n.Low]=e.Low,t[n.Medium]=e.Medium,t[n.High]=e.High,t}e.generateDjb2Hash=function(e){for(var t=5381,n=0;n0}function a(e){return 0!==u(e)}function o(e){return/^\.\.?($|[\\/])/.test(e)}function s(t,n){return t.length>n.length&&e.endsWith(t,n)}function c(e){return e.length>0&&r(e.charCodeAt(e.length-1))}function l(e){return e>=97&&e<=122||e>=65&&e<=90}function u(t){if(!t)return 0;var n=t.charCodeAt(0);if(47===n||92===n){if(t.charCodeAt(1)!==n)return 1;var r=t.indexOf(47===n?e.directorySeparator:e.altDirectorySeparator,2);return r<0?t.length:r+1}if(l(n)&&58===t.charCodeAt(1)){var i=t.charCodeAt(2);if(47===i||92===i)return 3;if(2===t.length)return 2}var a=t.indexOf("://");if(-1!==a){var o=a+3,s=t.indexOf(e.directorySeparator,o);if(-1!==s){var c=t.slice(0,a),u=t.slice(o,s);if("file"===c&&(""===u||"localhost"===u)&&l(t.charCodeAt(s+1))){var d=function(e,t){var n=e.charCodeAt(t);if(58===n)return t+1;if(37===n&&51===e.charCodeAt(t+1)){var r=e.charCodeAt(t+2);if(97===r||65===r)return t+3}return-1}(t,s+2);if(-1!==d){if(47===t.charCodeAt(d))return~(d+1);if(d===t.length)return~d}}return~(s+1)}return~t.length}return 0}function d(e){var t=u(e);return t<0?~t:t}function p(t){var n=d(t=y(t));return n===t.length?t:(t=C(t)).slice(0,Math.max(n,t.lastIndexOf(e.directorySeparator)))}function m(t,n,r){if(d(t=y(t))===t.length)return"";var i=(t=C(t)).slice(Math.max(d(t),t.lastIndexOf(e.directorySeparator)+1)),a=void 0!==n&&void 0!==r?_(i,n,r):void 0;return a?i.slice(0,i.length-a.length):i}function f(t,n,r){if(e.startsWith(n,".")||(n="."+n),t.length>=n.length&&46===t.charCodeAt(t.length-n.length)){var i=t.slice(t.length-n.length);if(r(i,n))return i}}function _(t,n,r){if(n)return function(e,t,n){if("string"==typeof t)return f(e,t,n)||"";for(var r=0,i=t;r=0?i.substring(a):""}function h(t,r){return void 0===r&&(r=""),function(t,r){var i=t.substring(0,r),a=t.substring(r).split(e.directorySeparator);return a.length&&!e.lastOrUndefined(a)&&a.pop(),n([i],a,!0)}(t=b(r,t),d(t))}function g(t){return 0===t.length?"":(t[0]&&D(t[0]))+t.slice(1).join(e.directorySeparator)}function y(n){return-1!==n.indexOf("\\")?n.replace(t,e.directorySeparator):n}function v(t){if(!e.some(t))return[];for(var n=[t[0]],r=1;r1){if(".."!==n[n.length-1]){n.pop();continue}}else if(n[0])continue;n.push(i)}}return n}function b(e){for(var t=[],n=1;n0&&t===e.length},e.pathIsAbsolute=a,e.pathIsRelative=o,e.pathIsBareSpecifier=function(e){return!a(e)&&!o(e)},e.hasExtension=function(t){return e.stringContains(m(t),".")},e.fileExtensionIs=s,e.fileExtensionIsOneOf=function(e,t){for(var n=0,r=t;n0==d(n)>0,"Paths must either both be absolute or both be relative");var i="function"==typeof r?r:e.identity;return g(k(t,n,"boolean"==typeof r&&r?e.equateStringsCaseInsensitive:e.equateStringsCaseSensitive,i))}function P(t,n,r,a,o){var s=k(E(r,t),E(r,n),e.equateStringsCaseSensitive,a),c=s[0];if(o&&i(c)){var l=c.charAt(0)===e.directorySeparator?"file://":"file:///";s[0]=l+c}return g(s)}e.comparePathsCaseSensitive=function(t,n){return N(t,n,e.compareStringsCaseSensitive)},e.comparePathsCaseInsensitive=function(t,n){return N(t,n,e.compareStringsCaseInsensitive)},e.comparePaths=function(t,n,r,i){return"string"==typeof r?(t=b(r,t),n=b(r,n)):"boolean"==typeof r&&(i=r),N(t,n,e.getStringComparer(i))},e.containsPath=function(t,n,r,i){if("string"==typeof r?(t=b(r,t),n=b(r,n)):"boolean"==typeof r&&(i=r),void 0===t||void 0===n)return!1;if(t===n)return!0;var a=v(h(t)),o=v(h(n));if(o.length type. Did you mean to write 'Promise<{0}>'?"),In_ambient_enum_declarations_member_initializer_must_be_constant_expression:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(1097,e.DiagnosticCategory.Error,"_0_list_cannot_be_empty_1097","'{0}' list cannot be empty."),Type_parameter_list_cannot_be_empty:t(1098,e.DiagnosticCategory.Error,"Type_parameter_list_cannot_be_empty_1098","Type parameter list cannot be empty."),Type_argument_list_cannot_be_empty:t(1099,e.DiagnosticCategory.Error,"Type_argument_list_cannot_be_empty_1099","Type argument list cannot be empty."),Invalid_use_of_0_in_strict_mode:t(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:t(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:t(1102,e.DiagnosticCategory.Error,"delete_cannot_be_called_on_an_identifier_in_strict_mode_1102","'delete' cannot be called on an identifier in strict mode."),for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:t(1103,e.DiagnosticCategory.Error,"for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1103","'for await' loops are only allowed within async functions and at the top levels of modules."),A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement:t(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:t(1105,e.DiagnosticCategory.Error,"A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement_1105","A 'break' statement can only be used within an enclosing iteration or switch statement."),The_left_hand_side_of_a_for_of_statement_may_not_be_async:t(1106,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_of_statement_may_not_be_async_1106","The left-hand side of a 'for...of' statement may not be 'async'."),Jump_target_cannot_cross_function_boundary:t(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:t(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:t(1109,e.DiagnosticCategory.Error,"Expression_expected_1109","Expression expected."),Type_expected:t(1110,e.DiagnosticCategory.Error,"Type_expected_1110","Type expected."),A_default_clause_cannot_appear_more_than_once_in_a_switch_statement:t(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:t(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:t(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:t(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:t(1117,e.DiagnosticCategory.Error,"An_object_literal_cannot_have_multiple_properties_with_the_same_name_1117","An object literal cannot have multiple properties with the same name."),An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name:t(1118,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:t(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:t(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:t(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:t(1123,e.DiagnosticCategory.Error,"Variable_declaration_list_cannot_be_empty_1123","Variable declaration list cannot be empty."),Digit_expected:t(1124,e.DiagnosticCategory.Error,"Digit_expected_1124","Digit expected."),Hexadecimal_digit_expected:t(1125,e.DiagnosticCategory.Error,"Hexadecimal_digit_expected_1125","Hexadecimal digit expected."),Unexpected_end_of_text:t(1126,e.DiagnosticCategory.Error,"Unexpected_end_of_text_1126","Unexpected end of text."),Invalid_character:t(1127,e.DiagnosticCategory.Error,"Invalid_character_1127","Invalid character."),Declaration_or_statement_expected:t(1128,e.DiagnosticCategory.Error,"Declaration_or_statement_expected_1128","Declaration or statement expected."),Statement_expected:t(1129,e.DiagnosticCategory.Error,"Statement_expected_1129","Statement expected."),case_or_default_expected:t(1130,e.DiagnosticCategory.Error,"case_or_default_expected_1130","'case' or 'default' expected."),Property_or_signature_expected:t(1131,e.DiagnosticCategory.Error,"Property_or_signature_expected_1131","Property or signature expected."),Enum_member_expected:t(1132,e.DiagnosticCategory.Error,"Enum_member_expected_1132","Enum member expected."),Variable_declaration_expected:t(1134,e.DiagnosticCategory.Error,"Variable_declaration_expected_1134","Variable declaration expected."),Argument_expression_expected:t(1135,e.DiagnosticCategory.Error,"Argument_expression_expected_1135","Argument expression expected."),Property_assignment_expected:t(1136,e.DiagnosticCategory.Error,"Property_assignment_expected_1136","Property assignment expected."),Expression_or_comma_expected:t(1137,e.DiagnosticCategory.Error,"Expression_or_comma_expected_1137","Expression or comma expected."),Parameter_declaration_expected:t(1138,e.DiagnosticCategory.Error,"Parameter_declaration_expected_1138","Parameter declaration expected."),Type_parameter_declaration_expected:t(1139,e.DiagnosticCategory.Error,"Type_parameter_declaration_expected_1139","Type parameter declaration expected."),Type_argument_expected:t(1140,e.DiagnosticCategory.Error,"Type_argument_expected_1140","Type argument expected."),String_literal_expected:t(1141,e.DiagnosticCategory.Error,"String_literal_expected_1141","String literal expected."),Line_break_not_permitted_here:t(1142,e.DiagnosticCategory.Error,"Line_break_not_permitted_here_1142","Line break not permitted here."),or_expected:t(1144,e.DiagnosticCategory.Error,"or_expected_1144","'{' or ';' expected."),or_JSX_element_expected:t(1145,e.DiagnosticCategory.Error,"or_JSX_element_expected_1145","'{' or JSX element expected."),Declaration_expected:t(1146,e.DiagnosticCategory.Error,"Declaration_expected_1146","Declaration expected."),Import_declarations_in_a_namespace_cannot_reference_a_module:t(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:t(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:t(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:t(1155,e.DiagnosticCategory.Error,"const_declarations_must_be_initialized_1155","'const' declarations must be initialized."),const_declarations_can_only_be_declared_inside_a_block:t(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:t(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:t(1160,e.DiagnosticCategory.Error,"Unterminated_template_literal_1160","Unterminated template literal."),Unterminated_regular_expression_literal:t(1161,e.DiagnosticCategory.Error,"Unterminated_regular_expression_literal_1161","Unterminated regular expression literal."),An_object_member_cannot_be_declared_optional:t(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:t(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:t(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:t(1165,e.DiagnosticCategory.Error,"A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_t_1165","A computed property name in an ambient context must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_symbol_type:t(1166,e.DiagnosticCategory.Error,"A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_1166","A computed property name in a class property declaration must have a simple literal type or a 'unique symbol' type."),A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:t(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:t(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:t(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:t(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:t(1172,e.DiagnosticCategory.Error,"extends_clause_already_seen_1172","'extends' clause already seen."),extends_clause_must_precede_implements_clause:t(1173,e.DiagnosticCategory.Error,"extends_clause_must_precede_implements_clause_1173","'extends' clause must precede 'implements' clause."),Classes_can_only_extend_a_single_class:t(1174,e.DiagnosticCategory.Error,"Classes_can_only_extend_a_single_class_1174","Classes can only extend a single class."),implements_clause_already_seen:t(1175,e.DiagnosticCategory.Error,"implements_clause_already_seen_1175","'implements' clause already seen."),Interface_declaration_cannot_have_implements_clause:t(1176,e.DiagnosticCategory.Error,"Interface_declaration_cannot_have_implements_clause_1176","Interface declaration cannot have 'implements' clause."),Binary_digit_expected:t(1177,e.DiagnosticCategory.Error,"Binary_digit_expected_1177","Binary digit expected."),Octal_digit_expected:t(1178,e.DiagnosticCategory.Error,"Octal_digit_expected_1178","Octal digit expected."),Unexpected_token_expected:t(1179,e.DiagnosticCategory.Error,"Unexpected_token_expected_1179","Unexpected token. '{' expected."),Property_destructuring_pattern_expected:t(1180,e.DiagnosticCategory.Error,"Property_destructuring_pattern_expected_1180","Property destructuring pattern expected."),Array_element_destructuring_pattern_expected:t(1181,e.DiagnosticCategory.Error,"Array_element_destructuring_pattern_expected_1181","Array element destructuring pattern expected."),A_destructuring_declaration_must_have_an_initializer:t(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:t(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:t(1184,e.DiagnosticCategory.Error,"Modifiers_cannot_appear_here_1184","Modifiers cannot appear here."),Merge_conflict_marker_encountered:t(1185,e.DiagnosticCategory.Error,"Merge_conflict_marker_encountered_1185","Merge conflict marker encountered."),A_rest_element_cannot_have_an_initializer:t(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:t(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:t(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:t(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:t(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:t(1191,e.DiagnosticCategory.Error,"An_import_declaration_cannot_have_modifiers_1191","An import declaration cannot have modifiers."),Module_0_has_no_default_export:t(1192,e.DiagnosticCategory.Error,"Module_0_has_no_default_export_1192","Module '{0}' has no default export."),An_export_declaration_cannot_have_modifiers:t(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:t(1194,e.DiagnosticCategory.Error,"Export_declarations_are_not_permitted_in_a_namespace_1194","Export declarations are not permitted in a namespace."),export_Asterisk_does_not_re_export_a_default:t(1195,e.DiagnosticCategory.Error,"export_Asterisk_does_not_re_export_a_default_1195","'export *' does not re-export a default."),Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified:t(1196,e.DiagnosticCategory.Error,"Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified_1196","Catch clause variable type annotation must be 'any' or 'unknown' if specified."),Catch_clause_variable_cannot_have_an_initializer:t(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:t(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:t(1199,e.DiagnosticCategory.Error,"Unterminated_Unicode_escape_sequence_1199","Unterminated Unicode escape sequence."),Line_terminator_not_permitted_before_arrow:t(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:t(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:t(1203,e.DiagnosticCategory.Error,"Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or__1203","Export assignment cannot be used when targeting ECMAScript modules. Consider using 'export default' or another module format instead."),Re_exporting_a_type_when_the_isolatedModules_flag_is_provided_requires_using_export_type:t(1205,e.DiagnosticCategory.Error,"Re_exporting_a_type_when_the_isolatedModules_flag_is_provided_requires_using_export_type_1205","Re-exporting a type when the '--isolatedModules' flag is provided requires using 'export type'."),Decorators_are_not_valid_here:t(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:t(1207,e.DiagnosticCategory.Error,"Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name_1207","Decorators cannot be applied to multiple get/set accessors of the same name."),_0_cannot_be_compiled_under_isolatedModules_because_it_is_considered_a_global_script_file_Add_an_import_export_or_an_empty_export_statement_to_make_it_a_module:t(1208,e.DiagnosticCategory.Error,"_0_cannot_be_compiled_under_isolatedModules_because_it_is_considered_a_global_script_file_Add_an_imp_1208","'{0}' cannot be compiled under '--isolatedModules' because it is considered a global script file. Add an import, export, or an empty 'export {}' statement to make it a module."),Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0:t(1209,e.DiagnosticCategory.Error,"Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0_1209","Invalid optional chain from new expression. Did you mean to call '{0}()'?"),Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of_0_For_more_information_see_https_Colon_Slash_Slashdeveloper_mozilla_org_Slashen_US_Slashdocs_SlashWeb_SlashJavaScript_SlashReference_SlashStrict_mode:t(1210,e.DiagnosticCategory.Error,"Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of__1210","Code contained in a class is evaluated in JavaScript's strict mode which does not allow this use of '{0}'. For more information, see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Strict_mode."),A_class_declaration_without_the_default_modifier_must_have_a_name:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(1219,e.DiagnosticCategory.Error,"Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_t_1219","Experimental support for decorators is a feature that is subject to change in a future release. Set the 'experimentalDecorators' option in your 'tsconfig' or 'jsconfig' to remove this warning."),Generators_are_not_allowed_in_an_ambient_context:t(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:t(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:t(1223,e.DiagnosticCategory.Error,"_0_tag_already_specified_1223","'{0}' tag already specified."),Signature_0_must_be_a_type_predicate:t(1224,e.DiagnosticCategory.Error,"Signature_0_must_be_a_type_predicate_1224","Signature '{0}' must be a type predicate."),Cannot_find_parameter_0:t(1225,e.DiagnosticCategory.Error,"Cannot_find_parameter_0_1225","Cannot find parameter '{0}'."),Type_predicate_0_is_not_assignable_to_1:t(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:t(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:t(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:t(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:t(1230,e.DiagnosticCategory.Error,"A_type_predicate_cannot_reference_element_0_in_a_binding_pattern_1230","A type predicate cannot reference element '{0}' in a binding pattern."),An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration:t(1231,e.DiagnosticCategory.Error,"An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration_1231","An export assignment must be at the top level of a file or module declaration."),An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module:t(1232,e.DiagnosticCategory.Error,"An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module_1232","An import declaration can only be used at the top level of a namespace or module."),An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module:t(1233,e.DiagnosticCategory.Error,"An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module_1233","An export declaration can only be used at the top level of a namespace or module."),An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file:t(1234,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_at_the_top_level_of_a_namespace_or_module:t(1235,e.DiagnosticCategory.Error,"A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module_1235","A namespace declaration is only allowed at the top level of a namespace or module."),The_return_type_of_a_property_decorator_function_must_be_either_void_or_any:t(1236,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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(1252,e.DiagnosticCategory.Error,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_1252","Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'. Modules are automatically in strict mode."),A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference:t(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:t(1255,e.DiagnosticCategory.Error,"A_definite_assignment_assertion_is_not_permitted_in_this_context_1255","A definite assignment assertion '!' is not permitted in this context."),A_required_element_cannot_follow_an_optional_element:t(1257,e.DiagnosticCategory.Error,"A_required_element_cannot_follow_an_optional_element_1257","A required element cannot follow an optional element."),A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration:t(1258,e.DiagnosticCategory.Error,"A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration_1258","A default export must be at the top level of a file or module declaration."),Module_0_can_only_be_default_imported_using_the_1_flag:t(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:t(1260,e.DiagnosticCategory.Error,"Keywords_cannot_contain_escape_characters_1260","Keywords cannot contain escape characters."),Already_included_file_name_0_differs_from_file_name_1_only_in_casing:t(1261,e.DiagnosticCategory.Error,"Already_included_file_name_0_differs_from_file_name_1_only_in_casing_1261","Already included file name '{0}' differs from file name '{1}' only in casing."),Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module:t(1262,e.DiagnosticCategory.Error,"Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module_1262","Identifier expected. '{0}' is a reserved word at the top-level of a module."),Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:t(1263,e.DiagnosticCategory.Error,"Declarations_with_initializers_cannot_also_have_definite_assignment_assertions_1263","Declarations with initializers cannot also have definite assignment assertions."),Declarations_with_definite_assignment_assertions_must_also_have_type_annotations:t(1264,e.DiagnosticCategory.Error,"Declarations_with_definite_assignment_assertions_must_also_have_type_annotations_1264","Declarations with definite assignment assertions must also have type annotations."),A_rest_element_cannot_follow_another_rest_element:t(1265,e.DiagnosticCategory.Error,"A_rest_element_cannot_follow_another_rest_element_1265","A rest element cannot follow another rest element."),An_optional_element_cannot_follow_a_rest_element:t(1266,e.DiagnosticCategory.Error,"An_optional_element_cannot_follow_a_rest_element_1266","An optional element cannot follow a rest element."),Property_0_cannot_have_an_initializer_because_it_is_marked_abstract:t(1267,e.DiagnosticCategory.Error,"Property_0_cannot_have_an_initializer_because_it_is_marked_abstract_1267","Property '{0}' cannot have an initializer because it is marked abstract."),An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type:t(1268,e.DiagnosticCategory.Error,"An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type_1268","An index signature parameter type must be 'string', 'number', 'symbol', or a template literal type."),Cannot_use_export_import_on_a_type_or_type_only_namespace_when_the_isolatedModules_flag_is_provided:t(1269,e.DiagnosticCategory.Error,"Cannot_use_export_import_on_a_type_or_type_only_namespace_when_the_isolatedModules_flag_is_provided_1269","Cannot use 'export import' on a type or type-only namespace when the '--isolatedModules' flag is provided."),Decorator_function_return_type_0_is_not_assignable_to_type_1:t(1270,e.DiagnosticCategory.Error,"Decorator_function_return_type_0_is_not_assignable_to_type_1_1270","Decorator function return type '{0}' is not assignable to type '{1}'."),Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any:t(1271,e.DiagnosticCategory.Error,"Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any_1271","Decorator function return type is '{0}' but is expected to be 'void' or 'any'."),A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled:t(1272,e.DiagnosticCategory.Error,"A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_w_1272","A type referenced in a decorated signature must be imported with 'import type' or a namespace import when 'isolatedModules' and 'emitDecoratorMetadata' are enabled."),_0_modifier_cannot_appear_on_a_type_parameter:t(1273,e.DiagnosticCategory.Error,"_0_modifier_cannot_appear_on_a_type_parameter_1273","'{0}' modifier cannot appear on a type parameter"),_0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias:t(1274,e.DiagnosticCategory.Error,"_0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias_1274","'{0}' modifier can only appear on a type parameter of a class, interface or type alias"),accessor_modifier_can_only_appear_on_a_property_declaration:t(1275,e.DiagnosticCategory.Error,"accessor_modifier_can_only_appear_on_a_property_declaration_1275","'accessor' modifier can only appear on a property declaration."),An_accessor_property_cannot_be_declared_optional:t(1276,e.DiagnosticCategory.Error,"An_accessor_property_cannot_be_declared_optional_1276","An 'accessor' property cannot be declared optional."),with_statements_are_not_allowed_in_an_async_function_block:t(1300,e.DiagnosticCategory.Error,"with_statements_are_not_allowed_in_an_async_function_block_1300","'with' statements are not allowed in an async function block."),await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:t(1308,e.DiagnosticCategory.Error,"await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1308","'await' expressions are only allowed within async functions and at the top levels of modules."),The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level:t(1309,e.DiagnosticCategory.Error,"The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level_1309","The current file is a CommonJS module and cannot use 'await' at the top level."),Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern:t(1312,e.DiagnosticCategory.Error,"Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_1312","Did you mean to use a ':'? An '=' can only follow a property name when the containing object literal is part of a destructuring pattern."),The_body_of_an_if_statement_cannot_be_the_empty_statement:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(1322,e.DiagnosticCategory.Error,"Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_con_1322","Type of iterated elements of a 'yield*' operand must either be a valid promise or must not contain a callable 'then' member."),Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd_system_umd_node16_or_nodenext:t(1323,e.DiagnosticCategory.Error,"Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd__1323","Dynamic imports are only supported when the '--module' flag is set to 'es2020', 'es2022', 'esnext', 'commonjs', 'amd', 'system', 'umd', 'node16', or 'nodenext'."),Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_or_nodenext:t(1324,e.DiagnosticCategory.Error,"Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_or_nod_1324","Dynamic imports only support a second argument when the '--module' option is set to 'esnext', 'node16', or 'nodenext'."),Argument_of_dynamic_import_cannot_be_spread_element:t(1325,e.DiagnosticCategory.Error,"Argument_of_dynamic_import_cannot_be_spread_element_1325","Argument of dynamic import cannot be spread element."),This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments:t(1326,e.DiagnosticCategory.Error,"This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot__1326","This use of 'import' is invalid. 'import()' calls can be written, but they must have parentheses and cannot have type arguments."),String_literal_with_double_quotes_expected:t(1327,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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(1335,e.DiagnosticCategory.Error,"unique_symbol_types_are_not_allowed_here_1335","'unique symbol' types are not allowed here."),An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead:t(1337,e.DiagnosticCategory.Error,"An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_o_1337","An index signature parameter type cannot be a literal type or generic type. Consider using a mapped object type instead."),infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type:t(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:t(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:t(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}')'?"),Class_constructor_may_not_be_an_accessor:t(1341,e.DiagnosticCategory.Error,"Class_constructor_may_not_be_an_accessor_1341","Class constructor may not be an accessor."),Type_arguments_cannot_be_used_here:t(1342,e.DiagnosticCategory.Error,"Type_arguments_cannot_be_used_here_1342","Type arguments cannot be used here."),The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system_node16_or_nodenext:t(1343,e.DiagnosticCategory.Error,"The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system__1343","The 'import.meta' meta-property is only allowed when the '--module' option is 'es2020', 'es2022', 'esnext', 'system', 'node16', or 'nodenext'."),A_label_is_not_allowed_here:t(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:t(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:t(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:t(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:t(1348,e.DiagnosticCategory.Error,"Non_simple_parameter_declared_here_1348","Non-simple parameter declared here."),use_strict_directive_used_here:t(1349,e.DiagnosticCategory.Error,"use_strict_directive_used_here_1349","'use strict' directive used here."),Print_the_final_configuration_instead_of_building:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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."),Type_0_does_not_satisfy_the_expected_type_1:t(1360,e.DiagnosticCategory.Error,"Type_0_does_not_satisfy_the_expected_type_1_1360","Type '{0}' does not satisfy the expected type '{1}'."),_0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type:t(1361,e.DiagnosticCategory.Error,"_0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type_1361","'{0}' cannot be used as a value because it was imported using 'import type'."),_0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type:t(1362,e.DiagnosticCategory.Error,"_0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type_1362","'{0}' cannot be used as a value because it was exported using 'export type'."),A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both:t(1363,e.DiagnosticCategory.Error,"A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both_1363","A type-only import can specify a default import or named bindings, but not both."),Convert_to_type_only_export:t(1364,e.DiagnosticCategory.Message,"Convert_to_type_only_export_1364","Convert to type-only export"),Convert_all_re_exported_types_to_type_only_exports:t(1365,e.DiagnosticCategory.Message,"Convert_all_re_exported_types_to_type_only_exports_1365","Convert all re-exported types to type-only exports"),Split_into_two_separate_import_declarations:t(1366,e.DiagnosticCategory.Message,"Split_into_two_separate_import_declarations_1366","Split into two separate import declarations"),Split_all_invalid_type_only_imports:t(1367,e.DiagnosticCategory.Message,"Split_all_invalid_type_only_imports_1367","Split all invalid type-only imports"),Class_constructor_may_not_be_a_generator:t(1368,e.DiagnosticCategory.Error,"Class_constructor_may_not_be_a_generator_1368","Class constructor may not be a generator."),Did_you_mean_0:t(1369,e.DiagnosticCategory.Message,"Did_you_mean_0_1369","Did you mean '{0}'?"),This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set_to_error:t(1371,e.DiagnosticCategory.Error,"This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set__1371","This import is never used as a value and must use 'import type' because 'importsNotUsedAsValues' is set to 'error'."),Convert_to_type_only_import:t(1373,e.DiagnosticCategory.Message,"Convert_to_type_only_import_1373","Convert to type-only import"),Convert_all_imports_not_used_as_a_value_to_type_only_imports:t(1374,e.DiagnosticCategory.Message,"Convert_all_imports_not_used_as_a_value_to_type_only_imports_1374","Convert all imports not used as a value to type-only imports"),await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:t(1375,e.DiagnosticCategory.Error,"await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_fi_1375","'await' expressions are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),_0_was_imported_here:t(1376,e.DiagnosticCategory.Message,"_0_was_imported_here_1376","'{0}' was imported here."),_0_was_exported_here:t(1377,e.DiagnosticCategory.Message,"_0_was_exported_here_1377","'{0}' was exported here."),Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher:t(1378,e.DiagnosticCategory.Error,"Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_n_1378","Top-level 'await' expressions are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', or 'nodenext', and the 'target' option is set to 'es2017' or higher."),An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type:t(1379,e.DiagnosticCategory.Error,"An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type_1379","An import alias cannot reference a declaration that was exported using 'export type'."),An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type:t(1380,e.DiagnosticCategory.Error,"An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type_1380","An import alias cannot reference a declaration that was imported using 'import type'."),Unexpected_token_Did_you_mean_or_rbrace:t(1381,e.DiagnosticCategory.Error,"Unexpected_token_Did_you_mean_or_rbrace_1381","Unexpected token. Did you mean `{'}'}` or `}`?"),Unexpected_token_Did_you_mean_or_gt:t(1382,e.DiagnosticCategory.Error,"Unexpected_token_Did_you_mean_or_gt_1382","Unexpected token. Did you mean `{'>'}` or `>`?"),Only_named_exports_may_use_export_type:t(1383,e.DiagnosticCategory.Error,"Only_named_exports_may_use_export_type_1383","Only named exports may use 'export type'."),Function_type_notation_must_be_parenthesized_when_used_in_a_union_type:t(1385,e.DiagnosticCategory.Error,"Function_type_notation_must_be_parenthesized_when_used_in_a_union_type_1385","Function type notation must be parenthesized when used in a union type."),Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type:t(1386,e.DiagnosticCategory.Error,"Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type_1386","Constructor type notation must be parenthesized when used in a union type."),Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:t(1387,e.DiagnosticCategory.Error,"Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type_1387","Function type notation must be parenthesized when used in an intersection type."),Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:t(1388,e.DiagnosticCategory.Error,"Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type_1388","Constructor type notation must be parenthesized when used in an intersection type."),_0_is_not_allowed_as_a_variable_declaration_name:t(1389,e.DiagnosticCategory.Error,"_0_is_not_allowed_as_a_variable_declaration_name_1389","'{0}' is not allowed as a variable declaration name."),_0_is_not_allowed_as_a_parameter_name:t(1390,e.DiagnosticCategory.Error,"_0_is_not_allowed_as_a_parameter_name_1390","'{0}' is not allowed as a parameter name."),An_import_alias_cannot_use_import_type:t(1392,e.DiagnosticCategory.Error,"An_import_alias_cannot_use_import_type_1392","An import alias cannot use 'import type'"),Imported_via_0_from_file_1:t(1393,e.DiagnosticCategory.Message,"Imported_via_0_from_file_1_1393","Imported via {0} from file '{1}'"),Imported_via_0_from_file_1_with_packageId_2:t(1394,e.DiagnosticCategory.Message,"Imported_via_0_from_file_1_with_packageId_2_1394","Imported via {0} from file '{1}' with packageId '{2}'"),Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions:t(1395,e.DiagnosticCategory.Message,"Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions_1395","Imported via {0} from file '{1}' to import 'importHelpers' as specified in compilerOptions"),Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions:t(1396,e.DiagnosticCategory.Message,"Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions_1396","Imported via {0} from file '{1}' with packageId '{2}' to import 'importHelpers' as specified in compilerOptions"),Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions:t(1397,e.DiagnosticCategory.Message,"Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions_1397","Imported via {0} from file '{1}' to import 'jsx' and 'jsxs' factory functions"),Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions:t(1398,e.DiagnosticCategory.Message,"Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions_1398","Imported via {0} from file '{1}' with packageId '{2}' to import 'jsx' and 'jsxs' factory functions"),File_is_included_via_import_here:t(1399,e.DiagnosticCategory.Message,"File_is_included_via_import_here_1399","File is included via import here."),Referenced_via_0_from_file_1:t(1400,e.DiagnosticCategory.Message,"Referenced_via_0_from_file_1_1400","Referenced via '{0}' from file '{1}'"),File_is_included_via_reference_here:t(1401,e.DiagnosticCategory.Message,"File_is_included_via_reference_here_1401","File is included via reference here."),Type_library_referenced_via_0_from_file_1:t(1402,e.DiagnosticCategory.Message,"Type_library_referenced_via_0_from_file_1_1402","Type library referenced via '{0}' from file '{1}'"),Type_library_referenced_via_0_from_file_1_with_packageId_2:t(1403,e.DiagnosticCategory.Message,"Type_library_referenced_via_0_from_file_1_with_packageId_2_1403","Type library referenced via '{0}' from file '{1}' with packageId '{2}'"),File_is_included_via_type_library_reference_here:t(1404,e.DiagnosticCategory.Message,"File_is_included_via_type_library_reference_here_1404","File is included via type library reference here."),Library_referenced_via_0_from_file_1:t(1405,e.DiagnosticCategory.Message,"Library_referenced_via_0_from_file_1_1405","Library referenced via '{0}' from file '{1}'"),File_is_included_via_library_reference_here:t(1406,e.DiagnosticCategory.Message,"File_is_included_via_library_reference_here_1406","File is included via library reference here."),Matched_by_include_pattern_0_in_1:t(1407,e.DiagnosticCategory.Message,"Matched_by_include_pattern_0_in_1_1407","Matched by include pattern '{0}' in '{1}'"),File_is_matched_by_include_pattern_specified_here:t(1408,e.DiagnosticCategory.Message,"File_is_matched_by_include_pattern_specified_here_1408","File is matched by include pattern specified here."),Part_of_files_list_in_tsconfig_json:t(1409,e.DiagnosticCategory.Message,"Part_of_files_list_in_tsconfig_json_1409","Part of 'files' list in tsconfig.json"),File_is_matched_by_files_list_specified_here:t(1410,e.DiagnosticCategory.Message,"File_is_matched_by_files_list_specified_here_1410","File is matched by 'files' list specified here."),Output_from_referenced_project_0_included_because_1_specified:t(1411,e.DiagnosticCategory.Message,"Output_from_referenced_project_0_included_because_1_specified_1411","Output from referenced project '{0}' included because '{1}' specified"),Output_from_referenced_project_0_included_because_module_is_specified_as_none:t(1412,e.DiagnosticCategory.Message,"Output_from_referenced_project_0_included_because_module_is_specified_as_none_1412","Output from referenced project '{0}' included because '--module' is specified as 'none'"),File_is_output_from_referenced_project_specified_here:t(1413,e.DiagnosticCategory.Message,"File_is_output_from_referenced_project_specified_here_1413","File is output from referenced project specified here."),Source_from_referenced_project_0_included_because_1_specified:t(1414,e.DiagnosticCategory.Message,"Source_from_referenced_project_0_included_because_1_specified_1414","Source from referenced project '{0}' included because '{1}' specified"),Source_from_referenced_project_0_included_because_module_is_specified_as_none:t(1415,e.DiagnosticCategory.Message,"Source_from_referenced_project_0_included_because_module_is_specified_as_none_1415","Source from referenced project '{0}' included because '--module' is specified as 'none'"),File_is_source_from_referenced_project_specified_here:t(1416,e.DiagnosticCategory.Message,"File_is_source_from_referenced_project_specified_here_1416","File is source from referenced project specified here."),Entry_point_of_type_library_0_specified_in_compilerOptions:t(1417,e.DiagnosticCategory.Message,"Entry_point_of_type_library_0_specified_in_compilerOptions_1417","Entry point of type library '{0}' specified in compilerOptions"),Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1:t(1418,e.DiagnosticCategory.Message,"Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1_1418","Entry point of type library '{0}' specified in compilerOptions with packageId '{1}'"),File_is_entry_point_of_type_library_specified_here:t(1419,e.DiagnosticCategory.Message,"File_is_entry_point_of_type_library_specified_here_1419","File is entry point of type library specified here."),Entry_point_for_implicit_type_library_0:t(1420,e.DiagnosticCategory.Message,"Entry_point_for_implicit_type_library_0_1420","Entry point for implicit type library '{0}'"),Entry_point_for_implicit_type_library_0_with_packageId_1:t(1421,e.DiagnosticCategory.Message,"Entry_point_for_implicit_type_library_0_with_packageId_1_1421","Entry point for implicit type library '{0}' with packageId '{1}'"),Library_0_specified_in_compilerOptions:t(1422,e.DiagnosticCategory.Message,"Library_0_specified_in_compilerOptions_1422","Library '{0}' specified in compilerOptions"),File_is_library_specified_here:t(1423,e.DiagnosticCategory.Message,"File_is_library_specified_here_1423","File is library specified here."),Default_library:t(1424,e.DiagnosticCategory.Message,"Default_library_1424","Default library"),Default_library_for_target_0:t(1425,e.DiagnosticCategory.Message,"Default_library_for_target_0_1425","Default library for target '{0}'"),File_is_default_library_for_target_specified_here:t(1426,e.DiagnosticCategory.Message,"File_is_default_library_for_target_specified_here_1426","File is default library for target specified here."),Root_file_specified_for_compilation:t(1427,e.DiagnosticCategory.Message,"Root_file_specified_for_compilation_1427","Root file specified for compilation"),File_is_output_of_project_reference_source_0:t(1428,e.DiagnosticCategory.Message,"File_is_output_of_project_reference_source_0_1428","File is output of project reference source '{0}'"),File_redirects_to_file_0:t(1429,e.DiagnosticCategory.Message,"File_redirects_to_file_0_1429","File redirects to file '{0}'"),The_file_is_in_the_program_because_Colon:t(1430,e.DiagnosticCategory.Message,"The_file_is_in_the_program_because_Colon_1430","The file is in the program because:"),for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:t(1431,e.DiagnosticCategory.Error,"for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_1431","'for await' loops are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher:t(1432,e.DiagnosticCategory.Error,"Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_nod_1432","Top-level 'for await' loops are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', or 'nodenext', and the 'target' option is set to 'es2017' or higher."),Decorators_may_not_be_applied_to_this_parameters:t(1433,e.DiagnosticCategory.Error,"Decorators_may_not_be_applied_to_this_parameters_1433","Decorators may not be applied to 'this' parameters."),Unexpected_keyword_or_identifier:t(1434,e.DiagnosticCategory.Error,"Unexpected_keyword_or_identifier_1434","Unexpected keyword or identifier."),Unknown_keyword_or_identifier_Did_you_mean_0:t(1435,e.DiagnosticCategory.Error,"Unknown_keyword_or_identifier_Did_you_mean_0_1435","Unknown keyword or identifier. Did you mean '{0}'?"),Decorators_must_precede_the_name_and_all_keywords_of_property_declarations:t(1436,e.DiagnosticCategory.Error,"Decorators_must_precede_the_name_and_all_keywords_of_property_declarations_1436","Decorators must precede the name and all keywords of property declarations."),Namespace_must_be_given_a_name:t(1437,e.DiagnosticCategory.Error,"Namespace_must_be_given_a_name_1437","Namespace must be given a name."),Interface_must_be_given_a_name:t(1438,e.DiagnosticCategory.Error,"Interface_must_be_given_a_name_1438","Interface must be given a name."),Type_alias_must_be_given_a_name:t(1439,e.DiagnosticCategory.Error,"Type_alias_must_be_given_a_name_1439","Type alias must be given a name."),Variable_declaration_not_allowed_at_this_location:t(1440,e.DiagnosticCategory.Error,"Variable_declaration_not_allowed_at_this_location_1440","Variable declaration not allowed at this location."),Cannot_start_a_function_call_in_a_type_annotation:t(1441,e.DiagnosticCategory.Error,"Cannot_start_a_function_call_in_a_type_annotation_1441","Cannot start a function call in a type annotation."),Expected_for_property_initializer:t(1442,e.DiagnosticCategory.Error,"Expected_for_property_initializer_1442","Expected '=' for property initializer."),Module_declaration_names_may_only_use_or_quoted_strings:t(1443,e.DiagnosticCategory.Error,"Module_declaration_names_may_only_use_or_quoted_strings_1443","Module declaration names may only use ' or \" quoted strings."),_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled:t(1444,e.DiagnosticCategory.Error,"_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedMod_1444","'{0}' is a type and must be imported using a type-only import when 'preserveValueImports' and 'isolatedModules' are both enabled."),_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled:t(1446,e.DiagnosticCategory.Error,"_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_preserveVa_1446","'{0}' resolves to a type-only declaration and must be imported using a type-only import when 'preserveValueImports' and 'isolatedModules' are both enabled."),_0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_isolatedModules_is_enabled:t(1448,e.DiagnosticCategory.Error,"_0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_isol_1448","'{0}' resolves to a type-only declaration and must be re-exported using a type-only re-export when 'isolatedModules' is enabled."),Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed:t(1449,e.DiagnosticCategory.Message,"Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed_1449","Preserve unused imported values in the JavaScript output that would otherwise be removed."),Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_assertion_as_arguments:t(1450,e.DiagnosticCategory.Message,"Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_assertion_as_arguments_1450","Dynamic imports can only accept a module specifier and an optional assertion as arguments"),Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression:t(1451,e.DiagnosticCategory.Error,"Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member__1451","Private identifiers are only allowed in class bodies and may only be used as part of a class member declaration, property access, or on the left-hand-side of an 'in' expression"),resolution_mode_assertions_are_only_supported_when_moduleResolution_is_node16_or_nodenext:t(1452,e.DiagnosticCategory.Error,"resolution_mode_assertions_are_only_supported_when_moduleResolution_is_node16_or_nodenext_1452","'resolution-mode' assertions are only supported when `moduleResolution` is `node16` or `nodenext`."),resolution_mode_should_be_either_require_or_import:t(1453,e.DiagnosticCategory.Error,"resolution_mode_should_be_either_require_or_import_1453","`resolution-mode` should be either `require` or `import`."),resolution_mode_can_only_be_set_for_type_only_imports:t(1454,e.DiagnosticCategory.Error,"resolution_mode_can_only_be_set_for_type_only_imports_1454","`resolution-mode` can only be set for type-only imports."),resolution_mode_is_the_only_valid_key_for_type_import_assertions:t(1455,e.DiagnosticCategory.Error,"resolution_mode_is_the_only_valid_key_for_type_import_assertions_1455","`resolution-mode` is the only valid key for type import assertions."),Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require:t(1456,e.DiagnosticCategory.Error,"Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require_1456","Type import assertions should have exactly one key - `resolution-mode` - with value `import` or `require`."),Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk:t(1457,e.DiagnosticCategory.Message,"Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk_1457","Matched by default include pattern '**/*'"),File_is_ECMAScript_module_because_0_has_field_type_with_value_module:t(1458,e.DiagnosticCategory.Message,"File_is_ECMAScript_module_because_0_has_field_type_with_value_module_1458",'File is ECMAScript module because \'{0}\' has field "type" with value "module"'),File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module:t(1459,e.DiagnosticCategory.Message,"File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module_1459",'File is CommonJS module because \'{0}\' has field "type" whose value is not "module"'),File_is_CommonJS_module_because_0_does_not_have_field_type:t(1460,e.DiagnosticCategory.Message,"File_is_CommonJS_module_because_0_does_not_have_field_type_1460","File is CommonJS module because '{0}' does not have field \"type\""),File_is_CommonJS_module_because_package_json_was_not_found:t(1461,e.DiagnosticCategory.Message,"File_is_CommonJS_module_because_package_json_was_not_found_1461","File is CommonJS module because 'package.json' was not found"),The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output:t(1470,e.DiagnosticCategory.Error,"The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output_1470","The 'import.meta' meta-property is not allowed in files which will build into CommonJS output."),Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_cannot_be_imported_with_require_Use_an_ECMAScript_import_instead:t(1471,e.DiagnosticCategory.Error,"Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_c_1471","Module '{0}' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead."),catch_or_finally_expected:t(1472,e.DiagnosticCategory.Error,"catch_or_finally_expected_1472","'catch' or 'finally' expected."),An_import_declaration_can_only_be_used_at_the_top_level_of_a_module:t(1473,e.DiagnosticCategory.Error,"An_import_declaration_can_only_be_used_at_the_top_level_of_a_module_1473","An import declaration can only be used at the top level of a module."),An_export_declaration_can_only_be_used_at_the_top_level_of_a_module:t(1474,e.DiagnosticCategory.Error,"An_export_declaration_can_only_be_used_at_the_top_level_of_a_module_1474","An export declaration can only be used at the top level of a module."),Control_what_method_is_used_to_detect_module_format_JS_files:t(1475,e.DiagnosticCategory.Message,"Control_what_method_is_used_to_detect_module_format_JS_files_1475","Control what method is used to detect module-format JS files."),auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_with_module_Colon_node16_as_modules:t(1476,e.DiagnosticCategory.Message,"auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_w_1476",'"auto": Treat files with imports, exports, import.meta, jsx (with jsx: react-jsx), or esm format (with module: node16+) as modules.'),An_instantiation_expression_cannot_be_followed_by_a_property_access:t(1477,e.DiagnosticCategory.Error,"An_instantiation_expression_cannot_be_followed_by_a_property_access_1477","An instantiation expression cannot be followed by a property access."),Identifier_or_string_literal_expected:t(1478,e.DiagnosticCategory.Error,"Identifier_or_string_literal_expected_1478","Identifier or string literal expected."),The_current_file_is_a_CommonJS_module_whose_imports_will_produce_require_calls_however_the_referenced_file_is_an_ECMAScript_module_and_cannot_be_imported_with_require_Consider_writing_a_dynamic_import_0_call_instead:t(1479,e.DiagnosticCategory.Error,"The_current_file_is_a_CommonJS_module_whose_imports_will_produce_require_calls_however_the_reference_1479","The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import(\"{0}\")' call instead."),To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_package_json_file_with_type_Colon_module:t(1480,e.DiagnosticCategory.Message,"To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_packag_1480",'To convert this file to an ECMAScript module, change its file extension to \'{0}\' or create a local package.json file with `{ "type": "module" }`.'),To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Colon_module_to_1:t(1481,e.DiagnosticCategory.Message,"To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Co_1481","To convert this file to an ECMAScript module, change its file extension to '{0}', or add the field `\"type\": \"module\"` to '{1}'."),To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0:t(1482,e.DiagnosticCategory.Message,"To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0_1482",'To convert this file to an ECMAScript module, add the field `"type": "module"` to \'{0}\'.'),To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module:t(1483,e.DiagnosticCategory.Message,"To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module_1483",'To convert this file to an ECMAScript module, create a local package.json file with `{ "type": "module" }`.'),The_types_of_0_are_incompatible_between_these_types:t(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:t(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:t(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:t(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:t(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:t(2205,e.DiagnosticCategory.Error,"Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1_2205","Construct signatures with no arguments have incompatible return types '{0}' and '{1}'.",void 0,!0),The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement:t(2206,e.DiagnosticCategory.Error,"The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement_2206","The 'type' modifier cannot be used on a named import when 'import type' is used on its import statement."),The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement:t(2207,e.DiagnosticCategory.Error,"The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement_2207","The 'type' modifier cannot be used on a named export when 'export type' is used on its export statement."),This_type_parameter_might_need_an_extends_0_constraint:t(2208,e.DiagnosticCategory.Error,"This_type_parameter_might_need_an_extends_0_constraint_2208","This type parameter might need an `extends {0}` constraint."),The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:t(2209,e.DiagnosticCategory.Error,"The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_roo_2209","The project root is ambiguous, but is required to resolve export map entry '{0}' in file '{1}'. Supply the `rootDir` compiler option to disambiguate."),The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:t(2210,e.DiagnosticCategory.Error,"The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_roo_2210","The project root is ambiguous, but is required to resolve import map entry '{0}' in file '{1}'. Supply the `rootDir` compiler option to disambiguate."),Add_extends_constraint:t(2211,e.DiagnosticCategory.Message,"Add_extends_constraint_2211","Add `extends` constraint."),Add_extends_constraint_to_all_type_parameters:t(2212,e.DiagnosticCategory.Message,"Add_extends_constraint_to_all_type_parameters_2212","Add `extends` constraint to all type parameters"),Duplicate_identifier_0:t(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:t(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:t(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:t(2303,e.DiagnosticCategory.Error,"Circular_definition_of_import_alias_0_2303","Circular definition of import alias '{0}'."),Cannot_find_name_0:t(2304,e.DiagnosticCategory.Error,"Cannot_find_name_0_2304","Cannot find name '{0}'."),Module_0_has_no_exported_member_1:t(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:t(2306,e.DiagnosticCategory.Error,"File_0_is_not_a_module_2306","File '{0}' is not a module."),Cannot_find_module_0_or_its_corresponding_type_declarations:t(2307,e.DiagnosticCategory.Error,"Cannot_find_module_0_or_its_corresponding_type_declarations_2307","Cannot find module '{0}' or its corresponding type declarations."),Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity:t(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:t(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:t(2310,e.DiagnosticCategory.Error,"Type_0_recursively_references_itself_as_a_base_type_2310","Type '{0}' recursively references itself as a base type."),Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function:t(2311,e.DiagnosticCategory.Error,"Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function_2311","Cannot find name '{0}'. Did you mean to write this in an async function?"),An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_members:t(2312,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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(2323,e.DiagnosticCategory.Error,"Cannot_redeclare_exported_variable_0_2323","Cannot redeclare exported variable '{0}'."),Property_0_is_missing_in_type_1:t(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:t(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:t(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:t(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:t(2328,e.DiagnosticCategory.Error,"Types_of_parameters_0_and_1_are_incompatible_2328","Types of parameters '{0}' and '{1}' are incompatible."),Index_signature_for_type_0_is_missing_in_type_1:t(2329,e.DiagnosticCategory.Error,"Index_signature_for_type_0_is_missing_in_type_1_2329","Index signature for type '{0}' is missing in type '{1}'."),_0_and_1_index_signatures_are_incompatible:t(2330,e.DiagnosticCategory.Error,"_0_and_1_index_signatures_are_incompatible_2330","'{0}' and '{1}' index signatures are incompatible."),this_cannot_be_referenced_in_a_module_or_namespace_body:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(2341,e.DiagnosticCategory.Error,"Property_0_is_private_and_only_accessible_within_class_1_2341","Property '{0}' is private and only accessible within class '{1}'."),This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_version_of_0:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type:t(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:t(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:t(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:t(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:t(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_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap:t(2367,e.DiagnosticCategory.Error,"This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap_2367","This comparison appears to be unintentional because the types '{0}' and '{1}' have no overlap."),Type_parameter_name_cannot_be_0:t(2368,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:t(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:t(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:t(2371,e.DiagnosticCategory.Error,"A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation_2371","A parameter initializer is only allowed in a function or constructor implementation."),Parameter_0_cannot_reference_itself:t(2372,e.DiagnosticCategory.Error,"Parameter_0_cannot_reference_itself_2372","Parameter '{0}' cannot reference itself."),Parameter_0_cannot_reference_identifier_1_declared_after_it:t(2373,e.DiagnosticCategory.Error,"Parameter_0_cannot_reference_identifier_1_declared_after_it_2373","Parameter '{0}' cannot reference identifier '{1}' declared after it."),Duplicate_index_signature_for_type_0:t(2374,e.DiagnosticCategory.Error,"Duplicate_index_signature_for_type_0_2374","Duplicate index signature for type '{0}'."),Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties:t(2375,e.DiagnosticCategory.Error,"Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2375","Type '{0}' is not assignable to type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the types of the target's properties."),A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_class_contains_initialized_properties_parameter_properties_or_private_identifiers:t(2376,e.DiagnosticCategory.Error,"A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_2376","A 'super' call must be the first statement in the constructor to refer to 'super' or 'this' when a derived class contains initialized properties, parameter properties, or private identifiers."),Constructors_for_derived_classes_must_contain_a_super_call:t(2377,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:t(2378,e.DiagnosticCategory.Error,"A_get_accessor_must_return_a_value_2378","A 'get' accessor must return a value."),Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties:t(2379,e.DiagnosticCategory.Error,"Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_tr_2379","Argument of type '{0}' is not assignable to parameter of type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the types of the target's properties."),The_return_type_of_a_get_accessor_must_be_assignable_to_its_set_accessor_type:t(2380,e.DiagnosticCategory.Error,"The_return_type_of_a_get_accessor_must_be_assignable_to_its_set_accessor_type_2380","The return type of a 'get' accessor must be assignable to its 'set' accessor type"),Overload_signatures_must_all_be_exported_or_non_exported:t(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:t(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:t(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:t(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:t(2387,e.DiagnosticCategory.Error,"Function_overload_must_be_static_2387","Function overload must be static."),Function_overload_must_not_be_static:t(2388,e.DiagnosticCategory.Error,"Function_overload_must_not_be_static_2388","Function overload must not be static."),Function_implementation_name_must_be_0:t(2389,e.DiagnosticCategory.Error,"Function_implementation_name_must_be_0_2389","Function implementation name must be '{0}'."),Constructor_implementation_is_missing:t(2390,e.DiagnosticCategory.Error,"Constructor_implementation_is_missing_2390","Constructor implementation is missing."),Function_implementation_is_missing_or_not_immediately_following_the_declaration:t(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:t(2392,e.DiagnosticCategory.Error,"Multiple_constructor_implementations_are_not_allowed_2392","Multiple constructor implementations are not allowed."),Duplicate_function_implementation:t(2393,e.DiagnosticCategory.Error,"Duplicate_function_implementation_2393","Duplicate function implementation."),This_overload_signature_is_not_compatible_with_its_implementation_signature:t(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:t(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:t(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:t(2397,e.DiagnosticCategory.Error,"Declaration_name_conflicts_with_built_in_global_identifier_0_2397","Declaration name conflicts with built-in global identifier '{0}'."),constructor_cannot_be_used_as_a_parameter_property_name:t(2398,e.DiagnosticCategory.Error,"constructor_cannot_be_used_as_a_parameter_property_name_2398","'constructor' cannot be used as a parameter property name."),Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference:t(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:t(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."),A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_initialized_properties_parameter_properties_or_private_identifiers:t(2401,e.DiagnosticCategory.Error,"A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_in_2401","A 'super' call must be a root-level statement within a constructor of a derived class that contains initialized properties, parameter properties, or private identifiers."),Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference:t(2402,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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(2410,e.DiagnosticCategory.Error,"The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any_2410","The 'with' statement is not supported. All symbols in a 'with' block will have type 'any'."),Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target:t(2412,e.DiagnosticCategory.Error,"Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2412","Type '{0}' is not assignable to type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the type of the target."),Property_0_of_type_1_is_not_assignable_to_2_index_type_3:t(2411,e.DiagnosticCategory.Error,"Property_0_of_type_1_is_not_assignable_to_2_index_type_3_2411","Property '{0}' of type '{1}' is not assignable to '{2}' index type '{3}'."),_0_index_type_1_is_not_assignable_to_2_index_type_3:t(2413,e.DiagnosticCategory.Error,"_0_index_type_1_is_not_assignable_to_2_index_type_3_2413","'{0}' index type '{1}' is not assignable to '{2}' index type '{3}'."),Class_name_cannot_be_0:t(2414,e.DiagnosticCategory.Error,"Class_name_cannot_be_0_2414","Class name cannot be '{0}'."),Class_0_incorrectly_extends_base_class_1:t(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:t(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:t(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:t(2418,e.DiagnosticCategory.Error,"Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1_2418","Type of computed property's value is '{0}', which is not assignable to type '{1}'."),Types_of_construct_signatures_are_incompatible:t(2419,e.DiagnosticCategory.Error,"Types_of_construct_signatures_are_incompatible_2419","Types of construct signatures are incompatible."),Class_0_incorrectly_implements_interface_1:t(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:t(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:t(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:t(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:t(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:t(2427,e.DiagnosticCategory.Error,"Interface_name_cannot_be_0_2427","Interface name cannot be '{0}'."),All_declarations_of_0_must_have_identical_type_parameters:t(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:t(2430,e.DiagnosticCategory.Error,"Interface_0_incorrectly_extends_interface_1_2430","Interface '{0}' incorrectly extends interface '{1}'."),Enum_name_cannot_be_0:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(2445,e.DiagnosticCategory.Error,"Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses_2445","Property '{0}' is protected and only accessible within class '{1}' and its subclasses."),Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_class_2:t(2446,e.DiagnosticCategory.Error,"Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_cl_2446","Property '{0}' is protected and only accessible through an instance of class '{1}'. This is an instance of class '{2}'."),The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead:t(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:t(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:t(2449,e.DiagnosticCategory.Error,"Class_0_used_before_its_declaration_2449","Class '{0}' used before its declaration."),Enum_0_used_before_its_declaration:t(2450,e.DiagnosticCategory.Error,"Enum_0_used_before_its_declaration_2450","Enum '{0}' used before its declaration."),Cannot_redeclare_block_scoped_variable_0:t(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:t(2452,e.DiagnosticCategory.Error,"An_enum_member_cannot_have_a_numeric_name_2452","An enum member cannot have a numeric name."),Variable_0_is_used_before_being_assigned:t(2454,e.DiagnosticCategory.Error,"Variable_0_is_used_before_being_assigned_2454","Variable '{0}' is used before being assigned."),Type_alias_0_circularly_references_itself:t(2456,e.DiagnosticCategory.Error,"Type_alias_0_circularly_references_itself_2456","Type alias '{0}' circularly references itself."),Type_alias_name_cannot_be_0:t(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:t(2458,e.DiagnosticCategory.Error,"An_AMD_module_cannot_have_multiple_name_assignments_2458","An AMD module cannot have multiple name assignments."),Module_0_declares_1_locally_but_it_is_not_exported:t(2459,e.DiagnosticCategory.Error,"Module_0_declares_1_locally_but_it_is_not_exported_2459","Module '{0}' declares '{1}' locally, but it is not exported."),Module_0_declares_1_locally_but_it_is_exported_as_2:t(2460,e.DiagnosticCategory.Error,"Module_0_declares_1_locally_but_it_is_exported_as_2_2460","Module '{0}' declares '{1}' locally, but it is exported as '{2}'."),Type_0_is_not_an_array_type:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(2468,e.DiagnosticCategory.Error,"Cannot_find_global_value_0_2468","Cannot find global value '{0}'."),The_0_operator_cannot_be_applied_to_type_symbol:t(2469,e.DiagnosticCategory.Error,"The_0_operator_cannot_be_applied_to_type_symbol_2469","The '{0}' operator cannot be applied to type 'symbol'."),Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher:t(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:t(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:t(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:t(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:t(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:t(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:t(2478,e.DiagnosticCategory.Error,"const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN_2478","'const' enum member initializer was evaluated to disallowed value 'NaN'."),let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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."),A_tuple_type_cannot_be_indexed_with_a_negative_value:t(2514,e.DiagnosticCategory.Error,"A_tuple_type_cannot_be_indexed_with_a_negative_value_2514","A tuple type cannot be indexed with a negative value."),Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2:t(2515,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:t(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:t(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:t(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:t(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:t(2520,e.DiagnosticCategory.Error,"Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions_2520","Duplicate identifier '{0}'. Compiler uses declaration '{1}' to support async functions."),The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_using_a_standard_function_or_method:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(2530,e.DiagnosticCategory.Error,"Property_0_is_incompatible_with_index_signature_2530","Property '{0}' is incompatible with index signature."),Object_is_possibly_null:t(2531,e.DiagnosticCategory.Error,"Object_is_possibly_null_2531","Object is possibly 'null'."),Object_is_possibly_undefined:t(2532,e.DiagnosticCategory.Error,"Object_is_possibly_undefined_2532","Object is possibly 'undefined'."),Object_is_possibly_null_or_undefined:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(2540,e.DiagnosticCategory.Error,"Cannot_assign_to_0_because_it_is_a_read_only_property_2540","Cannot assign to '{0}' because it is a read-only property."),Index_signature_in_type_0_only_permits_reading:t(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:t(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:t(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:t(2545,e.DiagnosticCategory.Error,"A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any_2545","A mixin class must have a constructor with a single rest parameter of type 'any[]'."),The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property:t(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:t(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:t(2549,e.DiagnosticCategory.Error,"Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns__2549","Type '{0}' is not an array type or a string type or does not have a '[Symbol.iterator]()' method that returns an iterator."),Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2_or_later:t(2550,e.DiagnosticCategory.Error,"Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_c_2550","Property '{0}' does not exist on type '{1}'. Do you need to change your target library? Try changing the 'lib' compiler option to '{2}' or later."),Property_0_does_not_exist_on_type_1_Did_you_mean_2:t(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:t(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:t(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:t(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:t(2555,e.DiagnosticCategory.Error,"Expected_at_least_0_arguments_but_got_1_2555","Expected at least {0} arguments, but got {1}."),A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter:t(2556,e.DiagnosticCategory.Error,"A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter_2556","A spread argument must either have a tuple type or be passed to a rest parameter."),Expected_0_type_arguments_but_got_1:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(2567,e.DiagnosticCategory.Error,"Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations_2567","Enum declarations can only merge with namespace or other enum declarations."),Property_0_may_not_exist_on_type_1_Did_you_mean_2:t(2568,e.DiagnosticCategory.Error,"Property_0_may_not_exist_on_type_1_Did_you_mean_2_2568","Property '{0}' may not exist on type '{1}'. Did you mean '{2}'?"),Could_not_find_name_0_Did_you_mean_1:t(2570,e.DiagnosticCategory.Error,"Could_not_find_name_0_Did_you_mean_1_2570","Could not find name '{0}'. Did you mean '{1}'?"),Object_is_of_type_unknown:t(2571,e.DiagnosticCategory.Error,"Object_is_of_type_unknown_2571","Object is of type 'unknown'."),A_rest_element_type_must_be_an_array_type:t(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:t(2575,e.DiagnosticCategory.Error,"No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments_2575","No overload expects {0} arguments, but overloads do exist that expect either {1} or {2} arguments."),Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead:t(2576,e.DiagnosticCategory.Error,"Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead_2576","Property '{0}' does not exist on type '{1}'. Did you mean to access the static member '{2}' instead?"),Return_type_annotation_circularly_references_itself:t(2577,e.DiagnosticCategory.Error,"Return_type_annotation_circularly_references_itself_2577","Return type annotation circularly references itself."),Unused_ts_expect_error_directive:t(2578,e.DiagnosticCategory.Error,"Unused_ts_expect_error_directive_2578","Unused '@ts-expect-error' directive."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode:t(2580,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashno_2580","Cannot find name '{0}'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery:t(2581,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slash_2581","Cannot find name '{0}'. Do you need to install type definitions for jQuery? Try `npm i --save-dev @types/jquery`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha:t(2582,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2582","Cannot find name '{0}'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha`."),Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_1_or_later:t(2583,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2583","Cannot find name '{0}'. Do you need to change your target library? Try changing the 'lib' compiler option to '{1}' or later."),Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_include_dom:t(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:t(2585,e.DiagnosticCategory.Error,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_2585","'{0}' only refers to a type, but is being used as a value here. Do you need to change your target library? Try changing the 'lib' compiler option to es2015 or later."),Cannot_assign_to_0_because_it_is_a_constant:t(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:t(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:t(2590,e.DiagnosticCategory.Error,"Expression_produces_a_union_type_that_is_too_complex_to_represent_2590","Expression produces a union type that is too complex to represent."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode_and_then_add_node_to_the_types_field_in_your_tsconfig:t(2591,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashno_2591","Cannot find name '{0}'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery_and_then_add_jquery_to_the_types_field_in_your_tsconfig:t(2592,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slash_2592","Cannot find name '{0}'. Do you need to install type definitions for jQuery? Try `npm i --save-dev @types/jquery` and then add 'jquery' to the types field in your tsconfig."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha_and_then_add_jest_or_mocha_to_the_types_field_in_your_tsconfig:t(2593,e.DiagnosticCategory.Error,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2593","Cannot find name '{0}'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha` and then add 'jest' or 'mocha' to the types field in your tsconfig."),This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag:t(2594,e.DiagnosticCategory.Error,"This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag_2594","This module is declared with 'export =', and can only be used with a default import when using the '{0}' flag."),_0_can_only_be_imported_by_using_a_default_import:t(2595,e.DiagnosticCategory.Error,"_0_can_only_be_imported_by_using_a_default_import_2595","'{0}' can only be imported by using a default import."),_0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:t(2596,e.DiagnosticCategory.Error,"_0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import_2596","'{0}' can only be imported by turning on the 'esModuleInterop' flag and using a default import."),_0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import:t(2597,e.DiagnosticCategory.Error,"_0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import_2597","'{0}' can only be imported by using a 'require' call or by using a default import."),_0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:t(2598,e.DiagnosticCategory.Error,"_0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using__2598","'{0}' can only be imported by using a 'require' call or by turning on the 'esModuleInterop' flag and using a default import."),JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist:t(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:t(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:t(2604,e.DiagnosticCategory.Error,"JSX_element_type_0_does_not_have_any_construct_or_call_signatures_2604","JSX element type '{0}' does not have any construct or call signatures."),Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property:t(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:t(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:t(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:t(2609,e.DiagnosticCategory.Error,"JSX_spread_child_must_be_an_array_type_2609","JSX spread child must be an array type."),_0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property:t(2610,e.DiagnosticCategory.Error,"_0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property_2610","'{0}' is defined as an accessor in class '{1}', but is overridden here in '{2}' as an instance property."),_0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor:t(2611,e.DiagnosticCategory.Error,"_0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor_2611","'{0}' is defined as a property in class '{1}', but is overridden here in '{2}' as an accessor."),Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_add_a_declare_modifier_or_remove_the_redundant_declaration:t(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:t(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:t(2614,e.DiagnosticCategory.Error,"Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead_2614","Module '{0}' has no exported member '{1}'. Did you mean to use 'import {1} from {0}' instead?"),Type_of_property_0_circularly_references_itself_in_mapped_type_1:t(2615,e.DiagnosticCategory.Error,"Type_of_property_0_circularly_references_itself_in_mapped_type_1_2615","Type of property '{0}' circularly references itself in mapped type '{1}'."),_0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import:t(2616,e.DiagnosticCategory.Error,"_0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import_2616","'{0}' can only be imported by using 'import {1} = require({2})' or a default import."),_0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:t(2617,e.DiagnosticCategory.Error,"_0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_us_2617","'{0}' can only be imported by using 'import {1} = require({2})' or by turning on the 'esModuleInterop' flag and using a default import."),Source_has_0_element_s_but_target_requires_1:t(2618,e.DiagnosticCategory.Error,"Source_has_0_element_s_but_target_requires_1_2618","Source has {0} element(s) but target requires {1}."),Source_has_0_element_s_but_target_allows_only_1:t(2619,e.DiagnosticCategory.Error,"Source_has_0_element_s_but_target_allows_only_1_2619","Source has {0} element(s) but target allows only {1}."),Target_requires_0_element_s_but_source_may_have_fewer:t(2620,e.DiagnosticCategory.Error,"Target_requires_0_element_s_but_source_may_have_fewer_2620","Target requires {0} element(s) but source may have fewer."),Target_allows_only_0_element_s_but_source_may_have_more:t(2621,e.DiagnosticCategory.Error,"Target_allows_only_0_element_s_but_source_may_have_more_2621","Target allows only {0} element(s) but source may have more."),Source_provides_no_match_for_required_element_at_position_0_in_target:t(2623,e.DiagnosticCategory.Error,"Source_provides_no_match_for_required_element_at_position_0_in_target_2623","Source provides no match for required element at position {0} in target."),Source_provides_no_match_for_variadic_element_at_position_0_in_target:t(2624,e.DiagnosticCategory.Error,"Source_provides_no_match_for_variadic_element_at_position_0_in_target_2624","Source provides no match for variadic element at position {0} in target."),Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target:t(2625,e.DiagnosticCategory.Error,"Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target_2625","Variadic element at position {0} in source does not match element at position {1} in target."),Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target:t(2626,e.DiagnosticCategory.Error,"Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target_2626","Type at position {0} in source is not compatible with type at position {1} in target."),Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target:t(2627,e.DiagnosticCategory.Error,"Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target_2627","Type at positions {0} through {1} in source is not compatible with type at position {2} in target."),Cannot_assign_to_0_because_it_is_an_enum:t(2628,e.DiagnosticCategory.Error,"Cannot_assign_to_0_because_it_is_an_enum_2628","Cannot assign to '{0}' because it is an enum."),Cannot_assign_to_0_because_it_is_a_class:t(2629,e.DiagnosticCategory.Error,"Cannot_assign_to_0_because_it_is_a_class_2629","Cannot assign to '{0}' because it is a class."),Cannot_assign_to_0_because_it_is_a_function:t(2630,e.DiagnosticCategory.Error,"Cannot_assign_to_0_because_it_is_a_function_2630","Cannot assign to '{0}' because it is a function."),Cannot_assign_to_0_because_it_is_a_namespace:t(2631,e.DiagnosticCategory.Error,"Cannot_assign_to_0_because_it_is_a_namespace_2631","Cannot assign to '{0}' because it is a namespace."),Cannot_assign_to_0_because_it_is_an_import:t(2632,e.DiagnosticCategory.Error,"Cannot_assign_to_0_because_it_is_an_import_2632","Cannot assign to '{0}' because it is an import."),JSX_property_access_expressions_cannot_include_JSX_namespace_names:t(2633,e.DiagnosticCategory.Error,"JSX_property_access_expressions_cannot_include_JSX_namespace_names_2633","JSX property access expressions cannot include JSX namespace names"),_0_index_signatures_are_incompatible:t(2634,e.DiagnosticCategory.Error,"_0_index_signatures_are_incompatible_2634","'{0}' index signatures are incompatible."),Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable:t(2635,e.DiagnosticCategory.Error,"Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable_2635","Type '{0}' has no signatures for which the type argument list is applicable."),Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation:t(2636,e.DiagnosticCategory.Error,"Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation_2636","Type '{0}' is not assignable to type '{1}' as implied by variance annotation."),Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_types:t(2637,e.DiagnosticCategory.Error,"Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_t_2637","Variance annotations are only supported in type aliases for object, function, constructor, and mapped types."),Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operator:t(2638,e.DiagnosticCategory.Error,"Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operato_2638","Type '{0}' may represent a primitive value, which is not permitted as the right operand of the 'in' operator."),Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity:t(2649,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:t(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:t(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:t(2653,e.DiagnosticCategory.Error,"Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1_2653","Non-abstract class expression does not implement inherited abstract member '{0}' from class '{1}'."),JSX_expressions_must_have_one_parent_element:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(2681,e.DiagnosticCategory.Error,"A_constructor_cannot_have_a_this_parameter_2681","A constructor cannot have a 'this' parameter."),this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation:t(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:t(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:t(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:t(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:t(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:t(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:t(2689,e.DiagnosticCategory.Error,"Cannot_extend_an_interface_0_Did_you_mean_implements_2689","Cannot extend an interface '{0}'. Did you mean 'implements'?"),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0:t(2690,e.DiagnosticCategory.Error,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0_2690","'{0}' only refers to a type, but is being used as a value here. Did you mean to use '{1} in {0}'?"),An_import_path_cannot_end_with_a_0_extension_Consider_importing_1_instead:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(2723,e.DiagnosticCategory.Error,"Cannot_invoke_an_object_which_is_possibly_null_or_undefined_2723","Cannot invoke an object which is possibly 'null' or 'undefined'."),_0_has_no_exported_member_named_1_Did_you_mean_2:t(2724,e.DiagnosticCategory.Error,"_0_has_no_exported_member_named_1_Did_you_mean_2_2724","'{0}' has no exported member named '{1}'. Did you mean '{2}'?"),Class_name_cannot_be_Object_when_targeting_ES5_with_module_0:t(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:t(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:t(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:t(2728,e.DiagnosticCategory.Message,"_0_is_declared_here_2728","'{0}' is declared here."),Property_0_is_used_before_its_initialization:t(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:t(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:t(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:t(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:t(2733,e.DiagnosticCategory.Error,"Property_0_was_also_declared_here_2733","Property '{0}' was also declared here."),Are_you_missing_a_semicolon:t(2734,e.DiagnosticCategory.Error,"Are_you_missing_a_semicolon_2734","Are you missing a semicolon?"),Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1:t(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:t(2736,e.DiagnosticCategory.Error,"Operator_0_cannot_be_applied_to_type_1_2736","Operator '{0}' cannot be applied to type '{1}'."),BigInt_literals_are_not_available_when_targeting_lower_than_ES2020:t(2737,e.DiagnosticCategory.Error,"BigInt_literals_are_not_available_when_targeting_lower_than_ES2020_2737","BigInt literals are not available when targeting lower than ES2020."),An_outer_value_of_this_is_shadowed_by_this_container:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(2748,e.DiagnosticCategory.Error,"Cannot_access_ambient_const_enums_when_the_isolatedModules_flag_is_provided_2748","Cannot access ambient const enums when the '--isolatedModules' flag is provided."),_0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0:t(2749,e.DiagnosticCategory.Error,"_0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0_2749","'{0}' refers to a value, but is being used as a type here. Did you mean 'typeof {0}'?"),The_implementation_signature_is_declared_here:t(2750,e.DiagnosticCategory.Error,"The_implementation_signature_is_declared_here_2750","The implementation signature is declared here."),Circularity_originates_in_type_at_this_location:t(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:t(2752,e.DiagnosticCategory.Error,"The_first_export_default_is_here_2752","The first export default is here."),Another_export_default_is_here:t(2753,e.DiagnosticCategory.Error,"Another_export_default_is_here_2753","Another export default is here."),super_may_not_use_type_arguments:t(2754,e.DiagnosticCategory.Error,"super_may_not_use_type_arguments_2754","'super' may not use type arguments."),No_constituent_of_type_0_is_callable:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(2769,e.DiagnosticCategory.Error,"No_overload_matches_this_call_2769","No overload matches this call."),The_last_overload_gave_the_following_error:t(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:t(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:t(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:t(2773,e.DiagnosticCategory.Error,"Did_you_forget_to_use_await_2773","Did you forget to use 'await'?"),This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead:t(2774,e.DiagnosticCategory.Error,"This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_2774","This condition will always return true since this function is always defined. Did you mean to call it instead?"),Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation:t(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:t(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:t(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:t(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:t(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:t(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:t(2781,e.DiagnosticCategory.Error,"The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access_2781","The left-hand side of a 'for...of' statement may not be an optional property access."),_0_needs_an_explicit_type_annotation:t(2782,e.DiagnosticCategory.Message,"_0_needs_an_explicit_type_annotation_2782","'{0}' needs an explicit type annotation."),_0_is_specified_more_than_once_so_this_usage_will_be_overwritten:t(2783,e.DiagnosticCategory.Error,"_0_is_specified_more_than_once_so_this_usage_will_be_overwritten_2783","'{0}' is specified more than once, so this usage will be overwritten."),get_and_set_accessors_cannot_declare_this_parameters:t(2784,e.DiagnosticCategory.Error,"get_and_set_accessors_cannot_declare_this_parameters_2784","'get' and 'set' accessors cannot declare 'this' parameters."),This_spread_always_overwrites_this_property:t(2785,e.DiagnosticCategory.Error,"This_spread_always_overwrites_this_property_2785","This spread always overwrites this property."),_0_cannot_be_used_as_a_JSX_component:t(2786,e.DiagnosticCategory.Error,"_0_cannot_be_used_as_a_JSX_component_2786","'{0}' cannot be used as a JSX component."),Its_return_type_0_is_not_a_valid_JSX_element:t(2787,e.DiagnosticCategory.Error,"Its_return_type_0_is_not_a_valid_JSX_element_2787","Its return type '{0}' is not a valid JSX element."),Its_instance_type_0_is_not_a_valid_JSX_element:t(2788,e.DiagnosticCategory.Error,"Its_instance_type_0_is_not_a_valid_JSX_element_2788","Its instance type '{0}' is not a valid JSX element."),Its_element_type_0_is_not_a_valid_JSX_element:t(2789,e.DiagnosticCategory.Error,"Its_element_type_0_is_not_a_valid_JSX_element_2789","Its element type '{0}' is not a valid JSX element."),The_operand_of_a_delete_operator_must_be_optional:t(2790,e.DiagnosticCategory.Error,"The_operand_of_a_delete_operator_must_be_optional_2790","The operand of a 'delete' operator must be optional."),Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_later:t(2791,e.DiagnosticCategory.Error,"Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_lat_2791","Exponentiation cannot be performed on 'bigint' values unless the 'target' option is set to 'es2016' or later."),Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_node_or_to_add_aliases_to_the_paths_option:t(2792,e.DiagnosticCategory.Error,"Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_node_or_to_add_aliases_to_th_2792","Cannot find module '{0}'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?"),The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_are_not_externally_visible:t(2793,e.DiagnosticCategory.Error,"The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_2793","The call would have succeeded against this implementation, but implementation signatures of overloads are not externally visible."),Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise:t(2794,e.DiagnosticCategory.Error,"Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise_2794","Expected {0} arguments, but got {1}. Did you forget to include 'void' in your type argument to 'Promise'?"),The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types:t(2795,e.DiagnosticCategory.Error,"The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types_2795","The 'intrinsic' keyword can only be used to declare compiler provided intrinsic types."),It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tagged_template_expression_which_cannot_be_invoked:t(2796,e.DiagnosticCategory.Error,"It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tag_2796","It is likely that you are missing a comma to separate these two template expressions. They form a tagged template expression which cannot be invoked."),A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_be_declared_abstract:t(2797,e.DiagnosticCategory.Error,"A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_2797","A mixin class that extends from a type variable containing an abstract construct signature must also be declared 'abstract'."),The_declaration_was_marked_as_deprecated_here:t(2798,e.DiagnosticCategory.Error,"The_declaration_was_marked_as_deprecated_here_2798","The declaration was marked as deprecated here."),Type_produces_a_tuple_type_that_is_too_large_to_represent:t(2799,e.DiagnosticCategory.Error,"Type_produces_a_tuple_type_that_is_too_large_to_represent_2799","Type produces a tuple type that is too large to represent."),Expression_produces_a_tuple_type_that_is_too_large_to_represent:t(2800,e.DiagnosticCategory.Error,"Expression_produces_a_tuple_type_that_is_too_large_to_represent_2800","Expression produces a tuple type that is too large to represent."),This_condition_will_always_return_true_since_this_0_is_always_defined:t(2801,e.DiagnosticCategory.Error,"This_condition_will_always_return_true_since_this_0_is_always_defined_2801","This condition will always return true since this '{0}' is always defined."),Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher:t(2802,e.DiagnosticCategory.Error,"Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es201_2802","Type '{0}' can only be iterated through when using the '--downlevelIteration' flag or with a '--target' of 'es2015' or higher."),Cannot_assign_to_private_method_0_Private_methods_are_not_writable:t(2803,e.DiagnosticCategory.Error,"Cannot_assign_to_private_method_0_Private_methods_are_not_writable_2803","Cannot assign to private method '{0}'. Private methods are not writable."),Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name:t(2804,e.DiagnosticCategory.Error,"Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name_2804","Duplicate identifier '{0}'. Static and instance elements cannot share the same private name."),Private_accessor_was_defined_without_a_getter:t(2806,e.DiagnosticCategory.Error,"Private_accessor_was_defined_without_a_getter_2806","Private accessor was defined without a getter."),This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0:t(2807,e.DiagnosticCategory.Error,"This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_o_2807","This syntax requires an imported helper named '{1}' with {2} parameters, which is not compatible with the one in '{0}'. Consider upgrading your version of '{0}'."),A_get_accessor_must_be_at_least_as_accessible_as_the_setter:t(2808,e.DiagnosticCategory.Error,"A_get_accessor_must_be_at_least_as_accessible_as_the_setter_2808","A get accessor must be at least as accessible as the setter"),Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_destructuring_assignment_you_might_need_to_wrap_the_the_whole_assignment_in_parentheses:t(2809,e.DiagnosticCategory.Error,"Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_d_2809","Declaration or statement expected. This '=' follows a block of statements, so if you intended to write a destructuring assignment, you might need to wrap the the whole assignment in parentheses."),Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_without_arguments:t(2810,e.DiagnosticCategory.Error,"Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_2810","Expected 1 argument, but got 0. 'new Promise()' needs a JSDoc hint to produce a 'resolve' that can be called without arguments."),Initializer_for_property_0:t(2811,e.DiagnosticCategory.Error,"Initializer_for_property_0_2811","Initializer for property '{0}'"),Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom:t(2812,e.DiagnosticCategory.Error,"Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom_2812","Property '{0}' does not exist on type '{1}'. Try changing the 'lib' compiler option to include 'dom'."),Class_declaration_cannot_implement_overload_list_for_0:t(2813,e.DiagnosticCategory.Error,"Class_declaration_cannot_implement_overload_list_for_0_2813","Class declaration cannot implement overload list for '{0}'."),Function_with_bodies_can_only_merge_with_classes_that_are_ambient:t(2814,e.DiagnosticCategory.Error,"Function_with_bodies_can_only_merge_with_classes_that_are_ambient_2814","Function with bodies can only merge with classes that are ambient."),arguments_cannot_be_referenced_in_property_initializers:t(2815,e.DiagnosticCategory.Error,"arguments_cannot_be_referenced_in_property_initializers_2815","'arguments' cannot be referenced in property initializers."),Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class:t(2816,e.DiagnosticCategory.Error,"Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class_2816","Cannot use 'this' in a static property initializer of a decorated class."),Property_0_has_no_initializer_and_is_not_definitely_assigned_in_a_class_static_block:t(2817,e.DiagnosticCategory.Error,"Property_0_has_no_initializer_and_is_not_definitely_assigned_in_a_class_static_block_2817","Property '{0}' has no initializer and is not definitely assigned in a class static block."),Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializers:t(2818,e.DiagnosticCategory.Error,"Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializer_2818","Duplicate identifier '{0}'. Compiler reserves name '{1}' when emitting 'super' references in static initializers."),Namespace_name_cannot_be_0:t(2819,e.DiagnosticCategory.Error,"Namespace_name_cannot_be_0_2819","Namespace name cannot be '{0}'."),Type_0_is_not_assignable_to_type_1_Did_you_mean_2:t(2820,e.DiagnosticCategory.Error,"Type_0_is_not_assignable_to_type_1_Did_you_mean_2_2820","Type '{0}' is not assignable to type '{1}'. Did you mean '{2}'?"),Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_or_nodenext:t(2821,e.DiagnosticCategory.Error,"Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_or_nodenext_2821","Import assertions are only supported when the '--module' option is set to 'esnext' or 'nodenext'."),Import_assertions_cannot_be_used_with_type_only_imports_or_exports:t(2822,e.DiagnosticCategory.Error,"Import_assertions_cannot_be_used_with_type_only_imports_or_exports_2822","Import assertions cannot be used with type-only imports or exports."),Cannot_find_namespace_0_Did_you_mean_1:t(2833,e.DiagnosticCategory.Error,"Cannot_find_namespace_0_Did_you_mean_1_2833","Cannot find namespace '{0}'. Did you mean '{1}'?"),Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_node16_or_nodenext_Consider_adding_an_extension_to_the_import_path:t(2834,e.DiagnosticCategory.Error,"Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_n_2834","Relative import paths need explicit file extensions in EcmaScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Consider adding an extension to the import path."),Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_node16_or_nodenext_Did_you_mean_0:t(2835,e.DiagnosticCategory.Error,"Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_n_2835","Relative import paths need explicit file extensions in EcmaScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Did you mean '{0}'?"),Import_assertions_are_not_allowed_on_statements_that_transpile_to_commonjs_require_calls:t(2836,e.DiagnosticCategory.Error,"Import_assertions_are_not_allowed_on_statements_that_transpile_to_commonjs_require_calls_2836","Import assertions are not allowed on statements that transpile to commonjs 'require' calls."),Import_assertion_values_must_be_string_literal_expressions:t(2837,e.DiagnosticCategory.Error,"Import_assertion_values_must_be_string_literal_expressions_2837","Import assertion values must be string literal expressions."),All_declarations_of_0_must_have_identical_constraints:t(2838,e.DiagnosticCategory.Error,"All_declarations_of_0_must_have_identical_constraints_2838","All declarations of '{0}' must have identical constraints."),This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value:t(2839,e.DiagnosticCategory.Error,"This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value_2839","This condition will always return '{0}' since JavaScript compares objects by reference, not value."),An_interface_cannot_extend_a_primitive_type_like_0_an_interface_can_only_extend_named_types_and_classes:t(2840,e.DiagnosticCategory.Error,"An_interface_cannot_extend_a_primitive_type_like_0_an_interface_can_only_extend_named_types_and_clas_2840","An interface cannot extend a primitive type like '{0}'; an interface can only extend named types and classes"),The_type_of_this_expression_cannot_be_named_without_a_resolution_mode_assertion_which_is_an_unstable_feature_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next:t(2841,e.DiagnosticCategory.Error,"The_type_of_this_expression_cannot_be_named_without_a_resolution_mode_assertion_which_is_an_unstable_2841","The type of this expression cannot be named without a 'resolution-mode' assertion, which is an unstable feature. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'."),_0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation:t(2842,e.DiagnosticCategory.Error,"_0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation_2842","'{0}' is an unused renaming of '{1}'. Did you intend to use it as a type annotation?"),We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here:t(2843,e.DiagnosticCategory.Error,"We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here_2843","We can only write a type for '{0}' by adding a type for the entire parameter here."),Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:t(2844,e.DiagnosticCategory.Error,"Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor_2844","Type of instance member variable '{0}' cannot reference identifier '{1}' declared in the constructor."),This_condition_will_always_return_0:t(2845,e.DiagnosticCategory.Error,"This_condition_will_always_return_0_2845","This condition will always return '{0}'."),Import_declaration_0_is_using_private_name_1:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(4020,e.DiagnosticCategory.Error,"extends_clause_of_exported_class_0_has_or_is_using_private_name_1_4020","'extends' clause of exported class '{0}' has or is using private name '{1}'."),extends_clause_of_exported_class_has_or_is_using_private_name_0:t(4021,e.DiagnosticCategory.Error,"extends_clause_of_exported_class_has_or_is_using_private_name_0_4021","'extends' clause of exported class has or is using private name '{0}'."),extends_clause_of_exported_interface_0_has_or_is_using_private_name_1:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(4083,e.DiagnosticCategory.Error,"Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1_4083","Type parameter '{0}' of exported type alias has or is using private name '{1}'."),Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2:t(4084,e.DiagnosticCategory.Error,"Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2_4084","Exported type alias '{0}' has or is using private name '{1}' from module {2}."),Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_library_to_resolve_the_conflict:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(4110,e.DiagnosticCategory.Error,"Tuple_type_arguments_circularly_reference_themselves_4110","Tuple type arguments circularly reference themselves."),Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0:t(4111,e.DiagnosticCategory.Error,"Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0_4111","Property '{0}' comes from an index signature, so it must be accessed with ['{0}']."),This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class:t(4112,e.DiagnosticCategory.Error,"This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another__4112","This member cannot have an 'override' modifier because its containing class '{0}' does not extend another class."),This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0:t(4113,e.DiagnosticCategory.Error,"This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_4113","This member cannot have an 'override' modifier because it is not declared in the base class '{0}'."),This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0:t(4114,e.DiagnosticCategory.Error,"This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0_4114","This member must have an 'override' modifier because it overrides a member in the base class '{0}'."),This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0:t(4115,e.DiagnosticCategory.Error,"This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0_4115","This parameter property must have an 'override' modifier because it overrides a member in base class '{0}'."),This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0:t(4116,e.DiagnosticCategory.Error,"This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared__4116","This member must have an 'override' modifier because it overrides an abstract method that is declared in the base class '{0}'."),This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1:t(4117,e.DiagnosticCategory.Error,"This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you__4117","This member cannot have an 'override' modifier because it is not declared in the base class '{0}'. Did you mean '{1}'?"),The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized:t(4118,e.DiagnosticCategory.Error,"The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized_4118","The type of this node cannot be serialized because its property '{0}' cannot be serialized."),This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:t(4119,e.DiagnosticCategory.Error,"This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_4119","This member must have a JSDoc comment with an '@override' tag because it overrides a member in the base class '{0}'."),This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:t(4120,e.DiagnosticCategory.Error,"This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_4120","This parameter property must have a JSDoc comment with an '@override' tag because it overrides a member in the base class '{0}'."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class:t(4121,e.DiagnosticCategory.Error,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_4121","This member cannot have a JSDoc comment with an '@override' tag because its containing class '{0}' does not extend another class."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0:t(4122,e.DiagnosticCategory.Error,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4122","This member cannot have a JSDoc comment with an '@override' tag because it is not declared in the base class '{0}'."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1:t(4123,e.DiagnosticCategory.Error,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4123","This member cannot have a JSDoc comment with an 'override' tag because it is not declared in the base class '{0}'. Did you mean '{1}'?"),Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next:t(4124,e.DiagnosticCategory.Error,"Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_w_4124","Compiler option '{0}' of value '{1}' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'."),resolution_mode_assertions_are_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next:t(4125,e.DiagnosticCategory.Error,"resolution_mode_assertions_are_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_wi_4125","'resolution-mode' assertions are unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'."),The_current_host_does_not_support_the_0_option:t(5001,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:t(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:t(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:t(5012,e.DiagnosticCategory.Error,"Cannot_read_file_0_Colon_1_5012","Cannot read file '{0}': {1}."),Failed_to_parse_file_0_Colon_1:t(5014,e.DiagnosticCategory.Error,"Failed_to_parse_file_0_Colon_1_5014","Failed to parse file '{0}': {1}."),Unknown_compiler_option_0:t(5023,e.DiagnosticCategory.Error,"Unknown_compiler_option_0_5023","Unknown compiler option '{0}'."),Compiler_option_0_requires_a_value_of_type_1:t(5024,e.DiagnosticCategory.Error,"Compiler_option_0_requires_a_value_of_type_1_5024","Compiler option '{0}' requires a value of type {1}."),Unknown_compiler_option_0_Did_you_mean_1:t(5025,e.DiagnosticCategory.Error,"Unknown_compiler_option_0_Did_you_mean_1_5025","Unknown compiler option '{0}'. Did you mean '{1}'?"),Could_not_write_file_0_Colon_1:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(5059,e.DiagnosticCategory.Error,"Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier_5059","Invalid value for '--reactNamespace'. '{0}' is not a valid identifier."),Pattern_0_can_have_at_most_one_Asterisk_character:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(5072,e.DiagnosticCategory.Error,"Unknown_build_option_0_5072","Unknown build option '{0}'."),Build_option_0_requires_a_value_of_type_1:t(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:t(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:t(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:t(5076,e.DiagnosticCategory.Error,"_0_and_1_operations_cannot_be_mixed_without_parentheses_5076","'{0}' and '{1}' operations cannot be mixed without parentheses."),Unknown_build_option_0_Did_you_mean_1:t(5077,e.DiagnosticCategory.Error,"Unknown_build_option_0_Did_you_mean_1_5077","Unknown build option '{0}'. Did you mean '{1}'?"),Unknown_watch_option_0:t(5078,e.DiagnosticCategory.Error,"Unknown_watch_option_0_5078","Unknown watch option '{0}'."),Unknown_watch_option_0_Did_you_mean_1:t(5079,e.DiagnosticCategory.Error,"Unknown_watch_option_0_Did_you_mean_1_5079","Unknown watch option '{0}'. Did you mean '{1}'?"),Watch_option_0_requires_a_value_of_type_1:t(5080,e.DiagnosticCategory.Error,"Watch_option_0_requires_a_value_of_type_1_5080","Watch option '{0}' requires a value of type {1}."),Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0:t(5081,e.DiagnosticCategory.Error,"Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0_5081","Cannot find a tsconfig.json file at the current directory: {0}."),_0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1:t(5082,e.DiagnosticCategory.Error,"_0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1_5082","'{0}' could be instantiated with an arbitrary type which could be unrelated to '{1}'."),Cannot_read_file_0:t(5083,e.DiagnosticCategory.Error,"Cannot_read_file_0_5083","Cannot read file '{0}'."),Tuple_members_must_all_have_names_or_all_not_have_names:t(5084,e.DiagnosticCategory.Error,"Tuple_members_must_all_have_names_or_all_not_have_names_5084","Tuple members must all have names or all not have names."),A_tuple_member_cannot_be_both_optional_and_rest:t(5085,e.DiagnosticCategory.Error,"A_tuple_member_cannot_be_both_optional_and_rest_5085","A tuple member cannot be both optional and rest."),A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type:t(5086,e.DiagnosticCategory.Error,"A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_c_5086","A labeled tuple element is declared as optional with a question mark after the name and before the colon, rather than after the type."),A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type:t(5087,e.DiagnosticCategory.Error,"A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type_5087","A labeled tuple element is declared as rest with a '...' before the name, rather than before the type."),The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialized_A_type_annotation_is_necessary:t(5088,e.DiagnosticCategory.Error,"The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialize_5088","The inferred type of '{0}' references a type with a cyclic structure which cannot be trivially serialized. A type annotation is necessary."),Option_0_cannot_be_specified_when_option_jsx_is_1:t(5089,e.DiagnosticCategory.Error,"Option_0_cannot_be_specified_when_option_jsx_is_1_5089","Option '{0}' cannot be specified when option 'jsx' is '{1}'."),Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash:t(5090,e.DiagnosticCategory.Error,"Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash_5090","Non-relative paths are not allowed when 'baseUrl' is not set. Did you forget a leading './'?"),Option_preserveConstEnums_cannot_be_disabled_when_isolatedModules_is_enabled:t(5091,e.DiagnosticCategory.Error,"Option_preserveConstEnums_cannot_be_disabled_when_isolatedModules_is_enabled_5091","Option 'preserveConstEnums' cannot be disabled when 'isolatedModules' is enabled."),The_root_value_of_a_0_file_must_be_an_object:t(5092,e.DiagnosticCategory.Error,"The_root_value_of_a_0_file_must_be_an_object_5092","The root value of a '{0}' file must be an object."),Compiler_option_0_may_only_be_used_with_build:t(5093,e.DiagnosticCategory.Error,"Compiler_option_0_may_only_be_used_with_build_5093","Compiler option '--{0}' may only be used with '--build'."),Compiler_option_0_may_not_be_used_with_build:t(5094,e.DiagnosticCategory.Error,"Compiler_option_0_may_not_be_used_with_build_5094","Compiler option '--{0}' may not be used with '--build'."),Option_preserveValueImports_can_only_be_used_when_module_is_set_to_es2015_or_later:t(5095,e.DiagnosticCategory.Error,"Option_preserveValueImports_can_only_be_used_when_module_is_set_to_es2015_or_later_5095","Option 'preserveValueImports' can only be used when 'module' is set to 'es2015' or later."),Generates_a_sourcemap_for_each_corresponding_d_ts_file:t(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:t(6001,e.DiagnosticCategory.Message,"Concatenate_and_emit_output_to_single_file_6001","Concatenate and emit output to single file."),Generates_corresponding_d_ts_file:t(6002,e.DiagnosticCategory.Message,"Generates_corresponding_d_ts_file_6002","Generates corresponding '.d.ts' file."),Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations:t(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:t(6005,e.DiagnosticCategory.Message,"Watch_input_files_6005","Watch input files."),Redirect_output_structure_to_the_directory:t(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:t(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:t(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:t(6009,e.DiagnosticCategory.Message,"Do_not_emit_comments_to_output_6009","Do not emit comments to output."),Do_not_emit_outputs:t(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:t(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:t(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:t(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:t(6014,e.DiagnosticCategory.Message,"Only_emit_d_ts_declaration_files_6014","Only emit '.d.ts' declaration files."),Specify_ECMAScript_target_version:t(6015,e.DiagnosticCategory.Message,"Specify_ECMAScript_target_version_6015","Specify ECMAScript target version."),Specify_module_code_generation:t(6016,e.DiagnosticCategory.Message,"Specify_module_code_generation_6016","Specify module code generation."),Print_this_message:t(6017,e.DiagnosticCategory.Message,"Print_this_message_6017","Print this message."),Print_the_compiler_s_version:t(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:t(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:t(6023,e.DiagnosticCategory.Message,"Syntax_Colon_0_6023","Syntax: {0}"),options:t(6024,e.DiagnosticCategory.Message,"options_6024","options"),file:t(6025,e.DiagnosticCategory.Message,"file_6025","file"),Examples_Colon_0:t(6026,e.DiagnosticCategory.Message,"Examples_Colon_0_6026","Examples: {0}"),Options_Colon:t(6027,e.DiagnosticCategory.Message,"Options_Colon_6027","Options:"),Version_0:t(6029,e.DiagnosticCategory.Message,"Version_0_6029","Version {0}"),Insert_command_line_options_and_files_from_a_file:t(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:t(6031,e.DiagnosticCategory.Message,"Starting_compilation_in_watch_mode_6031","Starting compilation in watch mode..."),File_change_detected_Starting_incremental_compilation:t(6032,e.DiagnosticCategory.Message,"File_change_detected_Starting_incremental_compilation_6032","File change detected. Starting incremental compilation..."),KIND:t(6034,e.DiagnosticCategory.Message,"KIND_6034","KIND"),FILE:t(6035,e.DiagnosticCategory.Message,"FILE_6035","FILE"),VERSION:t(6036,e.DiagnosticCategory.Message,"VERSION_6036","VERSION"),LOCATION:t(6037,e.DiagnosticCategory.Message,"LOCATION_6037","LOCATION"),DIRECTORY:t(6038,e.DiagnosticCategory.Message,"DIRECTORY_6038","DIRECTORY"),STRATEGY:t(6039,e.DiagnosticCategory.Message,"STRATEGY_6039","STRATEGY"),FILE_OR_DIRECTORY:t(6040,e.DiagnosticCategory.Message,"FILE_OR_DIRECTORY_6040","FILE OR DIRECTORY"),Errors_Files:t(6041,e.DiagnosticCategory.Message,"Errors_Files_6041","Errors Files"),Generates_corresponding_map_file:t(6043,e.DiagnosticCategory.Message,"Generates_corresponding_map_file_6043","Generates corresponding '.map' file."),Compiler_option_0_expects_an_argument:t(6044,e.DiagnosticCategory.Error,"Compiler_option_0_expects_an_argument_6044","Compiler option '{0}' expects an argument."),Unterminated_quoted_string_in_response_file_0:t(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:t(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:t(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 or -. For example '{0}' or '{1}'."),Unable_to_open_file_0:t(6050,e.DiagnosticCategory.Error,"Unable_to_open_file_0_6050","Unable to open file '{0}'."),Corrupted_locale_file_0:t(6051,e.DiagnosticCategory.Error,"Corrupted_locale_file_0_6051","Corrupted locale file {0}."),Raise_error_on_expressions_and_declarations_with_an_implied_any_type:t(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:t(6053,e.DiagnosticCategory.Error,"File_0_not_found_6053","File '{0}' not found."),File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1:t(6054,e.DiagnosticCategory.Error,"File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1_6054","File '{0}' has an unsupported extension. The only supported extensions are {1}."),Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures:t(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:t(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:t(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:t(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:t(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:t(6061,e.DiagnosticCategory.Message,"NEWLINE_6061","NEWLINE"),Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line:t(6064,e.DiagnosticCategory.Error,"Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line_6064","Option '{0}' can only be specified in 'tsconfig.json' file or set to 'null' on command line."),Enables_experimental_support_for_ES7_decorators:t(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:t(6066,e.DiagnosticCategory.Message,"Enables_experimental_support_for_emitting_type_metadata_for_decorators_6066","Enables experimental support for emitting type metadata for decorators."),Specify_module_resolution_strategy_Colon_node_Node_js_or_classic_TypeScript_pre_1_6:t(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:t(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:t(6071,e.DiagnosticCategory.Message,"Successfully_created_a_tsconfig_json_file_6071","Successfully created a tsconfig.json file."),Suppress_excess_property_checks_for_object_literals:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(6080,e.DiagnosticCategory.Message,"Specify_JSX_code_generation_6080","Specify JSX code generation."),File_0_has_an_unsupported_extension_so_skipping_it:t(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:t(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:t(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:t(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:t(6085,e.DiagnosticCategory.Message,"Enable_tracing_of_the_name_resolution_process_6085","Enable tracing of the name resolution process."),Resolving_module_0_from_1:t(6086,e.DiagnosticCategory.Message,"Resolving_module_0_from_1_6086","======== Resolving module '{0}' from '{1}'. ========"),Explicitly_specified_module_resolution_kind_Colon_0:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(6099,e.DiagnosticCategory.Message,"Found_package_json_at_0_6099","Found 'package.json' at '{0}'."),package_json_does_not_have_a_0_field:t(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:t(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:t(6102,e.DiagnosticCategory.Message,"Allow_javascript_files_to_be_compiled_6102","Allow javascript files to be compiled."),Checking_if_0_is_the_longest_matching_prefix_for_1_2:t(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:t(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:t(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:t(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:t(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:t(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:t(6110,e.DiagnosticCategory.Message,"Trying_other_entries_in_rootDirs_6110","Trying other entries in 'rootDirs'."),Module_resolution_using_rootDirs_has_failed:t(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:t(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:t(6113,e.DiagnosticCategory.Message,"Enable_strict_null_checks_6113","Enable strict null checks."),Unknown_option_excludes_Did_you_mean_exclude:t(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:t(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:t(6116,e.DiagnosticCategory.Message,"Resolving_type_reference_directive_0_containing_file_1_root_directory_2_6116","======== Resolving type reference directive '{0}', containing file '{1}', root directory '{2}'. ========"),Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(6134,e.DiagnosticCategory.Message,"Report_errors_on_unused_locals_6134","Report errors on unused locals."),Report_errors_on_unused_parameters:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(6149,e.DiagnosticCategory.Message,"Show_diagnostic_information_6149","Show diagnostic information."),Show_verbose_diagnostic_information:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(6162,e.DiagnosticCategory.Message,"Disable_size_limitations_on_JavaScript_projects_6162","Disable size limitations on JavaScript projects."),The_character_set_of_the_input_files:t(6163,e.DiagnosticCategory.Message,"The_character_set_of_the_input_files_6163","The character set of the input files."),Do_not_truncate_error_messages:t(6165,e.DiagnosticCategory.Message,"Do_not_truncate_error_messages_6165","Do not truncate error messages."),Output_directory_for_generated_declaration_files:t(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:t(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:t(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:t(6169,e.DiagnosticCategory.Message,"Show_all_compiler_options_6169","Show all compiler options."),Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file:t(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:t(6171,e.DiagnosticCategory.Message,"Command_line_Options_6171","Command-line Options"),Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_or_ES3:t(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:t(6180,e.DiagnosticCategory.Message,"Enable_all_strict_type_checking_options_6180","Enable all strict type-checking options."),Scoped_package_detected_looking_in_0:t(6182,e.DiagnosticCategory.Message,"Scoped_package_detected_looking_in_0_6182","Scoped package detected, looking in '{0}'"),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:t(6183,e.DiagnosticCategory.Message,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_6183","Reusing resolution of module '{0}' from '{1}' of old program, it was successfully resolved to '{2}'."),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:t(6184,e.DiagnosticCategory.Message,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package__6184","Reusing resolution of module '{0}' from '{1}' of old program, it was successfully resolved to '{2}' with Package ID '{3}'."),Enable_strict_checking_of_function_types:t(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:t(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:t(6188,e.DiagnosticCategory.Error,"Numeric_separators_are_not_allowed_here_6188","Numeric separators are not allowed here."),Multiple_consecutive_numeric_separators_are_not_permitted:t(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:t(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:t(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:t(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:t(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:t(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:t(6196,e.DiagnosticCategory.Error,"_0_is_declared_but_never_used_6196","'{0}' is declared but never used.",!0),Include_modules_imported_with_json_extension:t(6197,e.DiagnosticCategory.Message,"Include_modules_imported_with_json_extension_6197","Include modules imported with '.json' extension"),All_destructured_elements_are_unused:t(6198,e.DiagnosticCategory.Error,"All_destructured_elements_are_unused_6198","All destructured elements are unused.",!0),All_variables_are_unused:t(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:t(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:t(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:t(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:t(6203,e.DiagnosticCategory.Message,"_0_was_also_declared_here_6203","'{0}' was also declared here."),and_here:t(6204,e.DiagnosticCategory.Message,"and_here_6204","and here."),All_type_parameters_are_unused:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(6215,e.DiagnosticCategory.Message,"Using_compiler_options_of_project_reference_redirect_0_6215","Using compiler options of project reference redirect '{0}'."),Found_1_error:t(6216,e.DiagnosticCategory.Message,"Found_1_error_6216","Found 1 error."),Found_0_errors:t(6217,e.DiagnosticCategory.Message,"Found_0_errors_6217","Found {0} errors."),Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2:t(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:t(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:t(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:t(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:t(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:t(6223,e.DiagnosticCategory.Message,"Generates_a_CPU_profile_6223","Generates a CPU profile."),Disable_solution_searching_for_this_project:t(6224,e.DiagnosticCategory.Message,"Disable_solution_searching_for_this_project_6224","Disable solution searching for this project."),Specify_strategy_for_watching_file_Colon_FixedPollingInterval_default_PriorityPollingInterval_DynamicPriorityPolling_FixedChunkSizePolling_UseFsEvents_UseFsEventsOnParentDirectory:t(6225,e.DiagnosticCategory.Message,"Specify_strategy_for_watching_file_Colon_FixedPollingInterval_default_PriorityPollingInterval_Dynami_6225","Specify strategy for watching file: 'FixedPollingInterval' (default), 'PriorityPollingInterval', 'DynamicPriorityPolling', 'FixedChunkSizePolling', 'UseFsEvents', 'UseFsEventsOnParentDirectory'."),Specify_strategy_for_watching_directory_on_platforms_that_don_t_support_recursive_watching_natively_Colon_UseFsEvents_default_FixedPollingInterval_DynamicPriorityPolling_FixedChunkSizePolling:t(6226,e.DiagnosticCategory.Message,"Specify_strategy_for_watching_directory_on_platforms_that_don_t_support_recursive_watching_natively__6226","Specify strategy for watching directory on platforms that don't support recursive watching natively: 'UseFsEvents' (default), 'FixedPollingInterval', 'DynamicPriorityPolling', 'FixedChunkSizePolling'."),Specify_strategy_for_creating_a_polling_watch_when_it_fails_to_create_using_file_system_events_Colon_FixedInterval_default_PriorityInterval_DynamicPriority_FixedChunkSize:t(6227,e.DiagnosticCategory.Message,"Specify_strategy_for_creating_a_polling_watch_when_it_fails_to_create_using_file_system_events_Colon_6227","Specify strategy for creating a polling watch when it fails to create using file system events: 'FixedInterval' (default), 'PriorityInterval', 'DynamicPriority', 'FixedChunkSize'."),Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3:t(6229,e.DiagnosticCategory.Error,"Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3_6229","Tag '{0}' expects at least '{1}' arguments, but the JSX factory '{2}' provides at most '{3}'."),Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line:t(6230,e.DiagnosticCategory.Error,"Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line_6230","Option '{0}' can only be specified in 'tsconfig.json' file or set to 'false' or 'null' on command line."),Could_not_resolve_the_path_0_with_the_extensions_Colon_1:t(6231,e.DiagnosticCategory.Error,"Could_not_resolve_the_path_0_with_the_extensions_Colon_1_6231","Could not resolve the path '{0}' with the extensions: {1}."),Declaration_augments_declaration_in_another_file_This_cannot_be_serialized:t(6232,e.DiagnosticCategory.Error,"Declaration_augments_declaration_in_another_file_This_cannot_be_serialized_6232","Declaration augments declaration in another file. This cannot be serialized."),This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_file:t(6233,e.DiagnosticCategory.Error,"This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_fil_6233","This is the declaration being augmented. Consider moving the augmenting declaration into the same file."),This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without:t(6234,e.DiagnosticCategory.Error,"This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without_6234","This expression is not callable because it is a 'get' accessor. Did you mean to use it without '()'?"),Disable_loading_referenced_projects:t(6235,e.DiagnosticCategory.Message,"Disable_loading_referenced_projects_6235","Disable loading referenced projects."),Arguments_for_the_rest_parameter_0_were_not_provided:t(6236,e.DiagnosticCategory.Error,"Arguments_for_the_rest_parameter_0_were_not_provided_6236","Arguments for the rest parameter '{0}' were not provided."),Generates_an_event_trace_and_a_list_of_types:t(6237,e.DiagnosticCategory.Message,"Generates_an_event_trace_and_a_list_of_types_6237","Generates an event trace and a list of types."),Specify_the_module_specifier_to_be_used_to_import_the_jsx_and_jsxs_factory_functions_from_eg_react:t(6238,e.DiagnosticCategory.Error,"Specify_the_module_specifier_to_be_used_to_import_the_jsx_and_jsxs_factory_functions_from_eg_react_6238","Specify the module specifier to be used to import the 'jsx' and 'jsxs' factory functions from. eg, react"),File_0_exists_according_to_earlier_cached_lookups:t(6239,e.DiagnosticCategory.Message,"File_0_exists_according_to_earlier_cached_lookups_6239","File '{0}' exists according to earlier cached lookups."),File_0_does_not_exist_according_to_earlier_cached_lookups:t(6240,e.DiagnosticCategory.Message,"File_0_does_not_exist_according_to_earlier_cached_lookups_6240","File '{0}' does not exist according to earlier cached lookups."),Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1:t(6241,e.DiagnosticCategory.Message,"Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1_6241","Resolution for type reference directive '{0}' was found in cache from location '{1}'."),Resolving_type_reference_directive_0_containing_file_1:t(6242,e.DiagnosticCategory.Message,"Resolving_type_reference_directive_0_containing_file_1_6242","======== Resolving type reference directive '{0}', containing file '{1}'. ========"),Interpret_optional_property_types_as_written_rather_than_adding_undefined:t(6243,e.DiagnosticCategory.Message,"Interpret_optional_property_types_as_written_rather_than_adding_undefined_6243","Interpret optional property types as written, rather than adding 'undefined'."),Modules:t(6244,e.DiagnosticCategory.Message,"Modules_6244","Modules"),File_Management:t(6245,e.DiagnosticCategory.Message,"File_Management_6245","File Management"),Emit:t(6246,e.DiagnosticCategory.Message,"Emit_6246","Emit"),JavaScript_Support:t(6247,e.DiagnosticCategory.Message,"JavaScript_Support_6247","JavaScript Support"),Type_Checking:t(6248,e.DiagnosticCategory.Message,"Type_Checking_6248","Type Checking"),Editor_Support:t(6249,e.DiagnosticCategory.Message,"Editor_Support_6249","Editor Support"),Watch_and_Build_Modes:t(6250,e.DiagnosticCategory.Message,"Watch_and_Build_Modes_6250","Watch and Build Modes"),Compiler_Diagnostics:t(6251,e.DiagnosticCategory.Message,"Compiler_Diagnostics_6251","Compiler Diagnostics"),Interop_Constraints:t(6252,e.DiagnosticCategory.Message,"Interop_Constraints_6252","Interop Constraints"),Backwards_Compatibility:t(6253,e.DiagnosticCategory.Message,"Backwards_Compatibility_6253","Backwards Compatibility"),Language_and_Environment:t(6254,e.DiagnosticCategory.Message,"Language_and_Environment_6254","Language and Environment"),Projects:t(6255,e.DiagnosticCategory.Message,"Projects_6255","Projects"),Output_Formatting:t(6256,e.DiagnosticCategory.Message,"Output_Formatting_6256","Output Formatting"),Completeness:t(6257,e.DiagnosticCategory.Message,"Completeness_6257","Completeness"),_0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file:t(6258,e.DiagnosticCategory.Error,"_0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file_6258","'{0}' should be set inside the 'compilerOptions' object of the config json file"),Found_1_error_in_1:t(6259,e.DiagnosticCategory.Message,"Found_1_error_in_1_6259","Found 1 error in {1}"),Found_0_errors_in_the_same_file_starting_at_Colon_1:t(6260,e.DiagnosticCategory.Message,"Found_0_errors_in_the_same_file_starting_at_Colon_1_6260","Found {0} errors in the same file, starting at: {1}"),Found_0_errors_in_1_files:t(6261,e.DiagnosticCategory.Message,"Found_0_errors_in_1_files_6261","Found {0} errors in {1} files."),Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve:t(6270,e.DiagnosticCategory.Message,"Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve_6270","Directory '{0}' has no containing package.json scope. Imports will not resolve."),Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1:t(6271,e.DiagnosticCategory.Message,"Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1_6271","Import specifier '{0}' does not exist in package.json scope at path '{1}'."),Invalid_import_specifier_0_has_no_possible_resolutions:t(6272,e.DiagnosticCategory.Message,"Invalid_import_specifier_0_has_no_possible_resolutions_6272","Invalid import specifier '{0}' has no possible resolutions."),package_json_scope_0_has_no_imports_defined:t(6273,e.DiagnosticCategory.Message,"package_json_scope_0_has_no_imports_defined_6273","package.json scope '{0}' has no imports defined."),package_json_scope_0_explicitly_maps_specifier_1_to_null:t(6274,e.DiagnosticCategory.Message,"package_json_scope_0_explicitly_maps_specifier_1_to_null_6274","package.json scope '{0}' explicitly maps specifier '{1}' to null."),package_json_scope_0_has_invalid_type_for_target_of_specifier_1:t(6275,e.DiagnosticCategory.Message,"package_json_scope_0_has_invalid_type_for_target_of_specifier_1_6275","package.json scope '{0}' has invalid type for target of specifier '{1}'"),Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1:t(6276,e.DiagnosticCategory.Message,"Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1_6276","Export specifier '{0}' does not exist in package.json scope at path '{1}'."),Enable_project_compilation:t(6302,e.DiagnosticCategory.Message,"Enable_project_compilation_6302","Enable project compilation"),Composite_projects_may_not_disable_declaration_emit:t(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:t(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:t(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:t(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:t(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:t(6309,e.DiagnosticCategory.Error,"Output_file_0_from_project_1_does_not_exist_6309","Output file '{0}' from project '{1}' does not exist"),Referenced_project_0_may_not_disable_emit:t(6310,e.DiagnosticCategory.Error,"Referenced_project_0_may_not_disable_emit_6310","Referenced project '{0}' may not disable emit."),Project_0_is_out_of_date_because_output_1_is_older_than_input_2:t(6350,e.DiagnosticCategory.Message,"Project_0_is_out_of_date_because_output_1_is_older_than_input_2_6350","Project '{0}' is out of date because output '{1}' is older than input '{2}'"),Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2:t(6351,e.DiagnosticCategory.Message,"Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2_6351","Project '{0}' is up to date because newest input '{1}' is older than output '{2}'"),Project_0_is_out_of_date_because_output_file_1_does_not_exist:t(6352,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:t(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:t(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:t(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:t(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:t(6357,e.DiagnosticCategory.Message,"A_non_dry_build_would_build_project_0_6357","A non-dry build would build project '{0}'"),Building_project_0:t(6358,e.DiagnosticCategory.Message,"Building_project_0_6358","Building project '{0}'..."),Updating_output_timestamps_of_project_0:t(6359,e.DiagnosticCategory.Message,"Updating_output_timestamps_of_project_0_6359","Updating output timestamps of project '{0}'..."),Project_0_is_up_to_date:t(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:t(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:t(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:t(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:t(6365,e.DiagnosticCategory.Message,"Delete_the_outputs_of_all_projects_6365","Delete the outputs of all projects."),Show_what_would_be_built_or_deleted_if_specified_with_clean:t(6367,e.DiagnosticCategory.Message,"Show_what_would_be_built_or_deleted_if_specified_with_clean_6367","Show what would be built (or deleted, if specified with '--clean')"),Option_build_must_be_the_first_command_line_argument:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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}'"),Composite_projects_may_not_disable_incremental_compilation:t(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:t(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:t(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:t(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:t(6383,e.DiagnosticCategory.Message,"Project_0_can_t_be_built_because_its_dependency_1_was_not_built_6383","Project '{0}' can't be built because its dependency '{1}' was not built"),Have_recompiles_in_incremental_and_watch_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it:t(6384,e.DiagnosticCategory.Message,"Have_recompiles_in_incremental_and_watch_assume_that_changes_within_a_file_will_only_affect_files_di_6384","Have recompiles in '--incremental' and '--watch' assume that changes within a file will only affect files directly depending on it."),_0_is_deprecated:t(6385,e.DiagnosticCategory.Suggestion,"_0_is_deprecated_6385","'{0}' is deprecated.",void 0,void 0,!0),Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_native_implementation_of_the_Web_Performance_API_could_not_be_found:t(6386,e.DiagnosticCategory.Message,"Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_nativ_6386","Performance timings for '--diagnostics' or '--extendedDiagnostics' are not available in this session. A native implementation of the Web Performance API could not be found."),The_signature_0_of_1_is_deprecated:t(6387,e.DiagnosticCategory.Suggestion,"The_signature_0_of_1_is_deprecated_6387","The signature '{0}' of '{1}' is deprecated.",void 0,void 0,!0),Project_0_is_being_forcibly_rebuilt:t(6388,e.DiagnosticCategory.Message,"Project_0_is_being_forcibly_rebuilt_6388","Project '{0}' is being forcibly rebuilt"),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved:t(6389,e.DiagnosticCategory.Message,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved_6389","Reusing resolution of module '{0}' from '{1}' of old program, it was not resolved."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2:t(6390,e.DiagnosticCategory.Message,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved__6390","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was successfully resolved to '{2}'."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:t(6391,e.DiagnosticCategory.Message,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved__6391","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was successfully resolved to '{2}' with Package ID '{3}'."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved:t(6392,e.DiagnosticCategory.Message,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved_6392","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was not resolved."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3:t(6393,e.DiagnosticCategory.Message,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_6393","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}'."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3_with_Package_ID_4:t(6394,e.DiagnosticCategory.Message,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_6394","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}' with Package ID '{4}'."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_not_resolved:t(6395,e.DiagnosticCategory.Message,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_not_resolved_6395","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was not resolved."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3:t(6396,e.DiagnosticCategory.Message,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_succes_6396","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}'."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3_with_Package_ID_4:t(6397,e.DiagnosticCategory.Message,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_succes_6397","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}' with Package ID '{4}'."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_not_resolved:t(6398,e.DiagnosticCategory.Message,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_not_re_6398","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was not resolved."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitted:t(6399,e.DiagnosticCategory.Message,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitte_6399","Project '{0}' is out of date because buildinfo file '{1}' indicates that some of the changes were not emitted"),Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_files:t(6400,e.DiagnosticCategory.Message,"Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_fil_6400","Project '{0}' is up to date but needs to update timestamps of output files that are older than input files"),Project_0_is_out_of_date_because_there_was_error_reading_file_1:t(6401,e.DiagnosticCategory.Message,"Project_0_is_out_of_date_because_there_was_error_reading_file_1_6401","Project '{0}' is out of date because there was error reading file '{1}'"),Resolving_in_0_mode_with_conditions_1:t(6402,e.DiagnosticCategory.Message,"Resolving_in_0_mode_with_conditions_1_6402","Resolving in {0} mode with conditions {1}."),Matched_0_condition_1:t(6403,e.DiagnosticCategory.Message,"Matched_0_condition_1_6403","Matched '{0}' condition '{1}'."),Using_0_subpath_1_with_target_2:t(6404,e.DiagnosticCategory.Message,"Using_0_subpath_1_with_target_2_6404","Using '{0}' subpath '{1}' with target '{2}'."),Saw_non_matching_condition_0:t(6405,e.DiagnosticCategory.Message,"Saw_non_matching_condition_0_6405","Saw non-matching condition '{0}'."),The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1:t(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:t(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:t(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:t(6503,e.DiagnosticCategory.Message,"Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing_6503","Print names of files that are part of the compilation and then stop processing."),File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option:t(6504,e.DiagnosticCategory.Error,"File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option_6504","File '{0}' is a JavaScript file. Did you mean to enable the 'allowJs' option?"),Print_names_of_files_and_the_reason_they_are_part_of_the_compilation:t(6505,e.DiagnosticCategory.Message,"Print_names_of_files_and_the_reason_they_are_part_of_the_compilation_6505","Print names of files and the reason they are part of the compilation."),Consider_adding_a_declare_modifier_to_this_class:t(6506,e.DiagnosticCategory.Message,"Consider_adding_a_declare_modifier_to_this_class_6506","Consider adding a 'declare' modifier to this class."),Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJS_option_to_get_errors_from_these_files:t(6600,e.DiagnosticCategory.Message,"Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJS_option_to_get_errors_from_these__6600","Allow JavaScript files to be a part of your program. Use the 'checkJS' option to get errors from these files."),Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export:t(6601,e.DiagnosticCategory.Message,"Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export_6601","Allow 'import x from y' when a module doesn't have a default export."),Allow_accessing_UMD_globals_from_modules:t(6602,e.DiagnosticCategory.Message,"Allow_accessing_UMD_globals_from_modules_6602","Allow accessing UMD globals from modules."),Disable_error_reporting_for_unreachable_code:t(6603,e.DiagnosticCategory.Message,"Disable_error_reporting_for_unreachable_code_6603","Disable error reporting for unreachable code."),Disable_error_reporting_for_unused_labels:t(6604,e.DiagnosticCategory.Message,"Disable_error_reporting_for_unused_labels_6604","Disable error reporting for unused labels."),Ensure_use_strict_is_always_emitted:t(6605,e.DiagnosticCategory.Message,"Ensure_use_strict_is_always_emitted_6605","Ensure 'use strict' is always emitted."),Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it:t(6606,e.DiagnosticCategory.Message,"Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_wi_6606","Have recompiles in projects that use 'incremental' and 'watch' mode assume that changes within a file will only affect files directly depending on it."),Specify_the_base_directory_to_resolve_non_relative_module_names:t(6607,e.DiagnosticCategory.Message,"Specify_the_base_directory_to_resolve_non_relative_module_names_6607","Specify the base directory to resolve non-relative module names."),No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files:t(6608,e.DiagnosticCategory.Message,"No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files_6608","No longer supported. In early versions, manually set the text encoding for reading files."),Enable_error_reporting_in_type_checked_JavaScript_files:t(6609,e.DiagnosticCategory.Message,"Enable_error_reporting_in_type_checked_JavaScript_files_6609","Enable error reporting in type-checked JavaScript files."),Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references:t(6611,e.DiagnosticCategory.Message,"Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references_6611","Enable constraints that allow a TypeScript project to be used with project references."),Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project:t(6612,e.DiagnosticCategory.Message,"Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project_6612","Generate .d.ts files from TypeScript and JavaScript files in your project."),Specify_the_output_directory_for_generated_declaration_files:t(6613,e.DiagnosticCategory.Message,"Specify_the_output_directory_for_generated_declaration_files_6613","Specify the output directory for generated declaration files."),Create_sourcemaps_for_d_ts_files:t(6614,e.DiagnosticCategory.Message,"Create_sourcemaps_for_d_ts_files_6614","Create sourcemaps for d.ts files."),Output_compiler_performance_information_after_building:t(6615,e.DiagnosticCategory.Message,"Output_compiler_performance_information_after_building_6615","Output compiler performance information after building."),Disables_inference_for_type_acquisition_by_looking_at_filenames_in_a_project:t(6616,e.DiagnosticCategory.Message,"Disables_inference_for_type_acquisition_by_looking_at_filenames_in_a_project_6616","Disables inference for type acquisition by looking at filenames in a project."),Reduce_the_number_of_projects_loaded_automatically_by_TypeScript:t(6617,e.DiagnosticCategory.Message,"Reduce_the_number_of_projects_loaded_automatically_by_TypeScript_6617","Reduce the number of projects loaded automatically by TypeScript."),Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server:t(6618,e.DiagnosticCategory.Message,"Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server_6618","Remove the 20mb cap on total source code size for JavaScript files in the TypeScript language server."),Opt_a_project_out_of_multi_project_reference_checking_when_editing:t(6619,e.DiagnosticCategory.Message,"Opt_a_project_out_of_multi_project_reference_checking_when_editing_6619","Opt a project out of multi-project reference checking when editing."),Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects:t(6620,e.DiagnosticCategory.Message,"Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects_6620","Disable preferring source files instead of declaration files when referencing composite projects."),Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration:t(6621,e.DiagnosticCategory.Message,"Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration_6621","Emit more compliant, but verbose and less performant JavaScript for iteration."),Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files:t(6622,e.DiagnosticCategory.Message,"Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files_6622","Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files."),Only_output_d_ts_files_and_not_JavaScript_files:t(6623,e.DiagnosticCategory.Message,"Only_output_d_ts_files_and_not_JavaScript_files_6623","Only output d.ts files and not JavaScript files."),Emit_design_type_metadata_for_decorated_declarations_in_source_files:t(6624,e.DiagnosticCategory.Message,"Emit_design_type_metadata_for_decorated_declarations_in_source_files_6624","Emit design-type metadata for decorated declarations in source files."),Disable_the_type_acquisition_for_JavaScript_projects:t(6625,e.DiagnosticCategory.Message,"Disable_the_type_acquisition_for_JavaScript_projects_6625","Disable the type acquisition for JavaScript projects"),Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheticDefaultImports_for_type_compatibility:t(6626,e.DiagnosticCategory.Message,"Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheti_6626","Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility."),Filters_results_from_the_include_option:t(6627,e.DiagnosticCategory.Message,"Filters_results_from_the_include_option_6627","Filters results from the `include` option."),Remove_a_list_of_directories_from_the_watch_process:t(6628,e.DiagnosticCategory.Message,"Remove_a_list_of_directories_from_the_watch_process_6628","Remove a list of directories from the watch process."),Remove_a_list_of_files_from_the_watch_mode_s_processing:t(6629,e.DiagnosticCategory.Message,"Remove_a_list_of_files_from_the_watch_mode_s_processing_6629","Remove a list of files from the watch mode's processing."),Enable_experimental_support_for_TC39_stage_2_draft_decorators:t(6630,e.DiagnosticCategory.Message,"Enable_experimental_support_for_TC39_stage_2_draft_decorators_6630","Enable experimental support for TC39 stage 2 draft decorators."),Print_files_read_during_the_compilation_including_why_it_was_included:t(6631,e.DiagnosticCategory.Message,"Print_files_read_during_the_compilation_including_why_it_was_included_6631","Print files read during the compilation including why it was included."),Output_more_detailed_compiler_performance_information_after_building:t(6632,e.DiagnosticCategory.Message,"Output_more_detailed_compiler_performance_information_after_building_6632","Output more detailed compiler performance information after building."),Specify_one_or_more_path_or_node_module_references_to_base_configuration_files_from_which_settings_are_inherited:t(6633,e.DiagnosticCategory.Message,"Specify_one_or_more_path_or_node_module_references_to_base_configuration_files_from_which_settings_a_6633","Specify one or more path or node module references to base configuration files from which settings are inherited."),Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers:t(6634,e.DiagnosticCategory.Message,"Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers_6634","Specify what approach the watcher should use if the system runs out of native file watchers."),Include_a_list_of_files_This_does_not_support_glob_patterns_as_opposed_to_include:t(6635,e.DiagnosticCategory.Message,"Include_a_list_of_files_This_does_not_support_glob_patterns_as_opposed_to_include_6635","Include a list of files. This does not support glob patterns, as opposed to `include`."),Build_all_projects_including_those_that_appear_to_be_up_to_date:t(6636,e.DiagnosticCategory.Message,"Build_all_projects_including_those_that_appear_to_be_up_to_date_6636","Build all projects, including those that appear to be up to date."),Ensure_that_casing_is_correct_in_imports:t(6637,e.DiagnosticCategory.Message,"Ensure_that_casing_is_correct_in_imports_6637","Ensure that casing is correct in imports."),Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging:t(6638,e.DiagnosticCategory.Message,"Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging_6638","Emit a v8 CPU profile of the compiler run for debugging."),Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file:t(6639,e.DiagnosticCategory.Message,"Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file_6639","Allow importing helper functions from tslib once per project, instead of including them per-file."),Specify_a_list_of_glob_patterns_that_match_files_to_be_included_in_compilation:t(6641,e.DiagnosticCategory.Message,"Specify_a_list_of_glob_patterns_that_match_files_to_be_included_in_compilation_6641","Specify a list of glob patterns that match files to be included in compilation."),Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects:t(6642,e.DiagnosticCategory.Message,"Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects_6642","Save .tsbuildinfo files to allow for incremental compilation of projects."),Include_sourcemap_files_inside_the_emitted_JavaScript:t(6643,e.DiagnosticCategory.Message,"Include_sourcemap_files_inside_the_emitted_JavaScript_6643","Include sourcemap files inside the emitted JavaScript."),Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript:t(6644,e.DiagnosticCategory.Message,"Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript_6644","Include source code in the sourcemaps inside the emitted JavaScript."),Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports:t(6645,e.DiagnosticCategory.Message,"Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports_6645","Ensure that each file can be safely transpiled without relying on other imports."),Specify_what_JSX_code_is_generated:t(6646,e.DiagnosticCategory.Message,"Specify_what_JSX_code_is_generated_6646","Specify what JSX code is generated."),Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h:t(6647,e.DiagnosticCategory.Message,"Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h_6647","Specify the JSX factory function used when targeting React JSX emit, e.g. 'React.createElement' or 'h'."),Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragment_or_Fragment:t(6648,e.DiagnosticCategory.Message,"Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragme_6648","Specify the JSX Fragment reference used for fragments when targeting React JSX emit e.g. 'React.Fragment' or 'Fragment'."),Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Asterisk:t(6649,e.DiagnosticCategory.Message,"Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Ast_6649","Specify module specifier used to import the JSX factory functions when using 'jsx: react-jsx*'."),Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option:t(6650,e.DiagnosticCategory.Message,"Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option_6650","Make keyof only return strings instead of string, numbers or symbols. Legacy option."),Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment:t(6651,e.DiagnosticCategory.Message,"Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment_6651","Specify a set of bundled library declaration files that describe the target runtime environment."),Print_the_names_of_emitted_files_after_a_compilation:t(6652,e.DiagnosticCategory.Message,"Print_the_names_of_emitted_files_after_a_compilation_6652","Print the names of emitted files after a compilation."),Print_all_of_the_files_read_during_the_compilation:t(6653,e.DiagnosticCategory.Message,"Print_all_of_the_files_read_during_the_compilation_6653","Print all of the files read during the compilation."),Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit:t(6654,e.DiagnosticCategory.Message,"Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit_6654","Set the language of the messaging from TypeScript. This does not affect emit."),Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations:t(6655,e.DiagnosticCategory.Message,"Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations_6655","Specify the location where debugger should locate map files instead of generated locations."),Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicable_with_allowJs:t(6656,e.DiagnosticCategory.Message,"Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicabl_6656","Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'."),Specify_what_module_code_is_generated:t(6657,e.DiagnosticCategory.Message,"Specify_what_module_code_is_generated_6657","Specify what module code is generated."),Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier:t(6658,e.DiagnosticCategory.Message,"Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier_6658","Specify how TypeScript looks up a file from a given module specifier."),Set_the_newline_character_for_emitting_files:t(6659,e.DiagnosticCategory.Message,"Set_the_newline_character_for_emitting_files_6659","Set the newline character for emitting files."),Disable_emitting_files_from_a_compilation:t(6660,e.DiagnosticCategory.Message,"Disable_emitting_files_from_a_compilation_6660","Disable emitting files from a compilation."),Disable_generating_custom_helper_functions_like_extends_in_compiled_output:t(6661,e.DiagnosticCategory.Message,"Disable_generating_custom_helper_functions_like_extends_in_compiled_output_6661","Disable generating custom helper functions like '__extends' in compiled output."),Disable_emitting_files_if_any_type_checking_errors_are_reported:t(6662,e.DiagnosticCategory.Message,"Disable_emitting_files_if_any_type_checking_errors_are_reported_6662","Disable emitting files if any type checking errors are reported."),Disable_truncating_types_in_error_messages:t(6663,e.DiagnosticCategory.Message,"Disable_truncating_types_in_error_messages_6663","Disable truncating types in error messages."),Enable_error_reporting_for_fallthrough_cases_in_switch_statements:t(6664,e.DiagnosticCategory.Message,"Enable_error_reporting_for_fallthrough_cases_in_switch_statements_6664","Enable error reporting for fallthrough cases in switch statements."),Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type:t(6665,e.DiagnosticCategory.Message,"Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type_6665","Enable error reporting for expressions and declarations with an implied 'any' type."),Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier:t(6666,e.DiagnosticCategory.Message,"Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier_6666","Ensure overriding members in derived classes are marked with an override modifier."),Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function:t(6667,e.DiagnosticCategory.Message,"Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function_6667","Enable error reporting for codepaths that do not explicitly return in a function."),Enable_error_reporting_when_this_is_given_the_type_any:t(6668,e.DiagnosticCategory.Message,"Enable_error_reporting_when_this_is_given_the_type_any_6668","Enable error reporting when 'this' is given the type 'any'."),Disable_adding_use_strict_directives_in_emitted_JavaScript_files:t(6669,e.DiagnosticCategory.Message,"Disable_adding_use_strict_directives_in_emitted_JavaScript_files_6669","Disable adding 'use strict' directives in emitted JavaScript files."),Disable_including_any_library_files_including_the_default_lib_d_ts:t(6670,e.DiagnosticCategory.Message,"Disable_including_any_library_files_including_the_default_lib_d_ts_6670","Disable including any library files, including the default lib.d.ts."),Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type:t(6671,e.DiagnosticCategory.Message,"Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type_6671","Enforces using indexed accessors for keys declared using an indexed type."),Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add_to_a_project:t(6672,e.DiagnosticCategory.Message,"Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add__6672","Disallow 'import's, 'require's or ''s from expanding the number of files TypeScript should add to a project."),Disable_strict_checking_of_generic_signatures_in_function_types:t(6673,e.DiagnosticCategory.Message,"Disable_strict_checking_of_generic_signatures_in_function_types_6673","Disable strict checking of generic signatures in function types."),Add_undefined_to_a_type_when_accessed_using_an_index:t(6674,e.DiagnosticCategory.Message,"Add_undefined_to_a_type_when_accessed_using_an_index_6674","Add 'undefined' to a type when accessed using an index."),Enable_error_reporting_when_local_variables_aren_t_read:t(6675,e.DiagnosticCategory.Message,"Enable_error_reporting_when_local_variables_aren_t_read_6675","Enable error reporting when local variables aren't read."),Raise_an_error_when_a_function_parameter_isn_t_read:t(6676,e.DiagnosticCategory.Message,"Raise_an_error_when_a_function_parameter_isn_t_read_6676","Raise an error when a function parameter isn't read."),Deprecated_setting_Use_outFile_instead:t(6677,e.DiagnosticCategory.Message,"Deprecated_setting_Use_outFile_instead_6677","Deprecated setting. Use 'outFile' instead."),Specify_an_output_folder_for_all_emitted_files:t(6678,e.DiagnosticCategory.Message,"Specify_an_output_folder_for_all_emitted_files_6678","Specify an output folder for all emitted files."),Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designates_a_file_that_bundles_all_d_ts_output:t(6679,e.DiagnosticCategory.Message,"Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designa_6679","Specify a file that bundles all outputs into one JavaScript file. If 'declaration' is true, also designates a file that bundles all .d.ts output."),Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations:t(6680,e.DiagnosticCategory.Message,"Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations_6680","Specify a set of entries that re-map imports to additional lookup locations."),Specify_a_list_of_language_service_plugins_to_include:t(6681,e.DiagnosticCategory.Message,"Specify_a_list_of_language_service_plugins_to_include_6681","Specify a list of language service plugins to include."),Disable_erasing_const_enum_declarations_in_generated_code:t(6682,e.DiagnosticCategory.Message,"Disable_erasing_const_enum_declarations_in_generated_code_6682","Disable erasing 'const enum' declarations in generated code."),Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node:t(6683,e.DiagnosticCategory.Message,"Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node_6683","Disable resolving symlinks to their realpath. This correlates to the same flag in node."),Disable_wiping_the_console_in_watch_mode:t(6684,e.DiagnosticCategory.Message,"Disable_wiping_the_console_in_watch_mode_6684","Disable wiping the console in watch mode."),Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read:t(6685,e.DiagnosticCategory.Message,"Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read_6685","Enable color and formatting in TypeScript's output to make compiler errors easier to read."),Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit:t(6686,e.DiagnosticCategory.Message,"Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit_6686","Specify the object invoked for 'createElement'. This only applies when targeting 'react' JSX emit."),Specify_an_array_of_objects_that_specify_paths_for_projects_Used_in_project_references:t(6687,e.DiagnosticCategory.Message,"Specify_an_array_of_objects_that_specify_paths_for_projects_Used_in_project_references_6687","Specify an array of objects that specify paths for projects. Used in project references."),Disable_emitting_comments:t(6688,e.DiagnosticCategory.Message,"Disable_emitting_comments_6688","Disable emitting comments."),Enable_importing_json_files:t(6689,e.DiagnosticCategory.Message,"Enable_importing_json_files_6689","Enable importing .json files."),Specify_the_root_folder_within_your_source_files:t(6690,e.DiagnosticCategory.Message,"Specify_the_root_folder_within_your_source_files_6690","Specify the root folder within your source files."),Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules:t(6691,e.DiagnosticCategory.Message,"Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules_6691","Allow multiple folders to be treated as one when resolving modules."),Skip_type_checking_d_ts_files_that_are_included_with_TypeScript:t(6692,e.DiagnosticCategory.Message,"Skip_type_checking_d_ts_files_that_are_included_with_TypeScript_6692","Skip type checking .d.ts files that are included with TypeScript."),Skip_type_checking_all_d_ts_files:t(6693,e.DiagnosticCategory.Message,"Skip_type_checking_all_d_ts_files_6693","Skip type checking all .d.ts files."),Create_source_map_files_for_emitted_JavaScript_files:t(6694,e.DiagnosticCategory.Message,"Create_source_map_files_for_emitted_JavaScript_files_6694","Create source map files for emitted JavaScript files."),Specify_the_root_path_for_debuggers_to_find_the_reference_source_code:t(6695,e.DiagnosticCategory.Message,"Specify_the_root_path_for_debuggers_to_find_the_reference_source_code_6695","Specify the root path for debuggers to find the reference source code."),Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function:t(6697,e.DiagnosticCategory.Message,"Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function_6697","Check that the arguments for 'bind', 'call', and 'apply' methods match the original function."),When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible:t(6698,e.DiagnosticCategory.Message,"When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible_6698","When assigning functions, check to ensure parameters and the return values are subtype-compatible."),When_type_checking_take_into_account_null_and_undefined:t(6699,e.DiagnosticCategory.Message,"When_type_checking_take_into_account_null_and_undefined_6699","When type checking, take into account 'null' and 'undefined'."),Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor:t(6700,e.DiagnosticCategory.Message,"Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor_6700","Check for class properties that are declared but not set in the constructor."),Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments:t(6701,e.DiagnosticCategory.Message,"Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments_6701","Disable emitting declarations that have '@internal' in their JSDoc comments."),Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals:t(6702,e.DiagnosticCategory.Message,"Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals_6702","Disable reporting of excess property errors during the creation of object literals."),Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures:t(6703,e.DiagnosticCategory.Message,"Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures_6703","Suppress 'noImplicitAny' errors when indexing objects that lack index signatures."),Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_support_recursive_watching_natively:t(6704,e.DiagnosticCategory.Message,"Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_supp_6704","Synchronously call callbacks and update the state of directory watchers on platforms that don`t support recursive watching natively."),Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declarations:t(6705,e.DiagnosticCategory.Message,"Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declaratio_6705","Set the JavaScript language version for emitted JavaScript and include compatible library declarations."),Log_paths_used_during_the_moduleResolution_process:t(6706,e.DiagnosticCategory.Message,"Log_paths_used_during_the_moduleResolution_process_6706","Log paths used during the 'moduleResolution' process."),Specify_the_path_to_tsbuildinfo_incremental_compilation_file:t(6707,e.DiagnosticCategory.Message,"Specify_the_path_to_tsbuildinfo_incremental_compilation_file_6707","Specify the path to .tsbuildinfo incremental compilation file."),Specify_options_for_automatic_acquisition_of_declaration_files:t(6709,e.DiagnosticCategory.Message,"Specify_options_for_automatic_acquisition_of_declaration_files_6709","Specify options for automatic acquisition of declaration files."),Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types:t(6710,e.DiagnosticCategory.Message,"Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types_6710","Specify multiple folders that act like './node_modules/@types'."),Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file:t(6711,e.DiagnosticCategory.Message,"Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file_6711","Specify type package names to be included without being referenced in a source file."),Emit_ECMAScript_standard_compliant_class_fields:t(6712,e.DiagnosticCategory.Message,"Emit_ECMAScript_standard_compliant_class_fields_6712","Emit ECMAScript-standard-compliant class fields."),Enable_verbose_logging:t(6713,e.DiagnosticCategory.Message,"Enable_verbose_logging_6713","Enable verbose logging."),Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality:t(6714,e.DiagnosticCategory.Message,"Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality_6714","Specify how directories are watched on systems that lack recursive file-watching functionality."),Specify_how_the_TypeScript_watch_mode_works:t(6715,e.DiagnosticCategory.Message,"Specify_how_the_TypeScript_watch_mode_works_6715","Specify how the TypeScript watch mode works."),Require_undeclared_properties_from_index_signatures_to_use_element_accesses:t(6717,e.DiagnosticCategory.Message,"Require_undeclared_properties_from_index_signatures_to_use_element_accesses_6717","Require undeclared properties from index signatures to use element accesses."),Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types:t(6718,e.DiagnosticCategory.Message,"Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types_6718","Specify emit/checking behavior for imports that are only used for types."),Default_catch_clause_variables_as_unknown_instead_of_any:t(6803,e.DiagnosticCategory.Message,"Default_catch_clause_variables_as_unknown_instead_of_any_6803","Default catch clause variables as 'unknown' instead of 'any'."),one_of_Colon:t(6900,e.DiagnosticCategory.Message,"one_of_Colon_6900","one of:"),one_or_more_Colon:t(6901,e.DiagnosticCategory.Message,"one_or_more_Colon_6901","one or more:"),type_Colon:t(6902,e.DiagnosticCategory.Message,"type_Colon_6902","type:"),default_Colon:t(6903,e.DiagnosticCategory.Message,"default_Colon_6903","default:"),module_system_or_esModuleInterop:t(6904,e.DiagnosticCategory.Message,"module_system_or_esModuleInterop_6904",'module === "system" or esModuleInterop'),false_unless_strict_is_set:t(6905,e.DiagnosticCategory.Message,"false_unless_strict_is_set_6905","`false`, unless `strict` is set"),false_unless_composite_is_set:t(6906,e.DiagnosticCategory.Message,"false_unless_composite_is_set_6906","`false`, unless `composite` is set"),node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified:t(6907,e.DiagnosticCategory.Message,"node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified_6907",'`["node_modules", "bower_components", "jspm_packages"]`, plus the value of `outDir` if one is specified.'),if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk:t(6908,e.DiagnosticCategory.Message,"if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk_6908",'`[]` if `files` is specified, otherwise `["**/*"]`'),true_if_composite_false_otherwise:t(6909,e.DiagnosticCategory.Message,"true_if_composite_false_otherwise_6909","`true` if `composite`, `false` otherwise"),module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node:t(69010,e.DiagnosticCategory.Message,"module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node_69010","module === `AMD` or `UMD` or `System` or `ES6`, then `Classic`, Otherwise `Node`"),Computed_from_the_list_of_input_files:t(6911,e.DiagnosticCategory.Message,"Computed_from_the_list_of_input_files_6911","Computed from the list of input files"),Platform_specific:t(6912,e.DiagnosticCategory.Message,"Platform_specific_6912","Platform specific"),You_can_learn_about_all_of_the_compiler_options_at_0:t(6913,e.DiagnosticCategory.Message,"You_can_learn_about_all_of_the_compiler_options_at_0_6913","You can learn about all of the compiler options at {0}"),Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_config_watch_mode_with_Colon:t(6914,e.DiagnosticCategory.Message,"Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_conf_6914","Including --watch, -w will start watching the current project for the file changes. Once set, you can config watch mode with:"),Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_trigger_building_composite_projects_which_you_can_learn_more_about_at_0:t(6915,e.DiagnosticCategory.Message,"Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_tr_6915","Using --build, -b will make tsc behave more like a build orchestrator than a compiler. This is used to trigger building composite projects which you can learn more about at {0}"),COMMON_COMMANDS:t(6916,e.DiagnosticCategory.Message,"COMMON_COMMANDS_6916","COMMON COMMANDS"),ALL_COMPILER_OPTIONS:t(6917,e.DiagnosticCategory.Message,"ALL_COMPILER_OPTIONS_6917","ALL COMPILER OPTIONS"),WATCH_OPTIONS:t(6918,e.DiagnosticCategory.Message,"WATCH_OPTIONS_6918","WATCH OPTIONS"),BUILD_OPTIONS:t(6919,e.DiagnosticCategory.Message,"BUILD_OPTIONS_6919","BUILD OPTIONS"),COMMON_COMPILER_OPTIONS:t(6920,e.DiagnosticCategory.Message,"COMMON_COMPILER_OPTIONS_6920","COMMON COMPILER OPTIONS"),COMMAND_LINE_FLAGS:t(6921,e.DiagnosticCategory.Message,"COMMAND_LINE_FLAGS_6921","COMMAND LINE FLAGS"),tsc_Colon_The_TypeScript_Compiler:t(6922,e.DiagnosticCategory.Message,"tsc_Colon_The_TypeScript_Compiler_6922","tsc: The TypeScript Compiler"),Compiles_the_current_project_tsconfig_json_in_the_working_directory:t(6923,e.DiagnosticCategory.Message,"Compiles_the_current_project_tsconfig_json_in_the_working_directory_6923","Compiles the current project (tsconfig.json in the working directory.)"),Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options:t(6924,e.DiagnosticCategory.Message,"Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options_6924","Ignoring tsconfig.json, compiles the specified files with default compiler options."),Build_a_composite_project_in_the_working_directory:t(6925,e.DiagnosticCategory.Message,"Build_a_composite_project_in_the_working_directory_6925","Build a composite project in the working directory."),Creates_a_tsconfig_json_with_the_recommended_settings_in_the_working_directory:t(6926,e.DiagnosticCategory.Message,"Creates_a_tsconfig_json_with_the_recommended_settings_in_the_working_directory_6926","Creates a tsconfig.json with the recommended settings in the working directory."),Compiles_the_TypeScript_project_located_at_the_specified_path:t(6927,e.DiagnosticCategory.Message,"Compiles_the_TypeScript_project_located_at_the_specified_path_6927","Compiles the TypeScript project located at the specified path."),An_expanded_version_of_this_information_showing_all_possible_compiler_options:t(6928,e.DiagnosticCategory.Message,"An_expanded_version_of_this_information_showing_all_possible_compiler_options_6928","An expanded version of this information, showing all possible compiler options"),Compiles_the_current_project_with_additional_settings:t(6929,e.DiagnosticCategory.Message,"Compiles_the_current_project_with_additional_settings_6929","Compiles the current project, with additional settings."),true_for_ES2022_and_above_including_ESNext:t(6930,e.DiagnosticCategory.Message,"true_for_ES2022_and_above_including_ESNext_6930","`true` for ES2022 and above, including ESNext."),List_of_file_name_suffixes_to_search_when_resolving_a_module:t(6931,e.DiagnosticCategory.Error,"List_of_file_name_suffixes_to_search_when_resolving_a_module_6931","List of file name suffixes to search when resolving a module."),Variable_0_implicitly_has_an_1_type:t(7005,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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(7027,e.DiagnosticCategory.Error,"Unreachable_code_detected_7027","Unreachable code detected.",!0),Unused_label:t(7028,e.DiagnosticCategory.Error,"Unused_label_7028","Unused label.",!0),Fallthrough_case_in_switch:t(7029,e.DiagnosticCategory.Error,"Fallthrough_case_in_switch_7029","Fallthrough case in switch."),Not_all_code_paths_return_a_value:t(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:t(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:t(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:t(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:t(7034,e.DiagnosticCategory.Error,"Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined_7034","Variable '{0}' implicitly has type '{1}' in some locations where its type cannot be determined."),Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0:t(7035,e.DiagnosticCategory.Error,"Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare__7035","Try `npm i --save-dev @types/{1}` if it exists or add a new declaration (.d.ts) file containing `declare module '{0}';`"),Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(7055,e.DiagnosticCategory.Error,"_0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type_7055","'{0}', which lacks return-type annotation, implicitly has an '{1}' yield type."),The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_type_annotation_is_needed:t(7056,e.DiagnosticCategory.Error,"The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_ty_7056","The inferred type of this node exceeds the maximum length the compiler will serialize. An explicit type annotation is needed."),yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_type_annotation:t(7057,e.DiagnosticCategory.Error,"yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_t_7057","'yield' expression implicitly results in an 'any' type because its containing generator lacks a return-type annotation."),If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_declare_module_1:t(7058,e.DiagnosticCategory.Error,"If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_decl_7058","If the '{0}' package actually exposes this module, try adding a new declaration (.d.ts) file containing `declare module '{1}';`"),This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead:t(7059,e.DiagnosticCategory.Error,"This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead_7059","This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead."),This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_constraint:t(7060,e.DiagnosticCategory.Error,"This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_cons_7060","This syntax is reserved in files with the .mts or .cts extension. Add a trailing comma or explicit constraint."),A_mapped_type_may_not_declare_properties_or_methods:t(7061,e.DiagnosticCategory.Error,"A_mapped_type_may_not_declare_properties_or_methods_7061","A mapped type may not declare properties or methods."),You_cannot_rename_this_element:t(8e3,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:t(8001,e.DiagnosticCategory.Error,"You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library_8001","You cannot rename elements that are defined in the standard TypeScript library."),import_can_only_be_used_in_TypeScript_files:t(8002,e.DiagnosticCategory.Error,"import_can_only_be_used_in_TypeScript_files_8002","'import ... =' can only be used in TypeScript files."),export_can_only_be_used_in_TypeScript_files:t(8003,e.DiagnosticCategory.Error,"export_can_only_be_used_in_TypeScript_files_8003","'export =' can only be used in TypeScript files."),Type_parameter_declarations_can_only_be_used_in_TypeScript_files:t(8004,e.DiagnosticCategory.Error,"Type_parameter_declarations_can_only_be_used_in_TypeScript_files_8004","Type parameter declarations can only be used in TypeScript files."),implements_clauses_can_only_be_used_in_TypeScript_files:t(8005,e.DiagnosticCategory.Error,"implements_clauses_can_only_be_used_in_TypeScript_files_8005","'implements' clauses can only be used in TypeScript files."),_0_declarations_can_only_be_used_in_TypeScript_files:t(8006,e.DiagnosticCategory.Error,"_0_declarations_can_only_be_used_in_TypeScript_files_8006","'{0}' declarations can only be used in TypeScript files."),Type_aliases_can_only_be_used_in_TypeScript_files:t(8008,e.DiagnosticCategory.Error,"Type_aliases_can_only_be_used_in_TypeScript_files_8008","Type aliases can only be used in TypeScript files."),The_0_modifier_can_only_be_used_in_TypeScript_files:t(8009,e.DiagnosticCategory.Error,"The_0_modifier_can_only_be_used_in_TypeScript_files_8009","The '{0}' modifier can only be used in TypeScript files."),Type_annotations_can_only_be_used_in_TypeScript_files:t(8010,e.DiagnosticCategory.Error,"Type_annotations_can_only_be_used_in_TypeScript_files_8010","Type annotations can only be used in TypeScript files."),Type_arguments_can_only_be_used_in_TypeScript_files:t(8011,e.DiagnosticCategory.Error,"Type_arguments_can_only_be_used_in_TypeScript_files_8011","Type arguments can only be used in TypeScript files."),Parameter_modifiers_can_only_be_used_in_TypeScript_files:t(8012,e.DiagnosticCategory.Error,"Parameter_modifiers_can_only_be_used_in_TypeScript_files_8012","Parameter modifiers can only be used in TypeScript files."),Non_null_assertions_can_only_be_used_in_TypeScript_files:t(8013,e.DiagnosticCategory.Error,"Non_null_assertions_can_only_be_used_in_TypeScript_files_8013","Non-null assertions can only be used in TypeScript files."),Type_assertion_expressions_can_only_be_used_in_TypeScript_files:t(8016,e.DiagnosticCategory.Error,"Type_assertion_expressions_can_only_be_used_in_TypeScript_files_8016","Type assertion expressions can only be used in TypeScript files."),Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0:t(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:t(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:t(8019,e.DiagnosticCategory.Message,"Report_errors_in_js_files_8019","Report errors in .js files."),JSDoc_types_can_only_be_used_inside_documentation_comments:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(8032,e.DiagnosticCategory.Error,"Qualified_name_0_is_not_allowed_without_a_leading_param_object_1_8032","Qualified name '{0}' is not allowed without a leading '@param {object} {1}'."),A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags:t(8033,e.DiagnosticCategory.Error,"A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags_8033","A JSDoc '@typedef' comment may not contain multiple '@type' tags."),The_tag_was_first_specified_here:t(8034,e.DiagnosticCategory.Error,"The_tag_was_first_specified_here_8034","The tag was first specified here."),You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder:t(8035,e.DiagnosticCategory.Error,"You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder_8035","You cannot rename elements that are defined in a 'node_modules' folder."),You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder:t(8036,e.DiagnosticCategory.Error,"You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder_8036","You cannot rename elements that are defined in another 'node_modules' folder."),Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files:t(8037,e.DiagnosticCategory.Error,"Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files_8037","Type satisfaction expressions can only be used in TypeScript files."),Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_declaration_emit:t(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:t(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:t(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:t(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:t(17002,e.DiagnosticCategory.Error,"Expected_corresponding_JSX_closing_tag_for_0_17002","Expected corresponding JSX closing tag for '{0}'."),Cannot_use_JSX_unless_the_jsx_flag_is_provided:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(17015,e.DiagnosticCategory.Error,"Expected_corresponding_closing_tag_for_JSX_fragment_17015","Expected corresponding closing tag for JSX fragment."),The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_compiler_option:t(17016,e.DiagnosticCategory.Error,"The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_com_17016","The 'jsxFragmentFactory' compiler option must be provided to use JSX fragments with the 'jsxFactory' compiler option."),An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments:t(17017,e.DiagnosticCategory.Error,"An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments_17017","An @jsxFrag pragma is required when using an @jsx pragma with JSX fragments."),Unknown_type_acquisition_option_0_Did_you_mean_1:t(17018,e.DiagnosticCategory.Error,"Unknown_type_acquisition_option_0_Did_you_mean_1_17018","Unknown type acquisition option '{0}'. Did you mean '{1}'?"),Circularity_detected_while_resolving_configuration_Colon_0:t(18e3,e.DiagnosticCategory.Error,"Circularity_detected_while_resolving_configuration_Colon_0_18000","Circularity detected while resolving configuration: {0}"),The_files_list_in_config_file_0_is_empty:t(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:t(18003,e.DiagnosticCategory.Error,"No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2_18003","No inputs were found in config file '{0}'. Specified 'include' paths were '{1}' and 'exclude' paths were '{2}'."),File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module:t(80001,e.DiagnosticCategory.Suggestion,"File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module_80001","File is a CommonJS module; it may be converted to an ES module."),This_constructor_function_may_be_converted_to_a_class_declaration:t(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:t(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:t(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:t(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:t(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:t(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:t(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:t(90001,e.DiagnosticCategory.Message,"Add_missing_super_call_90001","Add missing 'super()' call"),Make_super_call_the_first_statement_in_the_constructor:t(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:t(90003,e.DiagnosticCategory.Message,"Change_extends_to_implements_90003","Change 'extends' to 'implements'"),Remove_unused_declaration_for_Colon_0:t(90004,e.DiagnosticCategory.Message,"Remove_unused_declaration_for_Colon_0_90004","Remove unused declaration for: '{0}'"),Remove_import_from_0:t(90005,e.DiagnosticCategory.Message,"Remove_import_from_0_90005","Remove import from '{0}'"),Implement_interface_0:t(90006,e.DiagnosticCategory.Message,"Implement_interface_0_90006","Implement interface '{0}'"),Implement_inherited_abstract_class:t(90007,e.DiagnosticCategory.Message,"Implement_inherited_abstract_class_90007","Implement inherited abstract class"),Add_0_to_unresolved_variable:t(90008,e.DiagnosticCategory.Message,"Add_0_to_unresolved_variable_90008","Add '{0}.' to unresolved variable"),Remove_variable_statement:t(90010,e.DiagnosticCategory.Message,"Remove_variable_statement_90010","Remove variable statement"),Remove_template_tag:t(90011,e.DiagnosticCategory.Message,"Remove_template_tag_90011","Remove template tag"),Remove_type_parameters:t(90012,e.DiagnosticCategory.Message,"Remove_type_parameters_90012","Remove type parameters"),Import_0_from_1:t(90013,e.DiagnosticCategory.Message,"Import_0_from_1_90013","Import '{0}' from \"{1}\""),Change_0_to_1:t(90014,e.DiagnosticCategory.Message,"Change_0_to_1_90014","Change '{0}' to '{1}'"),Declare_property_0:t(90016,e.DiagnosticCategory.Message,"Declare_property_0_90016","Declare property '{0}'"),Add_index_signature_for_property_0:t(90017,e.DiagnosticCategory.Message,"Add_index_signature_for_property_0_90017","Add index signature for property '{0}'"),Disable_checking_for_this_file:t(90018,e.DiagnosticCategory.Message,"Disable_checking_for_this_file_90018","Disable checking for this file"),Ignore_this_error_message:t(90019,e.DiagnosticCategory.Message,"Ignore_this_error_message_90019","Ignore this error message"),Initialize_property_0_in_the_constructor:t(90020,e.DiagnosticCategory.Message,"Initialize_property_0_in_the_constructor_90020","Initialize property '{0}' in the constructor"),Initialize_static_property_0:t(90021,e.DiagnosticCategory.Message,"Initialize_static_property_0_90021","Initialize static property '{0}'"),Change_spelling_to_0:t(90022,e.DiagnosticCategory.Message,"Change_spelling_to_0_90022","Change spelling to '{0}'"),Declare_method_0:t(90023,e.DiagnosticCategory.Message,"Declare_method_0_90023","Declare method '{0}'"),Declare_static_method_0:t(90024,e.DiagnosticCategory.Message,"Declare_static_method_0_90024","Declare static method '{0}'"),Prefix_0_with_an_underscore:t(90025,e.DiagnosticCategory.Message,"Prefix_0_with_an_underscore_90025","Prefix '{0}' with an underscore"),Rewrite_as_the_indexed_access_type_0:t(90026,e.DiagnosticCategory.Message,"Rewrite_as_the_indexed_access_type_0_90026","Rewrite as the indexed access type '{0}'"),Declare_static_property_0:t(90027,e.DiagnosticCategory.Message,"Declare_static_property_0_90027","Declare static property '{0}'"),Call_decorator_expression:t(90028,e.DiagnosticCategory.Message,"Call_decorator_expression_90028","Call decorator expression"),Add_async_modifier_to_containing_function:t(90029,e.DiagnosticCategory.Message,"Add_async_modifier_to_containing_function_90029","Add async modifier to containing function"),Replace_infer_0_with_unknown:t(90030,e.DiagnosticCategory.Message,"Replace_infer_0_with_unknown_90030","Replace 'infer {0}' with 'unknown'"),Replace_all_unused_infer_with_unknown:t(90031,e.DiagnosticCategory.Message,"Replace_all_unused_infer_with_unknown_90031","Replace all unused 'infer' with 'unknown'"),Add_parameter_name:t(90034,e.DiagnosticCategory.Message,"Add_parameter_name_90034","Add parameter name"),Declare_private_property_0:t(90035,e.DiagnosticCategory.Message,"Declare_private_property_0_90035","Declare private property '{0}'"),Replace_0_with_Promise_1:t(90036,e.DiagnosticCategory.Message,"Replace_0_with_Promise_1_90036","Replace '{0}' with 'Promise<{1}>'"),Fix_all_incorrect_return_type_of_an_async_functions:t(90037,e.DiagnosticCategory.Message,"Fix_all_incorrect_return_type_of_an_async_functions_90037","Fix all incorrect return type of an async functions"),Declare_private_method_0:t(90038,e.DiagnosticCategory.Message,"Declare_private_method_0_90038","Declare private method '{0}'"),Remove_unused_destructuring_declaration:t(90039,e.DiagnosticCategory.Message,"Remove_unused_destructuring_declaration_90039","Remove unused destructuring declaration"),Remove_unused_declarations_for_Colon_0:t(90041,e.DiagnosticCategory.Message,"Remove_unused_declarations_for_Colon_0_90041","Remove unused declarations for: '{0}'"),Declare_a_private_field_named_0:t(90053,e.DiagnosticCategory.Message,"Declare_a_private_field_named_0_90053","Declare a private field named '{0}'."),Includes_imports_of_types_referenced_by_0:t(90054,e.DiagnosticCategory.Message,"Includes_imports_of_types_referenced_by_0_90054","Includes imports of types referenced by '{0}'"),Remove_type_from_import_declaration_from_0:t(90055,e.DiagnosticCategory.Message,"Remove_type_from_import_declaration_from_0_90055","Remove 'type' from import declaration from \"{0}\""),Remove_type_from_import_of_0_from_1:t(90056,e.DiagnosticCategory.Message,"Remove_type_from_import_of_0_from_1_90056","Remove 'type' from import of '{0}' from \"{1}\""),Add_import_from_0:t(90057,e.DiagnosticCategory.Message,"Add_import_from_0_90057",'Add import from "{0}"'),Update_import_from_0:t(90058,e.DiagnosticCategory.Message,"Update_import_from_0_90058",'Update import from "{0}"'),Export_0_from_module_1:t(90059,e.DiagnosticCategory.Message,"Export_0_from_module_1_90059","Export '{0}' from module '{1}'"),Export_all_referenced_locals:t(90060,e.DiagnosticCategory.Message,"Export_all_referenced_locals_90060","Export all referenced locals"),Convert_function_to_an_ES2015_class:t(95001,e.DiagnosticCategory.Message,"Convert_function_to_an_ES2015_class_95001","Convert function to an ES2015 class"),Convert_0_to_1_in_0:t(95003,e.DiagnosticCategory.Message,"Convert_0_to_1_in_0_95003","Convert '{0}' to '{1} in {0}'"),Extract_to_0_in_1:t(95004,e.DiagnosticCategory.Message,"Extract_to_0_in_1_95004","Extract to {0} in {1}"),Extract_function:t(95005,e.DiagnosticCategory.Message,"Extract_function_95005","Extract function"),Extract_constant:t(95006,e.DiagnosticCategory.Message,"Extract_constant_95006","Extract constant"),Extract_to_0_in_enclosing_scope:t(95007,e.DiagnosticCategory.Message,"Extract_to_0_in_enclosing_scope_95007","Extract to {0} in enclosing scope"),Extract_to_0_in_1_scope:t(95008,e.DiagnosticCategory.Message,"Extract_to_0_in_1_scope_95008","Extract to {0} in {1} scope"),Annotate_with_type_from_JSDoc:t(95009,e.DiagnosticCategory.Message,"Annotate_with_type_from_JSDoc_95009","Annotate with type from JSDoc"),Infer_type_of_0_from_usage:t(95011,e.DiagnosticCategory.Message,"Infer_type_of_0_from_usage_95011","Infer type of '{0}' from usage"),Infer_parameter_types_from_usage:t(95012,e.DiagnosticCategory.Message,"Infer_parameter_types_from_usage_95012","Infer parameter types from usage"),Convert_to_default_import:t(95013,e.DiagnosticCategory.Message,"Convert_to_default_import_95013","Convert to default import"),Install_0:t(95014,e.DiagnosticCategory.Message,"Install_0_95014","Install '{0}'"),Replace_import_with_0:t(95015,e.DiagnosticCategory.Message,"Replace_import_with_0_95015","Replace import with '{0}'."),Use_synthetic_default_member:t(95016,e.DiagnosticCategory.Message,"Use_synthetic_default_member_95016","Use synthetic 'default' member."),Convert_to_ES_module:t(95017,e.DiagnosticCategory.Message,"Convert_to_ES_module_95017","Convert to ES module"),Add_undefined_type_to_property_0:t(95018,e.DiagnosticCategory.Message,"Add_undefined_type_to_property_0_95018","Add 'undefined' type to property '{0}'"),Add_initializer_to_property_0:t(95019,e.DiagnosticCategory.Message,"Add_initializer_to_property_0_95019","Add initializer to property '{0}'"),Add_definite_assignment_assertion_to_property_0:t(95020,e.DiagnosticCategory.Message,"Add_definite_assignment_assertion_to_property_0_95020","Add definite assignment assertion to property '{0}'"),Convert_all_type_literals_to_mapped_type:t(95021,e.DiagnosticCategory.Message,"Convert_all_type_literals_to_mapped_type_95021","Convert all type literals to mapped type"),Add_all_missing_members:t(95022,e.DiagnosticCategory.Message,"Add_all_missing_members_95022","Add all missing members"),Infer_all_types_from_usage:t(95023,e.DiagnosticCategory.Message,"Infer_all_types_from_usage_95023","Infer all types from usage"),Delete_all_unused_declarations:t(95024,e.DiagnosticCategory.Message,"Delete_all_unused_declarations_95024","Delete all unused declarations"),Prefix_all_unused_declarations_with_where_possible:t(95025,e.DiagnosticCategory.Message,"Prefix_all_unused_declarations_with_where_possible_95025","Prefix all unused declarations with '_' where possible"),Fix_all_detected_spelling_errors:t(95026,e.DiagnosticCategory.Message,"Fix_all_detected_spelling_errors_95026","Fix all detected spelling errors"),Add_initializers_to_all_uninitialized_properties:t(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:t(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:t(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:t(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:t(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:t(95032,e.DiagnosticCategory.Message,"Implement_all_unimplemented_interfaces_95032","Implement all unimplemented interfaces"),Install_all_missing_types_packages:t(95033,e.DiagnosticCategory.Message,"Install_all_missing_types_packages_95033","Install all missing types packages"),Rewrite_all_as_indexed_access_types:t(95034,e.DiagnosticCategory.Message,"Rewrite_all_as_indexed_access_types_95034","Rewrite all as indexed access types"),Convert_all_to_default_imports:t(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:t(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:t(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:t(95038,e.DiagnosticCategory.Message,"Change_all_extended_interfaces_to_implements_95038","Change all extended interfaces to 'implements'"),Add_all_missing_super_calls:t(95039,e.DiagnosticCategory.Message,"Add_all_missing_super_calls_95039","Add all missing super calls"),Implement_all_inherited_abstract_classes:t(95040,e.DiagnosticCategory.Message,"Implement_all_inherited_abstract_classes_95040","Implement all inherited abstract classes"),Add_all_missing_async_modifiers:t(95041,e.DiagnosticCategory.Message,"Add_all_missing_async_modifiers_95041","Add all missing 'async' modifiers"),Add_ts_ignore_to_all_error_messages:t(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:t(95043,e.DiagnosticCategory.Message,"Annotate_everything_with_types_from_JSDoc_95043","Annotate everything with types from JSDoc"),Add_to_all_uncalled_decorators:t(95044,e.DiagnosticCategory.Message,"Add_to_all_uncalled_decorators_95044","Add '()' to all uncalled decorators"),Convert_all_constructor_functions_to_classes:t(95045,e.DiagnosticCategory.Message,"Convert_all_constructor_functions_to_classes_95045","Convert all constructor functions to classes"),Generate_get_and_set_accessors:t(95046,e.DiagnosticCategory.Message,"Generate_get_and_set_accessors_95046","Generate 'get' and 'set' accessors"),Convert_require_to_import:t(95047,e.DiagnosticCategory.Message,"Convert_require_to_import_95047","Convert 'require' to 'import'"),Convert_all_require_to_import:t(95048,e.DiagnosticCategory.Message,"Convert_all_require_to_import_95048","Convert all 'require' to 'import'"),Move_to_a_new_file:t(95049,e.DiagnosticCategory.Message,"Move_to_a_new_file_95049","Move to a new file"),Remove_unreachable_code:t(95050,e.DiagnosticCategory.Message,"Remove_unreachable_code_95050","Remove unreachable code"),Remove_all_unreachable_code:t(95051,e.DiagnosticCategory.Message,"Remove_all_unreachable_code_95051","Remove all unreachable code"),Add_missing_typeof:t(95052,e.DiagnosticCategory.Message,"Add_missing_typeof_95052","Add missing 'typeof'"),Remove_unused_label:t(95053,e.DiagnosticCategory.Message,"Remove_unused_label_95053","Remove unused label"),Remove_all_unused_labels:t(95054,e.DiagnosticCategory.Message,"Remove_all_unused_labels_95054","Remove all unused labels"),Convert_0_to_mapped_object_type:t(95055,e.DiagnosticCategory.Message,"Convert_0_to_mapped_object_type_95055","Convert '{0}' to mapped object type"),Convert_namespace_import_to_named_imports:t(95056,e.DiagnosticCategory.Message,"Convert_namespace_import_to_named_imports_95056","Convert namespace import to named imports"),Convert_named_imports_to_namespace_import:t(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:t(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:t(95059,e.DiagnosticCategory.Message,"Add_braces_to_arrow_function_95059","Add braces to arrow function"),Remove_braces_from_arrow_function:t(95060,e.DiagnosticCategory.Message,"Remove_braces_from_arrow_function_95060","Remove braces from arrow function"),Convert_default_export_to_named_export:t(95061,e.DiagnosticCategory.Message,"Convert_default_export_to_named_export_95061","Convert default export to named export"),Convert_named_export_to_default_export:t(95062,e.DiagnosticCategory.Message,"Convert_named_export_to_default_export_95062","Convert named export to default export"),Add_missing_enum_member_0:t(95063,e.DiagnosticCategory.Message,"Add_missing_enum_member_0_95063","Add missing enum member '{0}'"),Add_all_missing_imports:t(95064,e.DiagnosticCategory.Message,"Add_all_missing_imports_95064","Add all missing imports"),Convert_to_async_function:t(95065,e.DiagnosticCategory.Message,"Convert_to_async_function_95065","Convert to async function"),Convert_all_to_async_functions:t(95066,e.DiagnosticCategory.Message,"Convert_all_to_async_functions_95066","Convert all to async functions"),Add_missing_call_parentheses:t(95067,e.DiagnosticCategory.Message,"Add_missing_call_parentheses_95067","Add missing call parentheses"),Add_all_missing_call_parentheses:t(95068,e.DiagnosticCategory.Message,"Add_all_missing_call_parentheses_95068","Add all missing call parentheses"),Add_unknown_conversion_for_non_overlapping_types:t(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:t(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:t(95071,e.DiagnosticCategory.Message,"Add_missing_new_operator_to_call_95071","Add missing 'new' operator to call"),Add_missing_new_operator_to_all_calls:t(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:t(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:t(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:t(95075,e.DiagnosticCategory.Message,"Convert_parameters_to_destructured_object_95075","Convert parameters to destructured object"),Extract_type:t(95077,e.DiagnosticCategory.Message,"Extract_type_95077","Extract type"),Extract_to_type_alias:t(95078,e.DiagnosticCategory.Message,"Extract_to_type_alias_95078","Extract to type alias"),Extract_to_typedef:t(95079,e.DiagnosticCategory.Message,"Extract_to_typedef_95079","Extract to typedef"),Infer_this_type_of_0_from_usage:t(95080,e.DiagnosticCategory.Message,"Infer_this_type_of_0_from_usage_95080","Infer 'this' type of '{0}' from usage"),Add_const_to_unresolved_variable:t(95081,e.DiagnosticCategory.Message,"Add_const_to_unresolved_variable_95081","Add 'const' to unresolved variable"),Add_const_to_all_unresolved_variables:t(95082,e.DiagnosticCategory.Message,"Add_const_to_all_unresolved_variables_95082","Add 'const' to all unresolved variables"),Add_await:t(95083,e.DiagnosticCategory.Message,"Add_await_95083","Add 'await'"),Add_await_to_initializer_for_0:t(95084,e.DiagnosticCategory.Message,"Add_await_to_initializer_for_0_95084","Add 'await' to initializer for '{0}'"),Fix_all_expressions_possibly_missing_await:t(95085,e.DiagnosticCategory.Message,"Fix_all_expressions_possibly_missing_await_95085","Fix all expressions possibly missing 'await'"),Remove_unnecessary_await:t(95086,e.DiagnosticCategory.Message,"Remove_unnecessary_await_95086","Remove unnecessary 'await'"),Remove_all_unnecessary_uses_of_await:t(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:t(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:t(95089,e.DiagnosticCategory.Message,"Add_await_to_initializers_95089","Add 'await' to initializers"),Extract_to_interface:t(95090,e.DiagnosticCategory.Message,"Extract_to_interface_95090","Extract to interface"),Convert_to_a_bigint_numeric_literal:t(95091,e.DiagnosticCategory.Message,"Convert_to_a_bigint_numeric_literal_95091","Convert to a bigint numeric literal"),Convert_all_to_bigint_numeric_literals:t(95092,e.DiagnosticCategory.Message,"Convert_all_to_bigint_numeric_literals_95092","Convert all to bigint numeric literals"),Convert_const_to_let:t(95093,e.DiagnosticCategory.Message,"Convert_const_to_let_95093","Convert 'const' to 'let'"),Prefix_with_declare:t(95094,e.DiagnosticCategory.Message,"Prefix_with_declare_95094","Prefix with 'declare'"),Prefix_all_incorrect_property_declarations_with_declare:t(95095,e.DiagnosticCategory.Message,"Prefix_all_incorrect_property_declarations_with_declare_95095","Prefix all incorrect property declarations with 'declare'"),Convert_to_template_string:t(95096,e.DiagnosticCategory.Message,"Convert_to_template_string_95096","Convert to template string"),Add_export_to_make_this_file_into_a_module:t(95097,e.DiagnosticCategory.Message,"Add_export_to_make_this_file_into_a_module_95097","Add 'export {}' to make this file into a module"),Set_the_target_option_in_your_configuration_file_to_0:t(95098,e.DiagnosticCategory.Message,"Set_the_target_option_in_your_configuration_file_to_0_95098","Set the 'target' option in your configuration file to '{0}'"),Set_the_module_option_in_your_configuration_file_to_0:t(95099,e.DiagnosticCategory.Message,"Set_the_module_option_in_your_configuration_file_to_0_95099","Set the 'module' option in your configuration file to '{0}'"),Convert_invalid_character_to_its_html_entity_code:t(95100,e.DiagnosticCategory.Message,"Convert_invalid_character_to_its_html_entity_code_95100","Convert invalid character to its html entity code"),Convert_all_invalid_characters_to_HTML_entity_code:t(95101,e.DiagnosticCategory.Message,"Convert_all_invalid_characters_to_HTML_entity_code_95101","Convert all invalid characters to HTML entity code"),Convert_all_const_to_let:t(95102,e.DiagnosticCategory.Message,"Convert_all_const_to_let_95102","Convert all 'const' to 'let'"),Convert_function_expression_0_to_arrow_function:t(95105,e.DiagnosticCategory.Message,"Convert_function_expression_0_to_arrow_function_95105","Convert function expression '{0}' to arrow function"),Convert_function_declaration_0_to_arrow_function:t(95106,e.DiagnosticCategory.Message,"Convert_function_declaration_0_to_arrow_function_95106","Convert function declaration '{0}' to arrow function"),Fix_all_implicit_this_errors:t(95107,e.DiagnosticCategory.Message,"Fix_all_implicit_this_errors_95107","Fix all implicit-'this' errors"),Wrap_invalid_character_in_an_expression_container:t(95108,e.DiagnosticCategory.Message,"Wrap_invalid_character_in_an_expression_container_95108","Wrap invalid character in an expression container"),Wrap_all_invalid_characters_in_an_expression_container:t(95109,e.DiagnosticCategory.Message,"Wrap_all_invalid_characters_in_an_expression_container_95109","Wrap all invalid characters in an expression container"),Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file:t(95110,e.DiagnosticCategory.Message,"Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file_95110","Visit https://aka.ms/tsconfig to read more about this file"),Add_a_return_statement:t(95111,e.DiagnosticCategory.Message,"Add_a_return_statement_95111","Add a return statement"),Remove_braces_from_arrow_function_body:t(95112,e.DiagnosticCategory.Message,"Remove_braces_from_arrow_function_body_95112","Remove braces from arrow function body"),Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal:t(95113,e.DiagnosticCategory.Message,"Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal_95113","Wrap the following body with parentheses which should be an object literal"),Add_all_missing_return_statement:t(95114,e.DiagnosticCategory.Message,"Add_all_missing_return_statement_95114","Add all missing return statement"),Remove_braces_from_all_arrow_function_bodies_with_relevant_issues:t(95115,e.DiagnosticCategory.Message,"Remove_braces_from_all_arrow_function_bodies_with_relevant_issues_95115","Remove braces from all arrow function bodies with relevant issues"),Wrap_all_object_literal_with_parentheses:t(95116,e.DiagnosticCategory.Message,"Wrap_all_object_literal_with_parentheses_95116","Wrap all object literal with parentheses"),Move_labeled_tuple_element_modifiers_to_labels:t(95117,e.DiagnosticCategory.Message,"Move_labeled_tuple_element_modifiers_to_labels_95117","Move labeled tuple element modifiers to labels"),Convert_overload_list_to_single_signature:t(95118,e.DiagnosticCategory.Message,"Convert_overload_list_to_single_signature_95118","Convert overload list to single signature"),Generate_get_and_set_accessors_for_all_overriding_properties:t(95119,e.DiagnosticCategory.Message,"Generate_get_and_set_accessors_for_all_overriding_properties_95119","Generate 'get' and 'set' accessors for all overriding properties"),Wrap_in_JSX_fragment:t(95120,e.DiagnosticCategory.Message,"Wrap_in_JSX_fragment_95120","Wrap in JSX fragment"),Wrap_all_unparented_JSX_in_JSX_fragment:t(95121,e.DiagnosticCategory.Message,"Wrap_all_unparented_JSX_in_JSX_fragment_95121","Wrap all unparented JSX in JSX fragment"),Convert_arrow_function_or_function_expression:t(95122,e.DiagnosticCategory.Message,"Convert_arrow_function_or_function_expression_95122","Convert arrow function or function expression"),Convert_to_anonymous_function:t(95123,e.DiagnosticCategory.Message,"Convert_to_anonymous_function_95123","Convert to anonymous function"),Convert_to_named_function:t(95124,e.DiagnosticCategory.Message,"Convert_to_named_function_95124","Convert to named function"),Convert_to_arrow_function:t(95125,e.DiagnosticCategory.Message,"Convert_to_arrow_function_95125","Convert to arrow function"),Remove_parentheses:t(95126,e.DiagnosticCategory.Message,"Remove_parentheses_95126","Remove parentheses"),Could_not_find_a_containing_arrow_function:t(95127,e.DiagnosticCategory.Message,"Could_not_find_a_containing_arrow_function_95127","Could not find a containing arrow function"),Containing_function_is_not_an_arrow_function:t(95128,e.DiagnosticCategory.Message,"Containing_function_is_not_an_arrow_function_95128","Containing function is not an arrow function"),Could_not_find_export_statement:t(95129,e.DiagnosticCategory.Message,"Could_not_find_export_statement_95129","Could not find export statement"),This_file_already_has_a_default_export:t(95130,e.DiagnosticCategory.Message,"This_file_already_has_a_default_export_95130","This file already has a default export"),Could_not_find_import_clause:t(95131,e.DiagnosticCategory.Message,"Could_not_find_import_clause_95131","Could not find import clause"),Could_not_find_namespace_import_or_named_imports:t(95132,e.DiagnosticCategory.Message,"Could_not_find_namespace_import_or_named_imports_95132","Could not find namespace import or named imports"),Selection_is_not_a_valid_type_node:t(95133,e.DiagnosticCategory.Message,"Selection_is_not_a_valid_type_node_95133","Selection is not a valid type node"),No_type_could_be_extracted_from_this_type_node:t(95134,e.DiagnosticCategory.Message,"No_type_could_be_extracted_from_this_type_node_95134","No type could be extracted from this type node"),Could_not_find_property_for_which_to_generate_accessor:t(95135,e.DiagnosticCategory.Message,"Could_not_find_property_for_which_to_generate_accessor_95135","Could not find property for which to generate accessor"),Name_is_not_valid:t(95136,e.DiagnosticCategory.Message,"Name_is_not_valid_95136","Name is not valid"),Can_only_convert_property_with_modifier:t(95137,e.DiagnosticCategory.Message,"Can_only_convert_property_with_modifier_95137","Can only convert property with modifier"),Switch_each_misused_0_to_1:t(95138,e.DiagnosticCategory.Message,"Switch_each_misused_0_to_1_95138","Switch each misused '{0}' to '{1}'"),Convert_to_optional_chain_expression:t(95139,e.DiagnosticCategory.Message,"Convert_to_optional_chain_expression_95139","Convert to optional chain expression"),Could_not_find_convertible_access_expression:t(95140,e.DiagnosticCategory.Message,"Could_not_find_convertible_access_expression_95140","Could not find convertible access expression"),Could_not_find_matching_access_expressions:t(95141,e.DiagnosticCategory.Message,"Could_not_find_matching_access_expressions_95141","Could not find matching access expressions"),Can_only_convert_logical_AND_access_chains:t(95142,e.DiagnosticCategory.Message,"Can_only_convert_logical_AND_access_chains_95142","Can only convert logical AND access chains"),Add_void_to_Promise_resolved_without_a_value:t(95143,e.DiagnosticCategory.Message,"Add_void_to_Promise_resolved_without_a_value_95143","Add 'void' to Promise resolved without a value"),Add_void_to_all_Promises_resolved_without_a_value:t(95144,e.DiagnosticCategory.Message,"Add_void_to_all_Promises_resolved_without_a_value_95144","Add 'void' to all Promises resolved without a value"),Use_element_access_for_0:t(95145,e.DiagnosticCategory.Message,"Use_element_access_for_0_95145","Use element access for '{0}'"),Use_element_access_for_all_undeclared_properties:t(95146,e.DiagnosticCategory.Message,"Use_element_access_for_all_undeclared_properties_95146","Use element access for all undeclared properties."),Delete_all_unused_imports:t(95147,e.DiagnosticCategory.Message,"Delete_all_unused_imports_95147","Delete all unused imports"),Infer_function_return_type:t(95148,e.DiagnosticCategory.Message,"Infer_function_return_type_95148","Infer function return type"),Return_type_must_be_inferred_from_a_function:t(95149,e.DiagnosticCategory.Message,"Return_type_must_be_inferred_from_a_function_95149","Return type must be inferred from a function"),Could_not_determine_function_return_type:t(95150,e.DiagnosticCategory.Message,"Could_not_determine_function_return_type_95150","Could not determine function return type"),Could_not_convert_to_arrow_function:t(95151,e.DiagnosticCategory.Message,"Could_not_convert_to_arrow_function_95151","Could not convert to arrow function"),Could_not_convert_to_named_function:t(95152,e.DiagnosticCategory.Message,"Could_not_convert_to_named_function_95152","Could not convert to named function"),Could_not_convert_to_anonymous_function:t(95153,e.DiagnosticCategory.Message,"Could_not_convert_to_anonymous_function_95153","Could not convert to anonymous function"),Can_only_convert_string_concatenation:t(95154,e.DiagnosticCategory.Message,"Can_only_convert_string_concatenation_95154","Can only convert string concatenation"),Selection_is_not_a_valid_statement_or_statements:t(95155,e.DiagnosticCategory.Message,"Selection_is_not_a_valid_statement_or_statements_95155","Selection is not a valid statement or statements"),Add_missing_function_declaration_0:t(95156,e.DiagnosticCategory.Message,"Add_missing_function_declaration_0_95156","Add missing function declaration '{0}'"),Add_all_missing_function_declarations:t(95157,e.DiagnosticCategory.Message,"Add_all_missing_function_declarations_95157","Add all missing function declarations"),Method_not_implemented:t(95158,e.DiagnosticCategory.Message,"Method_not_implemented_95158","Method not implemented."),Function_not_implemented:t(95159,e.DiagnosticCategory.Message,"Function_not_implemented_95159","Function not implemented."),Add_override_modifier:t(95160,e.DiagnosticCategory.Message,"Add_override_modifier_95160","Add 'override' modifier"),Remove_override_modifier:t(95161,e.DiagnosticCategory.Message,"Remove_override_modifier_95161","Remove 'override' modifier"),Add_all_missing_override_modifiers:t(95162,e.DiagnosticCategory.Message,"Add_all_missing_override_modifiers_95162","Add all missing 'override' modifiers"),Remove_all_unnecessary_override_modifiers:t(95163,e.DiagnosticCategory.Message,"Remove_all_unnecessary_override_modifiers_95163","Remove all unnecessary 'override' modifiers"),Can_only_convert_named_export:t(95164,e.DiagnosticCategory.Message,"Can_only_convert_named_export_95164","Can only convert named export"),Add_missing_properties:t(95165,e.DiagnosticCategory.Message,"Add_missing_properties_95165","Add missing properties"),Add_all_missing_properties:t(95166,e.DiagnosticCategory.Message,"Add_all_missing_properties_95166","Add all missing properties"),Add_missing_attributes:t(95167,e.DiagnosticCategory.Message,"Add_missing_attributes_95167","Add missing attributes"),Add_all_missing_attributes:t(95168,e.DiagnosticCategory.Message,"Add_all_missing_attributes_95168","Add all missing attributes"),Add_undefined_to_optional_property_type:t(95169,e.DiagnosticCategory.Message,"Add_undefined_to_optional_property_type_95169","Add 'undefined' to optional property type"),Convert_named_imports_to_default_import:t(95170,e.DiagnosticCategory.Message,"Convert_named_imports_to_default_import_95170","Convert named imports to default import"),Delete_unused_param_tag_0:t(95171,e.DiagnosticCategory.Message,"Delete_unused_param_tag_0_95171","Delete unused '@param' tag '{0}'"),Delete_all_unused_param_tags:t(95172,e.DiagnosticCategory.Message,"Delete_all_unused_param_tags_95172","Delete all unused '@param' tags"),Rename_param_tag_name_0_to_1:t(95173,e.DiagnosticCategory.Message,"Rename_param_tag_name_0_to_1_95173","Rename '@param' tag name '{0}' to '{1}'"),Use_0:t(95174,e.DiagnosticCategory.Message,"Use_0_95174","Use `{0}`."),Use_Number_isNaN_in_all_conditions:t(95175,e.DiagnosticCategory.Message,"Use_Number_isNaN_in_all_conditions_95175","Use `Number.isNaN` in all conditions."),No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer:t(18004,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:t(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:t(18007,e.DiagnosticCategory.Error,"JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array_18007","JSX expressions may not use the comma operator. Did you mean to write an array?"),Private_identifiers_cannot_be_used_as_parameters:t(18009,e.DiagnosticCategory.Error,"Private_identifiers_cannot_be_used_as_parameters_18009","Private identifiers cannot be used as parameters."),An_accessibility_modifier_cannot_be_used_with_a_private_identifier:t(18010,e.DiagnosticCategory.Error,"An_accessibility_modifier_cannot_be_used_with_a_private_identifier_18010","An accessibility modifier cannot be used with a private identifier."),The_operand_of_a_delete_operator_cannot_be_a_private_identifier:t(18011,e.DiagnosticCategory.Error,"The_operand_of_a_delete_operator_cannot_be_a_private_identifier_18011","The operand of a 'delete' operator cannot be a private identifier."),constructor_is_a_reserved_word:t(18012,e.DiagnosticCategory.Error,"constructor_is_a_reserved_word_18012","'#constructor' is a reserved word."),Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier:t(18013,e.DiagnosticCategory.Error,"Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier_18013","Property '{0}' is not accessible outside class '{1}' because it has a private identifier."),The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_private_identifier_with_the_same_spelling:t(18014,e.DiagnosticCategory.Error,"The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_priv_18014","The property '{0}' cannot be accessed on type '{1}' within this class because it is shadowed by another private identifier with the same spelling."),Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2:t(18015,e.DiagnosticCategory.Error,"Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2_18015","Property '{0}' in type '{1}' refers to a different member that cannot be accessed from within type '{2}'."),Private_identifiers_are_not_allowed_outside_class_bodies:t(18016,e.DiagnosticCategory.Error,"Private_identifiers_are_not_allowed_outside_class_bodies_18016","Private identifiers are not allowed outside class bodies."),The_shadowing_declaration_of_0_is_defined_here:t(18017,e.DiagnosticCategory.Error,"The_shadowing_declaration_of_0_is_defined_here_18017","The shadowing declaration of '{0}' is defined here"),The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here:t(18018,e.DiagnosticCategory.Error,"The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here_18018","The declaration of '{0}' that you probably intended to use is defined here"),_0_modifier_cannot_be_used_with_a_private_identifier:t(18019,e.DiagnosticCategory.Error,"_0_modifier_cannot_be_used_with_a_private_identifier_18019","'{0}' modifier cannot be used with a private identifier."),An_enum_member_cannot_be_named_with_a_private_identifier:t(18024,e.DiagnosticCategory.Error,"An_enum_member_cannot_be_named_with_a_private_identifier_18024","An enum member cannot be named with a private identifier."),can_only_be_used_at_the_start_of_a_file:t(18026,e.DiagnosticCategory.Error,"can_only_be_used_at_the_start_of_a_file_18026","'#!' can only be used at the start of a file."),Compiler_reserves_name_0_when_emitting_private_identifier_downlevel:t(18027,e.DiagnosticCategory.Error,"Compiler_reserves_name_0_when_emitting_private_identifier_downlevel_18027","Compiler reserves name '{0}' when emitting private identifier downlevel."),Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher:t(18028,e.DiagnosticCategory.Error,"Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher_18028","Private identifiers are only available when targeting ECMAScript 2015 and higher."),Private_identifiers_are_not_allowed_in_variable_declarations:t(18029,e.DiagnosticCategory.Error,"Private_identifiers_are_not_allowed_in_variable_declarations_18029","Private identifiers are not allowed in variable declarations."),An_optional_chain_cannot_contain_private_identifiers:t(18030,e.DiagnosticCategory.Error,"An_optional_chain_cannot_contain_private_identifiers_18030","An optional chain cannot contain private identifiers."),The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituents:t(18031,e.DiagnosticCategory.Error,"The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituent_18031","The intersection '{0}' was reduced to 'never' because property '{1}' has conflicting types in some constituents."),The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_private_in_some:t(18032,e.DiagnosticCategory.Error,"The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_pr_18032","The intersection '{0}' was reduced to 'never' because property '{1}' exists in multiple constituents and is private in some."),Only_numeric_enums_can_have_computed_members_but_this_expression_has_type_0_If_you_do_not_need_exhaustiveness_checks_consider_using_an_object_literal_instead:t(18033,e.DiagnosticCategory.Error,"Only_numeric_enums_can_have_computed_members_but_this_expression_has_type_0_If_you_do_not_need_exhau_18033","Only numeric enums can have computed members, but this expression has type '{0}'. If you do not need exhaustiveness checks, consider using an object literal instead."),Specify_the_JSX_fragment_factory_function_to_use_when_targeting_react_JSX_emit_with_jsxFactory_compiler_option_is_specified_e_g_Fragment:t(18034,e.DiagnosticCategory.Message,"Specify_the_JSX_fragment_factory_function_to_use_when_targeting_react_JSX_emit_with_jsxFactory_compi_18034","Specify the JSX fragment factory function to use when targeting 'react' JSX emit with 'jsxFactory' compiler option is specified, e.g. 'Fragment'."),Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name:t(18035,e.DiagnosticCategory.Error,"Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name_18035","Invalid value for 'jsxFragmentFactory'. '{0}' is not a valid identifier or qualified-name."),Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator:t(18036,e.DiagnosticCategory.Error,"Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_dec_18036","Class decorators can't be used with static private identifier. Consider removing the experimental decorator."),Await_expression_cannot_be_used_inside_a_class_static_block:t(18037,e.DiagnosticCategory.Error,"Await_expression_cannot_be_used_inside_a_class_static_block_18037","Await expression cannot be used inside a class static block."),For_await_loops_cannot_be_used_inside_a_class_static_block:t(18038,e.DiagnosticCategory.Error,"For_await_loops_cannot_be_used_inside_a_class_static_block_18038","'For await' loops cannot be used inside a class static block."),Invalid_use_of_0_It_cannot_be_used_inside_a_class_static_block:t(18039,e.DiagnosticCategory.Error,"Invalid_use_of_0_It_cannot_be_used_inside_a_class_static_block_18039","Invalid use of '{0}'. It cannot be used inside a class static block."),A_return_statement_cannot_be_used_inside_a_class_static_block:t(18041,e.DiagnosticCategory.Error,"A_return_statement_cannot_be_used_inside_a_class_static_block_18041","A 'return' statement cannot be used inside a class static block."),_0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation:t(18042,e.DiagnosticCategory.Error,"_0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation_18042","'{0}' is a type and cannot be imported in JavaScript files. Use '{1}' in a JSDoc type annotation."),Types_cannot_appear_in_export_declarations_in_JavaScript_files:t(18043,e.DiagnosticCategory.Error,"Types_cannot_appear_in_export_declarations_in_JavaScript_files_18043","Types cannot appear in export declarations in JavaScript files."),_0_is_automatically_exported_here:t(18044,e.DiagnosticCategory.Message,"_0_is_automatically_exported_here_18044","'{0}' is automatically exported here."),Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher:t(18045,e.DiagnosticCategory.Error,"Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher_18045","Properties with the 'accessor' modifier are only available when targeting ECMAScript 2015 and higher."),_0_is_of_type_unknown:t(18046,e.DiagnosticCategory.Error,"_0_is_of_type_unknown_18046","'{0}' is of type 'unknown'."),_0_is_possibly_null:t(18047,e.DiagnosticCategory.Error,"_0_is_possibly_null_18047","'{0}' is possibly 'null'."),_0_is_possibly_undefined:t(18048,e.DiagnosticCategory.Error,"_0_is_possibly_undefined_18048","'{0}' is possibly 'undefined'."),_0_is_possibly_null_or_undefined:t(18049,e.DiagnosticCategory.Error,"_0_is_possibly_null_or_undefined_18049","'{0}' is possibly 'null' or 'undefined'."),The_value_0_cannot_be_used_here:t(18050,e.DiagnosticCategory.Error,"The_value_0_cannot_be_used_here_18050","The value '{0}' cannot be used here.")}}(c||(c={})),function(e){var t;function n(e){return e>=79}e.tokenIsIdentifierOrKeyword=n,e.tokenIsIdentifierOrKeywordOrGreaterThan=function(e){return 31===e||n(e)},e.textToKeywordObj=((t={abstract:126,accessor:127,any:131,as:128,asserts:129,assert:130,bigint:160,boolean:134,break:81,case:82,catch:83,class:84,continue:86,const:85}).constructor=135,t.debugger=87,t.declare=136,t.default=88,t.delete=89,t.do=90,t.else=91,t.enum=92,t.export=93,t.extends=94,t.false=95,t.finally=96,t.for=97,t.from=158,t.function=98,t.get=137,t.if=99,t.implements=117,t.import=100,t.in=101,t.infer=138,t.instanceof=102,t.interface=118,t.intrinsic=139,t.is=140,t.keyof=141,t.let=119,t.module=142,t.namespace=143,t.never=144,t.new=103,t.null=104,t.number=148,t.object=149,t.package=120,t.private=121,t.protected=122,t.public=123,t.override=161,t.out=145,t.readonly=146,t.require=147,t.global=159,t.return=105,t.satisfies=150,t.set=151,t.static=124,t.string=152,t.super=106,t.switch=107,t.symbol=153,t.this=108,t.throw=109,t.true=110,t.try=111,t.type=154,t.typeof=112,t.undefined=155,t.unique=156,t.unknown=157,t.var=113,t.void=114,t.while=115,t.with=116,t.yield=125,t.async=132,t.await=133,t.of=162,t);var i=new e.Map(e.getEntries(e.textToKeywordObj)),a=new e.Map(e.getEntries(r(r({},e.textToKeywordObj),{"{":18,"}":19,"(":20,")":21,"[":22,"]":23,".":24,"...":25,";":26,",":27,"<":29,">":31,"<=":32,">=":33,"==":34,"!=":35,"===":36,"!==":37,"=>":38,"+":39,"-":40,"**":42,"*":41,"/":43,"%":44,"++":45,"--":46,"<<":47,">":48,">>>":49,"&":50,"|":51,"^":52,"!":53,"~":54,"&&":55,"||":56,"?":57,"??":60,"?.":28,":":58,"=":63,"+=":64,"-=":65,"*=":66,"**=":67,"/=":68,"%=":69,"<<=":70,">>=":71,">>>=":72,"&=":73,"|=":74,"^=":78,"||=":75,"&&=":76,"??=":77,"@":59,"#":62,"`":61}))),o=[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],s=[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],c=[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],l=[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],u=[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],d=[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],p=/^\/\/\/?\s*@(ts-expect-error|ts-ignore)/,m=/^(?:\/|\*)*\s*@(ts-expect-error|ts-ignore)/;function f(e,t){if(e=2?u:1===t?c:o)}e.isUnicodeIdentifierStart=_;var h,g=(h=[],a.forEach(function(e,t){h[e]=t}),h);function y(e){for(var t=[],n=0,r=0;n127&&C(i)&&(t.push(r),r=n)}}return t.push(r),t}function v(t,n,r,i,a){(n<0||n>=t.length)&&(a?n=n<0?0:n>=t.length?t.length-1:n:e.Debug.fail("Bad line number. Line: ".concat(n,", lineStarts.length: ").concat(t.length," , line map is correct? ").concat(void 0!==i?e.arraysEqual(t,y(i)):"unknown")));var o=t[n]+r;return a?o>t[n+1]?t[n+1]:"string"==typeof i&&o>i.length?i.length:o:(n=8192&&e<=8203||8239===e||8287===e||12288===e||65279===e}function C(e){return 10===e||13===e||8232===e||8233===e}function D(e){return e>=48&&e<=57}function L(e){return D(e)||e>=65&&e<=70||e>=97&&e<=102}function A(e){return e>=48&&e<=55}e.tokenToString=function(e){return g[e]},e.stringToToken=function(e){return a.get(e)},e.computeLineStarts=y,e.getPositionOfLineAndCharacter=function(e,t,n,r){return e.getPositionOfLineAndCharacter?e.getPositionOfLineAndCharacter(t,n,r):v(b(e),t,n,e.text,r)},e.computePositionOfLineAndCharacter=v,e.getLineStarts=b,e.computeLineAndCharacterOfPosition=E,e.computeLineOfPosition=x,e.getLinesBetweenPositions=function(e,t,n){if(t===n)return 0;var r=b(e),i=Math.min(t,n),a=i===n,o=a?t:n,s=x(r,i),c=x(r,o,s);return a?s-c:c-s},e.getLineAndCharacterOfPosition=function(e,t){return E(b(e),t)},e.isWhiteSpaceLike=S,e.isWhiteSpaceSingleLine=T,e.isLineBreak=C,e.isOctalDigit=A,e.couldStartTrivia=function(e,t){var n=e.charCodeAt(t);switch(n){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 0===t;default:return n>127}},e.skipTrivia=function(t,n,r,i,a){if(e.positionIsSynthesized(n))return n;for(var o=!1;;){var s=t.charCodeAt(n);switch(s){case 13:10===t.charCodeAt(n+1)&&n++;case 10:if(n++,r)return n;o=!!a;continue;case 9:case 11:case 12:case 32:n++;continue;case 47:if(i)break;if(47===t.charCodeAt(n+1)){for(n+=2;n127&&S(s)){n++;continue}}return n}};var N=7;function k(t,n){if(e.Debug.assert(n>=0),0===n||C(t.charCodeAt(n-1))){var r=t.charCodeAt(n);if(n+N=0&&n127&&S(_)){d&&C(_)&&(u=!0),n++;continue}break e}}return d&&(m=i(s,c,l,u,a,m)),m}function M(e,t,n,r,i){return R(!0,e,t,!1,n,r,i)}function F(e,t,n,r,i){return R(!0,e,t,!0,n,r,i)}function G(e,t,n,r,i,a){return a||(a=[]),a.push({kind:n,pos:e,end:t,hasTrailingNewLine:r}),a}function B(e){var t=P.exec(e);if(t)return t[0]}function U(e,t){return e>=65&&e<=90||e>=97&&e<=122||36===e||95===e||e>127&&_(e,t)}function V(e,t,n){return e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||36===e||95===e||1===n&&(45===e||58===e)||e>127&&function(e,t){return f(e,t>=2?d:1===t?l:s)}(e,t)}e.isShebangTrivia=w,e.scanShebangTrivia=O,e.forEachLeadingCommentRange=function(e,t,n,r){return R(!1,e,t,!1,n,r)},e.forEachTrailingCommentRange=function(e,t,n,r){return R(!1,e,t,!0,n,r)},e.reduceEachLeadingCommentRange=M,e.reduceEachTrailingCommentRange=F,e.getLeadingCommentRanges=function(e,t){return M(e,t,G,void 0,void 0)},e.getTrailingCommentRanges=function(e,t){return F(e,t,G,void 0,void 0)},e.getShebang=B,e.isIdentifierStart=U,e.isIdentifierPart=V,e.isIdentifierText=function(e,t,n){var r=K(e,0);if(!U(r,t))return!1;for(var i=j(r);i116},isReservedWord:function(){return h>=81&&h<=116},isUnterminated:function(){return!!(4&y)},getCommentDirectives:function(){return v},getNumericLiteralFlags:function(){return 1008&y},getTokenFlags:function(){return y},reScanGreaterToken:function(){if(31===h){if(62===b.charCodeAt(u))return 62===b.charCodeAt(u+1)?61===b.charCodeAt(u+2)?(u+=3,h=72):(u+=2,h=49):61===b.charCodeAt(u+1)?(u+=2,h=71):(u++,h=48);if(61===b.charCodeAt(u))return u++,h=33}return h},reScanAsteriskEqualsToken:function(){return e.Debug.assert(66===h,"'reScanAsteriskEqualsToken' should only be called on a '*='"),u=_+1,h=63},reScanSlashToken:function(){if(43===h||68===h){for(var n=_+1,r=!1,i=!1;;){if(n>=d){y|=4,N(e.Diagnostics.Unterminated_regular_expression_literal);break}var a=b.charCodeAt(n);if(C(a)){y|=4,N(e.Diagnostics.Unterminated_regular_expression_literal);break}if(r)r=!1;else{if(47===a&&!i){n++;break}91===a?i=!0:92===a?r=!0:93===a&&(i=!1)}n++}for(;n=d)return h=1;var e=K(b,u);switch(u+=j(e),e){case 9:case 11:case 12:case 32:for(;u=0&&U(n,t))return u+=3,y|=8,g=X()+Z(),h=ee();var r=Y();return r>=0&&U(r,t)?(u+=6,y|=1024,g=String.fromCharCode(r)+Z(),h=ee()):(u++,h=0)}if(U(e,t)){for(var i=e;u=65&&s<=70)s+=32;else if(!(s>=48&&s<=57||s>=97&&s<=102))break;i.push(s),u++,o=!1}}return i.length=d){r+=b.substring(i,u),y|=4,N(e.Diagnostics.Unterminated_string_literal);break}var a=b.charCodeAt(u);if(a===n){r+=b.substring(i,u),u++;break}if(92!==a||t){if(C(a)&&!t){r+=b.substring(i,u),y|=4,N(e.Diagnostics.Unterminated_string_literal);break}u++}else r+=b.substring(i,u),r+=z(),i=u}return r}function q(t){for(var n,r=96===b.charCodeAt(u),i=++u,a="";;){if(u>=d){a+=b.substring(i,u),y|=4,N(e.Diagnostics.Unterminated_template_literal),n=r?14:17;break}var o=b.charCodeAt(u);if(96===o){a+=b.substring(i,u),u++,n=r?14:17;break}if(36===o&&u+1=d)return N(e.Diagnostics.Unexpected_end_of_text),"";var r=b.charCodeAt(u);switch(u++,r){case 48:return t&&u=0?String.fromCharCode(n):(N(e.Diagnostics.Hexadecimal_digit_expected),"")}function X(){var t=B(1,!1),n=t?parseInt(t,16):-1,r=!1;return n<0?(N(e.Diagnostics.Hexadecimal_digit_expected),r=!0):n>1114111&&(N(e.Diagnostics.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive),r=!0),u>=d?(N(e.Diagnostics.Unexpected_end_of_text),r=!0):125===b.charCodeAt(u)?u++:(N(e.Diagnostics.Unterminated_Unicode_escape_sequence),r=!0),r?"":W(n)}function Y(){if(u+5=0&&V(r,t)){u+=3,y|=8,e+=X(),n=u;continue}if(!((r=Y())>=0&&V(r,t)))break;y|=1024,e+=b.substring(n,u),e+=W(r),n=u+=6}}return e+b.substring(n,u)}function ee(){var e=g.length;if(e>=2&&e<=12){var t=g.charCodeAt(0);if(t>=97&&t<=122){var n=i.get(g);if(void 0!==n)return h=n}}return h=79}function te(t){for(var n="",r=!1,i=!1;;){var a=b.charCodeAt(u);if(95!==a){if(r=!0,!D(a)||a-48>=t)break;n+=b[u],u++,i=!1}else y|=512,r?(r=!1,i=!0):N(i?e.Diagnostics.Multiple_consecutive_numeric_separators_are_not_permitted:e.Diagnostics.Numeric_separators_are_not_allowed_here,u,1),u++}return 95===b.charCodeAt(u-1)&&N(e.Diagnostics.Numeric_separators_are_not_allowed_here,u-1,1),n}function ne(){if(110===b.charCodeAt(u))return g+="n",384&y&&(g=e.parsePseudoBigInt(g)+"n"),u++,9;var t=128&y?parseInt(g.slice(2),2):256&y?parseInt(g.slice(2),8):+g;return g=""+t,8}function re(){var n;f=u,y=0;for(var i=!1;;){if(_=u,u>=d)return h=1;var o=K(b,u);if(35===o&&0===u&&w(b,u)){if(u=O(b,u),r)continue;return h=6}switch(o){case 10:case 13:if(y|=1,r){u++;continue}return 13===o&&u+1=0&&U(x,t))return u+=3,y|=8,g=X()+Z(),h=ee();var S=Y();return S>=0&&U(S,t)?(u+=6,y|=1024,g=String.fromCharCode(S)+Z(),h=ee()):(N(e.Diagnostics.Invalid_character),u++,h=0);case 35:if(0!==u&&"!"===b[u+1])return N(e.Diagnostics.can_only_be_used_at_the_start_of_a_file),u++,h=0;var L=K(b,u+1);if(92===L){u++;var P=Q();if(P>=0&&U(P,t))return u+=3,y|=8,g="#"+X()+Z(),h=80;var M=Y();if(M>=0&&U(M,t))return u+=6,y|=1024,g="#"+String.fromCharCode(M)+Z(),h=80;u--}return U(L,t)?(u++,ie(L,t)):(g="#",N(e.Diagnostics.Invalid_character,u++,j(o))),h=80;default:var G=ie(o,t);if(G)return h=G;if(T(o)){u+=j(o);continue}if(C(o)){y|=1,u+=j(o);continue}var V=j(o);return N(e.Diagnostics.Invalid_character,u,V),u+=V,h=0}}}function ie(e,t){var n=e;if(U(n,t)){for(u+=j(n);u=d)return h=1;var n=b.charCodeAt(u);if(60===n)return 47===b.charCodeAt(u+1)?(u+=2,h=30):(u++,h=29);if(123===n)return u++,h=18;for(var r=0;u0)break;S(n)||(r=u)}u++}return g=b.substring(f,u),-1===r?12:11}function se(){switch(f=u,b.charCodeAt(u)){case 34:case 39:return g=$(!0),h=10;default:return re()}}function ce(e,t){var n=u,r=f,i=_,a=h,o=g,s=y,c=e();return c&&!t||(u=n,f=r,_=i,h=a,g=o,y=s),c}function le(e,t,n){b=e||"",d=void 0===n?b.length:t+n,ue(t||0)}function ue(t){e.Debug.assert(t>=0),u=t,f=t,_=t,h=0,g=void 0,y=0}};var K=String.prototype.codePointAt?function(e,t){return e.codePointAt(t)}:function(e,t){var n=e.length;if(!(t<0||t>=n)){var r=e.charCodeAt(t);if(r>=55296&&r<=56319&&n>t+1){var i=e.charCodeAt(t+1);if(i>=56320&&i<=57343)return 1024*(r-55296)+i-56320+65536}return r}};function j(e){return e>=65536?2:1}var H=String.fromCodePoint?function(e){return String.fromCodePoint(e)}:function(t){if(e.Debug.assert(0<=t&&t<=1114111),t<=65535)return String.fromCharCode(t);var n=Math.floor((t-65536)/1024)+55296,r=(t-65536)%1024+56320;return String.fromCharCode(n,r)};function W(e){return H(e)}e.utf16EncodeAsString=W}(c||(c={})),function(e){function t(e){return e.start+e.length}function n(e){return 0===e.length}function r(e,t){var n=a(e,t);return n&&0===n.length?void 0:n}function i(e,t,n,r){return n<=e+t&&n+r>=e}function a(e,n){var r=Math.max(e.start,n.start),i=Math.min(t(e),t(n));return r<=i?s(r,i):void 0}function o(e,t){if(e<0)throw new Error("start < 0");if(t<0)throw new Error("length < 0");return{start:e,length:t}}function s(e,t){return o(e,t-e)}function c(e,t){if(t<0)throw new Error("newLength < 0");return{span:e,newLength:t}}function l(t){return!!Z(t)&&e.every(t.elements,u)}function u(t){return!!e.isOmittedExpression(t)||l(t.name)}function d(t){for(var n=t.parent;e.isBindingElement(n.parent);)n=n.parent.parent;return n.parent}function p(t,n){e.isBindingElement(t)&&(t=d(t));var r=n(t);return 257===t.kind&&(t=t.parent),t&&258===t.kind&&(r|=n(t),t=t.parent),t&&240===t.kind&&(r|=n(t)),r}function m(e){return!(8&e.flags)}function f(e){var t=e;return t.length>=3&&95===t.charCodeAt(0)&&95===t.charCodeAt(1)&&95===t.charCodeAt(2)?t.substr(1):t}function _(e){return f(e.escapedText)}function h(t){var n=t.parent.parent;if(n){if(ce(n))return g(n);switch(n.kind){case 240:if(n.declarationList&&n.declarationList.declarations[0])return g(n.declarationList.declarations[0]);break;case 241:var r=n.expression;switch(223===r.kind&&63===r.operatorToken.kind&&(r=r.left),r.kind){case 208:return r.name;case 209:var i=r.argumentExpression;if(e.isIdentifier(i))return i}break;case 214:return g(n.expression);case 253:if(ce(n.statement)||ie(n.statement))return g(n.statement)}}}function g(t){var n=E(t);return n&&e.isIdentifier(n)?n:void 0}function y(e){return e.name||h(e)}function v(e){return!!e.name}function b(t){switch(t.kind){case 79:return t;case 350:case 343:var n=t.name;if(163===n.kind)return n.right;break;case 210:case 223:var r=t;switch(e.getAssignmentDeclarationKind(r)){case 1:case 4:case 5:case 3:return e.getElementOrPropertyAccessArgumentExpressionOrName(r.left);case 7:case 8:case 9:return r.arguments[1];default:return}case 348:return y(t);case 342:return h(t);case 274:var i=t.expression;return e.isIdentifier(i)?i:void 0;case 209:var a=t;if(e.isBindableStaticElementAccessExpression(a))return a.argumentExpression}return t.name}function E(t){if(void 0!==t)return b(t)||(e.isFunctionExpression(t)||e.isArrowFunction(t)||e.isClassExpression(t)?x(t):void 0)}function x(t){if(t.parent){if(e.isPropertyAssignment(t.parent)||e.isBindingElement(t.parent))return t.parent.name;if(e.isBinaryExpression(t.parent)&&t===t.parent.right){if(e.isIdentifier(t.parent.left))return t.parent.left;if(e.isAccessExpression(t.parent.left))return e.getElementOrPropertyAccessArgumentExpressionOrName(t.parent.left)}else if(e.isVariableDeclaration(t.parent)&&e.isIdentifier(t.parent.name))return t.parent.name}}function S(t,n){if(t.name){if(e.isIdentifier(t.name)){var r=t.name.escapedText;return N(t.parent,n).filter(function(t){return e.isJSDocParameterTag(t)&&e.isIdentifier(t.name)&&t.name.escapedText===r})}var i=t.parent.parameters.indexOf(t);e.Debug.assert(i>-1,"Parameters should always be in their parents' parameter list");var a=N(t.parent,n).filter(e.isJSDocParameterTag);if(i=163}function G(e){return e>=0&&e<=162}function B(e){return 8<=e&&e<=14}function U(e){return 14<=e&&e<=17}function V(t){return(e.isPropertyDeclaration(t)||X(t))&&e.isPrivateIdentifier(t.name)}function K(e){switch(e){case 126:case 127:case 132:case 85:case 136:case 88:case 93:case 101:case 123:case 121:case 122:case 146:case 124:case 145:case 161:return!0}return!1}function j(t){return!!(16476&e.modifierToFlag(t))}function H(e){return K(e.kind)}function W(e){return!!e&&q(e.kind)}function $(e){switch(e){case 259:case 171:case 173:case 174:case 175:case 215:case 216:return!0;default:return!1}}function q(e){switch(e){case 170:case 176:case 326:case 177:case 178:case 181:case 320:case 182:return!0;default:return $(e)}}function z(e){var t=e.kind;return 173===t||169===t||171===t||174===t||175===t||178===t||172===t||237===t}function J(e){return e&&(260===e.kind||228===e.kind)}function X(e){switch(e.kind){case 171:case 174:case 175:return!0;default:return!1}}function Y(e){var t=e.kind;return 177===t||176===t||168===t||170===t||178===t||174===t||175===t}function Q(e){var t=e.kind;return 299===t||300===t||301===t||171===t||174===t||175===t}function Z(e){if(e){var t=e.kind;return 204===t||203===t}return!1}function ee(e){switch(e.kind){case 203:case 207:return!0}return!1}function te(e){switch(e.kind){case 204:case 206:return!0}return!1}function ne(e){switch(e){case 208:case 209:case 211:case 210:case 281:case 282:case 285:case 212:case 206:case 214:case 207:case 228:case 215:case 79:case 80:case 13:case 8:case 9:case 10:case 14:case 225:case 95:case 104:case 108:case 110:case 106:case 232:case 230:case 233:case 100:return!0;default:return!1}}function re(e){switch(e){case 221:case 222:case 217:case 218:case 219:case 220:case 213:return!0;default:return ne(e)}}function ie(e){return function(e){switch(e){case 224:case 226:case 216:case 223:case 227:case 231:case 229:case 354:case 353:case 235:return!0;default:return re(e)}}(R(e).kind)}function ae(t){return e.isExportAssignment(t)||e.isExportDeclaration(t)}function oe(e){return 259===e||279===e||260===e||261===e||262===e||263===e||264===e||269===e||268===e||275===e||274===e||267===e}function se(e){return 249===e||248===e||256===e||243===e||241===e||239===e||246===e||247===e||245===e||242===e||253===e||250===e||252===e||254===e||255===e||240===e||244===e||251===e||352===e||356===e||355===e}function ce(t){return 165===t.kind?t.parent&&347!==t.parent.kind||e.isInJSFile(t):216===(n=t.kind)||205===n||260===n||228===n||172===n||173===n||263===n||302===n||278===n||259===n||215===n||174===n||270===n||268===n||273===n||261===n||288===n||171===n||170===n||264===n||267===n||271===n||277===n||166===n||299===n||169===n||168===n||175===n||300===n||262===n||165===n||257===n||348===n||341===n||350===n;var n}function le(e){return e.kind>=330&&e.kind<=350}e.isExternalModuleNameRelative=function(t){return e.pathIsRelative(t)||e.isRootedDiskPath(t)},e.sortAndDeduplicateDiagnostics=function(t){return e.sortAndDeduplicate(t,e.compareDiagnostics)},e.getDefaultLibFileName=function(t){switch(e.getEmitScriptTarget(t)){case 99:return"lib.esnext.full.d.ts";case 9:return"lib.es2022.full.d.ts";case 8:return"lib.es2021.full.d.ts";case 7:return"lib.es2020.full.d.ts";case 6:return"lib.es2019.full.d.ts";case 5:return"lib.es2018.full.d.ts";case 4:return"lib.es2017.full.d.ts";case 3:return"lib.es2016.full.d.ts";case 2:return"lib.es6.d.ts";default:return"lib.d.ts"}},e.textSpanEnd=t,e.textSpanIsEmpty=n,e.textSpanContainsPosition=function(e,n){return n>=e.start&&n=e.pos&&t<=e.end},e.textSpanContainsTextSpan=function(e,n){return n.start>=e.start&&t(n)<=t(e)},e.textSpanOverlapsWith=function(e,t){return void 0!==r(e,t)},e.textSpanOverlap=r,e.textSpanIntersectsWithTextSpan=function(e,t){return i(e.start,e.length,t.start,t.length)},e.textSpanIntersectsWith=function(e,t,n){return i(e.start,e.length,t,n)},e.decodedTextSpanIntersectsWith=i,e.textSpanIntersectsWithPosition=function(e,n){return n<=t(e)&&n>=e.start},e.textSpanIntersection=a,e.createTextSpan=o,e.createTextSpanFromBounds=s,e.textChangeRangeNewSpan=function(e){return o(e.span.start,e.newLength)},e.textChangeRangeIsUnchanged=function(e){return n(e.span)&&0===e.newLength},e.createTextChangeRange=c,e.unchangedTextChangeRange=c(o(0,0),0),e.collapseTextChangeRangesAcrossMultipleVersions=function(n){if(0===n.length)return e.unchangedTextChangeRange;if(1===n.length)return n[0];for(var r=n[0],i=r.span.start,a=t(r.span),o=i+r.newLength,l=1;l=2&&95===e.charCodeAt(0)&&95===e.charCodeAt(1)?"_"+e:e},e.unescapeLeadingUnderscores=f,e.idText=_,e.symbolName=function(e){return e.valueDeclaration&&V(e.valueDeclaration)?_(e.valueDeclaration.name):f(e.escapedName)},e.nodeHasName=function t(n,r){return!(!v(n)||!e.isIdentifier(n.name)||_(n.name)!==_(r))||!(!e.isVariableStatement(n)||!e.some(n.declarationList.declarations,function(e){return t(e,r)}))},e.getNameOfJSDocTypedef=y,e.isNamedDeclaration=v,e.getNonAssignedNameOfDeclaration=b,e.getNameOfDeclaration=E,e.getAssignedName=x,e.getDecorators=function(t){if(e.hasDecorators(t))return e.filter(t.modifiers,e.isDecorator)},e.getModifiers=function(t){if(e.hasSyntacticModifier(t,126975))return e.filter(t.modifiers,H)},e.getJSDocParameterTags=T,e.getJSDocParameterTagsNoCache=function(e){return S(e,!0)},e.getJSDocTypeParameterTags=function(e){return C(e,!1)},e.getJSDocTypeParameterTagsNoCache=function(e){return C(e,!0)},e.hasJSDocParameterTags=function(t){return!!I(t,e.isJSDocParameterTag)},e.getJSDocAugmentsTag=function(t){return I(t,e.isJSDocAugmentsTag)},e.getJSDocImplementsTags=function(t){return P(t,e.isJSDocImplementsTag)},e.getJSDocClassTag=function(t){return I(t,e.isJSDocClassTag)},e.getJSDocPublicTag=function(t){return I(t,e.isJSDocPublicTag)},e.getJSDocPublicTagNoCache=function(t){return I(t,e.isJSDocPublicTag,!0)},e.getJSDocPrivateTag=function(t){return I(t,e.isJSDocPrivateTag)},e.getJSDocPrivateTagNoCache=function(t){return I(t,e.isJSDocPrivateTag,!0)},e.getJSDocProtectedTag=function(t){return I(t,e.isJSDocProtectedTag)},e.getJSDocProtectedTagNoCache=function(t){return I(t,e.isJSDocProtectedTag,!0)},e.getJSDocReadonlyTag=function(t){return I(t,e.isJSDocReadonlyTag)},e.getJSDocReadonlyTagNoCache=function(t){return I(t,e.isJSDocReadonlyTag,!0)},e.getJSDocOverrideTagNoCache=function(t){return I(t,e.isJSDocOverrideTag,!0)},e.getJSDocDeprecatedTag=function(t){return I(t,e.isJSDocDeprecatedTag)},e.getJSDocDeprecatedTagNoCache=function(t){return I(t,e.isJSDocDeprecatedTag,!0)},e.getJSDocEnumTag=function(t){return I(t,e.isJSDocEnumTag)},e.getJSDocThisTag=function(t){return I(t,e.isJSDocThisTag)},e.getJSDocReturnTag=D,e.getJSDocTemplateTag=function(t){return I(t,e.isJSDocTemplateTag)},e.getJSDocTypeTag=L,e.getJSDocType=A,e.getJSDocReturnType=function(t){var n=D(t);if(n&&n.typeExpression)return n.typeExpression.type;var r=L(t);if(r&&r.typeExpression){var i=r.typeExpression.type;if(e.isTypeLiteralNode(i)){var a=e.find(i.members,e.isCallSignatureDeclaration);return a&&a.type}if(e.isFunctionTypeNode(i)||e.isJSDocFunctionType(i))return i.type}},e.getJSDocTags=k,e.getJSDocTagsNoCache=function(e){return N(e,!0)},e.getAllJSDocTags=P,e.getAllJSDocTagsOfKind=function(e,t){return k(e).filter(function(e){return e.kind===t})},e.getTextOfJSDocComment=function(t){return"string"==typeof t?t:null==t?void 0:t.map(function(t){return 324===t.kind?t.text:(r=327===(n=t).kind?"link":328===n.kind?"linkcode":"linkplain",i=n.name?e.entityNameToString(n.name):"",a=n.name&&n.text.startsWith("://")?"":" ","{@".concat(r," ").concat(i).concat(a).concat(n.text,"}"));var n,r,i,a}).join("")},e.getEffectiveTypeParameterDeclarations=function(t){if(e.isJSDocSignature(t))return e.emptyArray;if(e.isJSDocTypeAlias(t))return e.Debug.assert(323===t.parent.kind),e.flatMap(t.parent.tags,function(t){return e.isJSDocTemplateTag(t)?t.typeParameters:void 0});if(t.typeParameters)return t.typeParameters;if(e.canHaveIllegalTypeParameters(t)&&t.typeParameters)return t.typeParameters;if(e.isInJSFile(t)){var n=e.getJSDocTypeParameterDeclarations(t);if(n.length)return n;var r=A(t);if(r&&e.isFunctionTypeNode(r)&&r.typeParameters)return r.typeParameters}return e.emptyArray},e.getEffectiveConstraintOfTypeParameter=function(t){return t.constraint?t.constraint:e.isJSDocTemplateTag(t.parent)&&t===t.parent.typeParameters[0]?t.parent.constraint:void 0},e.isMemberName=function(e){return 79===e.kind||80===e.kind},e.isGetOrSetAccessorDeclaration=function(e){return 175===e.kind||174===e.kind},e.isPropertyAccessChain=function(t){return e.isPropertyAccessExpression(t)&&!!(32&t.flags)},e.isElementAccessChain=function(t){return e.isElementAccessExpression(t)&&!!(32&t.flags)},e.isCallChain=function(t){return e.isCallExpression(t)&&!!(32&t.flags)},e.isOptionalChain=w,e.isOptionalChainRoot=O,e.isExpressionOfOptionalChainRoot=function(e){return O(e.parent)&&e.parent.expression===e},e.isOutermostOptionalChain=function(e){return!w(e.parent)||O(e.parent)||e!==e.parent.expression},e.isNullishCoalesce=function(e){return 223===e.kind&&60===e.operatorToken.kind},e.isConstTypeReference=function(t){return e.isTypeReferenceNode(t)&&e.isIdentifier(t.typeName)&&"const"===t.typeName.escapedText&&!t.typeArguments},e.skipPartiallyEmittedExpressions=R,e.isNonNullChain=function(t){return e.isNonNullExpression(t)&&!!(32&t.flags)},e.isBreakOrContinueStatement=function(e){return 249===e.kind||248===e.kind},e.isNamedExportBindings=function(e){return 277===e.kind||276===e.kind},e.isUnparsedTextLike=M,e.isUnparsedNode=function(e){return M(e)||303===e.kind||307===e.kind},e.isJSDocPropertyLikeTag=function(e){return 350===e.kind||343===e.kind},e.isNode=function(e){return F(e.kind)},e.isNodeKind=F,e.isTokenKind=G,e.isToken=function(e){return G(e.kind)},e.isNodeArray=function(t){return e.hasProperty(t,"pos")&&e.hasProperty(t,"end")},e.isLiteralKind=B,e.isLiteralExpression=function(e){return B(e.kind)},e.isLiteralExpressionOfObject=function(e){switch(e.kind){case 207:case 206:case 13:case 215:case 228:return!0}return!1},e.isTemplateLiteralKind=U,e.isTemplateLiteralToken=function(e){return U(e.kind)},e.isTemplateMiddleOrTemplateTail=function(e){var t=e.kind;return 16===t||17===t},e.isImportOrExportSpecifier=function(t){return e.isImportSpecifier(t)||e.isExportSpecifier(t)},e.isTypeOnlyImportOrExportDeclaration=function(e){switch(e.kind){case 273:case 278:return e.isTypeOnly||e.parent.parent.isTypeOnly;case 271:return e.parent.isTypeOnly;case 270:case 268:return e.isTypeOnly;default:return!1}},e.isAssertionKey=function(t){return e.isStringLiteral(t)||e.isIdentifier(t)},e.isStringTextContainingNode=function(e){return 10===e.kind||U(e.kind)},e.isGeneratedIdentifier=function(t){return e.isIdentifier(t)&&(7&t.autoGenerateFlags)>0},e.isGeneratedPrivateIdentifier=function(t){return e.isPrivateIdentifier(t)&&(7&t.autoGenerateFlags)>0},e.isPrivateIdentifierClassElementDeclaration=V,e.isPrivateIdentifierPropertyAccessExpression=function(t){return e.isPropertyAccessExpression(t)&&e.isPrivateIdentifier(t.name)},e.isModifierKind=K,e.isParameterPropertyModifier=j,e.isClassMemberModifier=function(e){return j(e)||124===e||161===e||127===e},e.isModifier=H,e.isEntityName=function(e){var t=e.kind;return 163===t||79===t},e.isPropertyName=function(e){var t=e.kind;return 79===t||80===t||10===t||8===t||164===t},e.isBindingName=function(e){var t=e.kind;return 79===t||203===t||204===t},e.isFunctionLike=W,e.isFunctionLikeOrClassStaticBlockDeclaration=function(t){return!!t&&(q(t.kind)||e.isClassStaticBlockDeclaration(t))},e.isFunctionLikeDeclaration=function(e){return e&&$(e.kind)},e.isBooleanLiteral=function(e){return 110===e.kind||95===e.kind},e.isFunctionLikeKind=q,e.isFunctionOrModuleBlock=function(t){return e.isSourceFile(t)||e.isModuleBlock(t)||e.isBlock(t)&&W(t.parent)},e.isClassElement=z,e.isClassLike=J,e.isAccessor=function(e){return e&&(174===e.kind||175===e.kind)},e.isAutoAccessorPropertyDeclaration=function(t){return e.isPropertyDeclaration(t)&&e.hasAccessorModifier(t)},e.isMethodOrAccessor=X,e.isNamedClassElement=function(e){switch(e.kind){case 171:case 174:case 175:case 169:return!0;default:return!1}},e.isModifierLike=function(t){return H(t)||e.isDecorator(t)},e.isTypeElement=Y,e.isClassOrTypeElement=function(e){return Y(e)||z(e)},e.isObjectLiteralElementLike=Q,e.isTypeNode=function(t){return e.isTypeNodeKind(t.kind)},e.isFunctionOrConstructorTypeNode=function(e){switch(e.kind){case 181:case 182:return!0}return!1},e.isBindingPattern=Z,e.isAssignmentPattern=function(e){var t=e.kind;return 206===t||207===t},e.isArrayBindingElement=function(e){var t=e.kind;return 205===t||229===t},e.isDeclarationBindingElement=function(e){switch(e.kind){case 257:case 166:case 205:return!0}return!1},e.isBindingOrAssignmentPattern=function(e){return ee(e)||te(e)},e.isObjectBindingOrAssignmentPattern=ee,e.isObjectBindingOrAssignmentElement=function(e){switch(e.kind){case 205:case 299:case 300:case 301:return!0}return!1},e.isArrayBindingOrAssignmentPattern=te,e.isPropertyAccessOrQualifiedNameOrImportTypeNode=function(e){var t=e.kind;return 208===t||163===t||202===t},e.isPropertyAccessOrQualifiedName=function(e){var t=e.kind;return 208===t||163===t},e.isCallLikeExpression=function(e){switch(e.kind){case 283:case 282:case 210:case 211:case 212:case 167:return!0;default:return!1}},e.isCallOrNewExpression=function(e){return 210===e.kind||211===e.kind},e.isTemplateLiteral=function(e){var t=e.kind;return 225===t||14===t},e.isLeftHandSideExpression=function(e){return ne(R(e).kind)},e.isUnaryExpression=function(e){return re(R(e).kind)},e.isUnaryExpressionWithWrite=function(e){switch(e.kind){case 222:return!0;case 221:return 45===e.operator||46===e.operator;default:return!1}},e.isExpression=ie,e.isAssertionExpression=function(e){var t=e.kind;return 213===t||231===t},e.isNotEmittedOrPartiallyEmittedNode=function(t){return e.isNotEmittedStatement(t)||e.isPartiallyEmittedExpression(t)},e.isIterationStatement=function e(t,n){switch(t.kind){case 245:case 246:case 247:case 243:case 244:return!0;case 253:return n&&e(t.statement,n)}return!1},e.isScopeMarker=ae,e.hasScopeMarker=function(t){return e.some(t,ae)},e.needsScopeMarker=function(t){return!(e.isAnyImportOrReExport(t)||e.isExportAssignment(t)||e.hasSyntacticModifier(t,1)||e.isAmbientModule(t))},e.isExternalModuleIndicator=function(t){return e.isAnyImportOrReExport(t)||e.isExportAssignment(t)||e.hasSyntacticModifier(t,1)},e.isForInOrOfStatement=function(e){return 246===e.kind||247===e.kind},e.isConciseBody=function(t){return e.isBlock(t)||ie(t)},e.isFunctionBody=function(t){return e.isBlock(t)},e.isForInitializer=function(t){return e.isVariableDeclarationList(t)||ie(t)},e.isModuleBody=function(e){var t=e.kind;return 265===t||264===t||79===t},e.isNamespaceBody=function(e){var t=e.kind;return 265===t||264===t},e.isJSDocNamespaceBody=function(e){var t=e.kind;return 79===t||264===t},e.isNamedImportBindings=function(e){var t=e.kind;return 272===t||271===t},e.isModuleOrEnumDeclaration=function(e){return 264===e.kind||263===e.kind},e.isDeclaration=ce,e.isDeclarationStatement=function(e){return oe(e.kind)},e.isStatementButNotDeclaration=function(e){return se(e.kind)},e.isStatement=function(t){var n=t.kind;return se(n)||oe(n)||function(t){return 238===t.kind&&((void 0===t.parent||255!==t.parent.kind&&295!==t.parent.kind)&&!e.isFunctionBlock(t))}(t)},e.isStatementOrBlock=function(e){var t=e.kind;return se(t)||oe(t)||238===t},e.isModuleReference=function(e){var t=e.kind;return 280===t||163===t||79===t},e.isJsxTagNameExpression=function(e){var t=e.kind;return 108===t||79===t||208===t},e.isJsxChild=function(e){var t=e.kind;return 281===t||291===t||282===t||11===t||285===t},e.isJsxAttributeLike=function(e){var t=e.kind;return 288===t||290===t},e.isStringLiteralOrJsxExpression=function(e){var t=e.kind;return 10===t||291===t},e.isJsxOpeningLikeElement=function(e){var t=e.kind;return 283===t||282===t},e.isCaseOrDefaultClause=function(e){var t=e.kind;return 292===t||293===t},e.isJSDocNode=function(e){return e.kind>=312&&e.kind<=350},e.isJSDocCommentContainingNode=function(t){return 323===t.kind||322===t.kind||324===t.kind||de(t)||le(t)||e.isJSDocTypeLiteral(t)||e.isJSDocSignature(t)},e.isJSDocTag=le,e.isSetAccessor=function(e){return 175===e.kind},e.isGetAccessor=function(e){return 174===e.kind},e.hasJSDocNodes=function(e){var t=e.jsDoc;return!!t&&t.length>0},e.hasType=function(e){return!!e.type},e.hasInitializer=function(e){return!!e.initializer},e.hasOnlyExpressionInitializer=function(e){switch(e.kind){case 257:case 166:case 205:case 169:case 299:case 302:return!0;default:return!1}},e.isObjectLiteralElement=function(e){return 288===e.kind||290===e.kind||Q(e)},e.isTypeReferenceType=function(e){return 180===e.kind||230===e.kind};var ue=1073741823;function de(e){return 327===e.kind||328===e.kind||329===e.kind}function pe(t){var n=e.isJSDocParameterTag(t)?t.typeExpression&&t.typeExpression.type:t.type;return void 0!==t.dotDotDotToken||!!n&&321===n.kind}e.guessIndentation=function(t){for(var n=ue,r=0,i=t;r=0);var r=e.getLineStarts(n),i=t,a=n.text;if(i+1===r.length)return a.length-1;var o=r[i],s=r[i+1]-1;for(e.Debug.assert(e.isLineBreak(a.charCodeAt(s)));o<=s&&e.isLineBreak(a.charCodeAt(s));)s--;return s}function m(e){return void 0===e||e.pos===e.end&&e.pos>=0&&1!==e.kind}function f(e){return!m(e)}function _(e,t,r){if(void 0===t||0===t.length)return e;for(var i=0;i0?v(t._children[0],n,r):e.skipTrivia((n||d(t)).text,t.pos,!1,!1,Te(t))}function b(e,t,n){return void 0===n&&(n=!1),E(e.text,t,n)}function E(t,n,r){if(void 0===r&&(r=!1),m(n))return"";var i=t.substring(r?n.pos:e.skipTrivia(t,n.pos),n.end);return function(t){return!!e.findAncestor(t,e.isJSDocTypeExpression)}(n)&&(i=i.split(/\r\n|\n|\r/).map(function(t){return e.trimStringStart(t.replace(/^\s*\*/,""))}).join("\n")),i}function x(e,t){return void 0===t&&(t=!1),b(d(e),e,t)}function S(e){return e.pos}function T(e){var t=e.emitNode;return t&&t.flags||0}function C(e){var t=It(e);return 257===t.kind&&295===t.parent.kind}function D(t){return e.isModuleDeclaration(t)&&(10===t.name.kind||A(t))}function L(t){return e.isModuleDeclaration(t)||e.isIdentifier(t)}function A(e){return!!(1024&e.flags)}function N(e){return D(e)&&k(e)}function k(t){switch(t.parent.kind){case 308:return e.isExternalModule(t.parent);case 265:return D(t.parent.parent)&&e.isSourceFile(t.parent.parent.parent)&&!e.isExternalModule(t.parent.parent.parent)}return!1}function I(t){var n;return null===(n=t.declarations)||void 0===n?void 0:n.find(function(t){return!(N(t)||e.isModuleDeclaration(t)&&A(t))})}function P(t,n){switch(t.kind){case 308:case 266:case 295:case 264:case 245:case 246:case 247:case 173:case 171:case 174:case 175:case 259:case 215:case 216:case 169:case 172:return!0;case 238:return!e.isFunctionLikeOrClassStaticBlockDeclaration(n)}return!1}function w(t){switch(t.kind){case 176:case 177:case 170:case 178:case 181:case 182:case 320:case 260:case 228:case 261:case 262:case 347:case 259:case 171:case 173:case 174:case 175:case 215:case 216:return!0;default:return e.assertType(t),!1}}function O(e){switch(e.kind){case 269:case 268:return!0;default:return!1}}function R(t){return O(t)||e.isExportDeclaration(t)}function M(t){return e.findAncestor(t.parent,function(e){return P(e,e.parent)})}function F(e){return e&&0!==l(e)?x(e):"(Missing)"}function G(t){switch(t.kind){case 79:case 80:return t.autoGenerateFlags?void 0:t.escapedText;case 10:case 8:case 14:return e.escapeLeadingUnderscores(t.text);case 164:return Tt(t.expression)?e.escapeLeadingUnderscores(t.expression.text):void 0;default:return e.Debug.assertNever(t)}}function B(t){switch(t.kind){case 108:return"this";case 80:case 79:return 0===l(t)?e.idText(t):x(t);case 163:return B(t.left)+"."+B(t.right);case 208:return e.isIdentifier(t.name)||e.isPrivateIdentifier(t.name)?B(t.expression)+"."+B(t.name):e.Debug.assertNever(t.name);case 314:return B(t.left)+B(t.right);default:return e.Debug.assertNever(t)}}function U(e,t,n,r,i,a,o){var s=H(e,t);return Cr(e,s.start,s.length,n,r,i,a,o)}function V(t,n,r){e.Debug.assertGreaterThanOrEqual(n,0),e.Debug.assertGreaterThanOrEqual(r,0),t&&(e.Debug.assertLessThanOrEqual(n,t.text.length),e.Debug.assertLessThanOrEqual(n+r,t.text.length))}function K(e,t,n,r,i){return V(e,t,n),{file:e,start:t,length:n,code:r.code,category:r.category,messageText:r.next?r:r.messageText,relatedInformation:i}}function j(t,n){var r=e.createScanner(t.languageVersion,!0,t.languageVariant,t.text,void 0,n);r.scan();var i=r.getTokenPos();return e.createTextSpanFromBounds(i,r.getTextPos())}function H(t,n){var r=n;switch(n.kind){case 308:var i=e.skipTrivia(t.text,0,!1);return i===t.text.length?e.createTextSpan(0,0):j(t,i);case 257:case 205:case 260:case 228:case 261:case 264:case 263:case 302:case 259:case 215:case 171:case 174:case 175:case 262:case 169:case 168:case 271:r=n.name;break;case 216:return function(t,n){var r=e.skipTrivia(t.text,n.pos);if(n.body&&238===n.body.kind){var i=e.getLineAndCharacterOfPosition(t,n.body.pos).line;if(i0?n.statements[0].pos:n.end;return e.createTextSpanFromBounds(a,o)}if(void 0===r)return j(t,n.pos);e.Debug.assert(!e.isJSDoc(r));var s=m(r),c=s||e.isJsxText(n)?r.pos:e.skipTrivia(t.text,r.pos);return s?(e.Debug.assert(c===r.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),e.Debug.assert(c===r.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")):(e.Debug.assert(c>=r.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),e.Debug.assert(c<=r.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")),e.createTextSpanFromBounds(c,r.end)}function W(e){return 6===e.scriptKind}function $(t){return!!(2&e.getCombinedNodeFlags(t))}function q(e){return 210===e.kind&&100===e.expression.kind}function z(t){return e.isImportTypeNode(t)&&e.isLiteralTypeNode(t.argument)&&e.isStringLiteral(t.argument.literal)}function J(e){return 241===e.kind&&10===e.expression.kind}function X(e){return!!(1048576&T(e))}function Y(t){return e.isIdentifier(t.name)&&!t.initializer}e.changesAffectModuleResolution=function(e,t){return e.configFilePath!==t.configFilePath||s(e,t)},e.optionsHaveModuleResolutionChanges=s,e.changesAffectingProgramStructure=function(t,n){return c(t,n,e.optionsAffectingProgramStructure)},e.optionsHaveChanges=c,e.forEachAncestor=function(t,n){for(;;){var r=n(t);if("quit"===r)return;if(void 0!==r)return r;if(e.isSourceFile(t))return;t=t.parent}},e.forEachEntry=function(e,t){for(var n=e.entries(),r=n.next();!r.done;r=n.next()){var i=r.value,a=i[0],o=t(i[1],a);if(o)return o}},e.forEachKey=function(e,t){for(var n=e.keys(),r=n.next();!r.done;r=n.next()){var i=t(r.value);if(i)return i}},e.copyEntries=function(e,t){e.forEach(function(e,n){t.set(n,e)})},e.usingSingleLineStringWriter=function(e){var t=o.getText();try{return e(o),o.getText()}finally{o.clear(),o.writeKeyword(t)}},e.getFullWidth=l,e.getResolvedModule=function(e,t,n){return e&&e.resolvedModules&&e.resolvedModules.get(t,n)},e.setResolvedModule=function(t,n,r,i){t.resolvedModules||(t.resolvedModules=e.createModeAwareCache()),t.resolvedModules.set(n,i,r)},e.setResolvedTypeReferenceDirective=function(t,n,r){t.resolvedTypeReferenceDirectiveNames||(t.resolvedTypeReferenceDirectiveNames=e.createModeAwareCache()),t.resolvedTypeReferenceDirectiveNames.set(n,void 0,r)},e.projectReferenceIsEqualTo=function(e,t){return e.path===t.path&&!e.prepend==!t.prepend&&!e.circular==!t.circular},e.moduleResolutionIsEqualTo=function(e,t){return e.isExternalLibraryImport===t.isExternalLibraryImport&&e.extension===t.extension&&e.resolvedFileName===t.resolvedFileName&&e.originalPath===t.originalPath&&function(e,t){return e===t||!!e&&!!t&&e.name===t.name&&e.subModuleName===t.subModuleName&&e.version===t.version}(e.packageId,t.packageId)},e.packageIdToPackageName=u,e.packageIdToString=function(e){return"".concat(u(e),"@").concat(e.version)},e.typeDirectiveIsEqualTo=function(e,t){return e.resolvedFileName===t.resolvedFileName&&e.primary===t.primary&&e.originalPath===t.originalPath},e.hasChangesInResolutions=function(t,n,r,i,a){e.Debug.assert(t.length===n.length);for(var o=0;o=0),e.getLineStarts(n)[t]},e.nodePosToString=function(t){var n=d(t),r=e.getLineAndCharacterOfPosition(n,t.pos);return"".concat(n.fileName,"(").concat(r.line+1,",").concat(r.character+1,")")},e.getEndLinePosition=p,e.isFileLevelUniqueName=function(e,t,n){return!(n&&n(t)||e.identifiers.has(t))},e.nodeIsMissing=m,e.nodeIsPresent=f,e.insertStatementsAfterStandardPrologue=function(e,t){return _(e,t,J)},e.insertStatementsAfterCustomPrologue=function(e,t){return _(e,t,g)},e.insertStatementAfterStandardPrologue=function(e,t){return h(e,t,J)},e.insertStatementAfterCustomPrologue=function(e,t){return h(e,t,g)},e.isRecognizedTripleSlashComment=function(t,n,r){if(47===t.charCodeAt(n+1)&&n+2=e.ModuleKind.ES2015)&&n.noImplicitUseStrict))},e.isAmbientPropertyDeclaration=function(e){return!!(16777216&e.flags)||Dn(e,2)},e.isBlockScope=P,e.isDeclarationWithTypeParameters=function(t){switch(t.kind){case 341:case 348:case 326:return!0;default:return e.assertType(t),w(t)}},e.isDeclarationWithTypeParameterChildren=w,e.isAnyImportSyntax=O,e.isAnyImportOrBareOrAccessedRequire=function(e){return O(e)||Le(e)},e.isLateVisibilityPaintedStatement=function(e){switch(e.kind){case 269:case 268:case 240:case 260:case 259:case 264:case 262:case 261:case 263:return!0;default:return!1}},e.hasPossibleExternalModuleReference=function(t){return R(t)||e.isModuleDeclaration(t)||e.isImportTypeNode(t)||q(t)},e.isAnyImportOrReExport=R,e.getEnclosingBlockScopeContainer=M,e.forEachEnclosingBlockScopeContainer=function(e,t){for(var n=M(e);n;)t(n),n=M(n)},e.declarationNameToString=F,e.getNameFromIndexInfo=function(e){return e.declaration?F(e.declaration.parameters[0].name):void 0},e.isComputedNonLiteralName=function(e){return 164===e.kind&&!Tt(e.expression)},e.tryGetTextOfPropertyName=G,e.getTextOfPropertyName=function(t){return e.Debug.checkDefined(G(t))},e.entityNameToString=B,e.createDiagnosticForNode=function(e,t,n,r,i,a){return U(d(e),e,t,n,r,i,a)},e.createDiagnosticForNodeArray=function(t,n,r,i,a,o,s){var c=e.skipTrivia(t.text,n.pos);return Cr(t,c,n.end-c,r,i,a,o,s)},e.createDiagnosticForNodeInSourceFile=U,e.createDiagnosticForNodeFromMessageChain=function(e,t,n){var r=d(e),i=H(r,e);return K(r,i.start,i.length,t,n)},e.createFileDiagnosticFromMessageChain=K,e.createDiagnosticForFileFromMessageChain=function(e,t,n){return{file:e,start:0,length:0,code:t.code,category:t.category,messageText:t.next?t:t.messageText,relatedInformation:n}},e.createDiagnosticMessageChainFromDiagnostic=function(e){return"string"==typeof e.messageText?{code:e.code,category:e.category,messageText:e.messageText,next:e.next}:e.messageText},e.createDiagnosticForRange=function(e,t,n){return{file:e,start:t.pos,length:t.end-t.pos,code:n.code,category:n.category,messageText:n.message}},e.getSpanOfTokenAtPosition=j,e.getErrorSpanForNode=H,e.isExternalOrCommonJsModule=function(e){return void 0!==(e.externalModuleIndicator||e.commonJsModuleIndicator)},e.isJsonSourceFile=W,e.isEnumConst=function(t){return!!(2048&e.getCombinedModifierFlags(t))},e.isDeclarationReadonly=function(t){return!(!(64&e.getCombinedModifierFlags(t))||e.isParameterPropertyDeclaration(t,t.parent))},e.isVarConst=$,e.isLet=function(t){return!!(1&e.getCombinedNodeFlags(t))},e.isSuperCall=function(e){return 210===e.kind&&106===e.expression.kind},e.isImportCall=q,e.isImportMeta=function(t){return e.isMetaProperty(t)&&100===t.keywordToken&&"meta"===t.name.escapedText},e.isLiteralImportTypeNode=z,e.isPrologueDirective=J,e.isCustomPrologue=X,e.isHoistedFunction=function(t){return X(t)&&e.isFunctionDeclaration(t)},e.isHoistedVariableStatement=function(t){return X(t)&&e.isVariableStatement(t)&&e.every(t.declarationList.declarations,Y)},e.getLeadingCommentRangesOfNode=function(t,n){return 11!==t.kind?e.getLeadingCommentRanges(n.text,t.pos):void 0},e.getJSDocCommentRanges=function(t,n){var r=166===t.kind||165===t.kind||215===t.kind||216===t.kind||214===t.kind||257===t.kind||278===t.kind?e.concatenate(e.getTrailingCommentRanges(n,t.pos),e.getLeadingCommentRanges(n,t.pos)):e.getLeadingCommentRanges(n,t.pos);return e.filter(r,function(e){return 42===n.charCodeAt(e.pos+1)&&42===n.charCodeAt(e.pos+2)&&47!==n.charCodeAt(e.pos+3)})},e.fullTripleSlashReferencePathRegEx=/^(\/\/\/\s*/;var Q=/^(\/\/\/\s*/;e.fullTripleSlashAMDReferencePathRegEx=/^(\/\/\/\s*/;var Z,ee,te,ne,re=/^(\/\/\/\s*/;function ie(t){if(179<=t.kind&&t.kind<=202)return!0;switch(t.kind){case 131:case 157:case 148:case 160:case 152:case 134:case 153:case 149:case 155:case 144:return!0;case 114:return 219!==t.parent.kind;case 230:return e.isHeritageClause(t.parent)&&!Wn(t);case 165:return 197===t.parent.kind||192===t.parent.kind;case 79:(163===t.parent.kind&&t.parent.right===t||208===t.parent.kind&&t.parent.name===t)&&(t=t.parent),e.Debug.assert(79===t.kind||163===t.kind||208===t.kind,"'node' was expected to be a qualified name, identifier or property access in 'isPartOfTypeNode'.");case 163:case 208:case 108:var n=t.parent;if(183===n.kind)return!1;if(202===n.kind)return!n.isTypeOf;if(179<=n.kind&&n.kind<=202)return!0;switch(n.kind){case 230:return e.isHeritageClause(n.parent)&&!Wn(n);case 165:case 347:return t===n.constraint;case 169:case 168:case 166:case 257:case 259:case 215:case 216:case 173:case 171:case 170:case 174:case 175:case 176:case 177:case 178:case 213:return t===n.type;case 210:case 211:return e.contains(n.typeArguments,t);case 212:return!1}}return!1}function ae(e){if(e)switch(e.kind){case 205:case 302:case 166:case 299:case 169:case 168:case 300:case 257:return!0}return!1}function oe(e){return 258===e.parent.kind&&240===e.parent.parent.kind}function se(t){return!!Se(t)&&e.isBinaryExpression(t)&&1===Fe(t)}function ce(e,t,n){return e.properties.filter(function(e){if(299===e.kind){var r=G(e.name);return t===r||!!n&&n===r}return!1})}function le(t){if(t&&t.statements.length){var n=t.statements[0].expression;return e.tryCast(n,e.isObjectLiteralExpression)}}function ue(t,n){var r=le(t);return r?ce(r,n):e.emptyArray}function de(t,n){for(e.Debug.assert(308!==t.kind);;){if(!(t=t.parent))return e.Debug.fail();switch(t.kind){case 164:if(e.isClassLike(t.parent.parent))return t;t=t.parent;break;case 167:166===t.parent.kind&&e.isClassElement(t.parent.parent)?t=t.parent.parent:e.isClassElement(t.parent)&&(t=t.parent);break;case 216:if(!n)continue;case 259:case 215:case 264:case 172:case 169:case 168:case 171:case 170:case 173:case 174:case 175:case 176:case 177:case 178:case 263:case 308:return t}}}function pe(e){var t=e.kind;return(208===t||209===t)&&106===e.expression.kind}function me(t,n,r){if(e.isNamedDeclaration(t)&&e.isPrivateIdentifier(t.name))return!1;switch(t.kind){case 260:return!0;case 169:return 260===n.kind;case 174:case 175:case 171:return void 0!==t.body&&260===n.kind;case 166:return void 0!==n.body&&(173===n.kind||171===n.kind||175===n.kind)&&260===r.kind}return!1}function fe(e,t,n){return kn(e)&&me(e,t,n)}function _e(e,t,n){return fe(e,t,n)||he(e,t)}function he(t,n){switch(t.kind){case 260:return e.some(t.members,function(e){return _e(e,t,n)});case 171:case 175:case 173:return e.some(t.parameters,function(e){return fe(e,t,n)});default:return!1}}function ge(e){var t=e.parent;return(283===t.kind||282===t.kind||284===t.kind)&&t.tagName===e}function ye(t){switch(t.kind){case 106:case 104:case 110:case 95:case 13:case 206:case 207:case 208:case 209:case 210:case 211:case 212:case 231:case 213:case 235:case 232:case 214:case 215:case 228:case 216:case 219:case 217:case 218:case 221:case 222:case 223:case 224:case 227:case 225:case 229:case 281:case 282:case 285:case 226:case 220:case 233:return!0;case 230:return!e.isHeritageClause(t.parent);case 163:for(;163===t.parent.kind;)t=t.parent;return 183===t.parent.kind||e.isJSDocLinkLike(t.parent)||e.isJSDocNameReference(t.parent)||e.isJSDocMemberName(t.parent)||ge(t);case 314:for(;e.isJSDocMemberName(t.parent);)t=t.parent;return 183===t.parent.kind||e.isJSDocLinkLike(t.parent)||e.isJSDocNameReference(t.parent)||e.isJSDocMemberName(t.parent)||ge(t);case 80:return e.isBinaryExpression(t.parent)&&t.parent.left===t&&101===t.parent.operatorToken.kind;case 79:if(183===t.parent.kind||e.isJSDocLinkLike(t.parent)||e.isJSDocNameReference(t.parent)||e.isJSDocMemberName(t.parent)||ge(t))return!0;case 8:case 9:case 10:case 14:case 108:return ve(t);default:return!1}}function ve(e){var t=e.parent;switch(t.kind){case 257:case 166:case 169:case 168:case 302:case 299:case 205:return t.initializer===e;case 241:case 242:case 243:case 244:case 250:case 251:case 252:case 292:case 254:return t.expression===e;case 245:var n=t;return n.initializer===e&&258!==n.initializer.kind||n.condition===e||n.incrementor===e;case 246:case 247:var r=t;return r.initializer===e&&258!==r.initializer.kind||r.expression===e;case 213:case 231:case 236:case 164:case 235:return e===t.expression;case 167:case 291:case 290:case 301:return!0;case 230:return t.expression===e&&!ie(t);case 300:return t.objectAssignmentInitializer===e;default:return ye(t)}}function be(e){for(;163===e.kind||79===e.kind;)e=e.parent;return 183===e.kind}function Ee(e){return 268===e.kind&&280===e.moduleReference.kind}function xe(e){return Se(e)}function Se(e){return!!e&&!!(262144&e.flags)}function Te(e){return!!e&&!!(8388608&e.flags)}function Ce(t,n){if(210!==t.kind)return!1;var r=t,i=r.expression,a=r.arguments;if(79!==i.kind||"require"!==i.escapedText)return!1;if(1!==a.length)return!1;var o=a[0];return!n||e.isStringLiteralLike(o)}function De(e){return Ae(e,!1)}function Le(e){return Ae(e,!0)}function Ae(t,n){return e.isVariableDeclaration(t)&&!!t.initializer&&Ce(n?mr(t.initializer):t.initializer,!0)}function Ne(t){return e.isBinaryExpression(t)||pr(t)||e.isIdentifier(t)||e.isCallExpression(t)}function ke(t){return Se(t)&&t.initializer&&e.isBinaryExpression(t.initializer)&&(56===t.initializer.operatorToken.kind||60===t.initializer.operatorToken.kind)&&t.name&&$n(t.name)&&Pe(t.name,t.initializer.left)?t.initializer.right:t.initializer}function Ie(t,n){if(e.isCallExpression(t)){var r=pt(t.expression);return 215===r.kind||216===r.kind?t:void 0}return 215===t.kind||228===t.kind||216===t.kind||e.isObjectLiteralExpression(t)&&(0===t.properties.length||n)?t:void 0}function Pe(t,n){return Nt(t)&&Nt(n)?kt(t)===kt(n):e.isMemberName(t)&&Be(n)&&(108===n.expression.kind||e.isIdentifier(n.expression)&&("window"===n.expression.escapedText||"self"===n.expression.escapedText||"global"===n.expression.escapedText))?Pe(t,He(n)):!(!Be(t)||!Be(n))&&$e(t)===$e(n)&&Pe(t.expression,n.expression)}function we(e){for(;Hn(e,!0);)e=e.right;return e}function Oe(t){return e.isIdentifier(t)&&"exports"===t.escapedText}function Re(t){return e.isIdentifier(t)&&"module"===t.escapedText}function Me(t){return(e.isPropertyAccessExpression(t)||Ue(t))&&Re(t.expression)&&"exports"===$e(t)}function Fe(t){var n=function(t){if(e.isCallExpression(t)){if(!Ge(t))return 0;var n=t.arguments[0];return Oe(n)||Me(n)?8:Ve(n)&&"prototype"===$e(n)?9:7}return 63!==t.operatorToken.kind||!pr(t.left)||(r=we(t),e.isVoidExpression(r)&&e.isNumericLiteral(r.expression)&&"0"===r.expression.text)?0:je(t.left.expression,!0)&&"prototype"===$e(t.left)&&e.isObjectLiteralExpression(ze(t))?6:qe(t.left);var r}(t);return 5===n||Se(t)?n:0}function Ge(t){return 3===e.length(t.arguments)&&e.isPropertyAccessExpression(t.expression)&&e.isIdentifier(t.expression.expression)&&"Object"===e.idText(t.expression.expression)&&"defineProperty"===e.idText(t.expression.name)&&Tt(t.arguments[1])&&je(t.arguments[0],!0)}function Be(t){return e.isPropertyAccessExpression(t)||Ue(t)}function Ue(t){return e.isElementAccessExpression(t)&&Tt(t.argumentExpression)}function Ve(t,n){return e.isPropertyAccessExpression(t)&&(!n&&108===t.expression.kind||e.isIdentifier(t.name)&&je(t.expression,!0))||Ke(t,n)}function Ke(e,t){return Ue(e)&&(!t&&108===e.expression.kind||$n(e.expression)||Ve(e.expression,!0))}function je(e,t){return $n(e)||Ve(e,t)}function He(t){return e.isPropertyAccessExpression(t)?t.name:t.argumentExpression}function We(t){if(e.isPropertyAccessExpression(t))return t.name;var n=pt(t.argumentExpression);return e.isNumericLiteral(n)||e.isStringLiteralLike(n)?n:t}function $e(t){var n=We(t);if(n){if(e.isIdentifier(n))return n.escapedText;if(e.isStringLiteralLike(n)||e.isNumericLiteral(n))return e.escapeLeadingUnderscores(n.text)}}function qe(t){if(108===t.expression.kind)return 4;if(Me(t))return 2;if(je(t.expression,!0)){if(zn(t.expression))return 3;for(var n=t;!e.isIdentifier(n.expression);)n=n.expression;var r=n.expression;if(("exports"===r.escapedText||"module"===r.escapedText&&"exports"===$e(n))&&Ve(t))return 1;if(je(t,!0)||e.isElementAccessExpression(t)&&Lt(t))return 5}return 0}function ze(t){for(;e.isBinaryExpression(t.right);)t=t.right;return t.right}function Je(t){switch(t.parent.kind){case 269:case 275:return t.parent;case 280:return t.parent.parent;case 210:return q(t.parent)||Ce(t.parent,!1)?t.parent:void 0;case 198:return e.Debug.assert(e.isStringLiteral(t)),e.tryCast(t.parent.parent,e.isImportTypeNode);default:return}}function Xe(t){switch(t.kind){case 269:case 275:return t.moduleSpecifier;case 268:return 280===t.moduleReference.kind?t.moduleReference.expression:void 0;case 202:return z(t)?t.argument.literal:void 0;case 210:return t.arguments[0];case 264:return 10===t.name.kind?t.name:void 0;default:return e.Debug.assertNever(t)}}function Ye(e){return 348===e.kind||341===e.kind||342===e.kind}function Qe(t){return e.isExpressionStatement(t)&&e.isBinaryExpression(t.expression)&&0!==Fe(t.expression)&&e.isBinaryExpression(t.expression.right)&&(56===t.expression.right.operatorToken.kind||60===t.expression.right.operatorToken.kind)?t.expression.right.right:void 0}function Ze(e){switch(e.kind){case 240:var t=et(e);return t&&t.initializer;case 169:case 299:return e.initializer}}function et(t){return e.isVariableStatement(t)?e.firstOrUndefined(t.declarationList.declarations):void 0}function tt(t){return e.isModuleDeclaration(t)&&t.body&&264===t.body.kind?t.body:void 0}function nt(t,n){if(e.isJSDoc(n)){var r=e.filter(n.tags,function(e){return rt(t,e)});return n.tags===r?[n]:r}return rt(t,n)?[n]:void 0}function rt(t,n){return!(e.isJSDocTypeTag(n)&&n.parent&&e.isJSDoc(n.parent)&&e.isParenthesizedExpression(n.parent.parent)&&n.parent.parent!==t)}function it(t){var n=t.parent;return 299===n.kind||274===n.kind||169===n.kind||241===n.kind&&208===t.kind||250===n.kind||tt(n)||e.isBinaryExpression(t)&&63===t.operatorToken.kind?n:n.parent&&(et(n.parent)===t||e.isBinaryExpression(n)&&63===n.operatorToken.kind)?n.parent:n.parent&&n.parent.parent&&(et(n.parent.parent)||Ze(n.parent.parent)===t||Qe(n.parent.parent))?n.parent.parent:void 0}function at(t){var n=ot(t);if(n)return e.isPropertySignature(n)&&n.type&&e.isFunctionLike(n.type)?n.type:e.isFunctionLike(n)?n:void 0}function ot(t){var n=st(t);if(n)return Qe(n)||function(t){return e.isExpressionStatement(t)&&e.isBinaryExpression(t.expression)&&63===t.expression.operatorToken.kind?we(t.expression):void 0}(n)||Ze(n)||et(n)||tt(n)||n}function st(t){var n=ct(t);if(n){var r=n.parent;return r&&r.jsDoc&&n===e.lastOrUndefined(r.jsDoc)?r:void 0}}function ct(t){return e.findAncestor(t.parent,e.isJSDoc)}function lt(e){for(var t=e.parent;;){switch(t.kind){case 223:var n=t.operatorToken.kind;return Vn(n)&&t.left===e?63===n||Un(n)?1:2:0;case 221:case 222:var r=t.operator;return 45===r||46===r?2:0;case 246:case 247:return t.initializer===e?1:0;case 214:case 206:case 227:case 232:e=t;break;case 301:e=t.parent;break;case 300:if(t.name!==e)return 0;e=t.parent;break;case 299:if(t.name===e)return 0;e=t.parent;break;default:return 0}t=e.parent}}function ut(e,t){for(;e&&e.kind===t;)e=e.parent;return e}function dt(e){return ut(e,214)}function pt(t,n){var r=n?17:1;return e.skipOuterExpressions(t,r)}function mt(t){return $n(t)||e.isClassExpression(t)}function ft(e){return mt(_t(e))}function _t(t){return e.isExportAssignment(t)?t.expression:t.right}function ht(t){var n=gt(t);if(n&&Se(t)){var r=e.getJSDocAugmentsTag(t);if(r)return r.class}return n}function gt(e){var t=bt(e.heritageClauses,94);return t&&t.types.length>0?t.types[0]:void 0}function yt(t){if(Se(t))return e.getJSDocImplementsTags(t).map(function(e){return e.class});var n=bt(t.heritageClauses,117);return null==n?void 0:n.types}function vt(e){var t=bt(e.heritageClauses,94);return t?t.types:void 0}function bt(e,t){if(e)for(var n=0,r=e;n0&&e.every(t.declarationList.declarations,function(e){return De(e)})},e.isSingleOrDoubleQuote=function(e){return 39===e||34===e},e.isStringDoubleQuoted=function(e,t){return 34===b(t,e).charCodeAt(0)},e.isAssignmentDeclaration=Ne,e.getEffectiveInitializer=ke,e.getDeclaredExpandoInitializer=function(e){var t=ke(e);return t&&Ie(t,zn(e.name))},e.getAssignedExpandoInitializer=function(t){if(t&&t.parent&&e.isBinaryExpression(t.parent)&&63===t.parent.operatorToken.kind){var n=zn(t.parent.left);return Ie(t.parent.right,n)||function(t,n,r){var i=e.isBinaryExpression(n)&&(56===n.operatorToken.kind||60===n.operatorToken.kind)&&Ie(n.right,r);if(i&&Pe(t,n.left))return i}(t.parent.left,t.parent.right,n)}if(t&&e.isCallExpression(t)&&Ge(t)){var r=function(t,n){return e.forEach(t.properties,function(t){return e.isPropertyAssignment(t)&&e.isIdentifier(t.name)&&"value"===t.name.escapedText&&t.initializer&&Ie(t.initializer,n)})}(t.arguments[2],"prototype"===t.arguments[1].text);if(r)return r}},e.getExpandoInitializer=Ie,e.isDefaultedExpandoInitializer=function(t){var n=e.isVariableDeclaration(t.parent)?t.parent.name:e.isBinaryExpression(t.parent)&&63===t.parent.operatorToken.kind?t.parent.left:void 0;return n&&Ie(t.right,zn(n))&&$n(n)&&Pe(n,t.left)},e.getNameOfExpando=function(t){if(e.isBinaryExpression(t.parent)){var n=56!==t.parent.operatorToken.kind&&60!==t.parent.operatorToken.kind||!e.isBinaryExpression(t.parent.parent)?t.parent:t.parent.parent;if(63===n.operatorToken.kind&&e.isIdentifier(n.left))return n.left}else if(e.isVariableDeclaration(t.parent))return t.parent.name},e.isSameEntityName=Pe,e.getRightMostAssignedExpression=we,e.isExportsIdentifier=Oe,e.isModuleIdentifier=Re,e.isModuleExportsAccessExpression=Me,e.getAssignmentDeclarationKind=Fe,e.isBindableObjectDefinePropertyCall=Ge,e.isLiteralLikeAccess=Be,e.isLiteralLikeElementAccess=Ue,e.isBindableStaticAccessExpression=Ve,e.isBindableStaticElementAccessExpression=Ke,e.isBindableStaticNameExpression=je,e.getNameOrArgument=He,e.getElementOrPropertyAccessArgumentExpressionOrName=We,e.getElementOrPropertyAccessName=$e,e.getAssignmentDeclarationPropertyAccessKind=qe,e.getInitializerOfBinaryExpression=ze,e.isPrototypePropertyAssignment=function(t){return e.isBinaryExpression(t)&&3===Fe(t)},e.isSpecialPropertyDeclaration=function(t){return Se(t)&&t.parent&&241===t.parent.kind&&(!e.isElementAccessExpression(t)||Ue(t))&&!!e.getJSDocTypeTag(t.parent)},e.setValueDeclaration=function(e,t){var n=e.valueDeclaration;(!n||(!(16777216&t.flags)||16777216&n.flags)&&Ne(n)&&!Ne(t)||n.kind!==t.kind&&L(n))&&(e.valueDeclaration=t)},e.isFunctionSymbol=function(t){if(!t||!t.valueDeclaration)return!1;var n=t.valueDeclaration;return 259===n.kind||e.isVariableDeclaration(n)&&n.initializer&&e.isFunctionLike(n.initializer)},e.tryGetModuleSpecifierFromDeclaration=function(t){var n,r;switch(t.kind){case 257:return null===(n=e.findAncestor(t.initializer,function(e){return Ce(e,!0)}))||void 0===n?void 0:n.arguments[0];case 269:return e.tryCast(t.moduleSpecifier,e.isStringLiteralLike);case 268:return e.tryCast(null===(r=e.tryCast(t.moduleReference,e.isExternalModuleReference))||void 0===r?void 0:r.expression,e.isStringLiteralLike);default:e.Debug.assertNever(t)}},e.importFromModuleSpecifier=function(t){return Je(t)||e.Debug.failBadSyntaxKind(t.parent)},e.tryGetImportFromModuleSpecifier=Je,e.getExternalModuleName=Xe,e.getNamespaceDeclarationNode=function(t){switch(t.kind){case 269:return t.importClause&&e.tryCast(t.importClause.namedBindings,e.isNamespaceImport);case 268:return t;case 275:return t.exportClause&&e.tryCast(t.exportClause,e.isNamespaceExport);default:return e.Debug.assertNever(t)}},e.isDefaultImport=function(e){return 269===e.kind&&!!e.importClause&&!!e.importClause.name},e.forEachImportClauseDeclaration=function(t,n){var r;return t.name&&(r=n(t))||t.namedBindings&&(r=e.isNamespaceImport(t.namedBindings)?n(t.namedBindings):e.forEach(t.namedBindings.elements,n))?r:void 0},e.hasQuestionToken=function(e){if(e)switch(e.kind){case 166:case 171:case 170:case 300:case 299:case 169:case 168:return void 0!==e.questionToken}return!1},e.isJSDocConstructSignature=function(t){var n=e.isJSDocFunctionType(t)?e.firstOrUndefined(t.parameters):void 0,r=e.tryCast(n&&n.name,e.isIdentifier);return!!r&&"new"===r.escapedText},e.isJSDocTypeAlias=Ye,e.isTypeAlias=function(t){return Ye(t)||e.isTypeAliasDeclaration(t)},e.getSingleInitializerOfVariableStatementOrPropertyDeclaration=Ze,e.getSingleVariableOfVariableStatement=et,e.getJSDocCommentsAndTags=function(t,n){var r;ae(t)&&e.hasInitializer(t)&&e.hasJSDocNodes(t.initializer)&&(r=e.addRange(r,nt(t,e.last(t.initializer.jsDoc))));for(var i=t;i&&i.parent;){if(e.hasJSDocNodes(i)&&(r=e.addRange(r,nt(t,e.last(i.jsDoc)))),166===i.kind){r=e.addRange(r,(n?e.getJSDocParameterTagsNoCache:e.getJSDocParameterTags)(i));break}if(165===i.kind){r=e.addRange(r,(n?e.getJSDocTypeParameterTagsNoCache:e.getJSDocTypeParameterTags)(i));break}i=it(i)}return r||e.emptyArray},e.getNextJSDocCommentLocation=it,e.getParameterSymbolFromJSDoc=function(t){if(t.symbol)return t.symbol;if(e.isIdentifier(t.name)){var n=t.name.escapedText,r=at(t);if(r){var i=e.find(r.parameters,function(e){return 79===e.name.kind&&e.name.escapedText===n});return i&&i.symbol}}},e.getEffectiveContainerForJSDocTemplateTag=function(t){if(e.isJSDoc(t.parent)&&t.parent.tags){var n=e.find(t.parent.tags,Ye);if(n)return n}return at(t)},e.getHostSignatureFromJSDoc=at,e.getEffectiveJSDocHost=ot,e.getJSDocHost=st,e.getJSDocRoot=ct,e.getTypeParameterFromJsDoc=function(t){var n=t.name.escapedText,r=t.parent.parent.parent.typeParameters;return r&&e.find(r,function(e){return e.name.escapedText===n})},e.hasTypeArguments=function(e){return!!e.typeArguments},(Z=e.AssignmentKind||(e.AssignmentKind={}))[Z.None=0]="None",Z[Z.Definite=1]="Definite",Z[Z.Compound=2]="Compound",e.getAssignmentTargetKind=lt,e.isAssignmentTarget=function(e){return 0!==lt(e)},e.isNodeWithPossibleHoistedDeclaration=function(e){switch(e.kind){case 238:case 240:case 251:case 242:case 252:case 266:case 292:case 293:case 253:case 245:case 246:case 247:case 243:case 244:case 255:case 295:return!0}return!1},e.isValueSignatureDeclaration=function(t){return e.isFunctionExpression(t)||e.isArrowFunction(t)||e.isMethodOrAccessor(t)||e.isFunctionDeclaration(t)||e.isConstructorDeclaration(t)},e.walkUpParenthesizedTypes=function(e){return ut(e,193)},e.walkUpParenthesizedExpressions=dt,e.walkUpParenthesizedTypesAndGetParentAndChild=function(e){for(var t;e&&193===e.kind;)t=e,e=e.parent;return[t,e]},e.skipTypeParentheses=function(t){for(;e.isParenthesizedTypeNode(t);)t=t.type;return t},e.skipParentheses=pt,e.isDeleteTarget=function(e){return(208===e.kind||209===e.kind)&&(e=dt(e.parent))&&217===e.kind},e.isNodeDescendantOf=function(e,t){for(;e;){if(e===t)return!0;e=e.parent}return!1},e.isDeclarationName=function(t){return!e.isSourceFile(t)&&!e.isBindingPattern(t)&&e.isDeclaration(t.parent)&&t.parent.name===t},e.getDeclarationFromName=function(t){var n=t.parent;switch(t.kind){case 10:case 14:case 8:if(e.isComputedPropertyName(n))return n.parent;case 79:if(e.isDeclaration(n))return n.name===t?n:void 0;if(e.isQualifiedName(n)){var r=n.parent;return e.isJSDocParameterTag(r)&&r.name===n?r:void 0}var i=n.parent;return e.isBinaryExpression(i)&&0!==Fe(i)&&(i.left.symbol||i.symbol)&&e.getNameOfDeclaration(i)===t?i:void 0;case 80:return e.isDeclaration(n)&&n.name===t?n:void 0;default:return}},e.isLiteralComputedPropertyDeclarationName=function(t){return Tt(t)&&164===t.parent.kind&&e.isDeclaration(t.parent.parent)},e.isIdentifierName=function(e){var t=e.parent;switch(t.kind){case 169:case 168:case 171:case 170:case 174:case 175:case 302:case 299:case 208:return t.name===e;case 163:return t.right===e;case 205:case 273:return t.propertyName===e;case 278:case 288:case 282:case 283:case 284:return!0}return!1},e.isAliasSymbolDeclaration=function(t){return!!(268===t.kind||267===t.kind||270===t.kind&&t.name||271===t.kind||277===t.kind||273===t.kind||278===t.kind||274===t.kind&&ft(t))||Se(t)&&(e.isBinaryExpression(t)&&2===Fe(t)&&ft(t)||e.isPropertyAccessExpression(t)&&e.isBinaryExpression(t.parent)&&t.parent.left===t&&63===t.parent.operatorToken.kind&&mt(t.parent.right))},e.getAliasDeclarationFromName=function e(t){switch(t.parent.kind){case 270:case 273:case 271:case 278:case 274:case 268:case 277:return t.parent;case 163:do{t=t.parent}while(163===t.parent.kind);return e(t)}},e.isAliasableExpression=mt,e.exportAssignmentIsAlias=ft,e.getExportAssignmentExpression=_t,e.getPropertyAssignmentAliasLikeExpression=function(e){return 300===e.kind?e.name:299===e.kind?e.initializer:e.parent.right},e.getEffectiveBaseTypeNode=ht,e.getClassExtendsHeritageElement=gt,e.getEffectiveImplementsTypeNodes=yt,e.getAllSuperTypeNodes=function(t){return e.isInterfaceDeclaration(t)?vt(t)||e.emptyArray:e.isClassLike(t)&&e.concatenate(e.singleElementArray(ht(t)),yt(t))||e.emptyArray},e.getInterfaceBaseTypeNodes=vt,e.getHeritageClause=bt,e.getAncestor=function(e,t){for(;e;){if(e.kind===t)return e;e=e.parent}},e.isKeyword=Et,e.isContextualKeyword=xt,e.isNonContextualKeyword=St,e.isFutureReservedKeyword=function(e){return 117<=e&&e<=125},e.isStringANonContextualKeyword=function(t){var n=e.stringToToken(t);return void 0!==n&&St(n)},e.isStringAKeyword=function(t){var n=e.stringToToken(t);return void 0!==n&&Et(n)},e.isIdentifierANonContextualKeyword=function(e){var t=e.originalKeywordKind;return!!t&&!xt(t)},e.isTrivia=function(e){return 2<=e&&e<=7},(ee=e.FunctionFlags||(e.FunctionFlags={}))[ee.Normal=0]="Normal",ee[ee.Generator=1]="Generator",ee[ee.Async=2]="Async",ee[ee.Invalid=4]="Invalid",ee[ee.AsyncGenerator=3]="AsyncGenerator",e.getFunctionFlags=function(e){if(!e)return 4;var t=0;switch(e.kind){case 259:case 215:case 171:e.asteriskToken&&(t|=1);case 216:Dn(e,512)&&(t|=2)}return e.body||(t|=4),t},e.isAsyncFunction=function(e){switch(e.kind){case 259:case 215:case 216:case 171:return void 0!==e.body&&void 0===e.asteriskToken&&Dn(e,512)}return!1},e.isStringOrNumericLiteralLike=Tt,e.isSignedNumericLiteral=Ct,e.hasDynamicName=Dt,e.isDynamicName=Lt,e.getPropertyNameForPropertyNameNode=At,e.isPropertyNameLiteral=Nt,e.getTextOfIdentifierOrLiteral=kt,e.getEscapedTextOfIdentifierOrLiteral=function(t){return e.isMemberName(t)?t.escapedText:e.escapeLeadingUnderscores(t.text)},e.getPropertyNameForUniqueESSymbol=function(t){return"__@".concat(e.getSymbolId(t),"@").concat(t.escapedName)},e.getSymbolNameForPrivateIdentifier=function(t,n){return"__#".concat(e.getSymbolId(t),"@").concat(n)},e.isKnownSymbol=function(t){return e.startsWith(t.escapedName,"__@")},e.isPrivateIdentifierSymbol=function(t){return e.startsWith(t.escapedName,"__#")},e.isESSymbolIdentifier=function(e){return 79===e.kind&&"Symbol"===e.escapedText},e.isPushOrUnshiftIdentifier=function(e){return"push"===e.escapedText||"unshift"===e.escapedText},e.isParameterDeclaration=function(e){return 166===It(e).kind},e.getRootDeclaration=It,e.nodeStartsNewLexicalEnvironment=function(e){var t=e.kind;return 173===t||215===t||259===t||216===t||171===t||174===t||175===t||264===t||308===t},e.nodeIsSynthesized=Pt,e.getOriginalSourceFile=function(t){return e.getParseTreeNode(t,e.isSourceFile)||t},(te=e.Associativity||(e.Associativity={}))[te.Left=0]="Left",te[te.Right=1]="Right",e.getExpressionAssociativity=function(e){var t=Ot(e),n=211===e.kind&&void 0!==e.arguments;return wt(e.kind,t,n)},e.getOperatorAssociativity=wt,e.getExpressionPrecedence=function(e){var t=Ot(e),n=211===e.kind&&void 0!==e.arguments;return Rt(e.kind,t,n)},e.getOperator=Ot,(ne=e.OperatorPrecedence||(e.OperatorPrecedence={}))[ne.Comma=0]="Comma",ne[ne.Spread=1]="Spread",ne[ne.Yield=2]="Yield",ne[ne.Assignment=3]="Assignment",ne[ne.Conditional=4]="Conditional",ne[ne.Coalesce=4]="Coalesce",ne[ne.LogicalOR=5]="LogicalOR",ne[ne.LogicalAND=6]="LogicalAND",ne[ne.BitwiseOR=7]="BitwiseOR",ne[ne.BitwiseXOR=8]="BitwiseXOR",ne[ne.BitwiseAND=9]="BitwiseAND",ne[ne.Equality=10]="Equality",ne[ne.Relational=11]="Relational",ne[ne.Shift=12]="Shift",ne[ne.Additive=13]="Additive",ne[ne.Multiplicative=14]="Multiplicative",ne[ne.Exponentiation=15]="Exponentiation",ne[ne.Unary=16]="Unary",ne[ne.Update=17]="Update",ne[ne.LeftHandSide=18]="LeftHandSide",ne[ne.Member=19]="Member",ne[ne.Primary=20]="Primary",ne[ne.Highest=20]="Highest",ne[ne.Lowest=0]="Lowest",ne[ne.Invalid=-1]="Invalid",e.getOperatorPrecedence=Rt,e.getBinaryOperatorPrecedence=Mt,e.getSemanticJsxChildren=function(t){return e.filter(t,function(e){switch(e.kind){case 291:return!!e.expression;case 11:return!e.containsOnlyTriviaWhiteSpaces;default:return!0}})},e.createDiagnosticCollection=function(){var t=[],n=[],r=new e.Map,i=!1;return{add:function(a){var o;a.file?(o=r.get(a.file.fileName))||(o=[],r.set(a.file.fileName,o),e.insertSorted(n,a.file.fileName,e.compareStringsCaseSensitive)):(i&&(i=!1,t=t.slice()),o=t),e.insertSorted(o,a,Ar)},lookup:function(n){var i;if(i=n.file?r.get(n.file.fileName):t){var a=e.binarySearch(i,n,e.identity,Ar);return a>=0?i[a]:void 0}},getGlobalDiagnostics:function(){return i=!0,t},getDiagnostics:function(i){if(i)return r.get(i)||[];var a=e.flatMapToMutable(n,function(e){return r.get(e)});return t.length?(a.unshift.apply(a,t),a):a}}};var Ft=/\$\{/g;e.hasInvalidEscape=function(t){return t&&!!(e.isNoSubstitutionTemplateLiteral(t)?t.templateFlags:t.head.templateFlags||e.some(t.templateSpans,function(e){return!!e.literal.templateFlags}))};var Gt=/[\\\"\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,Bt=/[\\\'\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,Ut=/\r\n|[\\\`\u0000-\u001f\t\v\f\b\r\u2028\u2029\u0085]/g,Vt=new e.Map(e.getEntries({"\t":"\\t","\v":"\\v","\f":"\\f","\b":"\\b","\r":"\\r","\n":"\\n","\\":"\\\\",'"':'\\"',"'":"\\'","`":"\\`","\u2028":"\\u2028","\u2029":"\\u2029","…":"\\u0085","\r\n":"\\r\\n"}));function Kt(e){return"\\u"+("0000"+e.toString(16).toUpperCase()).slice(-4)}function jt(e,t,n){if(0===e.charCodeAt(0)){var r=n.charCodeAt(t+e.length);return r>=48&&r<=57?"\\x00":"\\0"}return Vt.get(e)||Kt(e.charCodeAt(0))}function Ht(e,t){var n=96===t?Ut:39===t?Bt:Gt;return e.replace(n,jt)}e.escapeString=Ht;var Wt=/[^\u0000-\u007F]/g;function $t(e,t){return e=Ht(e,t),Wt.test(e)?e.replace(Wt,function(e){return Kt(e.charCodeAt(0))}):e}e.escapeNonAsciiString=$t;var qt=/[\"\u0000-\u001f\u2028\u2029\u0085]/g,zt=/[\'\u0000-\u001f\u2028\u2029\u0085]/g,Jt=new e.Map(e.getEntries({'"':""","'":"'"}));function Xt(e){return 0===e.charCodeAt(0)?"�":Jt.get(e)||"&#x"+e.charCodeAt(0).toString(16).toUpperCase()+";"}function Yt(e,t){var n=39===t?zt:qt;return e.replace(n,Xt)}e.escapeJsxAttributeString=Yt,e.stripQuotes=function(e){var t,n=e.length;return n>=2&&e.charCodeAt(0)===e.charCodeAt(n-1)&&(39===(t=e.charCodeAt(0))||34===t||96===t)?e.substring(1,n-1):e},e.isIntrinsicJsxName=function(t){var n=t.charCodeAt(0);return n>=97&&n<=122||e.stringContains(t,"-")||e.stringContains(t,":")};var Qt=[""," "];function Zt(e){for(var t=Qt[1],n=Qt.length;n<=e;n++)Qt.push(Qt[n-1]+t);return Qt[e]}function en(){return Qt[1].length}function tn(e){return!!e.useCaseSensitiveFileNames&&e.useCaseSensitiveFileNames()}function nn(e,t,n){return t.moduleName||an(e,t.fileName,n&&n.fileName)}function rn(t,n){return t.getCanonicalFileName(e.getNormalizedAbsolutePath(n,t.getCurrentDirectory()))}function an(t,n,r){var i=function(e){return t.getCanonicalFileName(e)},a=e.toPath(r?e.getDirectoryPath(r):t.getCommonSourceDirectory(),t.getCurrentDirectory(),i),o=e.getNormalizedAbsolutePath(n,t.getCurrentDirectory()),s=fi(e.getRelativePathToDirectoryOrUrl(a,o,a,i,!1));return r?e.ensurePathIsNonModuleName(s):s}function on(e,t,n,r,i){var a=t.declarationDir||t.outDir,o=a?dn(e,a,n,r,i):e,s=sn(o);return fi(o)+s}function sn(t){return e.fileExtensionIsOneOf(t,[".mjs",".mts"])?".d.mts":e.fileExtensionIsOneOf(t,[".cjs",".cts"])?".d.cts":e.fileExtensionIsOneOf(t,[".json"])?".json.d.ts":".d.ts"}function cn(e){return e.outFile||e.out}function ln(e,t,n){return!(t.getCompilerOptions().noEmitForJsFiles&&xe(e))&&!e.isDeclarationFile&&!t.isSourceFileFromExternalLibrary(e)&&(n||!(W(e)&&t.getResolvedProjectReferenceToRedirect(e.fileName))&&!t.isSourceOfProjectReferenceRedirect(e.fileName))}function un(e,t,n){return dn(e,n,t.getCurrentDirectory(),t.getCommonSourceDirectory(),function(e){return t.getCanonicalFileName(e)})}function dn(t,n,r,i,a){var o=e.getNormalizedAbsolutePath(t,r);return o=0===a(o).indexOf(a(i))?o.substring(i.length):o,e.combinePaths(n,o)}function pn(t,n,r){t.length>e.getRootLength(t)&&!r(t)&&(pn(e.getDirectoryPath(t),n,r),n(t))}function mn(t,n){return e.computeLineOfPosition(t,n)}function fn(t){return e.find(t.members,function(t){return e.isConstructorDeclaration(t)&&f(t.body)})}function _n(e){if(e&&e.parameters.length>0){var t=2===e.parameters.length&&hn(e.parameters[0]);return e.parameters[t?1:0]}}function hn(e){return gn(e.name)}function gn(e){return!!e&&79===e.kind&&yn(e)}function yn(e){return 108===e.originalKeywordKind}function vn(t){if(Se(t)||!e.isFunctionDeclaration(t)){var n=t.type;return n||!Se(t)?n:e.isJSDocPropertyLikeTag(t)?t.typeExpression&&t.typeExpression.type:e.getJSDocType(t)}}function bn(e,t,n,r){En(e,t,n.pos,r)}function En(e,t,n,r){r&&r.length&&n!==r[0].pos&&mn(e,n)!==mn(e,r[0].pos)&&t.writeLine()}function xn(e,t,n,r,i,a,o,s){if(r&&r.length>0){i&&n.writeSpace(" ");for(var c=!1,l=0,u=r;l=0&&e.kind<=162?0:(536870912&e.modifierFlagsCache||(e.modifierFlagsCache=536870912|Fn(e)),!t||4096&e.modifierFlagsCache||!n&&!Se(e)||!e.parent||(e.modifierFlagsCache|=4096|Mn(e)),-536875009&e.modifierFlagsCache)}function On(e){return wn(e,!0)}function Rn(e){return wn(e,!1)}function Mn(t){var n=0;return t.parent&&!e.isParameter(t)&&(Se(t)&&(e.getJSDocPublicTagNoCache(t)&&(n|=4),e.getJSDocPrivateTagNoCache(t)&&(n|=8),e.getJSDocProtectedTagNoCache(t)&&(n|=16),e.getJSDocReadonlyTagNoCache(t)&&(n|=64),e.getJSDocOverrideTagNoCache(t)&&(n|=16384)),e.getJSDocDeprecatedTagNoCache(t)&&(n|=8192)),n}function Fn(t){var n=e.canHaveModifiers(t)?Gn(t.modifiers):0;return(4&t.flags||79===t.kind&&t.isInJSDocNamespace)&&(n|=1),n}function Gn(e){var t=0;if(e)for(var n=0,r=e;n=63&&e<=78}function Kn(e){var t=jn(e);return t&&!t.isImplements?t.class:void 0}function jn(t){return e.isExpressionWithTypeArguments(t)&&e.isHeritageClause(t.parent)&&e.isClassLike(t.parent.parent)?{class:t.parent.parent,isImplements:117===t.parent.token}:void 0}function Hn(t,n){return e.isBinaryExpression(t)&&(n?63===t.operatorToken.kind:Vn(t.operatorToken.kind))&&e.isLeftHandSideExpression(t.left)}function Wn(e){return void 0!==Kn(e)}function $n(e){return 79===e.kind||qn(e)}function qn(t){return e.isPropertyAccessExpression(t)&&e.isIdentifier(t.name)&&$n(t.expression)}function zn(e){return Ve(e)&&"prototype"===$e(e)}function Jn(t){return e.isPropertyAccessExpression(t.parent)&&t.parent.name===t||e.isElementAccessExpression(t.parent)&&t.parent.argumentExpression===t}e.getIndentString=Zt,e.getIndentSize=en,e.isNightly=function(){return e.stringContains(e.version,"-dev")||e.stringContains(e.version,"-insiders")},e.createTextWriter=function(t){var n,r,i,a,o,s=!1;function c(t){var r=e.computeLineStarts(t);r.length>1?(a=a+r.length-1,o=n.length-t.length+e.last(r),i=o-n.length===0):i=!1}function l(e){e&&e.length&&(i&&(e=Zt(r)+e,i=!1),n+=e,c(e))}function u(e){e&&(s=!1),l(e)}function d(){n="",r=0,i=!0,a=0,o=0,s=!1}return d(),{write:u,rawWrite:function(e){void 0!==e&&(n+=e,c(e),s=!1)},writeLiteral:function(e){e&&e.length&&u(e)},writeLine:function(e){i&&!e||(a++,o=(n+=t).length,i=!0,s=!1)},increaseIndent:function(){r++},decreaseIndent:function(){r--},getIndent:function(){return r},getTextPos:function(){return n.length},getLine:function(){return a},getColumn:function(){return i?r*en():n.length-o},getText:function(){return n},isAtStartOfLine:function(){return i},hasTrailingComment:function(){return s},hasTrailingWhitespace:function(){return!!n.length&&e.isWhiteSpaceLike(n.charCodeAt(n.length-1))},clear:d,reportInaccessibleThisError:e.noop,reportPrivateInBaseOfClassExpression:e.noop,reportInaccessibleUniqueSymbolError:e.noop,trackSymbol:function(){return!1},writeKeyword:u,writeOperator:u,writeParameter:u,writeProperty:u,writePunctuation:u,writeSpace:u,writeStringLiteral:u,writeSymbol:function(e,t){return u(e)},writeTrailingSemicolon:u,writeComment:function(e){e&&(s=!0),l(e)},getTextPosWithWriteLine:function(){return i?n.length:n.length+t.length}}},e.getTrailingSemicolonDeferringWriter=function(e){var t=!1;function n(){t&&(e.writeTrailingSemicolon(";"),t=!1)}return r(r({},e),{writeTrailingSemicolon:function(){t=!0},writeLiteral:function(t){n(),e.writeLiteral(t)},writeStringLiteral:function(t){n(),e.writeStringLiteral(t)},writeSymbol:function(t,r){n(),e.writeSymbol(t,r)},writePunctuation:function(t){n(),e.writePunctuation(t)},writeKeyword:function(t){n(),e.writeKeyword(t)},writeOperator:function(t){n(),e.writeOperator(t)},writeParameter:function(t){n(),e.writeParameter(t)},writeSpace:function(t){n(),e.writeSpace(t)},writeProperty:function(t){n(),e.writeProperty(t)},writeComment:function(t){n(),e.writeComment(t)},writeLine:function(){n(),e.writeLine()},increaseIndent:function(){n(),e.increaseIndent()},decreaseIndent:function(){n(),e.decreaseIndent()}})},e.hostUsesCaseSensitiveFileNames=tn,e.hostGetCanonicalFileName=function(t){return e.createGetCanonicalFileName(tn(t))},e.getResolvedExternalModuleName=nn,e.getExternalModuleNameFromDeclaration=function(t,n,r){var i=n.getExternalModuleFileFromDeclaration(r);if(i&&!i.isDeclarationFile){var a=Xe(r);if(!a||!e.isStringLiteralLike(a)||e.pathIsRelative(a.text)||-1!==rn(t,i.path).indexOf(rn(t,e.ensureTrailingDirectorySeparator(t.getCommonSourceDirectory()))))return nn(t,i)}},e.getExternalModuleNameFromPath=an,e.getOwnEmitOutputFilePath=function(e,t,n){var r=t.getCompilerOptions();return(r.outDir?fi(un(e,t,r.outDir)):fi(e))+n},e.getDeclarationEmitOutputFilePath=function(e,t){return on(e,t.getCompilerOptions(),t.getCurrentDirectory(),t.getCommonSourceDirectory(),function(e){return t.getCanonicalFileName(e)})},e.getDeclarationEmitOutputFilePathWorker=on,e.getDeclarationEmitExtensionForPath=sn,e.getPossibleOriginalInputExtensionForExtension=function(t){return e.fileExtensionIsOneOf(t,[".d.mts",".mjs",".mts"])?[".mts",".mjs"]:e.fileExtensionIsOneOf(t,[".d.cts",".cjs",".cts"])?[".cts",".cjs"]:e.fileExtensionIsOneOf(t,[".json.d.ts"])?[".json"]:[".tsx",".ts",".jsx",".js"]},e.outFile=cn,e.getPathsBasePath=function(t,n){var r,i;if(t.paths)return null!==(r=t.baseUrl)&&void 0!==r?r:e.Debug.checkDefined(t.pathsBasePath||(null===(i=n.getCurrentDirectory)||void 0===i?void 0:i.call(n)),"Encountered 'paths' without a 'baseUrl', config file, or host 'getCurrentDirectory'.")},e.getSourceFilesToEmit=function(t,n,r){var i=t.getCompilerOptions();if(cn(i)){var a=Or(i),o=i.emitDeclarationOnly||a===e.ModuleKind.AMD||a===e.ModuleKind.System;return e.filter(t.getSourceFiles(),function(n){return(o||!e.isExternalModule(n))&&ln(n,t,r)})}var s=void 0===n?t.getSourceFiles():[n];return e.filter(s,function(e){return ln(e,t,r)})},e.sourceFileMayBeEmitted=ln,e.getSourceFilePathInNewDir=un,e.getSourceFilePathInNewDirWorker=dn,e.writeFile=function(t,n,r,i,a,o,s){t.writeFile(r,i,a,function(t){n.add(Dr(e.Diagnostics.Could_not_write_file_0_Colon_1,r,t))},o,s)},e.writeFileEnsuringDirectories=function(t,n,r,i,a,o){try{i(t,n,r)}catch(s){pn(e.getDirectoryPath(e.normalizePath(t)),a,o),i(t,n,r)}},e.getLineOfLocalPosition=function(t,n){var r=e.getLineStarts(t);return e.computeLineOfPosition(r,n)},e.getLineOfLocalPositionFromLineMap=mn,e.getFirstConstructorWithBody=fn,e.getSetAccessorValueParameter=_n,e.getSetAccessorTypeAnnotationNode=function(e){var t=_n(e);return t&&t.type},e.getThisParameter=function(t){if(t.parameters.length&&!e.isJSDocSignature(t)){var n=t.parameters[0];if(hn(n))return n}},e.parameterIsThisKeyword=hn,e.isThisIdentifier=gn,e.isThisInTypeQuery=function(t){if(!gn(t))return!1;for(;e.isQualifiedName(t.parent)&&t.parent.left===t;)t=t.parent;return 183===t.parent.kind},e.identifierIsThisKeyword=yn,e.getAllAccessorDeclarations=function(t,n){var r,i,a,o;return Dt(n)?(r=n,174===n.kind?a=n:175===n.kind?o=n:e.Debug.fail("Accessor has wrong kind")):e.forEach(t,function(t){e.isAccessor(t)&&Ln(t)===Ln(n)&&At(t.name)===At(n.name)&&(r?i||(i=t):r=t,174!==t.kind||a||(a=t),175!==t.kind||o||(o=t))}),{firstAccessor:r,secondAccessor:i,getAccessor:a,setAccessor:o}},e.getEffectiveTypeAnnotationNode=vn,e.getTypeAnnotationNode=function(e){return e.type},e.getEffectiveReturnTypeNode=function(t){return e.isJSDocSignature(t)?t.type&&t.type.typeExpression&&t.type.typeExpression.type:t.type||(Se(t)?e.getJSDocReturnType(t):void 0)},e.getJSDocTypeParameterDeclarations=function(t){return e.flatMap(e.getJSDocTags(t),function(t){return function(t){return e.isJSDocTemplateTag(t)&&!(323===t.parent.kind&&t.parent.tags.some(Ye))}(t)?t.typeParameters:void 0})},e.getEffectiveSetAccessorTypeAnnotationNode=function(e){var t=_n(e);return t&&vn(t)},e.emitNewLineBeforeLeadingComments=bn,e.emitNewLineBeforeLeadingCommentsOfPosition=En,e.emitNewLineBeforeLeadingCommentOfPosition=function(e,t,n,r){n!==r&&mn(e,n)!==mn(e,r)&&t.writeLine()},e.emitComments=xn,e.emitDetachedComments=function(t,n,r,i,a,o,s){var c,l;if(s?0===a.pos&&(c=e.filter(e.getLeadingCommentRanges(t,a.pos),function(e){return y(t,e.pos)})):c=e.getLeadingCommentRanges(t,a.pos),c){for(var u=[],d=void 0,p=0,m=c;p=_+2)break}u.push(f),d=f}u.length&&(_=mn(n,e.last(u).end),mn(n,e.skipTrivia(t,a.pos))>=_+2&&(bn(n,r,a,c),xn(t,n,r,u,!1,!0,o,i),l={nodePos:a.pos,detachedCommentEndPos:e.last(u).end}))}return l},e.writeCommentRange=function(t,n,r,i,a,o){if(42===t.charCodeAt(i+1))for(var s=e.computeLineAndCharacterOfPosition(n,i),c=n.length,l=void 0,u=i,d=s.line;u0){var f=m%en(),_=Zt((m-f)/en());for(r.rawWrite(_);f;)r.rawWrite(" "),f--}else r.rawWrite("")}Sn(t,a,r,o,u,p),u=p}else r.writeComment(t.substring(i,a))},e.hasEffectiveModifiers=function(e){return 0!==On(e)},e.hasSyntacticModifiers=function(e){return 0!==Rn(e)},e.hasEffectiveModifier=Cn,e.hasSyntacticModifier=Dn,e.isStatic=Ln,e.hasStaticModifier=An,e.hasOverrideModifier=function(e){return Cn(e,16384)},e.hasAbstractModifier=function(e){return Dn(e,256)},e.hasAmbientModifier=function(e){return Dn(e,2)},e.hasAccessorModifier=function(e){return Dn(e,128)},e.hasEffectiveReadonlyModifier=Nn,e.hasDecorators=kn,e.getSelectedEffectiveModifierFlags=In,e.getSelectedSyntacticModifierFlags=Pn,e.getEffectiveModifierFlags=On,e.getEffectiveModifierFlagsAlwaysIncludeJSDoc=function(e){return wn(e,!0,!0)},e.getSyntacticModifierFlags=Rn,e.getEffectiveModifierFlagsNoCache=function(e){return Fn(e)|Mn(e)},e.getSyntacticModifierFlagsNoCache=Fn,e.modifiersToFlags=Gn,e.modifierToFlag=Bn,e.isLogicalOperator=function(e){return 56===e||55===e||53===e},e.isLogicalOrCoalescingAssignmentOperator=Un,e.isLogicalOrCoalescingAssignmentExpression=function(e){return Un(e.operatorToken.kind)},e.isAssignmentOperator=Vn,e.tryGetClassExtendingExpressionWithTypeArguments=Kn,e.tryGetClassImplementingOrExtendingExpressionWithTypeArguments=jn,e.isAssignmentExpression=Hn,e.isLeftHandSideOfAssignment=function(e){return Hn(e.parent)&&e.parent.left===e},e.isDestructuringAssignment=function(e){if(Hn(e,!0)){var t=e.left.kind;return 207===t||206===t}return!1},e.isExpressionWithTypeArgumentsInClassExtendsClause=Wn,e.isEntityNameExpression=$n,e.getFirstIdentifier=function(e){switch(e.kind){case 79:return e;case 163:do{e=e.left}while(79!==e.kind);return e;case 208:do{e=e.expression}while(79!==e.kind);return e}},e.isDottedName=function e(t){return 79===t.kind||108===t.kind||106===t.kind||233===t.kind||208===t.kind&&e(t.expression)||214===t.kind&&e(t.expression)},e.isPropertyAccessEntityNameExpression=qn,e.tryGetPropertyAccessOrIdentifierToString=function t(n){if(e.isPropertyAccessExpression(n)){if(void 0!==(r=t(n.expression)))return r+"."+B(n.name)}else if(e.isElementAccessExpression(n)){var r;if(void 0!==(r=t(n.expression))&&e.isPropertyName(n.argumentExpression))return r+"."+At(n.argumentExpression)}else if(e.isIdentifier(n))return e.unescapeLeadingUnderscores(n.escapedText)},e.isPrototypeAccess=zn,e.isRightSideOfQualifiedNameOrPropertyAccess=function(e){return 163===e.parent.kind&&e.parent.right===e||208===e.parent.kind&&e.parent.name===e},e.isRightSideOfAccessExpression=Jn,e.isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName=function(t){return e.isQualifiedName(t.parent)&&t.parent.right===t||e.isPropertyAccessExpression(t.parent)&&t.parent.name===t||e.isJSDocMemberName(t.parent)&&t.parent.right===t},e.isEmptyObjectLiteral=function(e){return 207===e.kind&&0===e.properties.length},e.isEmptyArrayLiteral=function(e){return 206===e.kind&&0===e.elements.length},e.getLocalSymbolForExportDefault=function(t){if(function(t){return t&&e.length(t.declarations)>0&&Dn(t.declarations[0],1024)}(t)&&t.declarations)for(var n=0,r=t.declarations;n>6|192),n.push(63&a|128)):a<65536?(n.push(a>>12|224),n.push(a>>6&63|128),n.push(63&a|128)):a<131072?(n.push(a>>18|240),n.push(a>>12&63|128),n.push(a>>6&63|128),n.push(63&a|128)):e.Debug.assert(!1,"Unexpected code point")}return n}(t),c=0,l=s.length;c>2,r=(3&s[c])<<4|s[c+1]>>4,i=(15&s[c+1])<<2|s[c+2]>>6,a=63&s[c+2],c+1>=l?i=a=64:c+2>=l&&(a=64),o+=Qn.charAt(n)+Qn.charAt(r)+Qn.charAt(i)+Qn.charAt(a),c+=3;return o}function er(t,n){var r=e.isString(n)?n:n.readFile(t);if(r){var i=e.parseConfigFileTextToJson(t,r);return i.error?void 0:i.config}}function tr(t,n){return void 0===n&&(n=t),e.Debug.assert(n>=t||-1===n),{pos:t,end:n}}function nr(e,t){return tr(t,e.end)}function rr(t){var n=e.canHaveModifiers(t)?e.findLast(t.modifiers,e.isDecorator):void 0;return n&&!yi(n.end)?nr(t,n.end):t}function ir(e,t,n){return ar(or(e,n,!1),t.end,n)}function ar(t,n,r){return 0===e.getLinesBetweenPositions(r,t,n)}function or(t,n,r){return yi(t.pos)?-1:e.skipTrivia(n.text,t.pos,!1,r)}function sr(e){return void 0!==e.initializer}function cr(e){return 33554432&e.flags?e.checkFlags:0}function lr(t){var n=t.parent;if(!n)return 0;switch(n.kind){case 214:case 206:return lr(n);case 222:case 221:var r=n.operator;return 45===r||46===r?c():0;case 223:var i=n,a=i.left,o=i.operatorToken;return a===t&&Vn(o.kind)?63===o.kind?1:c():0;case 208:return n.name!==t?0:lr(n);case 299:var s=lr(n.parent);return t===n.name?function(t){switch(t){case 0:return 1;case 1:return 0;case 2:return 2;default:return e.Debug.assertNever(t)}}(s):s;case 300:return t===n.objectAssignmentInitializer?0:lr(n.parent);default:return 0}function c(){return n.parent&&241===dt(n.parent).kind?1:2}}function ur(e,t,n){var r=n.onDeleteValue,i=n.onExistingValue;e.forEach(function(n,a){var o=t.get(a);void 0===o?(e.delete(a),r(n,a)):i&&i(n,o,a)})}function dr(t){var n;return null===(n=t.declarations)||void 0===n?void 0:n.find(e.isClassLike)}function pr(e){return 208===e.kind||209===e.kind}function mr(e){for(;pr(e);)e=e.expression;return e}function fr(e,t){this.flags=e,this.escapedName=t,this.declarations=void 0,this.valueDeclaration=void 0,this.id=void 0,this.mergeId=void 0,this.parent=void 0}function _r(t,n){this.flags=n,(e.Debug.isDebugging||e.tracing)&&(this.checker=t)}function hr(t,n){this.flags=n,e.Debug.isDebugging&&(this.checker=t)}function gr(e,t,n){this.pos=t,this.end=n,this.kind=e,this.id=0,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0,this.original=void 0}function yr(e,t,n){this.pos=t,this.end=n,this.kind=e,this.id=0,this.flags=0,this.transformFlags=0,this.parent=void 0}function vr(e,t,n){this.pos=t,this.end=n,this.kind=e,this.id=0,this.flags=0,this.transformFlags=0,this.parent=void 0,this.original=void 0,this.flowNode=void 0}function br(e,t,n){this.fileName=e,this.text=t,this.skipTrivia=n||function(e){return e}}function Er(t,n,r){return void 0===r&&(r=0),t.replace(/{(\d+)}/g,function(t,i){return""+e.Debug.checkDefined(n[+i+r])})}function xr(e){return Yn&&Yn[e.key]||e.message}function Sr(e){return void 0===e.file&&void 0!==e.start&&void 0!==e.length&&"string"==typeof e.fileName}function Tr(t,n){var r=n.fileName||"",i=n.text.length;e.Debug.assertEqual(t.fileName,r),e.Debug.assertLessThanOrEqual(t.start,i),e.Debug.assertLessThanOrEqual(t.start+t.length,i);var a={file:n,start:t.start,length:t.length,messageText:t.messageText,category:t.category,code:t.code,reportsUnnecessary:t.reportsUnnecessary};if(t.relatedInformation){a.relatedInformation=[];for(var o=0,s=t.relatedInformation;o4&&(i=Er(i,arguments,4)),{file:e,start:t,length:n,messageText:i,category:r.category,code:r.code,reportsUnnecessary:r.reportsUnnecessary,reportsDeprecated:r.reportsDeprecated}}function Dr(e){var t=xr(e);return arguments.length>1&&(t=Er(t,arguments,1)),{file:void 0,start:void 0,length:void 0,messageText:t,category:e.category,code:e.code,reportsUnnecessary:e.reportsUnnecessary,reportsDeprecated:e.reportsDeprecated}}function Lr(e){return e.file?e.file.path:void 0}function Ar(t,n){return e.compareStringsCaseSensitive(Lr(t),Lr(n))||e.compareValues(t.start,n.start)||e.compareValues(t.length,n.length)||e.compareValues(t.code,n.code)||Nr(t.messageText,n.messageText)||0}function Nr(t,n){if("string"==typeof t&&"string"==typeof n)return e.compareStringsCaseSensitive(t,n);if("string"==typeof t)return-1;if("string"==typeof n)return 1;var r=e.compareStringsCaseSensitive(t.messageText,n.messageText);if(r)return r;if(!t.next&&!n.next)return 0;if(!t.next)return-1;if(!n.next)return 1;for(var i=Math.min(t.next.length,n.next.length),a=0;an.next.length?1:0}function kr(t){if(2&t.transformFlags)return e.isJsxOpeningLikeElement(t)||e.isJsxFragment(t)?t:e.forEachChild(t,kr)}function Ir(e){return e.isDeclarationFile?void 0:kr(e)}function Pr(t){return!(t.impliedNodeFormat!==e.ModuleKind.ESNext&&!e.fileExtensionIsOneOf(t.fileName,[".cjs",".cts",".mjs",".mts"])||t.isDeclarationFile)||void 0}function wr(t){return t.target||t.module===e.ModuleKind.Node16&&9||t.module===e.ModuleKind.NodeNext&&99||0}function Or(t){return"number"==typeof t.module?t.module:wr(t)>=2?e.ModuleKind.ES2015:e.ModuleKind.CommonJS}function Rr(t){return t.moduleDetection||(Or(t)===e.ModuleKind.Node16||Or(t)===e.ModuleKind.NodeNext?e.ModuleDetectionKind.Force:e.ModuleDetectionKind.Auto)}function Mr(t){if(void 0!==t.esModuleInterop)return t.esModuleInterop;switch(Or(t)){case e.ModuleKind.Node16:case e.ModuleKind.NodeNext:return!0}}function Fr(e){return!(!e.declaration&&!e.composite)}function Gr(e,t){return void 0===e[t]?!!e.strict:!!e[t]}function Br(e){return void 0===e.allowJs?!!e.checkJs:e.allowJs}function Ur(e,t){return t.strictFlag?Gr(e,t.name):e[t.name]}function Vr(t,n){return void 0!==t&&("node_modules"===n(t)||e.startsWith(t,"@"))}e.convertToBase64=Zn,e.base64encode=function(e,t){return e&&e.base64encode?e.base64encode(t):Zn(t)},e.base64decode=function(e,t){if(e&&e.base64decode)return e.base64decode(t);for(var n=t.length,r=[],i=0;i>4&3,u=(15&o)<<4|s>>2&15,d=(3&s)<<6|63&c;0===u&&0!==s?r.push(l):0===d&&0!==c?r.push(l,u):r.push(l,u,d),i+=4}return function(e){for(var t="",n=0,r=e.length;nn;)if(!e.isWhiteSpaceLike(r.text.charCodeAt(t)))return t}(a,n,r);return e.getLinesBetweenPositions(r,null!=o?o:n,a)},e.getLinesBetweenPositionAndNextNonWhitespaceCharacter=function(t,n,r,i){var a=e.skipTrivia(r.text,t,!1,i);return e.getLinesBetweenPositions(r,t,Math.min(n,a))},e.isDeclarationNameOfEnumOrNamespace=function(t){var n=e.getParseTreeNode(t);if(n)switch(n.parent.kind){case 263:case 264:return n===n.parent.name}return!1},e.getInitializedVariables=function(t){return e.filter(t.declarations,sr)},e.isWatchSet=function(t){return t.watch&&e.hasProperty(t,"watch")},e.closeFileWatcher=function(e){e.close()},e.getCheckFlags=cr,e.getDeclarationModifierFlagsFromSymbol=function(t,n){if(void 0===n&&(n=!1),t.valueDeclaration){var r=n&&t.declarations&&e.find(t.declarations,e.isSetAccessorDeclaration)||32768&t.flags&&e.find(t.declarations,e.isGetAccessorDeclaration)||t.valueDeclaration,i=e.getCombinedModifierFlags(r);return t.parent&&32&t.parent.flags?i:-29&i}if(6&cr(t)){var a=t.checkFlags;return(1024&a?8:256&a?4:16)|(2048&a?32:0)}return 4194304&t.flags?36:0},e.skipAlias=function(e,t){return 2097152&e.flags?t.getAliasedSymbol(e):e},e.getCombinedLocalAndExportSymbolFlags=function(e){return e.exportSymbol?e.exportSymbol.flags|e.flags:e.flags},e.isWriteOnlyAccess=function(e){return 1===lr(e)},e.isWriteAccess=function(e){return 0!==lr(e)},function(e){e[e.Read=0]="Read",e[e.Write=1]="Write",e[e.ReadWrite=2]="ReadWrite"}(Xn||(Xn={})),e.compareDataObjects=function e(t,n){if(!t||!n||Object.keys(t).length!==Object.keys(n).length)return!1;for(var r in t)if("object"==typeof t[r]){if(!e(t[r],n[r]))return!1}else if("function"!=typeof t[r]&&t[r]!==n[r])return!1;return!0},e.clearMap=function(e,t){e.forEach(t),e.clear()},e.mutateMapSkippingNewValues=ur,e.mutateMap=function(e,t,n){ur(e,t,n);var r=n.createNewValue;t.forEach(function(t,n){e.has(n)||e.set(n,r(n,t))})},e.isAbstractConstructorSymbol=function(e){if(32&e.flags){var t=dr(e);return!!t&&Dn(t,256)}return!1},e.getClassLikeDeclarationOfSymbol=dr,e.getObjectFlags=function(e){return 3899393&e.flags?e.objectFlags:0},e.typeHasCallOrConstructSignatures=function(e,t){return 0!==t.getSignaturesOfType(e,0).length||0!==t.getSignaturesOfType(e,1).length},e.forSomeAncestorDirectory=function(t,n){return!!e.forEachAncestorDirectory(t,function(e){return!!n(e)||void 0})},e.isUMDExportSymbol=function(t){return!!t&&!!t.declarations&&!!t.declarations[0]&&e.isNamespaceExportDeclaration(t.declarations[0])},e.showModuleSpecifier=function(t){var n=t.moduleSpecifier;return e.isStringLiteral(n)?n.text:x(n)},e.getLastChild=function(t){var n;return e.forEachChild(t,function(e){f(e)&&(n=e)},function(e){for(var t=e.length-1;t>=0;t--)if(f(e[t])){n=e[t];break}}),n},e.addToSeen=function(e,t,n){return void 0===n&&(n=!0),!e.has(t)&&(e.set(t,n),!0)},e.isObjectTypeDeclaration=function(t){return e.isClassLike(t)||e.isInterfaceDeclaration(t)||e.isTypeLiteralNode(t)},e.isTypeNodeKind=function(e){return e>=179&&e<=202||131===e||157===e||148===e||160===e||149===e||134===e||152===e||153===e||114===e||155===e||144===e||230===e||315===e||316===e||317===e||318===e||319===e||320===e||321===e},e.isAccessExpression=pr,e.getNameOfAccessExpression=function(t){return 208===t.kind?t.name:(e.Debug.assert(209===t.kind),t.argumentExpression)},e.isBundleFileTextLike=function(e){switch(e.kind){case"text":case"internal":return!0;default:return!1}},e.isNamedImportsOrExports=function(e){return 272===e.kind||276===e.kind},e.getLeftmostAccessExpression=mr,e.forEachNameInAccessChainWalkingLeft=function(t,n){if(pr(t.parent)&&Jn(t))return function t(r){if(208===r.kind){if(void 0!==(i=n(r.name)))return i}else if(209===r.kind){if(!e.isIdentifier(r.argumentExpression)&&!e.isStringLiteralLike(r.argumentExpression))return;var i;if(void 0!==(i=n(r.argumentExpression)))return i}return pr(r.expression)?t(r.expression):e.isIdentifier(r.expression)?n(r.expression):void 0}(t.parent)},e.getLeftmostExpression=function(e,t){for(;;){switch(e.kind){case 222:e=e.operand;continue;case 223:e=e.left;continue;case 224:e=e.condition;continue;case 212:e=e.tag;continue;case 210:if(t)return e;case 231:case 209:case 208:case 232:case 353:case 235:e=e.expression;continue}return e}},e.objectAllocator={getNodeConstructor:function(){return gr},getTokenConstructor:function(){return yr},getIdentifierConstructor:function(){return vr},getPrivateIdentifierConstructor:function(){return gr},getSourceFileConstructor:function(){return gr},getSymbolConstructor:function(){return fr},getTypeConstructor:function(){return _r},getSignatureConstructor:function(){return hr},getSourceMapSourceConstructor:function(){return br}},e.setObjectAllocator=function(t){Object.assign(e.objectAllocator,t)},e.formatStringFromArgs=Er,e.setLocalizedDiagnosticMessages=function(e){Yn=e},e.maybeSetLocalizedDiagnosticMessages=function(e){!Yn&&e&&(Yn=e())},e.getLocaleSpecificMessage=xr,e.createDetachedDiagnostic=function(e,t,n,r){V(void 0,t,n);var i=xr(r);return arguments.length>4&&(i=Er(i,arguments,4)),{file:void 0,start:t,length:n,messageText:i,category:r.category,code:r.code,reportsUnnecessary:r.reportsUnnecessary,fileName:e}},e.attachFileToDiagnostics=function(e,t){for(var n=[],r=0,i=e;r2&&(n=Er(n,arguments,2)),n},e.createCompilerDiagnostic=Dr,e.createCompilerDiagnosticFromMessageChain=function(e,t){return{file:void 0,start:void 0,length:void 0,code:e.code,category:e.category,messageText:e.next?e:e.messageText,relatedInformation:t}},e.chainDiagnosticMessages=function(e,t){var n=xr(t);return arguments.length>2&&(n=Er(n,arguments,2)),{messageText:n,category:t.category,code:t.code,next:void 0===e||Array.isArray(e)?e:[e]}},e.concatenateDiagnosticMessageChains=function(e,t){for(var n=e;n.next;)n=n.next[0];n.next=[t]},e.compareDiagnostics=function t(n,r){return Ar(n,r)||function(n,r){return n.relatedInformation||r.relatedInformation?n.relatedInformation&&r.relatedInformation?e.compareValues(n.relatedInformation.length,r.relatedInformation.length)||e.forEach(n.relatedInformation,function(e,n){return t(e,r.relatedInformation[n])})||0:n.relatedInformation?-1:1:0}(n,r)||0},e.compareDiagnosticsSkipRelatedInformation=Ar,e.getLanguageVariant=function(e){return 4===e||2===e||1===e||6===e?1:0},e.getSetExternalModuleIndicator=function(t){switch(Rr(t)){case e.ModuleDetectionKind.Force:return function(t){t.externalModuleIndicator=e.isFileProbablyExternalModule(t)||!t.isDeclarationFile||void 0};case e.ModuleDetectionKind.Legacy:return function(t){t.externalModuleIndicator=e.isFileProbablyExternalModule(t)};case e.ModuleDetectionKind.Auto:var n=[e.isFileProbablyExternalModule];4!==t.jsx&&5!==t.jsx||n.push(Ir),n.push(Pr);var r=e.or.apply(void 0,n);return function(e){e.externalModuleIndicator=r(e)}}},e.getEmitScriptTarget=wr,e.getEmitModuleKind=Or,e.getEmitModuleResolutionKind=function(t){var n=t.moduleResolution;if(void 0===n)switch(Or(t)){case e.ModuleKind.CommonJS:n=e.ModuleResolutionKind.NodeJs;break;case e.ModuleKind.Node16:n=e.ModuleResolutionKind.Node16;break;case e.ModuleKind.NodeNext:n=e.ModuleResolutionKind.NodeNext;break;default:n=e.ModuleResolutionKind.Classic}return n},e.getEmitModuleDetectionKind=Rr,e.hasJsonModuleEmitEnabled=function(t){switch(Or(t)){case e.ModuleKind.CommonJS:case e.ModuleKind.AMD:case e.ModuleKind.ES2015:case e.ModuleKind.ES2020:case e.ModuleKind.ES2022:case e.ModuleKind.ESNext:case e.ModuleKind.Node16:case e.ModuleKind.NodeNext:return!0;default:return!1}},e.unreachableCodeIsError=function(e){return!1===e.allowUnreachableCode},e.unusedLabelIsError=function(e){return!1===e.allowUnusedLabels},e.getAreDeclarationMapsEnabled=function(e){return!(!Fr(e)||!e.declarationMap)},e.getESModuleInterop=Mr,e.getAllowSyntheticDefaultImports=function(t){var n=Or(t);return void 0!==t.allowSyntheticDefaultImports?t.allowSyntheticDefaultImports:Mr(t)||n===e.ModuleKind.System},e.getEmitDeclarations=Fr,e.shouldPreserveConstEnums=function(e){return!(!e.preserveConstEnums&&!e.isolatedModules)},e.isIncrementalCompilation=function(e){return!(!e.incremental&&!e.composite)},e.getStrictOptionValue=Gr,e.getAllowJSCompilerOption=Br,e.getUseDefineForClassFields=function(e){return void 0===e.useDefineForClassFields?wr(e)>=9:e.useDefineForClassFields},e.compilerOptionsAffectSemanticDiagnostics=function(t,n){return c(n,t,e.semanticDiagnosticsOptionDeclarations)},e.compilerOptionsAffectEmit=function(t,n){return c(n,t,e.affectsEmitOptionDeclarations)},e.compilerOptionsAffectDeclarationPath=function(t,n){return c(n,t,e.affectsDeclarationPathOptionDeclarations)},e.getCompilerOptionValue=Ur,e.getJSXTransformEnabled=function(e){var t=e.jsx;return 2===t||4===t||5===t},e.getJSXImplicitImportBase=function(t,n){var r=null==n?void 0:n.pragmas.get("jsximportsource"),i=e.isArray(r)?r[r.length-1]:r;return 4===t.jsx||5===t.jsx||t.jsxImportSource||i?(null==i?void 0:i.arguments.factory)||t.jsxImportSource||"react":void 0},e.getJSXRuntimeImport=function(e,t){return e?"".concat(e,"/").concat(5===t.jsx?"jsx-dev-runtime":"jsx-runtime"):void 0},e.hasZeroOrOneAsteriskCharacter=function(e){for(var t=!1,n=0;n=2&&o.length>=2&&!Vr(a[a.length-2],i)&&!Vr(o[o.length-2],i)&&i(a[a.length-1])===i(o[o.length-1]);)a.pop(),o.pop(),s=!0;return s?[e.getPathFromPathComponents(a),e.getPathFromPathComponents(o)]:void 0}(a,o,t,n)||e.emptyArray,c=s[0],l=s[1];c&&l&&r.setSymlinkedDirectory(l,{real:c,realPath:e.toPath(c,t,n)})}}},e.tryRemoveDirectoryPrefix=function(t,n,r){var i=e.tryRemovePrefix(t,n,r);return void 0===i?void 0:function(t){return e.isAnyDirectorySeparator(t.charCodeAt(0))?t.slice(1):void 0}(i)};var Kr=/[^\w\s\/]/g;function jr(e){return"\\"+e}e.regExpEscape=function(e){return e.replace(Kr,jr)};var Hr=[42,63];e.commonPackageFolders=["node_modules","bower_components","jspm_packages"];var Wr="(?!(".concat(e.commonPackageFolders.join("|"),")(/|$))"),$r={singleAsteriskRegexFragment:"([^./]|(\\.(?!min\\.js$))?)*",doubleAsteriskRegexFragment:"(/".concat(Wr,"[^/.][^/]*)*?"),replaceWildcardCharacter:function(e){return ei(e,$r.singleAsteriskRegexFragment)}},qr={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:"(/".concat(Wr,"[^/.][^/]*)*?"),replaceWildcardCharacter:function(e){return ei(e,qr.singleAsteriskRegexFragment)}},zr={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:"(/.+?)?",replaceWildcardCharacter:function(e){return ei(e,zr.singleAsteriskRegexFragment)}},Jr={files:$r,directories:qr,exclude:zr};function Xr(e,t,n){var r=Yr(e,t,n);if(r&&r.length){var i=r.map(function(e){return"(".concat(e,")")}).join("|"),a="exclude"===n?"($|/)":"$";return"^(".concat(i,")").concat(a)}}function Yr(t,n,r){if(void 0!==t&&0!==t.length)return e.flatMap(t,function(e){return e&&Zr(e,n,r,Jr[r])})}function Qr(e){return!/[.*?]/.test(e)}function Zr(t,n,r,i){var a=i.singleAsteriskRegexFragment,o=i.doubleAsteriskRegexFragment,s=i.replaceWildcardCharacter,c="",l=!1,u=e.getNormalizedPathComponents(t,n),d=e.last(u);if("exclude"===r||"**"!==d){u[0]=e.removeTrailingDirectorySeparator(u[0]),Qr(d)&&u.push("**","*");for(var p=0,m=0,f=u;m0;)c+=")?",p--;return c}}function ei(e,t){return"*"===e?t:"?"===e?"[^/]":"\\"+e}function ti(t,n,r,i,a){t=e.normalizePath(t),a=e.normalizePath(a);var o=e.combinePaths(a,t);return{includeFilePatterns:e.map(Yr(r,o,"files"),function(e){return"^".concat(e,"$")}),includeFilePattern:Xr(r,o,"files"),includeDirectoryPattern:Xr(r,o,"directories"),excludePattern:Xr(n,o,"exclude"),basePaths:ri(t,r,i)}}function ni(e,t){return new RegExp(e,t?"":"i")}function ri(t,n,r){var i=[t];if(n){for(var a=[],o=0,s=n;o=0)}function vi(e){return".ts"===e||".tsx"===e||".d.ts"===e||".cts"===e||".mts"===e||".d.mts"===e||".d.cts"===e}function bi(t){return e.find(mi,function(n){return e.fileExtensionIs(t,n)})}function Ei(t,n){return t===n||"object"==typeof t&&null!==t&&"object"==typeof n&&null!==n&&e.equalOwnProperties(t,n,Ei)}function xi(e,t){return e.pos=t,e}function Si(e,t){return e.end=t,e}function Ti(e,t,n){return Si(xi(e,t),n)}function Ci(e,t){return e&&t&&(e.parent=t),e}function Di(t){return!e.isOmittedExpression(t)}function Li(t){return e.some(e.ignoredPaths,function(n){return e.stringContains(t,n)})}function Ai(e){return 257===e.kind&&295===e.parent.kind}function Ni(e){return(+e).toString()===e}function ki(e){switch(e.kind){case 165:case 260:case 261:case 262:case 263:case 348:case 341:case 342:return!0;case 270:return e.isTypeOnly;case 273:case 278:return e.parent.parent.isTypeOnly;default:return!1}}e.removeFileExtension=fi,e.tryRemoveExtension=_i,e.removeExtension=hi,e.changeExtension=function(t,n){return e.changeAnyExtension(t,n,mi,!1)},e.tryParsePattern=gi,e.tryParsePatterns=function(t){return e.mapDefined(e.getOwnKeys(t),function(e){return gi(e)})},e.positionIsSynthesized=yi,e.extensionIsTS=vi,e.resolutionExtensionIsTSOrJson=function(e){return vi(e)||".json"===e},e.extensionFromPath=function(t){var n=bi(t);return void 0!==n?n:e.Debug.fail("File ".concat(t," has unknown extension."))},e.isAnySupportedFileExtension=function(e){return void 0!==bi(e)},e.tryGetExtensionFromPath=bi,e.isCheckJsEnabledForFile=function(e,t){return e.checkJsDirective?e.checkJsDirective.enabled:t.checkJs},e.emptyFileSystemEntries={files:e.emptyArray,directories:e.emptyArray},e.matchPatternOrExact=function(t,n){for(var r=[],i=0,a=t;ii&&(i=o)}return{min:r,max:i}},e.rangeOfNode=function(e){return{pos:v(e),end:e.end}},e.rangeOfTypeParameters=function(t,n){return{pos:n.pos-1,end:e.skipTrivia(t.text,n.end)+1}},e.skipTypeChecking=function(e,t,n){return t.skipLibCheck&&e.isDeclarationFile||t.skipDefaultLibCheck&&e.hasNoDefaultLib||n.isSourceOfProjectReferenceRedirect(e.fileName)},e.isJsonEqual=Ei,e.parsePseudoBigInt=function(e){var t;switch(e.charCodeAt(1)){case 98:case 66:t=1;break;case 111:case 79:t=3;break;case 120:case 88:t=4;break;default:for(var n=e.length-1,r=0;48===e.charCodeAt(r);)r++;return e.slice(r,n)||"0"}for(var i=e.length-1,a=(i-2)*t,o=new Uint16Array((a>>>4)+(15&a?1:0)),s=i-1,c=0;s>=2;s--,c+=t){var l=c>>>4,u=e.charCodeAt(s),d=(u<=57?u-48:10+u-(u<=70?65:97))<<(15&c);o[l]|=d;var p=d>>>16;p&&(o[l+1]|=p)}for(var m="",f=o.length-1,_=!0;_;){var h=0;for(_=!1,l=f;l>=0;l--){var g=h<<16|o[l],y=g/10|0;o[l]=y,h=g-10*y,y&&!_&&(f=l,_=!0)}m=h+m}return m},e.pseudoBigIntToString=function(e){var t=e.negative,n=e.base10Value;return(t&&"0"!==n?"-":"")+n},e.isValidTypeOnlyAliasUseSite=function(t){return!!(16777216&t.flags)||be(t)||function(t){if(79!==t.kind)return!1;var n=e.findAncestor(t.parent,function(e){switch(e.kind){case 294:return!0;case 208:case 230:return!1;default:return"quit"}});return 117===(null==n?void 0:n.token)||261===(null==n?void 0:n.parent.kind)}(t)||function(e){for(;79===e.kind||208===e.kind;)e=e.parent;if(164!==e.kind)return!1;if(Dn(e.parent,256))return!0;var t=e.parent.parent.kind;return 261===t||184===t}(t)||!(ye(t)||function(t){return e.isIdentifier(t)&&e.isShorthandPropertyAssignment(t.parent)&&t.parent.name===t}(t))},e.isIdentifierTypeReference=function(t){return e.isTypeReferenceNode(t)&&e.isIdentifier(t.typeName)},e.arrayIsHomogeneous=function(t,n){if(void 0===n&&(n=e.equateValues),t.length<2)return!0;for(var r=t[0],i=1,a=t.length;i=0?e.factory.createNumericLiteral(+t):e.factory.createStringLiteral(t,!!r)},e.isThisTypeParameter=function(e){return!!(262144&e.flags&&e.isThisType)},e.getNodeModulePathParts=function(t){var n,r=0,i=0,a=0;!function(e){e[e.BeforeNodeModules=0]="BeforeNodeModules",e[e.NodeModules=1]="NodeModules",e[e.Scope=2]="Scope",e[e.PackageContent=3]="PackageContent"}(n||(n={}));for(var o=0,s=0,c=0;s>=0;)switch(o=s,s=t.indexOf("/",o+1),c){case 0:t.indexOf(e.nodeModulesPathPart,o)===o&&(r=o,i=s,c=1);break;case 1:case 2:1===c&&"@"===t.charAt(o+1)?c=2:(a=s,c=3);break;case 3:c=t.indexOf(e.nodeModulesPathPart,o)===o?1:3}return c>1?{topLevelNodeModulesIndex:r,topLevelPackageNameIndex:i,packageRootIndex:a,fileNameIndex:o}:void 0},e.getParameterTypeNode=function(e){var t;return 343===e.kind?null===(t=e.typeExpression)||void 0===t?void 0:t.type:e.type},e.isTypeDeclaration=ki,e.canHaveExportModifier=function(t){return e.isEnumDeclaration(t)||e.isVariableStatement(t)||e.isFunctionDeclaration(t)||e.isClassDeclaration(t)||e.isInterfaceDeclaration(t)||ki(t)||e.isModuleDeclaration(t)&&!N(t)&&!A(t)}}(c||(c={})),function(e){e.createBaseNodeFactory=function(){var t,n,r,i,a;return{createBaseSourceFileNode:function(t){return new(a||(a=e.objectAllocator.getSourceFileConstructor()))(t,-1,-1)},createBaseIdentifierNode:function(t){return new(r||(r=e.objectAllocator.getIdentifierConstructor()))(t,-1,-1)},createBasePrivateIdentifierNode:function(t){return new(i||(i=e.objectAllocator.getPrivateIdentifierConstructor()))(t,-1,-1)},createBaseTokenNode:function(t){return new(n||(n=e.objectAllocator.getTokenConstructor()))(t,-1,-1)},createBaseNode:function(n){return new(t||(t=e.objectAllocator.getNodeConstructor()))(n,-1,-1)}}}}(c||(c={})),function(e){e.createParenthesizerRules=function(t){var n,r;return{getParenthesizeLeftSideOfBinaryForOperator:function(t){n||(n=new e.Map);var r=n.get(t);return r||(r=function(e){return o(t,e)},n.set(t,r)),r},getParenthesizeRightSideOfBinaryForOperator:function(t){r||(r=new e.Map);var n=r.get(t);return n||(n=function(e){return s(t,void 0,e)},r.set(t,n)),n},parenthesizeLeftSideOfBinary:o,parenthesizeRightSideOfBinary:s,parenthesizeExpressionOfComputedPropertyName:function(n){return e.isCommaSequence(n)?t.createParenthesizedExpression(n):n},parenthesizeConditionOfConditionalExpression:function(n){var r=e.getOperatorPrecedence(224,57),i=e.skipPartiallyEmittedExpressions(n),a=e.getExpressionPrecedence(i);return 1!==e.compareValues(a,r)?t.createParenthesizedExpression(n):n},parenthesizeBranchOfConditionalExpression:function(n){var r=e.skipPartiallyEmittedExpressions(n);return e.isCommaSequence(r)?t.createParenthesizedExpression(n):n},parenthesizeExpressionOfExportDefault:function(n){var r=e.skipPartiallyEmittedExpressions(n),i=e.isCommaSequence(r);if(!i)switch(e.getLeftmostExpression(r,!1).kind){case 228:case 215:i=!0}return i?t.createParenthesizedExpression(n):n},parenthesizeExpressionOfNew:function(n){var r=e.getLeftmostExpression(n,!0);switch(r.kind){case 210:return t.createParenthesizedExpression(n);case 211:return r.arguments?n:t.createParenthesizedExpression(n)}return c(n)},parenthesizeLeftSideOfAccess:c,parenthesizeOperandOfPostfixUnary:function(n){return e.isLeftHandSideExpression(n)?n:e.setTextRange(t.createParenthesizedExpression(n),n)},parenthesizeOperandOfPrefixUnary:function(n){return e.isUnaryExpression(n)?n:e.setTextRange(t.createParenthesizedExpression(n),n)},parenthesizeExpressionsOfCommaDelimitedList:function(n){var r=e.sameMap(n,l);return e.setTextRange(t.createNodeArray(r,n.hasTrailingComma),n)},parenthesizeExpressionForDisallowedComma:l,parenthesizeExpressionOfExpressionStatement:function(n){var r=e.skipPartiallyEmittedExpressions(n);if(e.isCallExpression(r)){var i=r.expression,a=e.skipPartiallyEmittedExpressions(i).kind;if(215===a||216===a){var o=t.updateCallExpression(r,e.setTextRange(t.createParenthesizedExpression(i),i),r.typeArguments,r.arguments);return t.restoreOuterExpressions(n,o,8)}}var s=e.getLeftmostExpression(r,!1).kind;return 207===s||215===s?e.setTextRange(t.createParenthesizedExpression(n),n):n},parenthesizeConciseBodyOfArrowFunction:function(n){return e.isBlock(n)||!e.isCommaSequence(n)&&207!==e.getLeftmostExpression(n,!1).kind?n:e.setTextRange(t.createParenthesizedExpression(n),n)},parenthesizeCheckTypeOfConditionalType:u,parenthesizeExtendsTypeOfConditionalType:function(e){return 191===e.kind?t.createParenthesizedType(e):e},parenthesizeConstituentTypesOfUnionType:function(n){return t.createNodeArray(e.sameMap(n,d))},parenthesizeConstituentTypeOfUnionType:d,parenthesizeConstituentTypesOfIntersectionType:function(n){return t.createNodeArray(e.sameMap(n,p))},parenthesizeConstituentTypeOfIntersectionType:p,parenthesizeOperandOfTypeOperator:m,parenthesizeOperandOfReadonlyTypeOperator:function(e){return 195===e.kind?t.createParenthesizedType(e):m(e)},parenthesizeNonArrayTypeOfPostfixType:f,parenthesizeElementTypesOfTupleType:function(n){return t.createNodeArray(e.sameMap(n,_))},parenthesizeElementTypeOfTupleType:_,parenthesizeTypeOfOptionalType:function(e){return h(e)?t.createParenthesizedType(e):f(e)},parenthesizeTypeArguments:function(n){if(e.some(n))return t.createNodeArray(e.sameMap(n,y))},parenthesizeLeadingTypeArgument:g};function i(t){if(t=e.skipPartiallyEmittedExpressions(t),e.isLiteralKind(t.kind))return t.kind;if(223===t.kind&&39===t.operatorToken.kind){if(void 0!==t.cachedLiteralKind)return t.cachedLiteralKind;var n=i(t.left),r=e.isLiteralKind(n)&&n===i(t.right)?n:0;return t.cachedLiteralKind=r,r}return 0}function a(n,r,a,o){return 214===e.skipPartiallyEmittedExpressions(r).kind?r:function(t,n,r,a){var o=e.getOperatorPrecedence(223,t),s=e.getOperatorAssociativity(223,t),c=e.skipPartiallyEmittedExpressions(n);if(!r&&216===n.kind&&o>3)return!0;var l=e.getExpressionPrecedence(c);switch(e.compareValues(l,o)){case-1:return!(!r&&1===s&&226===n.kind);case 1:return!1;case 0:if(r)return 1===s;if(e.isBinaryExpression(c)&&c.operatorToken.kind===t){if(function(e){return 41===e||51===e||50===e||52===e||27===e}(t))return!1;if(39===t){var u=a?i(a):0;if(e.isLiteralKind(u)&&u===i(c))return!1}}return 0===e.getExpressionAssociativity(c)}}(n,r,a,o)?t.createParenthesizedExpression(r):r}function o(e,t){return a(e,t,!0)}function s(e,t,n){return a(e,n,!1,t)}function c(n,r){var i=e.skipPartiallyEmittedExpressions(n);return!e.isLeftHandSideExpression(i)||211===i.kind&&!i.arguments||!r&&e.isOptionalChain(i)?e.setTextRange(t.createParenthesizedExpression(n),n):n}function l(n){var r=e.skipPartiallyEmittedExpressions(n);return e.getExpressionPrecedence(r)>e.getOperatorPrecedence(223,27)?n:e.setTextRange(t.createParenthesizedExpression(n),n)}function u(e){switch(e.kind){case 181:case 182:case 191:return t.createParenthesizedType(e)}return e}function d(e){switch(e.kind){case 189:case 190:return t.createParenthesizedType(e)}return u(e)}function p(e){switch(e.kind){case 189:case 190:return t.createParenthesizedType(e)}return d(e)}function m(e){return 190===e.kind?t.createParenthesizedType(e):p(e)}function f(e){switch(e.kind){case 192:case 195:case 183:return t.createParenthesizedType(e)}return m(e)}function _(e){return h(e)?t.createParenthesizedType(e):e}function h(t){return e.isJSDocNullableType(t)?t.postfix:e.isNamedTupleMember(t)||e.isFunctionTypeNode(t)||e.isConstructorTypeNode(t)||e.isTypeOperatorNode(t)?h(t.type):e.isConditionalTypeNode(t)?h(t.falseType):e.isUnionTypeNode(t)||e.isIntersectionTypeNode(t)?h(e.last(t.types)):!!e.isInferTypeNode(t)&&!!t.typeParameter.constraint&&h(t.typeParameter.constraint)}function g(n){return e.isFunctionOrConstructorTypeNode(n)&&n.typeParameters?t.createParenthesizedType(n):n}function y(e,t){return 0===t?g(e):e}},e.nullParenthesizerRules={getParenthesizeLeftSideOfBinaryForOperator:function(t){return e.identity},getParenthesizeRightSideOfBinaryForOperator:function(t){return e.identity},parenthesizeLeftSideOfBinary:function(e,t){return t},parenthesizeRightSideOfBinary:function(e,t,n){return n},parenthesizeExpressionOfComputedPropertyName:e.identity,parenthesizeConditionOfConditionalExpression:e.identity,parenthesizeBranchOfConditionalExpression:e.identity,parenthesizeExpressionOfExportDefault:e.identity,parenthesizeExpressionOfNew:function(t){return e.cast(t,e.isLeftHandSideExpression)},parenthesizeLeftSideOfAccess:function(t){return e.cast(t,e.isLeftHandSideExpression)},parenthesizeOperandOfPostfixUnary:function(t){return e.cast(t,e.isLeftHandSideExpression)},parenthesizeOperandOfPrefixUnary:function(t){return e.cast(t,e.isUnaryExpression)},parenthesizeExpressionsOfCommaDelimitedList:function(t){return e.cast(t,e.isNodeArray)},parenthesizeExpressionForDisallowedComma:e.identity,parenthesizeExpressionOfExpressionStatement:e.identity,parenthesizeConciseBodyOfArrowFunction:e.identity,parenthesizeCheckTypeOfConditionalType:e.identity,parenthesizeExtendsTypeOfConditionalType:e.identity,parenthesizeConstituentTypesOfUnionType:function(t){return e.cast(t,e.isNodeArray)},parenthesizeConstituentTypeOfUnionType:e.identity,parenthesizeConstituentTypesOfIntersectionType:function(t){return e.cast(t,e.isNodeArray)},parenthesizeConstituentTypeOfIntersectionType:e.identity,parenthesizeOperandOfTypeOperator:e.identity,parenthesizeOperandOfReadonlyTypeOperator:e.identity,parenthesizeNonArrayTypeOfPostfixType:e.identity,parenthesizeElementTypesOfTupleType:function(t){return e.cast(t,e.isNodeArray)},parenthesizeElementTypeOfTupleType:e.identity,parenthesizeTypeOfOptionalType:e.identity,parenthesizeTypeArguments:function(t){return t&&e.cast(t,e.isNodeArray)},parenthesizeLeadingTypeArgument:e.identity}}(c||(c={})),function(e){e.createNodeConverters=function(t){return{convertToFunctionBlock:function(n,r){if(e.isBlock(n))return n;var i=t.createReturnStatement(n);e.setTextRange(i,n);var a=t.createBlock([i],r);return e.setTextRange(a,n),a},convertToFunctionExpression:function(n){if(!n.body)return e.Debug.fail("Cannot convert a FunctionDeclaration without a body");var r=t.createFunctionExpression(n.modifiers,n.asteriskToken,n.name,n.typeParameters,n.parameters,n.type,n.body);return e.setOriginalNode(r,n),e.setTextRange(r,n),e.getStartsOnNewLine(n)&&e.setStartsOnNewLine(r,!0),r},convertToArrayAssignmentElement:n,convertToObjectAssignmentElement:r,convertToAssignmentPattern:i,convertToObjectAssignmentPattern:a,convertToArrayAssignmentPattern:o,convertToAssignmentElementTarget:s};function n(n){if(e.isBindingElement(n)){if(n.dotDotDotToken)return e.Debug.assertNode(n.name,e.isIdentifier),e.setOriginalNode(e.setTextRange(t.createSpreadElement(n.name),n),n);var r=s(n.name);return n.initializer?e.setOriginalNode(e.setTextRange(t.createAssignment(r,n.initializer),n),n):r}return e.cast(n,e.isExpression)}function r(n){if(e.isBindingElement(n)){if(n.dotDotDotToken)return e.Debug.assertNode(n.name,e.isIdentifier),e.setOriginalNode(e.setTextRange(t.createSpreadAssignment(n.name),n),n);if(n.propertyName){var r=s(n.name);return e.setOriginalNode(e.setTextRange(t.createPropertyAssignment(n.propertyName,n.initializer?t.createAssignment(r,n.initializer):r),n),n)}return e.Debug.assertNode(n.name,e.isIdentifier),e.setOriginalNode(e.setTextRange(t.createShorthandPropertyAssignment(n.name,n.initializer),n),n)}return e.cast(n,e.isObjectLiteralElementLike)}function i(e){switch(e.kind){case 204:case 206:return o(e);case 203:case 207:return a(e)}}function a(n){return e.isObjectBindingPattern(n)?e.setOriginalNode(e.setTextRange(t.createObjectLiteralExpression(e.map(n.elements,r)),n),n):e.cast(n,e.isObjectLiteralExpression)}function o(r){return e.isArrayBindingPattern(r)?e.setOriginalNode(e.setTextRange(t.createArrayLiteralExpression(e.map(r.elements,n)),r),r):e.cast(r,e.isArrayLiteralExpression)}function s(t){return e.isBindingPattern(t)?i(t):e.cast(t,e.isExpression)}},e.nullNodeConverters={convertToFunctionBlock:e.notImplemented,convertToFunctionExpression:e.notImplemented,convertToArrayAssignmentElement:e.notImplemented,convertToObjectAssignmentElement:e.notImplemented,convertToAssignmentPattern:e.notImplemented,convertToObjectAssignmentPattern:e.notImplemented,convertToArrayAssignmentPattern:e.notImplemented,convertToAssignmentElementTarget:e.notImplemented}}(c||(c={})),function(e){var t,r,i=0;function a(t,a){var f=8&t?o:s,_=e.memoize(function(){return 1&t?e.nullParenthesizerRules:e.createParenthesizerRules(k)}),h=e.memoize(function(){return 2&t?e.nullNodeConverters:e.createNodeConverters(k)}),g=e.memoizeOne(function(e){return function(t,n){return Bt(t,e,n)}}),y=e.memoizeOne(function(e){return function(t){return Ft(e,t)}}),b=e.memoizeOne(function(e){return function(t){return Gt(t,e)}}),E=e.memoizeOne(function(e){return function(){return function(e){return P(e)}(e)}}),x=e.memoizeOne(function(e){return function(t){return ur(e,t)}}),S=e.memoizeOne(function(e){return function(t,n){return function(e,t,n){return t.type!==n?f(ur(e,n),t):t}(e,t,n)}}),T=e.memoizeOne(function(e){return function(t,n){return lr(e,t,n)}}),C=e.memoizeOne(function(e){return function(t,n){return function(e,t,n){return t.type!==n?f(lr(e,n,t.postfix),t):t}(e,t,n)}}),D=e.memoizeOne(function(e){return function(t,n){return kr(e,t,n)}}),L=e.memoizeOne(function(e){return function(t,n,r){return function(e,t,n,r){return void 0===n&&(n=_r(t)),t.tagName!==n||t.comment!==r?f(kr(e,n,r),t):t}(e,t,n,r)}}),A=e.memoizeOne(function(e){return function(t,n,r){return Ir(e,t,n,r)}}),N=e.memoizeOne(function(e){return function(t,n,r,i){return function(e,t,n,r,i){return void 0===n&&(n=_r(t)),t.tagName!==n||t.typeExpression!==r||t.comment!==i?f(Ir(e,n,r,i),t):t}(e,t,n,r,i)}}),k={get parenthesizer(){return _()},get converters(){return h()},baseFactory:a,flags:t,createNodeArray:I,createNumericLiteral:H,createBigIntLiteral:W,createStringLiteral:q,createStringLiteralFromNode:function(t){var n=$(e.getTextOfIdentifierOrLiteral(t),void 0);return n.textSourceNode=t,n},createRegularExpressionLiteral:z,createLiteralLikeNode:function(e,t){switch(e){case 8:return H(t,0);case 9:return W(t);case 10:return q(t,void 0);case 11:return Ur(t,!1);case 12:return Ur(t,!0);case 13:return z(t);case 14:return Ht(e,t,void 0,0)}},createIdentifier:Y,updateIdentifier:function(t,n){return t.typeArguments!==n?f(Y(e.idText(t),n),t):t},createTempVariable:Q,createLoopVariable:function(e){var t=2;return e&&(t|=8),X("",t,void 0,void 0)},createUniqueName:function(t,n,r,i){return void 0===n&&(n=0),e.Debug.assert(!(7&n),"Argument out of range: flags"),e.Debug.assert(32!=(48&n),"GeneratedIdentifierFlags.FileLevel cannot be set without also setting GeneratedIdentifierFlags.Optimistic"),X(t,3|n,r,i)},getGeneratedNameForNode:Z,createPrivateIdentifier:function(t){return e.startsWith(t,"#")||e.Debug.fail("First character of private identifier must be #: "+t),ee(t)},createUniquePrivateName:function(t,n,r){return t&&!e.startsWith(t,"#")&&e.Debug.fail("First character of private identifier must be #: "+t),te(null!=t?t:"",8|(t?3:1),n,r)},getGeneratedPrivateNameForNode:function(t,n,r){var i=te(e.isMemberName(t)?e.formatGeneratedName(!0,n,t,r,e.idText):"#generated@".concat(e.getNodeId(t)),4|(n||r?16:0),n,r);return i.original=t,i},createToken:re,createSuper:function(){return re(106)},createThis:ie,createNull:function(){return re(104)},createTrue:ae,createFalse:oe,createModifier:se,createModifiersFromModifierFlags:ce,createQualifiedName:le,updateQualifiedName:function(e,t,n){return e.left!==t||e.right!==n?f(le(t,n),e):e},createComputedPropertyName:ue,updateComputedPropertyName:function(e,t){return e.expression!==t?f(ue(t),e):e},createTypeParameterDeclaration:de,updateTypeParameterDeclaration:pe,createParameterDeclaration:me,updateParameterDeclaration:fe,createDecorator:_e,updateDecorator:function(e,t){return e.expression!==t?f(_e(t),e):e},createPropertySignature:he,updatePropertySignature:ge,createPropertyDeclaration:ye,updatePropertyDeclaration:ve,createMethodSignature:be,updateMethodSignature:Ee,createMethodDeclaration:xe,updateMethodDeclaration:Se,createConstructorDeclaration:Ce,updateConstructorDeclaration:De,createGetAccessorDeclaration:Le,updateGetAccessorDeclaration:Ae,createSetAccessorDeclaration:Ne,updateSetAccessorDeclaration:ke,createCallSignature:Ie,updateCallSignature:function(e,t,n,r){return e.typeParameters!==t||e.parameters!==n||e.type!==r?F(Ie(t,n,r),e):e},createConstructSignature:Pe,updateConstructSignature:function(e,t,n,r){return e.typeParameters!==t||e.parameters!==n||e.type!==r?F(Pe(t,n,r),e):e},createIndexSignature:we,updateIndexSignature:Oe,createClassStaticBlockDeclaration:Te,updateClassStaticBlockDeclaration:function(e,t){return e.body!==t?((n=Te(t))!==(r=e)&&(n.illegalDecorators=r.illegalDecorators,n.modifiers=r.modifiers),f(n,r)):e;var n,r},createTemplateLiteralTypeSpan:Re,updateTemplateLiteralTypeSpan:function(e,t,n){return e.type!==t||e.literal!==n?f(Re(t,n),e):e},createKeywordTypeNode:function(e){return re(e)},createTypePredicateNode:Me,updateTypePredicateNode:function(e,t,n,r){return e.assertsModifier!==t||e.parameterName!==n||e.type!==r?f(Me(t,n,r),e):e},createTypeReferenceNode:Fe,updateTypeReferenceNode:function(e,t,n){return e.typeName!==t||e.typeArguments!==n?f(Fe(t,n),e):e},createFunctionTypeNode:Ge,updateFunctionTypeNode:function(e,t,n,r){return e.typeParameters!==t||e.parameters!==n||e.type!==r?((i=Ge(t,n,r))!==(a=e)&&(i.modifiers=a.modifiers),F(i,a)):e;var i,a},createConstructorTypeNode:Be,updateConstructorTypeNode:function(){for(var t=[],n=0;n10?ii(t):e.reduceLeft(t,k.createComma)},getInternalName:function(e,t,n){return pi(e,t,n,49152)},getLocalName:function(e,t,n){return pi(e,t,n,16384)},getExportName:mi,getDeclarationName:function(e,t,n){return pi(e,t,n)},getNamespaceMemberName:fi,getExternalModuleOrNamespaceExportName:function(t,n,r,i){return t&&e.hasSyntacticModifier(n,1)?fi(t,pi(n),r,i):mi(n,r,i)},restoreOuterExpressions:function t(n,r,i){return void 0===i&&(i=15),n&&e.isOuterExpression(n,i)&&(a=n,!(e.isParenthesizedExpression(a)&&e.nodeIsSynthesized(a)&&e.nodeIsSynthesized(e.getSourceMapRange(a))&&e.nodeIsSynthesized(e.getCommentRange(a)))||e.some(e.getSyntheticLeadingComments(a))||e.some(e.getSyntheticTrailingComments(a)))?function(e,t){switch(e.kind){case 214:return At(e,t);case 213:return Dt(e,e.type,t);case 231:return Yt(e,t,e.type);case 235:return tn(e,t,e.type);case 232:return Zt(e,t);case 353:return ni(e,t)}}(n,t(n.expression,r)):r;var a},restoreEnclosingLabel:function t(n,r,i){if(!r)return n;var a=Tn(r,r.label,e.isLabeledStatement(r.statement)?t(n,r.statement):n);return i&&i(r),a},createUseStrictPrologue:hi,copyPrologue:function(e,t,n,r){return yi(e,t,gi(e,t,0,n),r)},copyStandardPrologue:gi,copyCustomPrologue:yi,ensureUseStrict:function(t){return e.findUseStrictPrologue(t)?t:e.setTextRange(I(n([hi()],t,!0)),t)},liftToBlock:function(t){return e.Debug.assert(e.every(t,e.isStatementOrBlock),"Cannot lift nodes to a Block."),e.singleOrUndefined(t)||sn(t)},mergeLexicalEnvironment:function(t,r){if(!e.some(r))return t;var i=vi(t,e.isPrologueDirective,0),a=vi(t,e.isHoistedFunction,i),o=vi(t,e.isHoistedVariableStatement,a),s=vi(r,e.isPrologueDirective,0),c=vi(r,e.isHoistedFunction,s),l=vi(r,e.isHoistedVariableStatement,c),u=vi(r,e.isCustomPrologue,l);e.Debug.assert(u===r.length,"Expected declarations to be valid standard or custom prologues");var d=e.isNodeArray(t)?t.slice():t;if(u>l&&d.splice.apply(d,n([o,0],r.slice(l,u),!1)),l>c&&d.splice.apply(d,n([a,0],r.slice(c,l),!1)),c>s&&d.splice.apply(d,n([i,0],r.slice(s,c),!1)),s>0)if(0===i)d.splice.apply(d,n([0,0],r.slice(0,s),!1));else{for(var p=new e.Map,m=0;m=0;m--){var _=r[m];p.has(_.expression.text)||d.unshift(_)}}return e.isNodeArray(t)?e.setTextRange(I(d,t.hasTrailingComma),t):t},updateModifiers:function(t,n){var r,i;return i="number"==typeof n?ce(n):n,e.isTypeParameterDeclaration(t)?pe(t,i,t.name,t.constraint,t.default):e.isParameter(t)?fe(t,i,t.dotDotDotToken,t.name,t.questionToken,t.type,t.initializer):e.isConstructorTypeNode(t)?Ke(t,i,t.typeParameters,t.parameters,t.type):e.isPropertySignature(t)?ge(t,i,t.name,t.questionToken,t.type):e.isPropertyDeclaration(t)?ve(t,i,t.name,null!==(r=t.questionToken)&&void 0!==r?r:t.exclamationToken,t.type,t.initializer):e.isMethodSignature(t)?Ee(t,i,t.name,t.questionToken,t.typeParameters,t.parameters,t.type):e.isMethodDeclaration(t)?Se(t,i,t.asteriskToken,t.name,t.questionToken,t.typeParameters,t.parameters,t.type,t.body):e.isConstructorDeclaration(t)?De(t,i,t.parameters,t.body):e.isGetAccessorDeclaration(t)?Ae(t,i,t.name,t.parameters,t.type,t.body):e.isSetAccessorDeclaration(t)?ke(t,i,t.name,t.parameters,t.body):e.isIndexSignatureDeclaration(t)?Oe(t,i,t.parameters,t.type):e.isFunctionExpression(t)?kt(t,i,t.asteriskToken,t.name,t.typeParameters,t.parameters,t.type,t.body):e.isArrowFunction(t)?Pt(t,i,t.typeParameters,t.parameters,t.type,t.equalsGreaterThanToken,t.body):e.isClassExpression(t)?zt(t,i,t.name,t.typeParameters,t.heritageClauses,t.members):e.isVariableStatement(t)?ln(t,i,t.declarationList):e.isFunctionDeclaration(t)?kn(t,i,t.asteriskToken,t.name,t.typeParameters,t.parameters,t.type,t.body):e.isClassDeclaration(t)?Pn(t,i,t.name,t.typeParameters,t.heritageClauses,t.members):e.isInterfaceDeclaration(t)?On(t,i,t.name,t.typeParameters,t.heritageClauses,t.members):e.isTypeAliasDeclaration(t)?Mn(t,i,t.name,t.typeParameters,t.type):e.isEnumDeclaration(t)?Gn(t,i,t.name,t.members):e.isModuleDeclaration(t)?Un(t,i,t.name,t.body):e.isImportEqualsDeclaration(t)?Wn(t,i,t.isTypeOnly,t.name,t.moduleReference):e.isImportDeclaration(t)?qn(t,i,t.importClause,t.moduleSpecifier,t.assertClause):e.isExportAssignment(t)?rr(t,i,t.expression):e.isExportDeclaration(t)?ar(t,i,t.isTypeOnly,t.exportClause,t.moduleSpecifier,t.assertClause):e.Debug.assertNever(t)}};return k;function I(t,n){if(void 0===t||t===e.emptyArray)t=[];else if(e.isNodeArray(t)){if(void 0===n||t.hasTrailingComma===n)return void 0===t.transformFlags&&m(t),e.Debug.attachNodeArrayDebugInfo(t),t;var r=t.slice();return r.pos=t.pos,r.end=t.end,r.hasTrailingComma=n,r.transformFlags=t.transformFlags,e.Debug.attachNodeArrayDebugInfo(r),r}var i=t.length,a=i>=1&&i<=4?t.slice():t;return e.setTextRangePosEnd(a,-1,-1),a.hasTrailingComma=!!n,m(a),e.Debug.attachNodeArrayDebugInfo(a),a}function P(e){return a.createBaseNode(e)}function w(e){var t=P(e);return t.symbol=void 0,t.localSymbol=void 0,t.locals=void 0,t.nextContainer=void 0,t}function O(t,n,r){var i=w(t);if(r=Ei(r),i.name=r,e.canHaveModifiers(i)&&(i.modifiers=bi(n),i.transformFlags|=p(i.modifiers)),r)switch(i.kind){case 171:case 174:case 175:case 169:case 299:if(e.isIdentifier(r)){i.transformFlags|=u(r);break}default:i.transformFlags|=d(r)}return i}function R(e,t,n,r){var i=O(e,t,n);return i.typeParameters=bi(r),i.transformFlags|=p(i.typeParameters),r&&(i.transformFlags|=1),i}function M(e,t,n,r,i,a){var o=R(e,t,n,r);return o.parameters=I(i),o.type=a,o.transformFlags|=p(o.parameters)|d(o.type),a&&(o.transformFlags|=1),o.typeArguments=void 0,o}function F(e,t){return e!==t&&(e.typeArguments=t.typeArguments),f(e,t)}function G(e,t,n,r,i,a,o){var s=M(e,t,n,r,i,a);return s.body=o,s.transformFlags|=-67108865&d(s.body),o||(s.transformFlags|=1),s}function B(e,t,n,r,i){var a=R(e,t,n,r);return a.heritageClauses=bi(i),a.transformFlags|=p(a.heritageClauses),a}function U(e,t,n,r,i,a){var o=B(e,t,n,r,i);return o.members=I(a),o.transformFlags|=p(o.members),o}function V(e,t,n,r){var i=O(e,t,n);return i.initializer=r,i.transformFlags|=d(i.initializer),i}function K(e,t,n,r,i){var a=V(e,t,n,i);return a.type=r,a.transformFlags|=d(r),r&&(a.transformFlags|=1),a}function j(e,t){var n=ne(e);return n.text=t,n}function H(e,t){void 0===t&&(t=0);var n=j(8,"number"==typeof e?e+"":e);return n.numericLiteralFlags=t,384&t&&(n.transformFlags|=1024),n}function W(t){var n=j(9,"string"==typeof t?t:e.pseudoBigIntToString(t)+"n");return n.transformFlags|=4,n}function $(e,t){var n=j(10,e);return n.singleQuote=t,n}function q(e,t,n){var r=$(e,t);return r.hasExtendedUnicodeEscape=n,n&&(r.transformFlags|=1024),r}function z(e){return j(13,e)}function J(t,n){void 0===n&&t&&(n=e.stringToToken(t)),79===n&&(n=void 0);var r=a.createBaseIdentifierNode(79);return r.originalKeywordKind=n,r.escapedText=e.escapeLeadingUnderscores(t),r}function X(e,t,n,r){var a=J(e,void 0);return a.autoGenerateFlags=t,a.autoGenerateId=i,a.autoGeneratePrefix=n,a.autoGenerateSuffix=r,i++,a}function Y(e,t,n,r){var i=J(e,n);return t&&(i.typeArguments=I(t)),133===i.originalKeywordKind&&(i.transformFlags|=67108864),r&&(i.hasExtendedUnicodeEscape=r,i.transformFlags|=1024),i}function Q(e,t,n,r){var i=1;t&&(i|=8);var a=X("",i,n,r);return e&&e(a),a}function Z(t,n,r,i){void 0===n&&(n=0),e.Debug.assert(!(7&n),"Argument out of range: flags"),(r||i)&&(n|=16);var a=X(t?e.isMemberName(t)?e.formatGeneratedName(!1,r,t,i,e.idText):"generated@".concat(e.getNodeId(t)):"",4|n,r,i);return a.original=t,a}function ee(t){var n=a.createBasePrivateIdentifierNode(80);return n.escapedText=e.escapeLeadingUnderscores(t),n.transformFlags|=16777216,n}function te(e,t,n,r){var a=ee(e);return a.autoGenerateFlags=t,a.autoGenerateId=i,a.autoGeneratePrefix=n,a.autoGenerateSuffix=r,i++,a}function ne(e){return a.createBaseTokenNode(e)}function re(t){e.Debug.assert(t>=0&&t<=162,"Invalid token"),e.Debug.assert(t<=14||t>=17,"Invalid token. Use 'createTemplateLiteralLikeNode' to create template literals."),e.Debug.assert(t<=8||t>=14,"Invalid token. Use 'createLiteralLikeNode' to create literals."),e.Debug.assert(79!==t,"Invalid token. Use 'createIdentifier' to create identifiers");var n=ne(t),r=0;switch(t){case 132:r=384;break;case 123:case 121:case 122:case 146:case 126:case 136:case 85:case 131:case 148:case 160:case 144:case 149:case 101:case 145:case 161:case 152:case 134:case 153:case 114:case 157:case 155:r=1;break;case 106:r=134218752;break;case 124:r=1024;break;case 127:r=16777216;break;case 108:r=16384}return r&&(n.transformFlags|=r),n}function ie(){return re(108)}function ae(){return re(110)}function oe(){return re(95)}function se(e){return re(e)}function ce(e){var t=[];return 1&e&&t.push(se(93)),2&e&&t.push(se(136)),1024&e&&t.push(se(88)),2048&e&&t.push(se(85)),4&e&&t.push(se(123)),8&e&&t.push(se(121)),16&e&&t.push(se(122)),256&e&&t.push(se(126)),32&e&&t.push(se(124)),16384&e&&t.push(se(161)),64&e&&t.push(se(146)),128&e&&t.push(se(127)),512&e&&t.push(se(132)),32768&e&&t.push(se(101)),65536&e&&t.push(se(145)),t.length?t:void 0}function le(e,t){var n=P(163);return n.left=e,n.right=Ei(t),n.transformFlags|=d(n.left)|u(n.right),n}function ue(e){var t=P(164);return t.expression=_().parenthesizeExpressionOfComputedPropertyName(e),t.transformFlags|=132096|d(t.expression),t}function de(e,t,n,r){var i=O(165,e,t);return i.constraint=n,i.default=r,i.transformFlags=1,i}function pe(e,t,n,r,i){return e.modifiers!==t||e.name!==n||e.constraint!==r||e.default!==i?f(de(t,n,r,i),e):e}function me(t,n,r,i,a,o){var s=K(166,t,r,a,o&&_().parenthesizeExpressionForDisallowedComma(o));return s.dotDotDotToken=n,s.questionToken=i,e.isThisIdentifier(s.name)?s.transformFlags=1:(s.transformFlags|=d(s.dotDotDotToken)|d(s.questionToken),i&&(s.transformFlags|=1),16476&e.modifiersToFlags(s.modifiers)&&(s.transformFlags|=8192),(o||n)&&(s.transformFlags|=1024)),s}function fe(e,t,n,r,i,a,o){return e.modifiers!==t||e.dotDotDotToken!==n||e.name!==r||e.questionToken!==i||e.type!==a||e.initializer!==o?f(me(t,n,r,i,a,o),e):e}function _e(e){var t=P(167);return t.expression=_().parenthesizeLeftSideOfAccess(e,!1),t.transformFlags|=33562625|d(t.expression),t}function he(e,t,n,r){var i=O(168,e,t);return i.type=r,i.questionToken=n,i.transformFlags=1,i.initializer=void 0,i}function ge(e,t,n,r,i){return e.modifiers!==t||e.name!==n||e.questionToken!==r||e.type!==i?((a=he(t,n,r,i))!==(o=e)&&(a.initializer=o.initializer),f(a,o)):e;var a,o}function ye(t,n,r,i,a){var o=K(169,t,n,i,a);return o.questionToken=r&&e.isQuestionToken(r)?r:void 0,o.exclamationToken=r&&e.isExclamationToken(r)?r:void 0,o.transformFlags|=d(o.questionToken)|d(o.exclamationToken)|16777216,(e.isComputedPropertyName(o.name)||e.hasStaticModifier(o)&&o.initializer)&&(o.transformFlags|=8192),(r||2&e.modifiersToFlags(o.modifiers))&&(o.transformFlags|=1),o}function ve(t,n,r,i,a,o){return t.modifiers!==n||t.name!==r||t.questionToken!==(void 0!==i&&e.isQuestionToken(i)?i:void 0)||t.exclamationToken!==(void 0!==i&&e.isExclamationToken(i)?i:void 0)||t.type!==a||t.initializer!==o?f(ye(n,r,i,a,o),t):t}function be(e,t,n,r,i,a){var o=M(170,e,t,r,i,a);return o.questionToken=n,o.transformFlags=1,o}function Ee(e,t,n,r,i,a,o){return e.modifiers!==t||e.name!==n||e.questionToken!==r||e.typeParameters!==i||e.parameters!==a||e.type!==o?F(be(t,n,r,i,a,o),e):e}function xe(t,n,r,i,a,o,s,c){var l=G(171,t,r,a,o,s,c);return l.asteriskToken=n,l.questionToken=i,l.transformFlags|=d(l.asteriskToken)|d(l.questionToken)|1024,i&&(l.transformFlags|=1),512&e.modifiersToFlags(l.modifiers)?l.transformFlags|=n?128:256:n&&(l.transformFlags|=2048),l.exclamationToken=void 0,l}function Se(e,t,n,r,i,a,o,s,c){return e.modifiers!==t||e.asteriskToken!==n||e.name!==r||e.questionToken!==i||e.typeParameters!==a||e.parameters!==o||e.type!==s||e.body!==c?((l=xe(t,n,r,i,a,o,s,c))!==(u=e)&&(l.exclamationToken=u.exclamationToken),f(l,u)):e;var l,u}function Te(e){var t=R(172,void 0,void 0,void 0);return t.body=e,t.transformFlags=16777216|d(e),t.illegalDecorators=void 0,t.modifiers=void 0,t}function Ce(e,t,n){var r=G(173,e,void 0,void 0,t,void 0,n);return r.transformFlags|=1024,r.illegalDecorators=void 0,r.typeParameters=void 0,r.type=void 0,r}function De(e,t,n,r){return e.modifiers!==t||e.parameters!==n||e.body!==r?((i=Ce(t,n,r))!==(a=e)&&(i.illegalDecorators=a.illegalDecorators,i.typeParameters=a.typeParameters,i.type=a.type),F(i,a)):e;var i,a}function Le(e,t,n,r,i){var a=G(174,e,t,void 0,n,r,i);return a.typeParameters=void 0,a}function Ae(e,t,n,r,i,a){return e.modifiers!==t||e.name!==n||e.parameters!==r||e.type!==i||e.body!==a?((o=Le(t,n,r,i,a))!==(s=e)&&(o.typeParameters=s.typeParameters),F(o,s)):e;var o,s}function Ne(e,t,n,r){var i=G(175,e,t,void 0,n,void 0,r);return i.typeParameters=void 0,i.type=void 0,i}function ke(e,t,n,r,i){return e.modifiers!==t||e.name!==n||e.parameters!==r||e.body!==i?((a=Ne(t,n,r,i))!==(o=e)&&(a.typeParameters=o.typeParameters,a.type=o.type),F(a,o)):e;var a,o}function Ie(e,t,n){var r=M(176,void 0,void 0,e,t,n);return r.transformFlags=1,r}function Pe(e,t,n){var r=M(177,void 0,void 0,e,t,n);return r.transformFlags=1,r}function we(e,t,n){var r=M(178,e,void 0,void 0,t,n);return r.transformFlags=1,r}function Oe(e,t,n,r){return e.parameters!==n||e.type!==r||e.modifiers!==t?F(we(t,n,r),e):e}function Re(e,t){var n=P(201);return n.type=e,n.literal=t,n.transformFlags=1,n}function Me(e,t,n){var r=P(179);return r.assertsModifier=e,r.parameterName=Ei(t),r.type=n,r.transformFlags=1,r}function Fe(e,t){var n=P(180);return n.typeName=Ei(e),n.typeArguments=t&&_().parenthesizeTypeArguments(I(t)),n.transformFlags=1,n}function Ge(e,t,n){var r=M(181,void 0,void 0,e,t,n);return r.transformFlags=1,r.modifiers=void 0,r}function Be(){for(var t=[],n=0;n0;default:return!0}}function pi(t,n,r,i){void 0===i&&(i=0);var a=e.getNameOfDeclaration(t);if(a&&e.isIdentifier(a)&&!e.isGeneratedIdentifier(a)){var o=e.setParent(e.setTextRange(oi(a),a),a.parent);return i|=e.getEmitFlags(a),r||(i|=48),n||(i|=1536),i&&e.setEmitFlags(o,i),o}return Z(t)}function mi(e,t,n){return pi(e,t,n,8192)}function fi(t,n,r,i){var a=ft(t,e.nodeIsSynthesized(n)?n:oi(n));e.setTextRange(a,n);var o=0;return i||(o|=48),r||(o|=1536),o&&e.setEmitFlags(a,o),a}function _i(t){return e.isStringLiteral(t.expression)&&"use strict"===t.expression.text}function hi(){return e.startOnNewLine(dn(q("use strict")))}function gi(t,n,r,i){void 0===r&&(r=0),e.Debug.assert(0===n.length,"Prologue directives should be at the first statement in the target statements array");for(var a=!1,o=t.length;r=179&&e<=202)return-2;switch(e){case 210:case 211:case 206:case 203:case 204:return-2147450880;case 264:return-1941676032;case 166:case 213:case 235:case 231:case 353:case 214:case 106:case 208:case 209:default:return-2147483648;case 216:return-2072174592;case 215:case 259:return-1937940480;case 258:return-2146893824;case 260:case 228:return-2147344384;case 173:return-1937948672;case 169:return-2013249536;case 171:case 174:case 175:return-2005057536;case 131:case 148:case 160:case 144:case 152:case 149:case 134:case 153:case 114:case 165:case 168:case 170:case 176:case 177:case 178:case 261:case 262:return-2;case 207:return-2147278848;case 295:return-2147418112}}e.getTransformFlagsSubtreeExclusions=f;var _=e.createBaseNodeFactory();function h(e){return e.flags|=8,e}var g,y={createBaseSourceFileNode:function(e){return h(_.createBaseSourceFileNode(e))},createBaseIdentifierNode:function(e){return h(_.createBaseIdentifierNode(e))},createBasePrivateIdentifierNode:function(e){return h(_.createBasePrivateIdentifierNode(e))},createBaseTokenNode:function(e){return h(_.createBaseTokenNode(e))},createBaseNode:function(e){return h(_.createBaseNode(e))}};function v(t,n){if(t.original=n,n){var r=n.emitNode;r&&(t.emitNode=function(t,n){var r=t.flags,i=t.leadingComments,a=t.trailingComments,o=t.commentRange,s=t.sourceMapRange,c=t.tokenSourceMapRanges,l=t.constantValue,u=t.helpers,d=t.startsOnNewLine,p=t.snippetElement;if(n||(n={}),i&&(n.leadingComments=e.addRange(i.slice(),n.leadingComments)),a&&(n.trailingComments=e.addRange(a.slice(),n.trailingComments)),r&&(n.flags=-268435457&r),o&&(n.commentRange=o),s&&(n.sourceMapRange=s),c&&(n.tokenSourceMapRanges=function(e,t){for(var n in t||(t=[]),e)t[n]=e[n];return t}(c,n.tokenSourceMapRanges)),void 0!==l&&(n.constantValue=l),u)for(var m=0,f=u;m0&&(o[l-c]=u)}c>0&&(o.length-=c)}},e.getSnippetElement=function(e){var t;return null===(t=e.emitNode)||void 0===t?void 0:t.snippetElement},e.setSnippetElement=function(e,n){return t(e).snippetElement=n,e},e.ignoreSourceNewlines=function(e){return t(e).flags|=134217728,e},e.setTypeNode=function(e,n){return t(e).typeNode=n,e},e.getTypeNode=function(e){var t;return null===(t=e.emitNode)||void 0===t?void 0:t.typeNode}}(c||(c={})),function(e){function t(e){for(var t=[],n=1;n=2?r.createCallExpression(r.createPropertyAccessExpression(r.createIdentifier("Object"),"assign"),void 0,n):(t.requestEmitHelper(e.assignHelper),r.createCallExpression(o("__assign"),void 0,n))},createAwaitHelper:function(n){return t.requestEmitHelper(e.awaitHelper),r.createCallExpression(o("__await"),void 0,[n])},createAsyncGeneratorHelper:function(n,i){return t.requestEmitHelper(e.awaitHelper),t.requestEmitHelper(e.asyncGeneratorHelper),(n.emitNode||(n.emitNode={})).flags|=786432,r.createCallExpression(o("__asyncGenerator"),void 0,[i?r.createThis():r.createVoidZero(),r.createIdentifier("arguments"),n])},createAsyncDelegatorHelper:function(n){return t.requestEmitHelper(e.awaitHelper),t.requestEmitHelper(e.asyncDelegator),r.createCallExpression(o("__asyncDelegator"),void 0,[n])},createAsyncValuesHelper:function(n){return t.requestEmitHelper(e.asyncValues),r.createCallExpression(o("__asyncValues"),void 0,[n])},createRestHelper:function(n,i,a,s){t.requestEmitHelper(e.restHelper);for(var c=[],l=0,u=0;u= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n };'},e.metadataHelper={name:"typescript:metadata",importName:"__metadata",scoped:!1,priority:3,text:'\n var __metadata = (this && this.__metadata) || function (k, v) {\n if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);\n };'},e.paramHelper={name:"typescript:param",importName:"__param",scoped:!1,priority:4,text:"\n var __param = (this && this.__param) || function (paramIndex, decorator) {\n return function (target, key) { decorator(target, key, paramIndex); }\n };"},e.assignHelper={name:"typescript:assign",importName:"__assign",scoped:!1,priority:1,text:"\n var __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n };"},e.awaitHelper={name:"typescript:await",importName:"__await",scoped:!1,text:"\n var __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); }"},e.asyncGeneratorHelper={name:"typescript:asyncGenerator",importName:"__asyncGenerator",scoped:!1,dependencies:[e.awaitHelper],text:'\n var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) {\n if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\n return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;\n 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); }); }; }\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\n function fulfill(value) { resume("next", value); }\n function reject(value) { resume("throw", value); }\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\n };'},e.asyncDelegator={name:"typescript:asyncDelegator",importName:"__asyncDelegator",scoped:!1,dependencies:[e.awaitHelper],text:'\n var __asyncDelegator = (this && this.__asyncDelegator) || function (o) {\n var i, p;\n return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;\n 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; }\n };'},e.asyncValues={name:"typescript:asyncValues",importName:"__asyncValues",scoped:!1,text:'\n var __asyncValues = (this && this.__asyncValues) || function (o) {\n if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");\n var m = o[Symbol.asyncIterator], i;\n 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);\n 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); }); }; }\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\n };'},e.restHelper={name:"typescript:rest",importName:"__rest",scoped:!1,text:'\n var __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === "function")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n };'},e.awaiterHelper={name:"typescript:awaiter",importName:"__awaiter",scoped:!1,priority:5,text:'\n var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n };'},e.extendsHelper={name:"typescript:extends",importName:"__extends",scoped:!1,priority:0,text:'\n var __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n\n return function (d, b) {\n if (typeof b !== "function" && b !== null)\n throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n })();'},e.templateObjectHelper={name:"typescript:makeTemplateObject",importName:"__makeTemplateObject",scoped:!1,priority:0,text:'\n var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {\n if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }\n return cooked;\n };'},e.readHelper={name:"typescript:read",importName:"__read",scoped:!1,text:'\n var __read = (this && this.__read) || function (o, n) {\n var m = typeof Symbol === "function" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i["return"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n };'},e.spreadArrayHelper={name:"typescript:spreadArray",importName:"__spreadArray",scoped:!1,text:"\n var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n if (ar || !(i in from)) {\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || Array.prototype.slice.call(from));\n };"},e.valuesHelper={name:"typescript:values",importName:"__values",scoped:!1,text:'\n var __values = (this && this.__values) || function(o) {\n var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;\n if (m) return m.call(o);\n if (o && typeof o.length === "number") return {\n next: function () {\n if (o && i >= o.length) o = void 0;\n return { value: o && o[i++], done: !o };\n }\n };\n throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");\n };'},e.generatorHelper={name:"typescript:generator",importName:"__generator",scoped:!1,priority:6,text:'\n var __generator = (this && this.__generator) || function (thisArg, body) {\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\n return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;\n function verb(n) { return function (v) { return step([n, v]); }; }\n function step(op) {\n if (f) throw new TypeError("Generator is already executing.");\n while (g && (g = 0, op[0] && (_ = 0)), _) try {\n 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;\n if (y = 0, t) op = [op[0] & 2, t.value];\n switch (op[0]) {\n case 0: case 1: t = op; break;\n case 4: _.label++; return { value: op[1], done: false };\n case 5: _.label++; y = op[1]; op = [0]; continue;\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\n if (t[2]) _.ops.pop();\n _.trys.pop(); continue;\n }\n op = body.call(thisArg, _);\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\n }\n };'},e.createBindingHelper={name:"typescript:commonjscreatebinding",importName:"__createBinding",scoped:!1,priority:1,text:'\n var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n var desc = Object.getOwnPropertyDescriptor(m, k);\n if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\n desc = { enumerable: true, get: function() { return m[k]; } };\n }\n Object.defineProperty(o, k2, desc);\n }) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n }));'},e.setModuleDefaultHelper={name:"typescript:commonjscreatevalue",importName:"__setModuleDefault",scoped:!1,priority:1,text:'\n var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {\n Object.defineProperty(o, "default", { enumerable: true, value: v });\n }) : function(o, v) {\n o["default"] = v;\n });'},e.importStarHelper={name:"typescript:commonjsimportstar",importName:"__importStar",scoped:!1,dependencies:[e.createBindingHelper,e.setModuleDefaultHelper],priority:2,text:'\n var __importStar = (this && this.__importStar) || function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\n __setModuleDefault(result, mod);\n return result;\n };'},e.importDefaultHelper={name:"typescript:commonjsimportdefault",importName:"__importDefault",scoped:!1,text:'\n var __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { "default": mod };\n };'},e.exportStarHelper={name:"typescript:export-star",importName:"__exportStar",scoped:!1,dependencies:[e.createBindingHelper],priority:2,text:'\n var __exportStar = (this && this.__exportStar) || function(m, exports) {\n for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);\n };'},e.classPrivateFieldGetHelper={name:"typescript:classPrivateFieldGet",importName:"__classPrivateFieldGet",scoped:!1,text:'\n var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {\n if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");\n if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");\n return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);\n };'},e.classPrivateFieldSetHelper={name:"typescript:classPrivateFieldSet",importName:"__classPrivateFieldSet",scoped:!1,text:'\n var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {\n if (kind === "m") throw new TypeError("Private method is not writable");\n if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");\n if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");\n return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\n };'},e.classPrivateFieldInHelper={name:"typescript:classPrivateFieldIn",importName:"__classPrivateFieldIn",scoped:!1,text:'\n var __classPrivateFieldIn = (this && this.__classPrivateFieldIn) || function(state, receiver) {\n if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function")) throw new TypeError("Cannot use \'in\' operator on non-object");\n return typeof state === "function" ? receiver === state : state.has(receiver);\n };'},e.getAllUnscopedEmitHelpers=function(){return r||(r=e.arrayToMap([e.decorateHelper,e.metadataHelper,e.paramHelper,e.assignHelper,e.awaitHelper,e.asyncGeneratorHelper,e.asyncDelegator,e.asyncValues,e.restHelper,e.awaiterHelper,e.extendsHelper,e.templateObjectHelper,e.spreadArrayHelper,e.valuesHelper,e.readHelper,e.generatorHelper,e.importStarHelper,e.importDefaultHelper,e.exportStarHelper,e.classPrivateFieldGetHelper,e.classPrivateFieldSetHelper,e.classPrivateFieldInHelper,e.createBindingHelper,e.setModuleDefaultHelper],function(e){return e.name}))},e.asyncSuperHelper={name:"typescript:async-super",scoped:!0,text:t(i(["\n const "," = name => super[name];"],["\n const "," = name => super[name];"]),"_superIndex")},e.advancedAsyncSuperHelper={name:"typescript:advanced-async-super",scoped:!0,text:t(i(["\n const "," = (function (geti, seti) {\n const cache = Object.create(null);\n return name => cache[name] || (cache[name] = { get value() { return geti(name); }, set value(v) { seti(name, v); } });\n })(name => super[name], (name, value) => super[name] = value);"],["\n const "," = (function (geti, seti) {\n const cache = Object.create(null);\n return name => cache[name] || (cache[name] = { get value() { return geti(name); }, set value(v) { seti(name, v); } });\n })(name => super[name], (name, value) => super[name] = value);"]),"_superIndex")},e.isCallToHelper=function(t,n){return e.isCallExpression(t)&&e.isIdentifier(t.expression)&&!!(4096&e.getEmitFlags(t.expression))&&t.expression.escapedText===n}}(c||(c={})),function(e){e.isNumericLiteral=function(e){return 8===e.kind},e.isBigIntLiteral=function(e){return 9===e.kind},e.isStringLiteral=function(e){return 10===e.kind},e.isJsxText=function(e){return 11===e.kind},e.isRegularExpressionLiteral=function(e){return 13===e.kind},e.isNoSubstitutionTemplateLiteral=function(e){return 14===e.kind},e.isTemplateHead=function(e){return 15===e.kind},e.isTemplateMiddle=function(e){return 16===e.kind},e.isTemplateTail=function(e){return 17===e.kind},e.isDotDotDotToken=function(e){return 25===e.kind},e.isCommaToken=function(e){return 27===e.kind},e.isPlusToken=function(e){return 39===e.kind},e.isMinusToken=function(e){return 40===e.kind},e.isAsteriskToken=function(e){return 41===e.kind},e.isExclamationToken=function(e){return 53===e.kind},e.isQuestionToken=function(e){return 57===e.kind},e.isColonToken=function(e){return 58===e.kind},e.isQuestionDotToken=function(e){return 28===e.kind},e.isEqualsGreaterThanToken=function(e){return 38===e.kind},e.isIdentifier=function(e){return 79===e.kind},e.isPrivateIdentifier=function(e){return 80===e.kind},e.isExportModifier=function(e){return 93===e.kind},e.isAsyncModifier=function(e){return 132===e.kind},e.isAssertsKeyword=function(e){return 129===e.kind},e.isAwaitKeyword=function(e){return 133===e.kind},e.isReadonlyKeyword=function(e){return 146===e.kind},e.isStaticModifier=function(e){return 124===e.kind},e.isAbstractModifier=function(e){return 126===e.kind},e.isOverrideModifier=function(e){return 161===e.kind},e.isAccessorModifier=function(e){return 127===e.kind},e.isSuperKeyword=function(e){return 106===e.kind},e.isImportKeyword=function(e){return 100===e.kind},e.isQualifiedName=function(e){return 163===e.kind},e.isComputedPropertyName=function(e){return 164===e.kind},e.isTypeParameterDeclaration=function(e){return 165===e.kind},e.isParameter=function(e){return 166===e.kind},e.isDecorator=function(e){return 167===e.kind},e.isPropertySignature=function(e){return 168===e.kind},e.isPropertyDeclaration=function(e){return 169===e.kind},e.isMethodSignature=function(e){return 170===e.kind},e.isMethodDeclaration=function(e){return 171===e.kind},e.isClassStaticBlockDeclaration=function(e){return 172===e.kind},e.isConstructorDeclaration=function(e){return 173===e.kind},e.isGetAccessorDeclaration=function(e){return 174===e.kind},e.isSetAccessorDeclaration=function(e){return 175===e.kind},e.isCallSignatureDeclaration=function(e){return 176===e.kind},e.isConstructSignatureDeclaration=function(e){return 177===e.kind},e.isIndexSignatureDeclaration=function(e){return 178===e.kind},e.isTypePredicateNode=function(e){return 179===e.kind},e.isTypeReferenceNode=function(e){return 180===e.kind},e.isFunctionTypeNode=function(e){return 181===e.kind},e.isConstructorTypeNode=function(e){return 182===e.kind},e.isTypeQueryNode=function(e){return 183===e.kind},e.isTypeLiteralNode=function(e){return 184===e.kind},e.isArrayTypeNode=function(e){return 185===e.kind},e.isTupleTypeNode=function(e){return 186===e.kind},e.isNamedTupleMember=function(e){return 199===e.kind},e.isOptionalTypeNode=function(e){return 187===e.kind},e.isRestTypeNode=function(e){return 188===e.kind},e.isUnionTypeNode=function(e){return 189===e.kind},e.isIntersectionTypeNode=function(e){return 190===e.kind},e.isConditionalTypeNode=function(e){return 191===e.kind},e.isInferTypeNode=function(e){return 192===e.kind},e.isParenthesizedTypeNode=function(e){return 193===e.kind},e.isThisTypeNode=function(e){return 194===e.kind},e.isTypeOperatorNode=function(e){return 195===e.kind},e.isIndexedAccessTypeNode=function(e){return 196===e.kind},e.isMappedTypeNode=function(e){return 197===e.kind},e.isLiteralTypeNode=function(e){return 198===e.kind},e.isImportTypeNode=function(e){return 202===e.kind},e.isTemplateLiteralTypeSpan=function(e){return 201===e.kind},e.isTemplateLiteralTypeNode=function(e){return 200===e.kind},e.isObjectBindingPattern=function(e){return 203===e.kind},e.isArrayBindingPattern=function(e){return 204===e.kind},e.isBindingElement=function(e){return 205===e.kind},e.isArrayLiteralExpression=function(e){return 206===e.kind},e.isObjectLiteralExpression=function(e){return 207===e.kind},e.isPropertyAccessExpression=function(e){return 208===e.kind},e.isElementAccessExpression=function(e){return 209===e.kind},e.isCallExpression=function(e){return 210===e.kind},e.isNewExpression=function(e){return 211===e.kind},e.isTaggedTemplateExpression=function(e){return 212===e.kind},e.isTypeAssertionExpression=function(e){return 213===e.kind},e.isParenthesizedExpression=function(e){return 214===e.kind},e.isFunctionExpression=function(e){return 215===e.kind},e.isArrowFunction=function(e){return 216===e.kind},e.isDeleteExpression=function(e){return 217===e.kind},e.isTypeOfExpression=function(e){return 218===e.kind},e.isVoidExpression=function(e){return 219===e.kind},e.isAwaitExpression=function(e){return 220===e.kind},e.isPrefixUnaryExpression=function(e){return 221===e.kind},e.isPostfixUnaryExpression=function(e){return 222===e.kind},e.isBinaryExpression=function(e){return 223===e.kind},e.isConditionalExpression=function(e){return 224===e.kind},e.isTemplateExpression=function(e){return 225===e.kind},e.isYieldExpression=function(e){return 226===e.kind},e.isSpreadElement=function(e){return 227===e.kind},e.isClassExpression=function(e){return 228===e.kind},e.isOmittedExpression=function(e){return 229===e.kind},e.isExpressionWithTypeArguments=function(e){return 230===e.kind},e.isAsExpression=function(e){return 231===e.kind},e.isSatisfiesExpression=function(e){return 235===e.kind},e.isNonNullExpression=function(e){return 232===e.kind},e.isMetaProperty=function(e){return 233===e.kind},e.isSyntheticExpression=function(e){return 234===e.kind},e.isPartiallyEmittedExpression=function(e){return 353===e.kind},e.isCommaListExpression=function(e){return 354===e.kind},e.isTemplateSpan=function(e){return 236===e.kind},e.isSemicolonClassElement=function(e){return 237===e.kind},e.isBlock=function(e){return 238===e.kind},e.isVariableStatement=function(e){return 240===e.kind},e.isEmptyStatement=function(e){return 239===e.kind},e.isExpressionStatement=function(e){return 241===e.kind},e.isIfStatement=function(e){return 242===e.kind},e.isDoStatement=function(e){return 243===e.kind},e.isWhileStatement=function(e){return 244===e.kind},e.isForStatement=function(e){return 245===e.kind},e.isForInStatement=function(e){return 246===e.kind},e.isForOfStatement=function(e){return 247===e.kind},e.isContinueStatement=function(e){return 248===e.kind},e.isBreakStatement=function(e){return 249===e.kind},e.isReturnStatement=function(e){return 250===e.kind},e.isWithStatement=function(e){return 251===e.kind},e.isSwitchStatement=function(e){return 252===e.kind},e.isLabeledStatement=function(e){return 253===e.kind},e.isThrowStatement=function(e){return 254===e.kind},e.isTryStatement=function(e){return 255===e.kind},e.isDebuggerStatement=function(e){return 256===e.kind},e.isVariableDeclaration=function(e){return 257===e.kind},e.isVariableDeclarationList=function(e){return 258===e.kind},e.isFunctionDeclaration=function(e){return 259===e.kind},e.isClassDeclaration=function(e){return 260===e.kind},e.isInterfaceDeclaration=function(e){return 261===e.kind},e.isTypeAliasDeclaration=function(e){return 262===e.kind},e.isEnumDeclaration=function(e){return 263===e.kind},e.isModuleDeclaration=function(e){return 264===e.kind},e.isModuleBlock=function(e){return 265===e.kind},e.isCaseBlock=function(e){return 266===e.kind},e.isNamespaceExportDeclaration=function(e){return 267===e.kind},e.isImportEqualsDeclaration=function(e){return 268===e.kind},e.isImportDeclaration=function(e){return 269===e.kind},e.isImportClause=function(e){return 270===e.kind},e.isImportTypeAssertionContainer=function(e){return 298===e.kind},e.isAssertClause=function(e){return 296===e.kind},e.isAssertEntry=function(e){return 297===e.kind},e.isNamespaceImport=function(e){return 271===e.kind},e.isNamespaceExport=function(e){return 277===e.kind},e.isNamedImports=function(e){return 272===e.kind},e.isImportSpecifier=function(e){return 273===e.kind},e.isExportAssignment=function(e){return 274===e.kind},e.isExportDeclaration=function(e){return 275===e.kind},e.isNamedExports=function(e){return 276===e.kind},e.isExportSpecifier=function(e){return 278===e.kind},e.isMissingDeclaration=function(e){return 279===e.kind},e.isNotEmittedStatement=function(e){return 352===e.kind},e.isSyntheticReference=function(e){return 357===e.kind},e.isMergeDeclarationMarker=function(e){return 355===e.kind},e.isEndOfDeclarationMarker=function(e){return 356===e.kind},e.isExternalModuleReference=function(e){return 280===e.kind},e.isJsxElement=function(e){return 281===e.kind},e.isJsxSelfClosingElement=function(e){return 282===e.kind},e.isJsxOpeningElement=function(e){return 283===e.kind},e.isJsxClosingElement=function(e){return 284===e.kind},e.isJsxFragment=function(e){return 285===e.kind},e.isJsxOpeningFragment=function(e){return 286===e.kind},e.isJsxClosingFragment=function(e){return 287===e.kind},e.isJsxAttribute=function(e){return 288===e.kind},e.isJsxAttributes=function(e){return 289===e.kind},e.isJsxSpreadAttribute=function(e){return 290===e.kind},e.isJsxExpression=function(e){return 291===e.kind},e.isCaseClause=function(e){return 292===e.kind},e.isDefaultClause=function(e){return 293===e.kind},e.isHeritageClause=function(e){return 294===e.kind},e.isCatchClause=function(e){return 295===e.kind},e.isPropertyAssignment=function(e){return 299===e.kind},e.isShorthandPropertyAssignment=function(e){return 300===e.kind},e.isSpreadAssignment=function(e){return 301===e.kind},e.isEnumMember=function(e){return 302===e.kind},e.isUnparsedPrepend=function(e){return 304===e.kind},e.isSourceFile=function(e){return 308===e.kind},e.isBundle=function(e){return 309===e.kind},e.isUnparsedSource=function(e){return 310===e.kind},e.isJSDocTypeExpression=function(e){return 312===e.kind},e.isJSDocNameReference=function(e){return 313===e.kind},e.isJSDocMemberName=function(e){return 314===e.kind},e.isJSDocLink=function(e){return 327===e.kind},e.isJSDocLinkCode=function(e){return 328===e.kind},e.isJSDocLinkPlain=function(e){return 329===e.kind},e.isJSDocAllType=function(e){return 315===e.kind},e.isJSDocUnknownType=function(e){return 316===e.kind},e.isJSDocNullableType=function(e){return 317===e.kind},e.isJSDocNonNullableType=function(e){return 318===e.kind},e.isJSDocOptionalType=function(e){return 319===e.kind},e.isJSDocFunctionType=function(e){return 320===e.kind},e.isJSDocVariadicType=function(e){return 321===e.kind},e.isJSDocNamepathType=function(e){return 322===e.kind},e.isJSDoc=function(e){return 323===e.kind},e.isJSDocTypeLiteral=function(e){return 325===e.kind},e.isJSDocSignature=function(e){return 326===e.kind},e.isJSDocAugmentsTag=function(e){return 331===e.kind},e.isJSDocAuthorTag=function(e){return 333===e.kind},e.isJSDocClassTag=function(e){return 335===e.kind},e.isJSDocCallbackTag=function(e){return 341===e.kind},e.isJSDocPublicTag=function(e){return 336===e.kind},e.isJSDocPrivateTag=function(e){return 337===e.kind},e.isJSDocProtectedTag=function(e){return 338===e.kind},e.isJSDocReadonlyTag=function(e){return 339===e.kind},e.isJSDocOverrideTag=function(e){return 340===e.kind},e.isJSDocDeprecatedTag=function(e){return 334===e.kind},e.isJSDocSeeTag=function(e){return 349===e.kind},e.isJSDocEnumTag=function(e){return 342===e.kind},e.isJSDocParameterTag=function(e){return 343===e.kind},e.isJSDocReturnTag=function(e){return 344===e.kind},e.isJSDocThisTag=function(e){return 345===e.kind},e.isJSDocTypeTag=function(e){return 346===e.kind},e.isJSDocTemplateTag=function(e){return 347===e.kind},e.isJSDocTypedefTag=function(e){return 348===e.kind},e.isJSDocUnknownTag=function(e){return 330===e.kind},e.isJSDocPropertyTag=function(e){return 350===e.kind},e.isJSDocImplementsTag=function(e){return 332===e.kind},e.isSyntaxList=function(e){return 351===e.kind}}(c||(c={})),function(e){function t(t,n,r,i){if(e.isComputedPropertyName(r))return e.setTextRange(t.createElementAccessExpression(n,r.expression),i);var a=e.setTextRange(e.isMemberName(r)?t.createPropertyAccessExpression(n,r):t.createElementAccessExpression(n,r),r);return e.getOrCreateEmitNode(a).flags|=64,a}function r(t,n){var r=e.parseNodeFactory.createIdentifier(t||"React");return e.setParent(r,e.getParseTreeNode(n)),r}function i(t,n,a){if(e.isQualifiedName(n)){var o=i(t,n.left,a),s=t.createIdentifier(e.idText(n.right));return s.escapedText=n.right.escapedText,t.createPropertyAccessExpression(o,s)}return r(e.idText(n),a)}function a(e,t,n,a){return t?i(e,t,a):e.createPropertyAccessExpression(r(n,a),"createElement")}function o(t,n){return e.isIdentifier(n)?t.createStringLiteralFromNode(n):e.isComputedPropertyName(n)?e.setParent(e.setTextRange(t.cloneNode(n.expression),n.expression),n.expression.parent):e.setParent(e.setTextRange(t.cloneNode(n),n),n.parent)}function s(t){return e.isStringLiteral(t.expression)&&"use strict"===t.expression.text}function c(t){return e.isParenthesizedExpression(t)&&e.isInJSFile(t)&&!!e.getJSDocTypeTag(t)}function l(e,t){switch(void 0===t&&(t=15),e.kind){case 214:return!(16&t&&c(e)||!(1&t));case 213:case 231:case 235:return!!(2&t);case 232:return!!(4&t);case 353:return!!(8&t)}return!1}function u(e,t){for(void 0===t&&(t=15);l(e,t);)e=e.expression;return e}function d(t){return e.setStartsOnNewLine(t,!0)}function p(t){var n=e.getOriginalNode(t,e.isSourceFile),r=n&&n.emitNode;return r&&r.externalHelpersModuleName}function m(t,n,r,i,a){if(r.importHelpers&&e.isEffectiveExternalModule(n,r)){var o=p(n);if(o)return o;var s=e.getEmitModuleKind(r),c=(i||e.getESModuleInterop(r)&&a)&&s!==e.ModuleKind.System&&(s0)if(i||s.push(t.createNull()),a.length>1)for(var c=0,l=a;c0)if(c.length>1)for(var m=0,f=c;m=e.ModuleKind.ES2015&&l<=e.ModuleKind.ESNext||r.impliedNodeFormat===e.ModuleKind.ESNext){var u=e.getEmitHelpers(r);if(u){for(var d=[],p=0,f=u;p0?o[r-1]:void 0;return e.Debug.assertEqual(i[r],n),o[r]=t.onEnter(a[r],u,l),i[r]=c(t,n),r}function r(t,n,i,a,o,s,d){e.Debug.assertEqual(i[n],r),e.Debug.assertIsDefined(t.onLeft),i[n]=c(t,r);var p=t.onLeft(a[n].left,o[n],a[n]);return p?(u(n,a,p),l(n,i,a,o,p)):n}function i(t,n,r,a,o,s,l){return e.Debug.assertEqual(r[n],i),e.Debug.assertIsDefined(t.onOperator),r[n]=c(t,i),t.onOperator(a[n].operatorToken,o[n],a[n]),n}function a(t,n,r,i,o,s,d){e.Debug.assertEqual(r[n],a),e.Debug.assertIsDefined(t.onRight),r[n]=c(t,a);var p=t.onRight(i[n].right,o[n],i[n]);return p?(u(n,i,p),l(n,r,i,o,p)):n}function o(t,n,r,i,a,s,l){e.Debug.assertEqual(r[n],o),r[n]=c(t,o);var u=t.onExit(i[n],a[n]);if(n>0){if(n--,t.foldState){var d=r[n]===o?"right":"left";a[n]=t.foldState(a[n],u,d)}}else s.value=u;return n}function s(t,n,r,i,a,o,c){return e.Debug.assertEqual(r[n],s),n}function c(t,c){switch(c){case n:if(t.onLeft)return r;case r:if(t.onOperator)return i;case i:if(t.onRight)return a;case a:return o;case o:case s:return s;default:e.Debug.fail("Invalid state")}}function l(e,t,r,i,a){return t[++e]=n,r[e]=a,i[e]=void 0,e}function u(t,n,r){if(e.Debug.shouldAssert(2))for(;t>=0;)e.Debug.assert(n[t]!==r,"Circular traversal detected."),t--}t.enter=n,t.left=r,t.operator=i,t.right=a,t.exit=o,t.done=s,t.nextState=c}(y||(y={}));var v=function(e,t,n,r,i,a){this.onEnter=e,this.onLeft=t,this.onOperator=n,this.onRight=r,this.onExit=i,this.foldState=a};function b(e,t){return"object"==typeof e?E(!1,e.prefix,e.node,e.suffix,t):"string"==typeof e?e.length>0&&35===e.charCodeAt(0)?e.slice(1):e:""}function E(t,n,r,i,a){return n=b(n,a),i=b(i,a),r=function(t,n){return"string"==typeof t?t:function(t,n){return e.isGeneratedPrivateIdentifier(t)?n(t).slice(1):e.isGeneratedIdentifier(t)?n(t):e.isPrivateIdentifier(t)?t.escapedText.slice(1):e.idText(t)}(t,e.Debug.checkDefined(n))}(r,a),"".concat(t?"#":"").concat(n).concat(r).concat(i)}e.createBinaryExpressionTrampoline=function(t,n,r,i,a,o){var s=new v(t,n,r,i,a,o);return function(t,n){for(var r={value:void 0},i=[y.enter],a=[t],o=[void 0],c=0;i[c]!==y.done;)c=i[c](s,c,i,a,o,r,n);return e.Debug.assertEqual(c,0),r.value}},e.elideNodes=function(t,n){if(void 0!==n)return 0===n.length?n:e.setTextRange(t.createNodeArray([],n.hasTrailingComma),n)},e.getNodeForGeneratedName=function(t){if(4&t.autoGenerateFlags){for(var n=t.autoGenerateId,r=t,i=r.original;i&&(r=i,!(e.isMemberName(r)&&4&r.autoGenerateFlags&&r.autoGenerateId!==n));)i=r.original;return r}return t},e.formatGeneratedNamePart=b,e.formatGeneratedName=E,e.createAccessorPropertyBackingField=function(e,t,n,r){return e.updatePropertyDeclaration(t,n,e.getGeneratedPrivateNameForNode(t.name,void 0,"_accessor_storage"),void 0,void 0,r)},e.createAccessorPropertyGetRedirector=function(e,t,n,r){return e.createGetAccessorDeclaration(n,r,[],void 0,e.createBlock([e.createReturnStatement(e.createPropertyAccessExpression(e.createThis(),e.getGeneratedPrivateNameForNode(t.name,void 0,"_accessor_storage")))]))},e.createAccessorPropertySetRedirector=function(e,t,n,r){return e.createSetAccessorDeclaration(n,r,[e.createParameterDeclaration(void 0,void 0,"value")],e.createBlock([e.createExpressionStatement(e.createAssignment(e.createPropertyAccessExpression(e.createThis(),e.getGeneratedPrivateNameForNode(t.name,void 0,"_accessor_storage")),e.createIdentifier("value")))]))}}(c||(c={})),function(e){e.setTextRange=function(t,n){return n?e.setTextRangePosEnd(t,n.pos,n.end):t},e.canHaveModifiers=function(e){var t=e.kind;return 165===t||166===t||168===t||169===t||170===t||171===t||173===t||174===t||175===t||178===t||182===t||215===t||216===t||228===t||240===t||259===t||260===t||261===t||262===t||263===t||264===t||268===t||269===t||274===t||275===t},e.canHaveDecorators=function(e){var t=e.kind;return 166===t||169===t||171===t||174===t||175===t||228===t||260===t}}(c||(c={})),function(e){var t,i,a,o,s,c,l,u;function d(e,t){return t&&e(t)}function p(e,t,n){if(n){if(t)return t(n);for(var r=0,i=n;rt.checkJsDirective.pos)&&(t.checkJsDirective={enabled:"ts-check"===a,end:e.range.end,pos:e.range.pos})});break;case"jsx":case"jsxfrag":case"jsximportsource":case"jsxruntime":return;default:e.Debug.fail("Unhandled pragma kind")}})}e.forEachChild=M,e.forEachChildRecursively=function(t,n,r){for(var i=F(t),a=[];a.length=0;--c)i.push(o[c]),a.push(s)}else{var l;if(l=n(o,s)){if("skip"===l)continue;return l}if(o.kind>=163)for(var u=0,d=F(o);u=n.pos}),u=l>=0?e.findIndex(a,function(e){return e.start>=r.pos},l):-1;l>=0&&e.addRange(g,a,l,u>=0?u:void 0),ke(function(){var e=A;for(A|=32768,c.setTextPos(r.pos),xe();1!==ve();){var n=c.getStartPos(),a=Ct(0,Xr);if(i.push(a),n===c.getStartPos()&&xe(),o>=0){var s=t.statements[o];if(a.end===s.pos)break;a.end>s.pos&&(o=f(t.statements,o+1))}}A=e},2),s=o>=0?m(t.statements,o):-1};-1!==s;)l();if(o>=0){var u=t.statements[o];e.addRange(i,t.statements,o);var d=e.findIndex(a,function(e){return e.start>=u.pos});d>=0&&e.addRange(g,a,d)}return b=n,k.updateSourceFile(t,e.setTextRange(k.createNodeArray(i),t.statements));function p(e){return!(32768&e.flags||!(67108864&e.transformFlags))}function m(e,t){for(var n=t;n116}function Oe(){return 79===ve()||(125!==ve()||!se())&&(133!==ve()||!de())&&ve()>116}function Re(t,n,r){return void 0===r&&(r=!0),ve()===t?(r&&xe(),!0):(n?pe(n):pe(e.Diagnostics._0_expected,e.tokenToString(t)),!1)}t.fixupParentReferences=W;var Me,Fe,Ge,Be=Object.keys(e.textToKeywordObj).filter(function(e){return e.length>2});function Ue(t){var n;if(e.isTaggedTemplateExpression(t))fe(e.skipTrivia(p,t.template.pos),t.template.end,e.Diagnostics.Module_declaration_names_may_only_use_or_quoted_strings);else{var r=e.isIdentifier(t)?e.idText(t):void 0;if(r&&e.isIdentifierText(r,f)){var i=e.skipTrivia(p,t.pos);switch(r){case"const":case"let":case"var":return void fe(i,t.end,e.Diagnostics.Variable_declaration_not_allowed_at_this_location);case"declare":return;case"interface":return void Ve(e.Diagnostics.Interface_name_cannot_be_0,e.Diagnostics.Interface_must_be_given_a_name,18);case"is":return void fe(i,c.getTextPos(),e.Diagnostics.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods);case"module":case"namespace":return void Ve(e.Diagnostics.Namespace_name_cannot_be_0,e.Diagnostics.Namespace_must_be_given_a_name,18);case"type":return void Ve(e.Diagnostics.Type_alias_name_cannot_be_0,e.Diagnostics.Type_alias_must_be_given_a_name,63)}var a=null!==(n=e.getSpellingSuggestion(r,Be,function(e){return e}))&&void 0!==n?n:function(t){for(var n=0,r=Be;ni.length+2&&e.startsWith(t,i))return"".concat(i," ").concat(t.slice(i.length))}}(r);a?fe(i,t.end,e.Diagnostics.Unknown_keyword_or_identifier_Did_you_mean_0,a):0!==ve()&&fe(i,t.end,e.Diagnostics.Unexpected_keyword_or_identifier)}else pe(e.Diagnostics._0_expected,e.tokenToString(26))}}function Ve(e,t,n){ve()===n?pe(t):pe(e,c.getTokenValue())}function Ke(t){return ve()===t?(Se(),!0):(pe(e.Diagnostics._0_expected,e.tokenToString(t)),!1)}function je(t,n,r,i){if(ve()!==n){var a=pe(e.Diagnostics._0_expected,e.tokenToString(n));r&&a&&e.addRelatedInfo(a,e.createDetachedDiagnostic(u,i,1,e.Diagnostics.The_parser_expected_to_find_a_1_to_match_the_0_token_here,e.tokenToString(t),e.tokenToString(n)))}else xe()}function He(e){return ve()===e&&(xe(),!0)}function We(e){if(ve()===e)return qe()}function $e(t,n,r){return We(t)||Ze(t,!1,n||e.Diagnostics._0_expected,r||e.tokenToString(t))}function qe(){var e=ge(),t=ve();return xe(),Qe(k.createToken(t),e)}function ze(){return 26===ve()||19===ve()||1===ve()||c.hasPrecedingLineBreak()}function Je(){return!!ze()&&(26===ve()&&xe(),!0)}function Xe(){return Je()||Re(26)}function Ye(t,n,r,i){var a=k.createNodeArray(t,i);return e.setTextRangePosEnd(a,n,null!=r?r:c.getStartPos()),a}function Qe(t,n,r){return e.setTextRangePosEnd(t,n,null!=r?r:c.getStartPos()),A&&(t.flags|=A),P&&(P=!1,t.flags|=131072),t}function Ze(t,n,r,i){n?me(c.getStartPos(),0,r,i):r&&pe(r,i);var a=ge();return Qe(79===t?k.createIdentifier("",void 0,void 0):e.isTemplateLiteralKind(t)?k.createTemplateLiteralLikeNode(t,"","",void 0):8===t?k.createNumericLiteral("",void 0):10===t?k.createStringLiteral("",void 0):279===t?k.createMissingDeclaration():k.createToken(t),a)}function et(e){var t=S.get(e);return void 0===t&&S.set(e,t=e),t}function tt(t,n,r){if(t){C++;var i=ge(),a=ve(),o=et(c.getTokenValue()),s=c.hasExtendedUnicodeEscape();return be(),Qe(k.createIdentifier(o,void 0,a,s),i)}if(80===ve())return pe(r||e.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies),tt(!0);if(0===ve()&&c.tryScan(function(){return 79===c.reScanInvalidIdentifier()}))return tt(!0);C++;var l=1===ve(),u=c.isReservedWord(),d=c.getTokenText(),p=u?e.Diagnostics.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here:e.Diagnostics.Identifier_expected;return Ze(79,l,n||p,d)}function nt(e){return tt(we(),void 0,e)}function rt(e,t){return tt(Oe(),e,t)}function it(t){return tt(e.tokenIsIdentifierOrKeyword(ve()),t)}function at(){return e.tokenIsIdentifierOrKeyword(ve())||10===ve()||8===ve()}function ot(){return function(){if(10===ve()||8===ve()){var e=Ut();return e.text=et(e.text),e}return 22===ve()?function(){var e=ge();Re(22);var t=te(Wn);return Re(23),Qe(k.createComputedPropertyName(t),e)}():80===ve()?st():it()}()}function st(){var e,t,n=ge(),r=k.createPrivateIdentifier((e=c.getTokenValue(),void 0===(t=T.get(e))&&T.set(e,t=e),t));return xe(),Qe(r,n)}function ct(e){return ve()===e&&Pe(ut)}function lt(){return xe(),!c.hasPrecedingLineBreak()&&mt()}function ut(){switch(ve()){case 85:return 92===xe();case 93:return xe(),88===ve()?Ie(ft):154===ve()?Ie(pt):dt();case 88:return ft();case 127:case 124:case 137:case 151:return xe(),mt();default:return lt()}}function dt(){return 41!==ve()&&128!==ve()&&18!==ve()&&mt()}function pt(){return xe(),dt()}function mt(){return 22===ve()||18===ve()||41===ve()||25===ve()||at()}function ft(){return xe(),84===ve()||98===ve()||118===ve()||126===ve()&&Ie(jr)||132===ve()&&Ie(Hr)}function _t(t,n){if(Dt(t))return!0;switch(t){case 0:case 1:case 3:return!(26===ve()&&n)&&zr();case 2:return 82===ve()||88===ve();case 4:return Ie(un);case 5:return Ie(hi)||26===ve()&&!n;case 6:return 22===ve()||at();case 12:switch(ve()){case 22:case 41:case 25:case 24:return!0;default:return at()}case 18:return at();case 9:return 22===ve()||25===ve()||at();case 24:return e.tokenIsIdentifierOrKeyword(ve())||10===ve();case 7:return 18===ve()?Ie(ht):n?Oe()&&!bt():jn()&&!bt();case 8:return ii();case 10:return 27===ve()||25===ve()||ii();case 19:return 101===ve()||Oe();case 15:switch(ve()){case 27:case 24:return!0}case 11:return 25===ve()||Hn();case 16:return Qt(!1);case 17:return Qt(!0);case 20:case 21:return 27===ve()||An();case 22:return Ii();case 23:return e.tokenIsIdentifierOrKeyword(ve());case 13:return e.tokenIsIdentifierOrKeyword(ve())||18===ve();case 14:return!0}return e.Debug.fail("Non-exhaustive case in 'isListElement'.")}function ht(){if(e.Debug.assert(18===ve()),19===xe()){var t=xe();return 27===t||18===t||94===t||117===t}return!0}function gt(){return xe(),Oe()}function yt(){return xe(),e.tokenIsIdentifierOrKeyword(ve())}function vt(){return xe(),e.tokenIsIdentifierOrKeywordOrGreaterThan(ve())}function bt(){return(117===ve()||94===ve())&&Ie(Et)}function Et(){return xe(),Hn()}function xt(){return xe(),An()}function St(e){if(1===ve())return!0;switch(e){case 1:case 2:case 4:case 5:case 6:case 12:case 9:case 23:case 24:return 19===ve();case 3:return 19===ve()||82===ve()||88===ve();case 7:return 18===ve()||94===ve()||117===ve();case 8:return!!ze()||!!tr(ve())||38===ve();case 19:return 31===ve()||20===ve()||18===ve()||94===ve()||117===ve();case 11:return 21===ve()||26===ve();case 15:case 21:case 10:return 23===ve();case 17:case 16:case 18:return 21===ve()||23===ve();case 20:return 27!==ve();case 22:return 18===ve()||19===ve();case 13:return 31===ve()||43===ve();case 14:return 29===ve()&&Ie(Gi);default:return!1}}function Tt(e,t){var n=D;D|=1<=0)}function kt(t){return 6===t?e.Diagnostics.An_enum_member_name_must_be_followed_by_a_or:void 0}function It(){var e=Ye([],ge());return e.isMissingList=!0,e}function Pt(e,t,n,r){if(Re(n)){var i=Nt(e,t);return Re(r),i}return It()}function wt(e,t){for(var n=ge(),r=e?it(t):rt(t),i=ge();He(24);){if(29===ve()){r.jsdocDotPos=i;break}i=ge(),r=Qe(k.createQualifiedName(r,Rt(e,!1)),n)}return r}function Ot(e,t){return Qe(k.createQualifiedName(e,t),e.pos)}function Rt(t,n){if(c.hasPrecedingLineBreak()&&e.tokenIsIdentifierOrKeyword(ve())&&Ie(Kr))return Ze(79,!0,e.Diagnostics.Identifier_expected);if(80===ve()){var r=st();return n?r:Ze(79,!0,e.Diagnostics.Identifier_expected)}return t?it():rt()}function Mt(e){var t=ge();return Qe(k.createTemplateExpression(Vt(e),function(e){var t,n=ge(),r=[];do{t=Bt(e),r.push(t)}while(16===t.literal.kind);return Ye(r,n)}(e)),t)}function Ft(){var e=ge();return Qe(k.createTemplateLiteralTypeSpan(Vn(),Gt(!1)),e)}function Gt(t){return 19===ve()?(function(e){E=c.reScanTemplateToken(e)}(t),n=Kt(ve()),e.Debug.assert(16===n.kind||17===n.kind,"Template fragment has wrong token kind"),n):$e(17,e.Diagnostics._0_expected,e.tokenToString(19));var n}function Bt(e){var t=ge();return Qe(k.createTemplateSpan(te(Wn),Gt(e)),t)}function Ut(){return Kt(ve())}function Vt(t){t&&Ce();var n=Kt(ve());return e.Debug.assert(15===n.kind,"Template head has wrong token kind"),n}function Kt(t){var n=ge(),r=e.isTemplateLiteralKind(t)?k.createTemplateLiteralLikeNode(t,c.getTokenValue(),function(e){var t=14===e||17===e,n=c.getTokenText();return n.substring(1,n.length-(c.isUnterminated()?0:t?1:2))}(t),2048&c.getTokenFlags()):8===t?k.createNumericLiteral(c.getTokenValue(),c.getNumericLiteralFlags()):10===t?k.createStringLiteral(c.getTokenValue(),void 0,c.hasExtendedUnicodeEscape()):e.isLiteralKind(t)?k.createLiteralLikeNode(t,c.getTokenValue()):e.Debug.fail();return c.hasExtendedUnicodeEscape()&&(r.hasExtendedUnicodeEscape=!0),c.isUnterminated()&&(r.isUnterminated=!0),xe(),Qe(r,n)}function jt(){return wt(!0,e.Diagnostics.Type_expected)}function Ht(){if(!c.hasPrecedingLineBreak()&&29===De())return Pt(20,Vn,29,31)}function Wt(){var e=ge();return Qe(k.createTypeReferenceNode(jt(),Ht()),e)}function $t(t){switch(t.kind){case 180:return e.nodeIsMissing(t.typeName);case 181:case 182:var n=t,r=n.parameters,i=n.type;return!!r.isMissingList||$t(i);case 193:return $t(t.type);default:return!1}}function qt(){var e=ge();return xe(),Qe(k.createThisTypeNode(),e)}function zt(){var e,t=ge();return 108!==ve()&&103!==ve()||(e=it(),Re(58)),Qe(k.createParameterDeclaration(void 0,void 0,e,void 0,Jt(),void 0),t)}function Jt(){c.setInJSDocType(!0);var e=ge();if(He(142)){var t=k.createJSDocNamepathType(void 0);e:for(;;)switch(ve()){case 19:case 1:case 27:case 5:break e;default:Se()}return c.setInJSDocType(!1),Qe(t,e)}var n=He(25),r=Bn();return c.setInJSDocType(!1),n&&(r=Qe(k.createJSDocVariadicType(r),e)),63===ve()?(xe(),Qe(k.createJSDocOptionalType(r),e)):r}function Xt(){var e,t,n=ge(),r=xi(),i=rt();He(94)&&(An()||!Hn()?e=Vn():t=cr());var a=He(63)?Vn():void 0,o=k.createTypeParameterDeclaration(r,i,e,a);return o.expression=t,Qe(o,n)}function Yt(){if(29===ve())return Pt(19,Xt,29,31)}function Qt(t){return 25===ve()||ii()||e.isModifierKind(ve())||59===ve()||An(!t)}function Zt(e){return en(e)}function en(t,n){void 0===n&&(n=!0);var r=ge(),i=ye(),a=t?ie(vi):ae(vi);if(108===ve()){var o=k.createParameterDeclaration(a,void 0,tt(!0),void 0,Kn(),void 0);return a&&_e(a[0],e.Diagnostics.Decorators_may_not_be_applied_to_this_parameters),F(Qe(o,r),i)}var s=I;I=!1;var c=Ei(a,xi()),l=We(25);if(n||we()||22===ve()||18===ve()){var u=F(Qe(k.createParameterDeclaration(c,l,function(t){var n=ai(e.Diagnostics.Private_identifiers_cannot_be_used_as_parameters);return 0===e.getFullWidth(n)&&!e.some(t)&&e.isModifierKind(ve())&&xe(),n}(c),We(57),Kn(),$n()),r),i);return I=s,u}}function tn(t,n){if(function(t,n){return 38===t?(Re(t),!0):!!He(58)||!(!n||38!==ve())&&(pe(e.Diagnostics._0_expected,e.tokenToString(58)),xe(),!0)}(t,n))return ne(Bn)}function nn(e,t){var n=se(),r=de();X(!!(1&e)),Q(!!(2&e));var i=32&e?Nt(17,zt):Nt(16,function(){return t?Zt(r):en(r,!1)});return X(n),Q(r),i}function rn(e){if(!Re(20))return It();var t=nn(e,!0);return Re(21),t}function an(){He(27)||Xe()}function on(e){var t=ge(),n=ye();177===e&&Re(103);var r=Yt(),i=rn(4),a=tn(58,!0);return an(),F(Qe(176===e?k.createCallSignature(r,i,a):k.createConstructSignature(r,i,a),t),n)}function sn(){return 22===ve()&&Ie(cn)}function cn(){if(xe(),25===ve()||23===ve())return!0;if(e.isModifierKind(ve())){if(xe(),Oe())return!0}else{if(!Oe())return!1;xe()}return 58===ve()||27===ve()||57===ve()&&(xe(),58===ve()||27===ve()||23===ve())}function ln(e,t,n,r){var i=Pt(16,function(){return Zt(!1)},22,23),a=Kn();an();var o=k.createIndexSignature(r,i,a);return o.illegalDecorators=n,F(Qe(o,e),t)}function un(){if(20===ve()||29===ve()||137===ve()||151===ve())return!0;for(var t=!1;e.isModifierKind(ve());)t=!0,xe();return 22===ve()||(at()&&(t=!0,xe()),!!t&&(20===ve()||29===ve()||57===ve()||58===ve()||27===ve()||ze()))}function dn(){if(20===ve()||29===ve())return on(176);if(103===ve()&&Ie(pn))return on(177);var e=ge(),t=ye(),n=xi();return ct(137)?_i(e,t,void 0,n,174,4):ct(151)?_i(e,t,void 0,n,175,4):sn()?ln(e,t,void 0,n):function(e,t,n){var r,i=ot(),a=We(57);if(20===ve()||29===ve()){var o=Yt(),s=rn(4),c=tn(58,!0);r=k.createMethodSignature(n,i,a,o,s,c)}else c=Kn(),r=k.createPropertySignature(n,i,a,c),63===ve()&&(r.initializer=$n());return an(),F(Qe(r,e),t)}(e,t,n)}function pn(){return xe(),20===ve()||29===ve()}function mn(){return 24===xe()}function fn(){switch(xe()){case 20:case 29:case 24:return!0}return!1}function _n(){var e;return Re(18)?(e=Tt(4,dn),Re(19)):e=It(),e}function hn(){return xe(),39===ve()||40===ve()?146===xe():(146===ve()&&xe(),22===ve()&>()&&101===xe())}function gn(){var t=ge();if(He(25))return Qe(k.createRestTypeNode(Vn()),t);var n=Vn();if(e.isJSDocNullableType(n)&&n.pos===n.type.pos){var r=k.createOptionalTypeNode(n.type);return e.setTextRange(r,n),r.flags=n.flags,r}return n}function yn(){return 58===xe()||57===ve()&&58===xe()}function vn(){return 25===ve()?e.tokenIsIdentifierOrKeyword(xe())&&yn():e.tokenIsIdentifierOrKeyword(ve())&&yn()}function bn(){if(Ie(vn)){var e=ge(),t=ye(),n=We(25),r=it(),i=We(57);Re(58);var a=gn();return F(Qe(k.createNamedTupleMember(n,r,i,a),e),t)}return gn()}function En(){var e=ge(),t=ye(),n=function(){var e;if(126===ve()){var t=ge();xe(),e=Ye([Qe(k.createToken(126),t)],t)}return e}(),r=He(103),i=Yt(),a=rn(4),o=tn(38,!1),s=r?k.createConstructorTypeNode(n,i,a,o):k.createFunctionTypeNode(i,a,o);return r||(s.modifiers=n),F(Qe(s,e),t)}function xn(){var e=qe();return 24===ve()?void 0:e}function Sn(e){var t=ge();e&&xe();var n=110===ve()||95===ve()||104===ve()?qe():Kt(ve());return e&&(n=Qe(k.createPrefixUnaryExpression(40,n),t)),Qe(k.createLiteralTypeNode(n),t)}function Tn(){return xe(),100===ve()}function Cn(){d|=2097152;var t=ge(),n=He(112);Re(100),Re(20);var r,i=Vn();He(27)&&(r=function(){var t=ge(),n=c.getTokenPos();Re(18);var r=c.hasPrecedingLineBreak();Re(130),Re(58);var i=Ui(!0);if(!Re(19)){var a=e.lastOrUndefined(g);a&&a.code===e.Diagnostics._0_expected.code&&e.addRelatedInfo(a,e.createDetachedDiagnostic(u,n,1,e.Diagnostics.The_parser_expected_to_find_a_1_to_match_the_0_token_here,"{","}"))}return Qe(k.createImportTypeAssertionContainer(i,r),t)}()),Re(21);var a=He(24)?jt():void 0,o=Ht();return Qe(k.createImportTypeNode(i,r,a,o,n),t)}function Dn(){return xe(),8===ve()||9===ve()}function Ln(){switch(ve()){case 131:case 157:case 152:case 148:case 160:case 153:case 134:case 155:case 144:case 149:return Pe(xn)||Wt();case 66:c.reScanAsteriskEqualsToken();case 41:return n=ge(),xe(),Qe(k.createJSDocAllType(),n);case 60:c.reScanQuestionToken();case 57:return function(){var e=ge();return xe(),27===ve()||19===ve()||21===ve()||31===ve()||63===ve()||51===ve()?Qe(k.createJSDocUnknownType(),e):Qe(k.createJSDocNullableType(Vn(),!1),e)}();case 98:return function(){var e=ge(),t=ye();if(Ie(Mi)){xe();var n=rn(36),r=tn(58,!1);return F(Qe(k.createJSDocFunctionType(n,r),e),t)}return Qe(k.createTypeReferenceNode(it(),void 0),e)}();case 53:return function(){var e=ge();return xe(),Qe(k.createJSDocNonNullableType(Ln(),!1),e)}();case 14:case 10:case 8:case 9:case 110:case 95:case 104:return Sn();case 40:return Ie(Dn)?Sn(!0):Wt();case 114:return qe();case 108:var e=qt();return 140!==ve()||c.hasPrecedingLineBreak()?e:(t=e,xe(),Qe(k.createTypePredicateNode(void 0,t,Vn()),t.pos));case 112:return Ie(Tn)?Cn():function(){var e=ge();Re(112);var t=wt(!0),n=c.hasPrecedingLineBreak()?void 0:ki();return Qe(k.createTypeQueryNode(t,n),e)}();case 18:return Ie(hn)?function(){var e,t=ge();Re(18),146!==ve()&&39!==ve()&&40!==ve()||146!==(e=qe()).kind&&Re(146),Re(22);var n,r=function(){var e=ge(),t=it();Re(101);var n=Vn();return Qe(k.createTypeParameterDeclaration(void 0,t,n,void 0),e)}(),i=He(128)?Vn():void 0;Re(23),57!==ve()&&39!==ve()&&40!==ve()||57!==(n=qe()).kind&&Re(57);var a=Kn();Xe();var o=Tt(4,dn);return Re(19),Qe(k.createMappedTypeNode(e,r,i,n,a,o),t)}():function(){var e=ge();return Qe(k.createTypeLiteralNode(_n()),e)}();case 22:return function(){var e=ge();return Qe(k.createTupleTypeNode(Pt(21,bn,22,23)),e)}();case 20:return function(){var e=ge();Re(20);var t=Vn();return Re(21),Qe(k.createParenthesizedType(t),e)}();case 100:return Cn();case 129:return Ie(Kr)?function(){var e=ge(),t=$e(129),n=108===ve()?qt():rt(),r=He(140)?Vn():void 0;return Qe(k.createTypePredicateNode(t,n,r),e)}():Wt();case 15:return function(){var e=ge();return Qe(k.createTemplateLiteralType(Vt(!1),function(){var e,t=ge(),n=[];do{e=Ft(),n.push(e)}while(16===e.literal.kind);return Ye(n,t)}()),e)}();default:return Wt()}var t,n}function An(e){switch(ve()){case 131:case 157:case 152:case 148:case 160:case 134:case 146:case 153:case 156:case 114:case 155:case 104:case 108:case 112:case 144:case 18:case 22:case 29:case 51:case 50:case 103:case 10:case 8:case 9:case 110:case 95:case 149:case 41:case 57:case 53:case 25:case 138:case 100:case 129:case 14:case 15:return!0;case 98:return!e;case 40:return!e&&Ie(Dn);case 20:return!e&&Ie(Nn);default:return Oe()}}function Nn(){return xe(),21===ve()||Qt(!1)||An()}function kn(){for(var e=ge(),t=Ln();!c.hasPrecedingLineBreak();)switch(ve()){case 53:xe(),t=Qe(k.createJSDocNonNullableType(t,!0),e);break;case 57:if(Ie(xt))return t;xe(),t=Qe(k.createJSDocNullableType(t,!0),e);break;case 22:if(Re(22),An()){var n=Vn();Re(23),t=Qe(k.createIndexedAccessTypeNode(t,n),e)}else Re(23),t=Qe(k.createArrayTypeNode(t),e);break;default:return t}return t}function In(){if(He(94)){var e=re(Vn);if(le()||57!==ve())return e}}function Pn(){var e,t=ve();switch(t){case 141:case 156:case 146:return function(e){var t=ge();return Re(e),Qe(k.createTypeOperatorNode(e,Pn()),t)}(t);case 138:return e=ge(),Re(138),Qe(k.createInferTypeNode(function(){var e=ge(),t=rt(),n=Pe(In);return Qe(k.createTypeParameterDeclaration(void 0,t,n),e)}()),e)}return ne(kn)}function wn(t){if(Fn()){var n=En();return _e(n,e.isFunctionTypeNode(n)?t?e.Diagnostics.Function_type_notation_must_be_parenthesized_when_used_in_a_union_type:e.Diagnostics.Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:t?e.Diagnostics.Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type:e.Diagnostics.Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type),n}}function On(e,t,n){var r=ge(),i=51===e,a=He(e),o=a&&wn(i)||t();if(ve()===e||a){for(var s=[o];He(e);)s.push(wn(i)||t());o=Qe(n(Ye(s,r)),r)}return o}function Rn(){return On(50,Pn,k.createIntersectionTypeNode)}function Mn(){return xe(),103===ve()}function Fn(){return 29===ve()||!(20!==ve()||!Ie(Gn))||103===ve()||126===ve()&&Ie(Mn)}function Gn(){if(xe(),21===ve()||25===ve())return!0;if(function(){if(e.isModifierKind(ve())&&xi(),Oe()||108===ve())return xe(),!0;if(22===ve()||18===ve()){var t=g.length;return ai(),t===g.length}return!1}()){if(58===ve()||27===ve()||57===ve()||63===ve())return!0;if(21===ve()&&(xe(),38===ve()))return!0}return!1}function Bn(){var e=ge(),t=Oe()&&Pe(Un),n=Vn();return t?Qe(k.createTypePredicateNode(void 0,t,n),e):n}function Un(){var e=rt();if(140===ve()&&!c.hasPrecedingLineBreak())return xe(),e}function Vn(){if(40960&A)return Z(40960,Vn);if(Fn())return En();var e=ge(),t=On(51,Rn,k.createUnionTypeNode);if(!le()&&!c.hasPrecedingLineBreak()&&He(94)){var n=re(Vn);Re(57);var r=ne(Vn);Re(58);var i=ne(Vn);return Qe(k.createConditionalTypeNode(t,n,r,i),e)}return t}function Kn(){return He(58)?Vn():void 0}function jn(){switch(ve()){case 108:case 106:case 104:case 110:case 95:case 8:case 9:case 10:case 14:case 15:case 20:case 22:case 18:case 98:case 84:case 103:case 43:case 68:case 79:return!0;case 100:return Ie(fn);default:return Oe()}}function Hn(){if(jn())return!0;switch(ve()){case 39:case 40:case 54:case 53:case 89:case 112:case 114:case 45:case 46:case 29:case 133:case 125:case 80:return!0;default:return!!rr()||Oe()}}function Wn(){var e=ue();e&&Y(!1);for(var t,n=ge(),r=qn(!0);t=We(27);)r=ar(r,t,qn(!0),n);return e&&Y(!0),r}function $n(){return He(63)?qn(!0):void 0}function qn(t){if(125===ve()&&(se()||Ie(Wr)))return function(){var e=ge();return xe(),c.hasPrecedingLineBreak()||41!==ve()&&!Hn()?Qe(k.createYieldExpression(void 0,void 0),e):Qe(k.createYieldExpression(We(41),qn(!0)),e)}();var n=function(t){var n=20===ve()||29===ve()||132===ve()?Ie(Xn):38===ve()?1:0;if(0!==n)return 1===n?Qn(!0,!0):Pe(function(){return function(t){var n=c.getTokenPos();if(!(null==L?void 0:L.has(n))){var r=Qn(!1,t);return r||(L||(L=new e.Set)).add(n),r}}(t)})}(t)||function(e){if(132===ve()&&1===Ie(Yn)){var t=ge(),n=Si();return Jn(t,er(0),e,n)}}(t);if(n)return n;var r=ge(),i=er(0);return 79===i.kind&&38===ve()?Jn(r,i,t,void 0):e.isLeftHandSideExpression(i)&&e.isAssignmentOperator(Te())?ar(i,qe(),qn(t),r):function(t,n,r){var i,a=We(57);return a?Qe(k.createConditionalExpression(t,a,Z(20480,function(){return qn(!1)}),i=$e(58),e.nodeIsPresent(i)?qn(r):Ze(79,!1,e.Diagnostics._0_expected,e.tokenToString(58))),n):t}(i,r,t)}function zn(){return xe(),!c.hasPrecedingLineBreak()&&Oe()}function Jn(t,n,r,i){e.Debug.assert(38===ve(),"parseSimpleArrowFunctionExpression should only have been called if we had a =>");var a=k.createParameterDeclaration(void 0,void 0,n,void 0,void 0,void 0);Qe(a,n.pos);var o=Ye([a],a.pos,a.end),s=$e(38),c=Zn(!!i,r);return H(Qe(k.createArrowFunction(i,void 0,o,void 0,s,c),t))}function Xn(){if(132===ve()){if(xe(),c.hasPrecedingLineBreak())return 0;if(20!==ve()&&29!==ve())return 0}var t=ve(),n=xe();if(20===t){if(21===n)switch(xe()){case 38:case 58:case 18:return 1;default:return 0}if(22===n||18===n)return 2;if(25===n)return 1;if(e.isModifierKind(n)&&132!==n&&Ie(gt))return 128===xe()?0:1;if(!Oe()&&108!==n)return 0;switch(xe()){case 58:return 1;case 57:return xe(),58===ve()||27===ve()||63===ve()||21===ve()?1:0;case 27:case 63:case 21:return 2}return 0}return e.Debug.assert(29===t),Oe()?1===h?Ie(function(){var e=xe();if(94===e)switch(xe()){case 63:case 31:return!1;default:return!0}else if(27===e||63===e)return!0;return!1})?1:0:2:0}function Yn(){if(132===ve()){if(xe(),c.hasPrecedingLineBreak()||38===ve())return 0;var e=er(0);if(!c.hasPrecedingLineBreak()&&79===e.kind&&38===ve())return 1}return 0}function Qn(t,n){var r,i=ge(),a=ye(),o=Si(),s=e.some(o,e.isAsyncModifier)?2:0,c=Yt();if(Re(20)){if(t)r=nn(s,t);else{var l=nn(s,t);if(!l)return;r=l}if(!Re(21)&&!t)return}else{if(!t)return;r=It()}var u=58===ve(),d=tn(58,!1);if(!d||t||!$t(d)){for(var p=d;193===(null==p?void 0:p.kind);)p=p.type;var m=p&&e.isJSDocFunctionType(p);if(t||38===ve()||!m&&18===ve()){var f=ve(),_=$e(38),h=38===f||18===f?Zn(e.some(o,e.isAsyncModifier),n):rt();if(n||!u||58===ve())return F(Qe(k.createArrowFunction(o,c,r,d,_,h),i),a)}}}function Zn(e,t){if(18===ve())return Br(e?2:0);if(26!==ve()&&98!==ve()&&84!==ve()&&zr()&&(18===ve()||98===ve()||84===ve()||59===ve()||!Hn()))return Br(16|(e?2:0));var n=I;I=!1;var r=e?ie(function(){return qn(t)}):ae(function(){return qn(t)});return I=n,r}function er(e){var t=ge();return nr(e,cr(),t)}function tr(e){return 101===e||162===e}function nr(t,n,r){for(;;){Te();var i=e.getBinaryOperatorPrecedence(ve());if(!(42===ve()?i>=t:i>t))break;if(101===ve()&&ce())break;if(128===ve()||150===ve()){if(c.hasPrecedingLineBreak())break;var a=ve();xe(),n=150===a?ir(n,Vn()):or(n,Vn())}else n=ar(n,qe(),er(i),r)}return n}function rr(){return(!ce()||101!==ve())&&e.getBinaryOperatorPrecedence(ve())>0}function ir(e,t){return Qe(k.createSatisfiesExpression(e,t),e.pos)}function ar(e,t,n,r){return Qe(k.createBinaryExpression(e,t,n),r)}function or(e,t){return Qe(k.createAsExpression(e,t),e.pos)}function sr(){var e=ge();return Qe(k.createPrefixUnaryExpression(ve(),Ee(lr)),e)}function cr(){if(function(){switch(ve()){case 39:case 40:case 54:case 53:case 89:case 112:case 114:case 133:return!1;case 29:if(1!==h)return!1;default:return!0}}()){var t=ge(),n=ur();return 42===ve()?nr(e.getBinaryOperatorPrecedence(ve()),n,t):n}var r=ve(),i=lr();if(42===ve()){t=e.skipTrivia(p,i.pos);var a=i.end;213===i.kind?fe(t,a,e.Diagnostics.A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses):fe(t,a,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(r))}return i}function lr(){switch(ve()){case 39:case 40:case 54:case 53:return sr();case 89:return e=ge(),Qe(k.createDeleteExpression(Ee(lr)),e);case 112:return function(){var e=ge();return Qe(k.createTypeOfExpression(Ee(lr)),e)}();case 114:return function(){var e=ge();return Qe(k.createVoidExpression(Ee(lr)),e)}();case 29:return function(){var e=ge();Re(29);var t=Vn();Re(31);var n=lr();return Qe(k.createTypeAssertion(t,n),e)}();case 133:if(133===ve()&&(de()||Ie(Wr)))return function(){var e=ge();return Qe(k.createAwaitExpression(Ee(lr)),e)}();default:return ur()}var e}function ur(){if(45===ve()||46===ve()){var t=ge();return Qe(k.createPrefixUnaryExpression(ve(),Ee(dr)),t)}if(1===h&&29===ve()&&Ie(vt))return mr(!0);var n=dr();if(e.Debug.assert(e.isLeftHandSideExpression(n)),(45===ve()||46===ve())&&!c.hasPrecedingLineBreak()){var r=ve();return xe(),Qe(k.createPostfixUnaryExpression(n,r),n.pos)}return n}function dr(){var t,n=ge();return 100===ve()?Ie(pn)?(d|=2097152,t=qe()):Ie(mn)?(xe(),xe(),t=Qe(k.createMetaProperty(100,it()),n),d|=4194304):t=pr():t=106===ve()?function(){var t=ge(),n=qe();if(29===ve()){var r=ge(),i=Pe(Nr);void 0!==i&&(fe(r,ge(),e.Diagnostics.super_may_not_use_type_arguments),Cr()||(n=k.createExpressionWithTypeArguments(n,i)))}return 20===ve()||24===ve()||22===ve()?n:($e(24,e.Diagnostics.super_must_be_followed_by_an_argument_list_or_member_access),Qe(k.createPropertyAccessExpression(n,Rt(!0,!0)),t))}():pr(),Lr(n,t)}function pr(){return Tr(ge(),kr(),!0)}function mr(t,r,i){var a,o=ge(),s=function(e){var t=ge();if(Re(29),31===ve())return Ne(),Qe(k.createJsxOpeningFragment(),t);var n,r=hr(),i=262144&A?void 0:ki(),a=function(){var e=ge();return Qe(k.createJsxAttributes(Tt(13,yr)),e)}();return 31===ve()?(Ne(),n=k.createJsxOpeningElement(r,i,a)):(Re(43),Re(31,void 0,!1)&&(e?xe():Ne()),n=k.createJsxSelfClosingElement(r,i,a)),Qe(n,t)}(t);if(283===s.kind){var c=_r(s),l=void 0,u=c[c.length-1];if(281===(null==u?void 0:u.kind)&&!J(u.openingElement.tagName,u.closingElement.tagName)&&J(s.tagName,u.closingElement.tagName)){var d=u.children.end,m=Qe(k.createJsxElement(u.openingElement,u.children,Qe(k.createJsxClosingElement(Qe(k.createIdentifier(""),d,d)),d,d)),u.openingElement.pos,d);c=Ye(n(n([],c.slice(0,c.length-1),!0),[m],!1),c.pos,d),l=u.closingElement}else l=function(e,t){var n=ge();Re(30);var r=hr();return Re(31,void 0,!1)&&(t||!J(e.tagName,r)?xe():Ne()),Qe(k.createJsxClosingElement(r),n)}(s,t),J(s.tagName,l.tagName)||(i&&e.isJsxOpeningElement(i)&&J(l.tagName,i.tagName)?_e(s.tagName,e.Diagnostics.JSX_element_0_has_no_corresponding_closing_tag,e.getTextOfNodeFromSourceText(p,s.tagName)):_e(l.tagName,e.Diagnostics.Expected_corresponding_JSX_closing_tag_for_0,e.getTextOfNodeFromSourceText(p,s.tagName)));a=Qe(k.createJsxElement(s,c,l),o)}else 286===s.kind?a=Qe(k.createJsxFragment(s,_r(s),function(t){var n=ge();return Re(30),e.tokenIsIdentifierOrKeyword(ve())&&_e(hr(),e.Diagnostics.Expected_corresponding_closing_tag_for_JSX_fragment),Re(31,void 0,!1)&&(t?xe():Ne()),Qe(k.createJsxJsxClosingFragment(),n)}(t)),o):(e.Debug.assert(282===s.kind),a=s);if(t&&29===ve()){var f=void 0===r?a.pos:r,_=Pe(function(){return mr(!0,f)});if(_){var h=Ze(27,!1);return e.setTextRangePosWidth(h,_.pos,0),fe(e.skipTrivia(p,f),_.end,e.Diagnostics.JSX_expressions_must_have_one_parent_element),Qe(k.createBinaryExpression(a,h,_),o)}}return a}function fr(t,n){switch(n){case 1:if(e.isJsxOpeningFragment(t))_e(t,e.Diagnostics.JSX_fragment_has_no_corresponding_closing_tag);else{var r=t.tagName;fe(e.skipTrivia(p,r.pos),r.end,e.Diagnostics.JSX_element_0_has_no_corresponding_closing_tag,e.getTextOfNodeFromSourceText(p,t.tagName))}return;case 30:case 7:return;case 11:case 12:return i=ge(),a=k.createJsxText(c.getTokenValue(),12===E),E=c.scanJsxToken(),Qe(a,i);case 18:return gr(!1);case 29:return mr(!1,void 0,t);default:return e.Debug.assertNever(n)}var i,a}function _r(t){var n=[],r=ge(),i=D;for(D|=16384;;){var a=fr(t,E=c.reScanJsxToken());if(!a)break;if(n.push(a),e.isJsxOpeningElement(t)&&281===(null==a?void 0:a.kind)&&!J(a.openingElement.tagName,a.closingElement.tagName)&&J(t.tagName,a.closingElement.tagName))break}return D=i,Ye(n,r)}function hr(){var e=ge();Ae();for(var t=108===ve()?qe():it();He(24);)t=Qe(k.createPropertyAccessExpression(t,Rt(!0,!1)),e);return t}function gr(e){var t,n,r=ge();if(Re(18))return 19!==ve()&&(t=We(25),n=Wn()),e?Re(19):Re(19,void 0,!1)&&Ne(),Qe(k.createJsxExpression(t,n),r)}function yr(){if(18===ve())return function(){var e=ge();Re(18),Re(25);var t=Wn();return Re(19),Qe(k.createJsxSpreadAttribute(t),e)}();Ae();var t=ge();return Qe(k.createJsxAttribute(it(),function(){if(63===ve()){if(10===(E=c.scanJsxAttributeValue()))return Ut();if(18===ve())return gr(!0);if(29===ve())return mr(!0);pe(e.Diagnostics.or_JSX_element_expected)}}()),t)}function vr(){return xe(),e.tokenIsIdentifierOrKeyword(ve())||22===ve()||Cr()}function br(){return 28===ve()&&Ie(vr)}function Er(t){if(32&t.flags)return!0;if(e.isNonNullExpression(t)){for(var n=t.expression;e.isNonNullExpression(n)&&!(32&n.flags);)n=n.expression;if(32&n.flags){for(;e.isNonNullExpression(t);)t.flags|=32,t=t.expression;return!0}}return!1}function xr(t,n,r){var i=Rt(!0,!0),a=r||Er(n),o=a?k.createPropertyAccessChain(n,r,i):k.createPropertyAccessExpression(n,i);return a&&e.isPrivateIdentifier(o.name)&&_e(o.name,e.Diagnostics.An_optional_chain_cannot_contain_private_identifiers),e.isExpressionWithTypeArguments(n)&&n.typeArguments&&fe(n.typeArguments.pos-1,e.skipTrivia(p,n.typeArguments.end)+1,e.Diagnostics.An_instantiation_expression_cannot_be_followed_by_a_property_access),Qe(o,t)}function Sr(t,n,r){var i;if(23===ve())i=Ze(79,!0,e.Diagnostics.An_element_access_expression_should_take_an_argument);else{var a=te(Wn);e.isStringOrNumericLiteralLike(a)&&(a.text=et(a.text)),i=a}return Re(23),Qe(r||Er(n)?k.createElementAccessChain(n,r,i):k.createElementAccessExpression(n,i),t)}function Tr(t,n,r){for(;;){var i=void 0,a=!1;if(r&&br()?(i=$e(28),a=e.tokenIsIdentifierOrKeyword(ve())):a=He(24),a)n=xr(t,n,i);else if(!i&&ue()||!He(22)){if(!Cr()){if(!i){if(53===ve()&&!c.hasPrecedingLineBreak()){xe(),n=Qe(k.createNonNullExpression(n),t);continue}var o=Pe(Nr);if(o){n=Qe(k.createExpressionWithTypeArguments(n,o),t);continue}}return n}n=i||230!==n.kind?Dr(t,n,i,void 0):Dr(t,n.expression,i,n.typeArguments)}else n=Sr(t,n,i)}}function Cr(){return 14===ve()||15===ve()}function Dr(e,t,n,r){var i=k.createTaggedTemplateExpression(t,r,14===ve()?(Ce(),Ut()):Mt(!0));return(n||32&t.flags)&&(i.flags|=32),i.questionDotToken=n,Qe(i,e)}function Lr(t,n){for(;;){n=Tr(t,n,!0);var r=void 0,i=We(28);if(i&&(r=Pe(Nr),Cr()))n=Dr(t,n,i,r);else{if(!r&&20!==ve()){if(i){var a=Ze(79,!1,e.Diagnostics.Identifier_expected);n=Qe(k.createPropertyAccessChain(n,i,a),t)}break}i||230!==n.kind||(r=n.typeArguments,n=n.expression);var o=Ar();n=Qe(i||Er(n)?k.createCallChain(n,i,r,o):k.createCallExpression(n,r,o),t)}}return n}function Ar(){Re(20);var e=Nt(11,Pr);return Re(21),e}function Nr(){if(!(262144&A)&&29===De()){xe();var e=Nt(20,Vn);if(31===Te())return xe(),e&&function(){switch(ve()){case 20:case 14:case 15:return!0;case 29:case 31:case 39:case 40:return!1}return c.hasPrecedingLineBreak()||rr()||!Hn()}()?e:void 0}}function kr(){switch(ve()){case 8:case 9:case 10:case 14:return Ut();case 108:case 106:case 104:case 110:case 95:return qe();case 20:return function(){var e=ge(),t=ye();Re(20);var n=te(Wn);return Re(21),F(Qe(k.createParenthesizedExpression(n),e),t)}();case 22:return wr();case 18:return Rr();case 132:if(!Ie(Hr))break;return Mr();case 84:return Di(ge(),ye(),void 0,void 0,228);case 98:return Mr();case 103:return function(){var t=ge();if(Re(103),He(24)){var n=it();return Qe(k.createMetaProperty(103,n),t)}var r,i=Tr(ge(),kr(),!1);230===i.kind&&(r=i.typeArguments,i=i.expression),28===ve()&&pe(e.Diagnostics.Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0,e.getTextOfNodeFromSourceText(p,i));var a=20===ve()?Ar():void 0;return Qe(k.createNewExpression(i,r,a),t)}();case 43:case 68:if(13===(E=c.reScanSlashToken()))return Ut();break;case 15:return Mt(!1);case 80:return st()}return rt(e.Diagnostics.Expression_expected)}function Ir(){return 25===ve()?function(){var e=ge();Re(25);var t=qn(!0);return Qe(k.createSpreadElement(t),e)}():27===ve()?Qe(k.createOmittedExpression(),ge()):qn(!0)}function Pr(){return Z(20480,Ir)}function wr(){var e=ge(),t=c.getTokenPos(),n=Re(22),r=c.hasPrecedingLineBreak(),i=Nt(15,Ir);return je(22,23,n,t),Qe(k.createArrayLiteralExpression(i,r),e)}function Or(){var e=ge(),t=ye();if(We(25)){var n=qn(!0);return F(Qe(k.createSpreadAssignment(n),e),t)}var r=vi(),i=xi();if(ct(137))return _i(e,t,r,i,174,0);if(ct(151))return _i(e,t,r,i,175,0);var a,o=We(41),s=Oe(),c=ot(),l=We(57),u=We(53);if(o||20===ve()||29===ve())return pi(e,t,r,i,o,c,l,u);if(s&&58!==ve()){var d=We(63),p=d?te(function(){return qn(!0)}):void 0;(a=k.createShorthandPropertyAssignment(c,p)).equalsToken=d}else{Re(58);var m=te(function(){return qn(!0)});a=k.createPropertyAssignment(c,m)}return a.illegalDecorators=r,a.modifiers=i,a.questionToken=l,a.exclamationToken=u,F(Qe(a,e),t)}function Rr(){var e=ge(),t=c.getTokenPos(),n=Re(18),r=c.hasPrecedingLineBreak(),i=Nt(12,Or,!0);return je(18,19,n,t),Qe(k.createObjectLiteralExpression(i,r),e)}function Mr(){var t=ue();Y(!1);var n=ge(),r=ye(),i=xi();Re(98);var a=We(41),o=a?1:0,s=e.some(i,e.isAsyncModifier)?2:0,c=o&&s?ee(40960,Fr):o?ee(8192,Fr):s?ie(Fr):Fr(),l=Yt(),u=rn(o|s),d=tn(58,!1),p=Br(o|s);return Y(t),F(Qe(k.createFunctionExpression(i,a,c,l,u,d,p),n),r)}function Fr(){return we()?nt():void 0}function Gr(t,n){var r=ge(),i=ye(),a=c.getTokenPos(),o=Re(18,n);if(o||t){var s=c.hasPrecedingLineBreak(),l=Tt(1,Xr);je(18,19,o,a);var u=F(Qe(k.createBlock(l,s),r),i);return 63===ve()&&(pe(e.Diagnostics.Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_destructuring_assignment_you_might_need_to_wrap_the_the_whole_assignment_in_parentheses),xe()),u}return l=It(),F(Qe(k.createBlock(l,void 0),r),i)}function Br(e,t){var n=se();X(!!(1&e));var r=de();Q(!!(2&e));var i=I;I=!1;var a=ue();a&&Y(!1);var o=Gr(!!(16&e),t);return a&&Y(!0),I=i,X(n),Q(r),o}function Ur(e){var t=ge(),n=ye();Re(249===e?81:86);var r=ze()?void 0:rt();return Xe(),F(Qe(249===e?k.createBreakStatement(r):k.createContinueStatement(r),t),n)}function Vr(){return 82===ve()?function(){var e=ge(),t=ye();Re(82);var n=te(Wn);Re(58);var r=Tt(3,Xr);return F(Qe(k.createCaseClause(n,r),e),t)}():function(){var e=ge();Re(88),Re(58);var t=Tt(3,Xr);return Qe(k.createDefaultClause(t),e)}()}function Kr(){return xe(),e.tokenIsIdentifierOrKeyword(ve())&&!c.hasPrecedingLineBreak()}function jr(){return xe(),84===ve()&&!c.hasPrecedingLineBreak()}function Hr(){return xe(),98===ve()&&!c.hasPrecedingLineBreak()}function Wr(){return xe(),(e.tokenIsIdentifierOrKeyword(ve())||8===ve()||9===ve()||10===ve())&&!c.hasPrecedingLineBreak()}function $r(){for(;;)switch(ve()){case 113:case 119:case 85:case 98:case 84:case 92:return!0;case 118:case 154:return zn();case 142:case 143:return ei();case 126:case 127:case 132:case 136:case 121:case 122:case 123:case 146:if(xe(),c.hasPrecedingLineBreak())return!1;continue;case 159:return xe(),18===ve()||79===ve()||93===ve();case 100:return xe(),10===ve()||41===ve()||18===ve()||e.tokenIsIdentifierOrKeyword(ve());case 93:var t=xe();if(154===t&&(t=Ie(xe)),63===t||41===t||18===t||88===t||128===t)return!0;continue;case 124:xe();continue;default:return!1}}function qr(){return Ie($r)}function zr(){switch(ve()){case 59:case 26:case 18:case 113:case 119:case 98:case 84:case 92:case 99:case 90:case 115:case 97:case 86:case 81:case 105:case 116:case 107:case 109:case 111:case 87:case 83:case 96:case 132:case 136:case 118:case 142:case 143:case 154:case 159:return!0;case 100:return qr()||Ie(fn);case 85:case 93:return qr();case 127:case 123:case 121:case 122:case 124:case 146:return qr()||!Ie(Kr);default:return Hn()}}function Jr(){return xe(),we()||18===ve()||22===ve()}function Xr(){switch(ve()){case 26:return t=ge(),n=ye(),Re(26),F(Qe(k.createEmptyStatement(),t),n);case 18:return Gr(!1);case 113:return ui(ge(),ye(),void 0,void 0);case 119:if(Ie(Jr))return ui(ge(),ye(),void 0,void 0);break;case 98:return di(ge(),ye(),void 0,void 0);case 84:return Ci(ge(),ye(),void 0,void 0);case 99:return function(){var e=ge(),t=ye();Re(99);var n=c.getTokenPos(),r=Re(20),i=te(Wn);je(20,21,r,n);var a=Xr(),o=He(91)?Xr():void 0;return F(Qe(k.createIfStatement(i,a,o),e),t)}();case 90:return function(){var e=ge(),t=ye();Re(90);var n=Xr();Re(115);var r=c.getTokenPos(),i=Re(20),a=te(Wn);return je(20,21,i,r),He(26),F(Qe(k.createDoStatement(n,a),e),t)}();case 115:return function(){var e=ge(),t=ye();Re(115);var n=c.getTokenPos(),r=Re(20),i=te(Wn);je(20,21,r,n);var a=Xr();return F(Qe(k.createWhileStatement(i,a),e),t)}();case 97:return function(){var e=ge(),t=ye();Re(97);var n,r,i=We(133);if(Re(20),26!==ve()&&(n=113===ve()||119===ve()||85===ve()?ci(!0):ee(4096,Wn)),i?Re(162):He(162)){var a=te(function(){return qn(!0)});Re(21),r=k.createForOfStatement(i,n,a,Xr())}else if(He(101))a=te(Wn),Re(21),r=k.createForInStatement(n,a,Xr());else{Re(26);var o=26!==ve()&&21!==ve()?te(Wn):void 0;Re(26);var s=21!==ve()?te(Wn):void 0;Re(21),r=k.createForStatement(n,o,s,Xr())}return F(Qe(r,e),t)}();case 86:return Ur(248);case 81:return Ur(249);case 105:return function(){var e=ge(),t=ye();Re(105);var n=ze()?void 0:te(Wn);return Xe(),F(Qe(k.createReturnStatement(n),e),t)}();case 116:return function(){var e=ge(),t=ye();Re(116);var n=c.getTokenPos(),r=Re(20),i=te(Wn);je(20,21,r,n);var a=ee(33554432,Xr);return F(Qe(k.createWithStatement(i,a),e),t)}();case 107:return function(){var e=ge(),t=ye();Re(107),Re(20);var n=te(Wn);Re(21);var r=function(){var e=ge();Re(18);var t=Tt(2,Vr);return Re(19),Qe(k.createCaseBlock(t),e)}();return F(Qe(k.createSwitchStatement(n,r),e),t)}();case 109:return function(){var e=ge(),t=ye();Re(109);var n=c.hasPrecedingLineBreak()?void 0:te(Wn);return void 0===n&&(C++,n=Qe(k.createIdentifier(""),ge())),Je()||Ue(n),F(Qe(k.createThrowStatement(n),e),t)}();case 111:case 83:case 96:return function(){var t=ge(),n=ye();Re(111);var r,i=Gr(!1),a=83===ve()?function(){var e,t=ge();Re(83),He(20)?(e=si(),Re(21)):e=void 0;var n=Gr(!1);return Qe(k.createCatchClause(e,n),t)}():void 0;return a&&96!==ve()||(Re(96,e.Diagnostics.catch_or_finally_expected),r=Gr(!1)),F(Qe(k.createTryStatement(i,a,r),t),n)}();case 87:return function(){var e=ge(),t=ye();return Re(87),Xe(),F(Qe(k.createDebuggerStatement(),e),t)}();case 59:return Qr();case 132:case 118:case 154:case 142:case 143:case 136:case 85:case 92:case 93:case 100:case 121:case 122:case 123:case 126:case 127:case 124:case 146:case 159:if(qr())return Qr()}var t,n;return function(){var t,n=ge(),r=ye(),i=20===ve(),a=te(Wn);return e.isIdentifier(a)&&He(58)?t=k.createLabeledStatement(a,Xr()):(Je()||Ue(a),t=k.createExpressionStatement(a),i&&(r=!1)),F(Qe(t,n),r)}()}function Yr(e){return 136===e.kind}function Qr(){var t=ge(),n=ye(),r=vi(),i=xi();if(e.some(i,Yr)){var a=function(e){return ee(16777216,function(){var t=Dt(D,e);if(t)return Lt(t)})}(t);if(a)return a;for(var o=0,s=i;o=0),e.Debug.assert(t<=o),e.Debug.assert(o<=a.length),m(a,t)){var s,l,d,f,_,h=[],g=[];return c.scanRange(t+3,i-5,function(){var n,r=1,i=t-(a.lastIndexOf("\n",t)+1)+4;function u(e){n||(n=i),h.push(e),i+=e.length}for(Se();q(5););q(4)&&(r=0,i=0);e:for(;;){switch(ve()){case 59:0===r||1===r?(v(h),_||(_=ge()),P(S(i)),r=0,n=void 0):u(c.getTokenText());break;case 4:h.push(c.getTokenText()),r=0,i=0;break;case 41:var p=c.getTokenText();1===r||2===r?(r=2,u(p)):(r=1,i+=p.length);break;case 5:var m=c.getTokenText();2===r?h.push(m):void 0!==n&&i+m.length>n&&h.push(m.slice(n-i)),i+=m.length;break;case 1:break e;case 18:r=2;var b=c.getStartPos(),E=A(c.getTextPos()-1);if(E){f||y(h),g.push(Qe(k.createJSDocText(h.join("")),null!=f?f:t,b)),g.push(E),h=[],f=c.getTextPos();break}default:r=2,u(c.getTokenText())}Se()}v(h),g.length&&h.length&&g.push(Qe(k.createJSDocText(h.join("")),null!=f?f:t,_)),g.length&&s&&e.Debug.assertIsDefined(_,"having parsed tags implies that the end of the comment span should be set");var x=s&&Ye(s,l,d);return Qe(k.createJSDocComment(g.length?Ye(g,t,_):h.length?h.join(""):void 0,x),t,o)})}function y(e){for(;e.length&&("\n"===e[0]||"\r"===e[0]);)e.shift()}function v(e){for(;e.length&&""===e[e.length-1].trim();)e.pop()}function b(){for(;;){if(Se(),1===ve())return!0;if(5!==ve()&&4!==ve())return!1}}function E(){if(5!==ve()&&4!==ve()||!Ie(b))for(;5===ve()||4===ve();)Se()}function x(){if((5===ve()||4===ve())&&Ie(b))return"";for(var e=c.hasPrecedingLineBreak(),t=!1,n="";e&&41===ve()||5===ve()||4===ve();)n+=c.getTokenText(),4===ve()?(e=!0,t=!0,n=""):41===ve()&&(e=!1),Se();return t?n:""}function S(t){e.Debug.assert(59===ve());var i=c.getTokenPos();Se();var a,o=z(void 0),l=x();switch(o.escapedText){case"author":a=function(t,n,r,i){var a=ge(),o=function(){for(var e=[],t=!1,n=c.getToken();1!==n&&4!==n;){if(29===n)t=!0;else{if(59===n&&!t)break;if(31===n&&t){e.push(c.getTokenText()),c.setTextPos(c.getTokenPos()+1);break}}e.push(c.getTokenText()),n=Se()}return k.createJSDocText(e.join(""))}(),s=c.getStartPos(),l=T(t,s,r,i);l||(s=c.getStartPos());var u="string"!=typeof l?Ye(e.concatenate([Qe(o,a,s)],l),a):o.text+l;return Qe(k.createJSDocAuthorTag(n,u),t)}(i,o,t,l);break;case"implements":a=function(e,t,n,r){var i=G();return Qe(k.createJSDocImplementsTag(t,i,T(e,ge(),n,r)),e)}(i,o,t,l);break;case"augments":case"extends":a=function(e,t,n,r){var i=G();return Qe(k.createJSDocAugmentsTag(t,i,T(e,ge(),n,r)),e)}(i,o,t,l);break;case"class":case"constructor":a=B(i,k.createJSDocClassTag,o,t,l);break;case"public":a=B(i,k.createJSDocPublicTag,o,t,l);break;case"private":a=B(i,k.createJSDocPrivateTag,o,t,l);break;case"protected":a=B(i,k.createJSDocProtectedTag,o,t,l);break;case"readonly":a=B(i,k.createJSDocReadonlyTag,o,t,l);break;case"override":a=B(i,k.createJSDocOverrideTag,o,t,l);break;case"deprecated":j=!0,a=B(i,k.createJSDocDeprecatedTag,o,t,l);break;case"this":a=function(e,t,r,i){var a=n(!0);return E(),Qe(k.createJSDocThisTag(t,a,T(e,ge(),r,i)),e)}(i,o,t,l);break;case"enum":a=function(e,t,r,i){var a=n(!0);return E(),Qe(k.createJSDocEnumTag(t,a,T(e,ge(),r,i)),e)}(i,o,t,l);break;case"arg":case"argument":case"param":return M(i,o,2,t);case"return":case"returns":a=function(t,n,r,i){e.some(s,e.isJSDocReturnTag)&&fe(n.pos,c.getTokenPos(),e.Diagnostics._0_tag_already_specified,n.escapedText);var a=w();return Qe(k.createJSDocReturnTag(n,a,T(t,ge(),r,i)),t)}(i,o,t,l);break;case"template":a=function(e,t,r,i){var a=18===ve()?n():void 0,o=function(){var e=ge(),t=[];do{E();var n=$();void 0!==n&&t.push(n),x()}while(q(27));return Ye(t,e)}();return Qe(k.createJSDocTemplateTag(t,a,o,T(e,ge(),r,i)),e)}(i,o,t,l);break;case"type":a=F(i,o,t,l);break;case"typedef":a=function(t,n,r,i){var a,o=w();x();var s=U();E();var c,l=D(r);if(!o||R(o.type)){for(var d=void 0,p=void 0,m=void 0,f=!1;d=Pe(function(){return K(r)});)if(f=!0,346===d.kind){if(p){var _=pe(e.Diagnostics.A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags);_&&e.addRelatedInfo(_,e.createDetachedDiagnostic(u,0,0,e.Diagnostics.The_tag_was_first_specified_here));break}p=d}else m=e.append(m,d);if(f){var h=o&&185===o.type.kind,g=k.createJSDocTypeLiteral(m,h);c=(o=p&&p.typeExpression&&!R(p.typeExpression.type)?p.typeExpression:Qe(g,t)).end}}return c=c||void 0!==l?ge():(null!==(a=null!=s?s:o)&&void 0!==a?a:n).end,l||(l=T(t,c,r,i)),Qe(k.createJSDocTypedefTag(n,o,s,l),t,c)}(i,o,t,l);break;case"callback":a=function(t,n,r,i){var a=U();E();var o=D(r),s=function(t){for(var n,r,i=ge();n=Pe(function(){return H(4,t)});)r=e.append(r,n);return Ye(r||[],i)}(r),c=Pe(function(){if(q(59)){var e=S(r);if(e&&344===e.kind)return e}}),l=Qe(k.createJSDocSignature(void 0,s,c),t);o||(o=T(t,ge(),r,i));var u=void 0!==o?ge():l.end;return Qe(k.createJSDocCallbackTag(n,l,a,o),t,u)}(i,o,t,l);break;case"see":a=function(t,n,i,a){var o=22===ve()||Ie(function(){return 59===Se()&&e.tokenIsIdentifierOrKeyword(Se())&&I(c.getTokenValue())})?void 0:r(),s=void 0!==i&&void 0!==a?T(t,ge(),i,a):void 0;return Qe(k.createJSDocSeeTag(n,o,s),t)}(i,o,t,l);break;default:a=function(e,t,n,r){return Qe(k.createJSDocUnknownTag(t,T(e,ge(),n,r)),e)}(i,o,t,l)}return a}function T(e,t,n,r){return r||(n+=t-e),D(n,r.slice(n))}function D(e,t){var n,r,i=ge(),a=[],o=[],s=0,l=!0;function u(t){r||(r=e),a.push(t),e+=t.length}void 0!==t&&(""!==t&&u(t),s=1);var d=ve();e:for(;;){switch(d){case 4:s=0,a.push(c.getTokenText()),e=0;break;case 59:if(3===s||2===s&&(!l||Ie(L))){a.push(c.getTokenText());break}c.setTextPos(c.getTextPos()-1);case 1:break e;case 5:if(2===s||3===s)u(c.getTokenText());else{var p=c.getTokenText();void 0!==r&&e+p.length>r&&a.push(p.slice(r-e)),e+=p.length}break;case 18:s=2;var m=c.getStartPos(),f=A(c.getTextPos()-1);f?(o.push(Qe(k.createJSDocText(a.join("")),null!=n?n:i,m)),o.push(f),a=[],n=c.getTextPos()):u(c.getTokenText());break;case 61:s=3===s?2:3,u(c.getTokenText());break;case 41:if(0===s){s=1,e+=1;break}default:3!==s&&(s=2),u(c.getTokenText())}l=5===ve(),d=Se()}return y(a),v(a),o.length?(a.length&&o.push(Qe(k.createJSDocText(a.join("")),null!=n?n:i)),Ye(o,i,c.getTextPos())):a.length?a.join(""):void 0}function L(){var e=Se();return 5===e||4===e}function A(t){var n=Pe(N);if(n){Se(),E();var r=ge(),i=e.tokenIsIdentifierOrKeyword(ve())?wt(!0):void 0;if(i)for(;80===ve();)Le(),Se(),i=Qe(k.createJSDocMemberName(i,rt()),r);for(var a=[];19!==ve()&&4!==ve()&&1!==ve();)a.push(c.getTokenText()),Se();return Qe(("link"===n?k.createJSDocLink:"linkcode"===n?k.createJSDocLinkCode:k.createJSDocLinkPlain)(i,a.join("")),t,c.getTextPos())}}function N(){if(x(),18===ve()&&59===Se()&&e.tokenIsIdentifierOrKeyword(Se())){var t=c.getTokenValue();if(I(t))return t}}function I(e){return"link"===e||"linkcode"===e||"linkplain"===e}function P(e){e&&(s?s.push(e):(s=[e],l=e.pos),d=e.end)}function w(){return x(),18===ve()?n():void 0}function O(){var t=q(22);t&&E();var n=q(61),r=function(){var e=z();for(He(22)&&Re(23);He(24);){var t=z();He(22)&&Re(23),e=Ot(e,t)}return e}();return n&&(function(e){if(ve()===e)return t=ge(),n=ve(),Se(),Qe(k.createToken(n),t);var t,n}(61)||Ze(61,!1,e.Diagnostics._0_expected,e.tokenToString(61))),t&&(E(),We(63)&&Wn(),Re(23)),{name:r,isBracketed:t}}function R(t){switch(t.kind){case 149:return!0;case 185:return R(t.elementType);default:return e.isTypeReferenceNode(t)&&e.isIdentifier(t.typeName)&&"Object"===t.typeName.escapedText&&!t.typeArguments}}function M(t,n,r,i){var a=w(),o=!a;x();var s=O(),c=s.name,l=s.isBracketed,u=x();o&&!Ie(N)&&(a=w());var d=T(t,ge(),i,u),p=4!==r&&function(t,n,r,i){if(t&&R(t.type)){for(var a=ge(),o=void 0,s=void 0;o=Pe(function(){return H(r,i,n)});)343!==o.kind&&350!==o.kind||(s=e.append(s,o));if(s){var c=Qe(k.createJSDocTypeLiteral(s,185===t.type.kind),a);return Qe(k.createJSDocTypeExpression(c),a)}}}(a,c,r,i);return p&&(a=p,o=!0),Qe(1===r?k.createJSDocPropertyTag(n,c,l,a,o,d):k.createJSDocParameterTag(n,c,l,a,o,d),t)}function F(t,r,i,a){e.some(s,e.isJSDocTypeTag)&&fe(r.pos,c.getTokenPos(),e.Diagnostics._0_tag_already_specified,r.escapedText);var o=n(!0),l=void 0!==i&&void 0!==a?T(t,ge(),i,a):void 0;return Qe(k.createJSDocTypeTag(r,o,l),t)}function G(){var e=He(18),t=ge(),n=function(){for(var e=ge(),t=z();He(24);){var n=z();t=Qe(k.createPropertyAccessExpression(t,n),e)}return t}(),r=ki(),i=Qe(k.createExpressionWithTypeArguments(n,r),t);return e&&Re(19),i}function B(e,t,n,r,i){return Qe(t(n,T(e,ge(),r,i)),e)}function U(t){var n=c.getTokenPos();if(e.tokenIsIdentifierOrKeyword(ve())){var r=z();if(He(24)){var i=U(!0);return Qe(k.createModuleDeclaration(void 0,r,i,t?4:void 0),n)}return t&&(r.isInJSDocNamespace=!0),r}}function V(t,n){for(;!e.isIdentifier(t)||!e.isIdentifier(n);){if(e.isIdentifier(t)||e.isIdentifier(n)||t.right.escapedText!==n.right.escapedText)return!1;t=t.left,n=n.left}return t.escapedText===n.escapedText}function K(e){return H(1,e)}function H(t,n,r){for(var i=!0,a=!1;;)switch(Se()){case 59:if(i){var o=W(t,n);return!(o&&(343===o.kind||350===o.kind)&&4!==t&&r&&(e.isIdentifier(o.name)||!V(r,o.name.left)))&&o}a=!1;break;case 4:i=!0,a=!1;break;case 41:a&&(i=!1),a=!0;break;case 79:i=!1;break;case 1:return!1}}function W(t,n){e.Debug.assert(59===ve());var r=c.getStartPos();Se();var i,a=z();switch(E(),a.escapedText){case"type":return 1===t&&F(r,a);case"prop":case"property":i=1;break;case"arg":case"argument":case"param":i=6;break;default:return!1}return!!(t&i)&&M(r,a,t,n)}function $(){var t=ge(),n=q(22);n&&E();var r,i=z(e.Diagnostics.Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces);if(n&&(E(),Re(63),r=ee(8388608,Jt),Re(23)),!e.nodeIsMissing(i))return Qe(k.createTypeParameterDeclaration(void 0,i,void 0,r),t)}function q(e){return ve()===e&&(Se(),!0)}function z(t){if(!e.tokenIsIdentifierOrKeyword(ve()))return Ze(79,!t,t||e.Diagnostics.Identifier_expected);C++;var n=c.getTokenPos(),r=c.getTextPos(),i=ve(),a=et(c.getTokenValue()),o=Qe(k.createIdentifier(a,void 0,i),n,r);return Se(),o}}t.parseJSDocTypeExpressionForTests=function(t,r,i){O("file.js",t,99,void 0,1),c.setText(t,r,i),E=c.scan();var a=n(),o=$("file.js",99,1,!1,[],k.createToken(1),0,e.noop),s=e.attachFileToDiagnostics(g,o);return v&&(o.jsDocDiagnostics=e.attachFileToDiagnostics(v,o)),R(),a?{jsDocTypeExpression:a,diagnostics:s}:void 0},t.parseJSDocTypeExpression=n,t.parseJSDocNameReference=r,t.parseIsolatedJSDocComment=function(t,n,r){O("",t,99,void 0,1);var i=ee(8388608,function(){return o(n,r)}),a={languageVariant:0,text:t},s=e.attachFileToDiagnostics(g,a);return R(),i?{jsDoc:i,diagnostics:s}:void 0},t.parseJSDocComment=function(t,n,r){var i=E,a=g.length,s=P,c=ee(8388608,function(){return o(n,r)});return e.setParent(c,t),262144&A&&(v||(v=[]),v.push.apply(v,g)),E=i,g.length=a,P=s,c},function(e){e[e.BeginningOfLine=0]="BeginningOfLine",e[e.SawAsterisk=1]="SawAsterisk",e[e.SavingComments=2]="SavingComments",e[e.SavingBackticks=3]="SavingBackticks"}(i||(i={})),function(e){e[e.Property=1]="Property",e[e.Parameter=2]="Parameter",e[e.CallbackParameter=4]="CallbackParameter"}(a||(a={}))}(Ge=t.JSDocParser||(t.JSDocParser={}))}(g||(g={})),function(t){function n(t,n,i,o,s,c){return void(n?u(t):l(t));function l(t){var n="";if(c&&r(t)&&(n=o.substring(t.pos,t.end)),t._children&&(t._children=void 0),e.setTextRangePosEnd(t,t.pos+i,t.end+i),c&&r(t)&&e.Debug.assert(n===s.substring(t.pos,t.end)),M(t,l,u),e.hasJSDocNodes(t))for(var d=0,p=t.jsDoc;d=n,"Adjusting an element that was entirely before the change range"),e.Debug.assert(t.pos<=r,"Adjusting an element that was entirely after the change range"),e.Debug.assert(t.pos<=t.end);var o=Math.min(t.pos,i),s=t.end>=r?t.end+a:Math.min(t.end,i);e.Debug.assert(o<=s),t.parent&&(e.Debug.assertGreaterThanOrEqual(o,t.parent.pos),e.Debug.assertLessThanOrEqual(s,t.parent.end)),e.setTextRangePosEnd(t,o,s)}function a(t,n){if(n){var r=t.pos,i=function(t){e.Debug.assert(t.pos>=r),r=t.end};if(e.hasJSDocNodes(t))for(var a=0,o=t.jsDoc;a=i.pos&&(i=a),nn),!0)}),r){var a=function(t){for(;;){var n=e.getLastChild(t);if(!n)return t;t=n}}(r);a.pos>i.pos&&(i=a)}return i}function s(t,n,r,i){var a=t.text;if(r&&(e.Debug.assert(a.length-r.span.length+r.newLength===n.length),i||e.Debug.shouldAssert(3))){var o=a.substr(0,r.span.start),s=n.substr(0,r.span.start);e.Debug.assert(o===s);var c=a.substring(e.textSpanEnd(r.span),a.length),l=n.substring(e.textSpanEnd(e.textChangeRangeNewSpan(r)),n.length);e.Debug.assert(c===l)}}function c(t){var n=t.statements,r=0;e.Debug.assert(r=t.pos&&e=t.pos&&e0&&i<=1;i++){var a=o(t,r);e.Debug.assert(a.pos<=r);var s=a.pos;r=Math.max(0,s-1)}var c=e.createTextSpanFromBounds(r,e.textSpanEnd(n.span)),l=n.newLength+(n.span.start-r);return e.createTextChangeRange(c,l)}(t,l);s(t,r,f,u),e.Debug.assert(f.span.start<=l.span.start),e.Debug.assert(e.textSpanEnd(f.span)===e.textSpanEnd(l.span)),e.Debug.assert(e.textSpanEnd(e.textChangeRangeNewSpan(f))===e.textSpanEnd(e.textChangeRangeNewSpan(l)));var _=e.textChangeRangeNewSpan(f).length-f.span.length;!function(t,r,o,s,c,l,u,d){return void p(t);function p(t){if(e.Debug.assert(t.pos<=t.end),t.pos>o)n(t,!1,c,l,u,d);else{var f=t.end;if(f>=r){if(t.intersectsChange=!0,t._children=void 0,i(t,r,o,s,c),M(t,p,m),e.hasJSDocNodes(t))for(var _=0,h=t.jsDoc;_o)n(t,!0,c,l,u,d);else{var a=t.end;if(a>=r){t.intersectsChange=!0,t._children=void 0,i(t,r,o,s,c);for(var m=0,f=t;mi){g();var h={range:{pos:f.pos+a,end:f.end+a},type:_};l=e.append(l,h),c&&e.Debug.assert(o.substring(f.pos,f.end)===s.substring(h.range.pos,h.range.end))}}return g(),l;function g(){u||(u=!0,l?n&&l.push.apply(l,n):l=n)}}(t.commentDirectives,h.commentDirectives,f.span.start,e.textSpanEnd(f.span),_,p,r,u),h.impliedNodeFormat=t.impliedNodeFormat,h},t.createSyntaxCursor=c,function(e){e[e.Value=-1]="Value"}(l||(l={}))}(y||(y={})),e.isDeclarationFileName=U,e.processCommentPragmas=V,e.processPragmasIntoFields=K;var j=new e.Map;function H(e){if(j.has(e))return j.get(e);var t=new RegExp("(\\s".concat(e,"\\s*=\\s*)(?:(?:'([^']*)')|(?:\"([^\"]*)\"))"),"im");return j.set(e,t),t}var W=/^\/\/\/\s*<(\S+)\s.*?\/>/im,$=/^\/\/\/?\s*@(\S+)\s*(.*)\s*$/im;function q(t,n,r){var i=2===n.kind&&W.exec(r);if(i){var a=i[1].toLowerCase(),o=e.commentPragmas[a];if(!(o&&1&o.kind))return;if(o.args){for(var s={},c=0,l=o.args;c=n.length)break;var o=a;if(34===n.charCodeAt(o)){for(a++;a32;)a++;i.push(n.substring(o,a))}}c(i)}else s.push(n)}}function v(t,n,r,i,a,o){if(i.isTSConfigOnly)"null"===(s=t[n])?(a[i.name]=void 0,n++):"boolean"===i.type?"false"===s?(a[i.name]=he(i,!1,o),n++):("true"===s&&n++,o.push(e.createCompilerDiagnostic(e.Diagnostics.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line,i.name))):(o.push(e.createCompilerDiagnostic(e.Diagnostics.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line,i.name)),s&&!e.startsWith(s,"-")&&n++);else if(t[n]||"boolean"===i.type||o.push(e.createCompilerDiagnostic(r.optionTypeMismatchDiagnostic,i.name,K(i))),"null"!==t[n])switch(i.type){case"number":a[i.name]=he(i,parseInt(t[n]),o),n++;break;case"boolean":var s=t[n];a[i.name]=he(i,"false"!==s,o),"false"!==s&&"true"!==s||n++;break;case"string":a[i.name]=he(i,t[n]||"",o),n++;break;case"list":var c=_(i,t[n],o);a[i.name]=c||[],c&&n++;break;default:a[i.name]=f(i,t[n],o),n++}else a[i.name]=void 0,n++;return n}function b(e,t){return E(c,e,t)}function E(e,t,n){void 0===n&&(n=!1),t=t.toLowerCase();var r=e(),i=r.optionsNameMap,a=r.shortOptionNames;if(n){var o=a.get(t);void 0!==o&&(t=o)}return i.get(t)}function x(){return l||(l=s(e.buildOpts))}e.defaultInitCompilerOptions={module:e.ModuleKind.CommonJS,target:3,strict:!0,esModuleInterop:!0,forceConsistentCasingInFileNames:!0,skipLibCheck:!0},e.convertEnableAutoDiscoveryToEnable=d,e.createCompilerDiagnosticForInvalidCustomType=p,e.parseCustomTypeOption=f,e.parseListTypeOption=_,e.parseCommandLineWorker=y,e.compilerOptionsDidYouMeanDiagnostics={alternateMode:u,getOptionsNameMap:c,optionDeclarations:e.optionDeclarations,unknownOptionDiagnostic:e.Diagnostics.Unknown_compiler_option_0,unknownDidYouMeanDiagnostic:e.Diagnostics.Unknown_compiler_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:e.Diagnostics.Compiler_option_0_expects_an_argument},e.parseCommandLine=function(t,n){return y(e.compilerOptionsDidYouMeanDiagnostics,t,n)},e.getOptionFromName=b;var S={alternateMode:{diagnostic:e.Diagnostics.Compiler_option_0_may_not_be_used_with_build,getOptionsNameMap:c},getOptionsNameMap:x,optionDeclarations:e.buildOpts,unknownOptionDiagnostic:e.Diagnostics.Unknown_build_option_0,unknownDidYouMeanDiagnostic:e.Diagnostics.Unknown_build_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:e.Diagnostics.Build_option_0_requires_a_value_of_type_1};function T(t,n){var r=e.parseJsonText(t,n);return{config:B(r,r.parseDiagnostics,!1,void 0),error:r.parseDiagnostics.length?r.parseDiagnostics[0]:void 0}}function C(t,n){var r=D(t,n);return e.isString(r)?e.parseJsonText(t,r):{fileName:t,parseDiagnostics:[r]}}function D(t,n){var r;try{r=n(t)}catch(n){return e.createCompilerDiagnostic(e.Diagnostics.Cannot_read_file_0_Colon_1,t,n.message)}return void 0===r?e.createCompilerDiagnostic(e.Diagnostics.Cannot_read_file_0,t):r}function L(t){return e.arrayToMap(t,h)}e.parseBuildCommand=function(t){var n=y(S,t),r=n.options,i=n.watchOptions,a=n.fileNames,o=n.errors,s=r;return 0===a.length&&a.push("."),s.clean&&s.force&&o.push(e.createCompilerDiagnostic(e.Diagnostics.Options_0_and_1_cannot_be_combined,"clean","force")),s.clean&&s.verbose&&o.push(e.createCompilerDiagnostic(e.Diagnostics.Options_0_and_1_cannot_be_combined,"clean","verbose")),s.clean&&s.watch&&o.push(e.createCompilerDiagnostic(e.Diagnostics.Options_0_and_1_cannot_be_combined,"clean","watch")),s.watch&&s.dry&&o.push(e.createCompilerDiagnostic(e.Diagnostics.Options_0_and_1_cannot_be_combined,"watch","dry")),{buildOptions:s,watchOptions:i,projects:a,errors:o}},e.getDiagnosticText=function(t){return e.createCompilerDiagnostic.apply(void 0,arguments).messageText},e.getParsedCommandLineOfConfigFile=function(t,n,r,i,a,o){var s=D(t,function(e){return r.readFile(e)});if(e.isString(s)){var c=e.parseJsonText(t,s),l=r.getCurrentDirectory();return c.path=e.toPath(t,l,e.createGetCanonicalFileName(r.useCaseSensitiveFileNames)),c.resolvedPath=c.path,c.originalFileName=c.fileName,Q(c,r,e.getNormalizedAbsolutePath(e.getDirectoryPath(t),l),n,e.getNormalizedAbsolutePath(t,l),void 0,o,i,a)}r.onUnRecoverableConfigFileDiagnostic(s)},e.readConfigFile=function(t,n){var r=D(t,n);return e.isString(r)?T(t,r):{config:{},error:r}},e.parseConfigFileTextToJson=T,e.readJsonConfigFile=C,e.tryReadFile=D;var A,N={optionDeclarations:e.typeAcquisitionDeclarations,unknownOptionDiagnostic:e.Diagnostics.Unknown_type_acquisition_option_0,unknownDidYouMeanDiagnostic:e.Diagnostics.Unknown_type_acquisition_option_0_Did_you_mean_1};function k(){return A||(A=s(e.optionsForWatch))}var I,P,w,O,R={getOptionsNameMap:k,optionDeclarations:e.optionsForWatch,unknownOptionDiagnostic:e.Diagnostics.Unknown_watch_option_0,unknownDidYouMeanDiagnostic:e.Diagnostics.Unknown_watch_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:e.Diagnostics.Watch_option_0_requires_a_value_of_type_1};function M(){return I||(I=L(e.optionDeclarations))}function F(){return P||(P=L(e.optionsForWatch))}function G(){return w||(w=L(e.typeAcquisitionDeclarations))}function B(t,n,r,i){var a,o=null===(a=t.statements[0])||void 0===a?void 0:a.expression,s=r?(void 0===O&&(O={name:void 0,type:"object",elementOptions:L([{name:"compilerOptions",type:"object",elementOptions:M(),extraKeyDiagnostics:e.compilerOptionsDidYouMeanDiagnostics},{name:"watchOptions",type:"object",elementOptions:F(),extraKeyDiagnostics:R},{name:"typingOptions",type:"object",elementOptions:G(),extraKeyDiagnostics:N},{name:"typeAcquisition",type:"object",elementOptions:G(),extraKeyDiagnostics:N},{name:"extends",type:"string",category:e.Diagnostics.File_Management},{name:"references",type:"list",element:{name:"references",type:"object"},category:e.Diagnostics.Projects},{name:"files",type:"list",element:{name:"files",type:"string"},category:e.Diagnostics.File_Management},{name:"include",type:"list",element:{name:"include",type:"string"},category:e.Diagnostics.File_Management,defaultValueDescription:e.Diagnostics.if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk},{name:"exclude",type:"list",element:{name:"exclude",type:"string"},category:e.Diagnostics.File_Management,defaultValueDescription:e.Diagnostics.node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified},e.compileOnSaveCommandLineOption])}),O):void 0;if(o&&207!==o.kind){if(n.push(e.createDiagnosticForNodeInSourceFile(t,o,e.Diagnostics.The_root_value_of_a_0_file_must_be_an_object,"jsconfig.json"===e.getBaseFileName(t.fileName)?"jsconfig.json":"tsconfig.json")),e.isArrayLiteralExpression(o)){var c=e.find(o.elements,e.isObjectLiteralExpression);if(c)return V(t,c,n,!0,s,i)}return{}}return V(t,o,n,!0,s,i)}function U(e,t){var n;return V(e,null===(n=e.statements[0])||void 0===n?void 0:n.expression,t,!0,void 0,void 0)}function V(t,r,i,a,o,s){return r?u(r,o):a?{}:void 0;function c(e){return o&&o.elementOptions===e}function l(n,r,o,l){for(var p=a?{}:void 0,m=function(n){if(299!==n.kind)return i.push(e.createDiagnosticForNodeInSourceFile(t,n,e.Diagnostics.Property_assignment_expected)),"continue";n.questionToken&&i.push(e.createDiagnosticForNodeInSourceFile(t,n.questionToken,e.Diagnostics.The_0_modifier_can_only_be_used_in_TypeScript_files,"?")),d(n.name)||i.push(e.createDiagnosticForNodeInSourceFile(t,n.name,e.Diagnostics.String_literal_with_double_quotes_expected));var m=e.isComputedNonLiteralName(n.name)?void 0:e.getTextOfPropertyName(n.name),f=m&&e.unescapeLeadingUnderscores(m),_=f&&r?r.get(f):void 0;f&&o&&!_&&(r?i.push(g(f,o,function(r,i,a){return e.createDiagnosticForNodeInSourceFile(t,n.name,r,i,a)})):i.push(e.createDiagnosticForNodeInSourceFile(t,n.name,o.unknownOptionDiagnostic,f)));var h=u(n.initializer,_);if(void 0!==f&&(a&&(p[f]=h),s&&(l||c(r)))){var y=j(_,h);l?y&&s.onSetValidOptionKeyValueInParent(l,_,h):c(r)&&(y?s.onSetValidOptionKeyValueInRoot(f,n.name,h,n.initializer):_||s.onSetUnknownOptionKeyValueInRoot(f,n.name,h,n.initializer))}},f=0,_=n.properties;f<_.length;f++)m(_[f]);return p}function u(r,o){var s;switch(r.kind){case 110:return g(o&&"boolean"!==o.type),h(!0);case 95:return g(o&&"boolean"!==o.type),h(!1);case 104:return g(o&&"extends"===o.name),h(null);case 10:d(r)||i.push(e.createDiagnosticForNodeInSourceFile(t,r,e.Diagnostics.String_literal_with_double_quotes_expected)),g(o&&e.isString(o.type)&&"string"!==o.type);var c=r.text;if(o&&!e.isString(o.type)){var p=o;p.type.has(c.toLowerCase())||(i.push(m(p,function(n,i,a){return e.createDiagnosticForNodeInSourceFile(t,r,n,i,a)})),s=!0)}return h(c);case 8:return g(o&&"number"!==o.type),h(Number(r.text));case 221:if(40!==r.operator||8!==r.operand.kind)break;return g(o&&"number"!==o.type),h(-Number(r.operand.text));case 207:g(o&&"object"!==o.type);var f=r;if(o){var _=o;return h(l(f,_.elementOptions,_.extraKeyDiagnostics,_.name))}return h(l(f,void 0,void 0,void 0));case 206:return g(o&&"list"!==o.type),h(function(t,n){if(a)return e.filter(t.map(function(e){return u(e,n)}),function(e){return void 0!==e});t.forEach(function(e){return u(e,n)})}(r.elements,o&&o.element))}return void(o?g(!0):i.push(e.createDiagnosticForNodeInSourceFile(t,r,e.Diagnostics.Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_literal)));function h(a){var c;if(!s){var l=null===(c=null==o?void 0:o.extraValidation)||void 0===c?void 0:c.call(o,a);if(l)return void i.push(e.createDiagnosticForNodeInSourceFile.apply(void 0,n([t,r],l,!1)))}return a}function g(n){n&&(i.push(e.createDiagnosticForNodeInSourceFile(t,r,e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,o.name,K(o))),s=!0)}}function d(n){return e.isStringLiteral(n)&&e.isStringDoubleQuoted(n,t)}}function K(t){return"list"===t.type?"Array":e.isString(t.type)?t.type:"string"}function j(t,n){return!!t&&(!!ee(n)||("list"===t.type?e.isArray(n):typeof n===(e.isString(t.type)?t.type:"string")))}function H(t){return r({},e.arrayFrom(t.entries()).reduce(function(e,t){var n;return r(r({},e),((n={})[t[0]]=t[1],n))},{}))}function W(t){if(e.length(t)){if(1!==e.length(t))return t;if(t[0]!==e.defaultIncludeSpec)return t}}function $(e){return"string"===e.type||"number"===e.type||"boolean"===e.type||"object"===e.type?void 0:"list"===e.type?$(e.element):e.type}function q(t,n){return e.forEachEntry(n,function(e,n){if(e===t)return n})}function z(e,t){return J(e,c(),t)}function J(t,n,r){var i=n.optionsNameMap,a=new e.Map,o=r&&e.createGetCanonicalFileName(r.useCaseSensitiveFileNames),s=function(n){if(e.hasProperty(t,n)){if(i.has(n)&&(i.get(n).category===e.Diagnostics.Command_line_Options||i.get(n).category===e.Diagnostics.Output_Formatting))return"continue";var s=t[n],c=i.get(n.toLowerCase());if(c){var l=$(c);l?"list"===c.type?a.set(n,s.map(function(e){return q(e,l)})):a.set(n,q(s,l)):r&&c.isFilePath?a.set(n,e.getRelativePathFromFile(r.configFilePath,e.getNormalizedAbsolutePath(s,e.getDirectoryPath(r.configFilePath)),o)):a.set(n,s)}}};for(var c in t)s(c);return a}function X(t){return z(e.extend(t,e.defaultInitCompilerOptions))}function Y(e,t,n){if(e&&!ee(t))if("list"===e.type){var r=t;if(e.element.isFilePath&&r.length)return r.map(n)}else if(e.isFilePath)return n(t);return t}function Q(t,n,r,i,a,o,s,c,l){null===e.tracing||void 0===e.tracing||e.tracing.push("parse","parseJsonSourceFileConfigFileContent",{path:t.fileName});var u=ne(void 0,t,n,r,i,l,a,o,s,c);return null===e.tracing||void 0===e.tracing||e.tracing.pop(),u}function Z(e,t){t&&Object.defineProperty(e,"configFile",{enumerable:!1,writable:!1,value:t})}function ee(e){return null==e}function te(t,n){return e.getDirectoryPath(e.getNormalizedAbsolutePath(t,n))}function ne(t,n,r,i,a,o,s,c,l,u){void 0===a&&(a={}),void 0===c&&(c=[]),void 0===l&&(l=[]),e.Debug.assert(void 0===t&&void 0!==n||void 0!==t&&void 0===n);var d=[],p=oe(t,n,r,i,s,c,d,u),m=p.raw,f=e.extend(a,p.options||{}),_=o&&p.watchOptions?e.extend(o,p.watchOptions):p.watchOptions||o;f.configFilePath=s&&e.normalizeSlashes(s);var h=function(){var t=b("references",function(e){return"object"==typeof e},"object"),r=y(v("files"));if(r){var i="no-prop"===t||e.isArray(t)&&0===t.length,a=e.hasProperty(m,"extends");if(0===r.length&&i&&!a)if(n){var o=s||"tsconfig.json",c=e.Diagnostics.The_files_list_in_config_file_0_is_empty,l=e.firstDefined(e.getTsConfigPropArray(n,"files"),function(e){return e.initializer}),u=l?e.createDiagnosticForNodeInSourceFile(n,l,c,o):e.createCompilerDiagnostic(c,o);d.push(u)}else E(e.Diagnostics.The_files_list_in_config_file_0_is_empty,s||"tsconfig.json")}var p,f,_=y(v("include")),h=v("exclude"),g=!1,x=y(h);if("no-prop"===h&&m.compilerOptions){var S=m.compilerOptions.outDir,T=m.compilerOptions.declarationDir;(S||T)&&(x=[S,T].filter(function(e){return!!e}))}return void 0===r&&void 0===_&&(_=[e.defaultIncludeSpec],g=!0),_&&(p=Se(_,d,!0,n,"include")),x&&(f=Se(x,d,!1,n,"exclude")),{filesSpecs:r,includeSpecs:_,excludeSpecs:x,validatedFilesSpec:e.filter(r,e.isString),validatedIncludeSpecs:p,validatedExcludeSpecs:f,pathPatterns:void 0,isDefaultIncludeSpec:g}}();n&&(n.configFileSpecs=h),Z(f,n);var g=e.normalizePath(s?te(s,i):i);return{options:f,watchOptions:_,fileNames:function(e){var t=be(h,e,f,r,l);return ie(t,ae(m),c)&&d.push(re(h,s)),t}(g),projectReferences:function(t){var n,r=b("references",function(e){return"object"==typeof e},"object");if(e.isArray(r))for(var i=0,a=r;i=0)return l.push(e.createCompilerDiagnostic(e.Diagnostics.Circularity_detected_while_resolving_configuration_Colon_0,n(n([],c,!0),[p],!1).join(" -> "))),{raw:t||U(r,l)};var m=t?function(t,n,r,i,a){e.hasProperty(t,"excludes")&&a.push(e.createCompilerDiagnostic(e.Diagnostics.Unknown_option_excludes_Did_you_mean_exclude));var o,s=le(t.compilerOptions,r,a,i),c=de(t.typeAcquisition||t.typingOptions,r,a,i),l=function(e,t,n){return pe(F(),e,t,void 0,R,n)}(t.watchOptions,r,a);if(t.compileOnSave=function(t,n,r){if(!e.hasProperty(t,e.compileOnSaveCommandLineOption.name))return!1;var i=me(e.compileOnSaveCommandLineOption,t.compileOnSave,n,r);return"boolean"==typeof i&&i}(t,r,a),t.extends)if(e.isString(t.extends)){var u=i?te(i,r):r;o=se(t.extends,n,u,a,e.createCompilerDiagnostic)}else a.push(e.createCompilerDiagnostic(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,"extends","string"));return{raw:t,options:s,watchOptions:l,typeAcquisition:c,extendedConfigPath:o}}(t,i,a,s,l):function(t,n,r,i,a){var s,c,l,u,d,p=ce(i),m={onSetValidOptionKeyValueInParent:function(t,n,a){var o;switch(t){case"compilerOptions":o=p;break;case"watchOptions":o=l||(l={});break;case"typeAcquisition":o=s||(s=ue(i));break;case"typingOptions":o=c||(c=ue(i));break;default:e.Debug.fail("Unknown option")}o[n.name]=fe(n,r,a)},onSetValidOptionKeyValueInRoot:function(o,s,c,l){if("extends"!==o);else{var d=i?te(i,r):r;u=se(c,n,d,a,function(n,r){return e.createDiagnosticForNodeInSourceFile(t,l,n,r)})}},onSetUnknownOptionKeyValueInRoot:function(n,r,i,s){"excludes"===n&&a.push(e.createDiagnosticForNodeInSourceFile(t,r,e.Diagnostics.Unknown_option_excludes_Did_you_mean_exclude)),e.find(o,function(e){return e.name===n})&&(d=e.append(d,r))}},f=B(t,a,!0,m);return s||(s=c?void 0!==c.enableAutoDiscovery?{enable:c.enableAutoDiscovery,include:c.include,exclude:c.exclude}:c:ue(i)),d&&f&&void 0===f.compilerOptions&&a.push(e.createDiagnosticForNodeInSourceFile(t,d[0],e.Diagnostics._0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file,e.getTextOfPropertyName(d[0]))),{raw:f,options:p,watchOptions:l,typeAcquisition:s,extendedConfigPath:u}}(r,i,a,s,l);if((null===(d=m.options)||void 0===d?void 0:d.paths)&&(m.options.pathsBasePath=a),m.extendedConfigPath){c=c.concat([p]);var f=function(t,n,r,i,a,o){var s,c,l,u,d=r.useCaseSensitiveFileNames?n:e.toFileNameLowerCase(n);if(o&&(c=o.get(d))?(l=c.extendedResult,u=c.extendedConfig):(l=C(n,function(e){return r.readFile(e)}),l.parseDiagnostics.length||(u=oe(void 0,l,r,e.getDirectoryPath(n),e.getBaseFileName(n),i,a,o)),o&&o.set(d,{extendedResult:l,extendedConfig:u})),t&&(t.extendedSourceFiles=[l.fileName],l.extendedSourceFiles&&(s=t.extendedSourceFiles).push.apply(s,l.extendedSourceFiles)),!l.parseDiagnostics.length)return u;a.push.apply(a,l.parseDiagnostics)}(r,m.extendedConfigPath,i,c,l,u);if(f&&f.options){var _,h=f.raw,g=m.raw,y=function(t){!g[t]&&h[t]&&(g[t]=e.map(h[t],function(t){return e.isRootedDiskPath(t)?t:e.combinePaths(_||(_=e.convertToRelativePath(e.getDirectoryPath(m.extendedConfigPath),a,e.createGetCanonicalFileName(i.useCaseSensitiveFileNames))),t)}))};y("include"),y("exclude"),y("files"),void 0===g.compileOnSave&&(g.compileOnSave=h.compileOnSave),m.options=e.assign({},f.options,m.options),m.watchOptions=m.watchOptions&&f.watchOptions?e.assign({},f.watchOptions,m.watchOptions):m.watchOptions||f.watchOptions}}return m}function se(t,n,r,i,a){if(t=e.normalizeSlashes(t),e.isRootedDiskPath(t)||e.startsWith(t,"./")||e.startsWith(t,"../")){var o=e.getNormalizedAbsolutePath(t,r);return n.fileExists(o)||e.endsWith(o,".json")||(o="".concat(o,".json"),n.fileExists(o))?o:void i.push(a(e.Diagnostics.File_0_not_found,t))}var s=e.nodeModuleNameResolver(t,e.combinePaths(r,"tsconfig.json"),{moduleResolution:e.ModuleResolutionKind.NodeJs},n,void 0,void 0,!0);if(s.resolvedModule)return s.resolvedModule.resolvedFileName;i.push(a(e.Diagnostics.File_0_not_found,t))}function ce(t){return t&&"jsconfig.json"===e.getBaseFileName(t)?{allowJs:!0,maxNodeModuleJsDepth:2,allowSyntheticDefaultImports:!0,skipLibCheck:!0,noEmit:!0}:{}}function le(t,n,r,i){var a=ce(i);return pe(M(),t,n,a,e.compilerOptionsDidYouMeanDiagnostics,r),i&&(a.configFilePath=e.normalizeSlashes(i)),a}function ue(t){return{enable:!!t&&"jsconfig.json"===e.getBaseFileName(t),include:[],exclude:[]}}function de(e,t,n,r){var i=ue(r),a=d(e);return pe(G(),a,t,i,N,n),i}function pe(t,n,r,i,a,o){if(n){for(var s in n){var c=t.get(s);c?(i||(i={}))[c.name]=me(c,n[s],r,o):o.push(g(s,a,e.createCompilerDiagnostic))}return i}}function me(t,n,r,i){if(j(t,n)){var a=t.type;if("list"===a&&e.isArray(n))return function(t,n,r,i){return e.filter(e.map(n,function(e){return me(t.element,e,r,i)}),function(e){return!!t.listPreserveFalsyValues||!!e})}(t,n,r,i);if(!e.isString(a))return ge(t,n,i);var o=he(t,n,i);return ee(o)?o:_e(t,r,o)}i.push(e.createCompilerDiagnostic(e.Diagnostics.Compiler_option_0_requires_a_value_of_type_1,t.name,K(t)))}function fe(t,n,r){if(!ee(r)){if("list"===t.type){var i=t;return i.element.isFilePath||!e.isString(i.element.type)?e.filter(e.map(r,function(e){return fe(i.element,n,e)}),function(e){return!!i.listPreserveFalsyValues||!!e}):r}return e.isString(t.type)?_e(t,n,r):t.type.get(e.isString(r)?r.toLowerCase():r)}}function _e(t,n,r){return t.isFilePath&&""===(r=e.getNormalizedAbsolutePath(r,n))&&(r="."),r}function he(t,n,r){var i;if(!ee(n)){var a=null===(i=t.extraValidation)||void 0===i?void 0:i.call(t,n);if(!a)return n;r.push(e.createCompilerDiagnostic.apply(void 0,a))}}function ge(e,t,n){if(!ee(t)){var r=t.toLowerCase(),i=e.type.get(r);if(void 0!==i)return he(e,i,n);n.push(p(e))}}e.convertToObject=U,e.convertToObjectWorker=V,e.convertToTSConfig=function(t,n,i){var a,o,s,c=e.createGetCanonicalFileName(i.useCaseSensitiveFileNames),l=e.map(e.filter(t.fileNames,(null===(o=null===(a=t.options.configFile)||void 0===a?void 0:a.configFileSpecs)||void 0===o?void 0:o.validatedIncludeSpecs)?function(t,n,r,i){if(!n)return e.returnTrue;var a=e.getFileMatcherPatterns(t,r,n,i.useCaseSensitiveFileNames,i.getCurrentDirectory()),o=a.excludePattern&&e.getRegexFromPattern(a.excludePattern,i.useCaseSensitiveFileNames),s=a.includeFilePattern&&e.getRegexFromPattern(a.includeFilePattern,i.useCaseSensitiveFileNames);return s?o?function(e){return!(s.test(e)&&!o.test(e))}:function(e){return!s.test(e)}:o?function(e){return o.test(e)}:e.returnTrue}(n,t.options.configFile.configFileSpecs.validatedIncludeSpecs,t.options.configFile.configFileSpecs.validatedExcludeSpecs,i):e.returnTrue),function(t){return e.getRelativePathFromFile(e.getNormalizedAbsolutePath(n,i.getCurrentDirectory()),e.getNormalizedAbsolutePath(t,i.getCurrentDirectory()),c)}),u=z(t.options,{configFilePath:e.getNormalizedAbsolutePath(n,i.getCurrentDirectory()),useCaseSensitiveFileNames:i.useCaseSensitiveFileNames}),d=t.watchOptions&&J(t.watchOptions,k()),p=r(r({compilerOptions:r(r({},H(u)),{showConfig:void 0,configFile:void 0,configFilePath:void 0,help:void 0,init:void 0,listFiles:void 0,listEmittedFiles:void 0,project:void 0,build:void 0,version:void 0}),watchOptions:d&&H(d),references:e.map(t.projectReferences,function(e){return r(r({},e),{path:e.originalPath?e.originalPath:"",originalPath:void 0})}),files:e.length(l)?l:void 0},(null===(s=t.options.configFile)||void 0===s?void 0:s.configFileSpecs)?{include:W(t.options.configFile.configFileSpecs.validatedIncludeSpecs),exclude:t.options.configFile.configFileSpecs.validatedExcludeSpecs}:{}),{compileOnSave:!!t.compileOnSave||void 0});return p},e.getNameOfCompilerOptionValue=q,e.getCompilerOptionsDiffValue=function(t,n){var r,i,a=X(t);return r=[],i=Array(3).join(" "),o.forEach(function(t){if(a.has(t.name)){var n=a.get(t.name),o=Ae(t);n!==o?r.push("".concat(i).concat(t.name,": ").concat(n)):e.hasProperty(e.defaultInitCompilerOptions,t.name)&&r.push("".concat(i).concat(t.name,": ").concat(o))}}),r.join(n)+n},e.generateTSConfig=function(t,n,r){var i=X(t);return function(){var t=new e.Map;t.set(e.Diagnostics.Projects,[]),t.set(e.Diagnostics.Language_and_Environment,[]),t.set(e.Diagnostics.Modules,[]),t.set(e.Diagnostics.JavaScript_Support,[]),t.set(e.Diagnostics.Emit,[]),t.set(e.Diagnostics.Interop_Constraints,[]),t.set(e.Diagnostics.Type_Checking,[]),t.set(e.Diagnostics.Completeness,[]);for(var s=0,c=e.optionDeclarations;s0)for(var b=function(t){if(e.fileExtensionIs(t,".json")){if(!o){var r=p.filter(function(t){return e.endsWith(t,".json")}),a=e.map(e.getRegularExpressionsForWildcards(r,n,"files"),function(e){return"^".concat(e,"$")});o=a?a.map(function(t){return e.getRegexFromPattern(t,i.useCaseSensitiveFileNames)}):e.emptyArray}if(-1!==e.findIndex(o,function(e){return e.test(t)})){var d=s(t);c.has(d)||u.has(d)||u.set(d,t)}return"continue"}if(function(t,n,r,i,a){var o=e.forEach(i,function(n){return e.fileExtensionIsOneOf(t,n)?n:void 0});if(!o)return!1;for(var s=0,c=o;s=0;o--){var s=a[o];if(e.fileExtensionIs(t,s))return;var c=i(e.changeExtension(t,s));n.delete(c)}}(t,l,f,s);var m=s(t);c.has(m)||l.has(m)||l.set(m,t)},E=0,x=i.readDirectory(n,e.flatten(_),m,p,void 0);En}function xe(t,n,r,i,a){var o=e.getRegularExpressionForWildcard(n,e.combinePaths(e.normalizePath(i),a),"exclude"),s=o&&e.getRegexFromPattern(o,r);return!!s&&(!!s.test(t)||!e.hasExtension(t)&&s.test(e.ensureTrailingDirectorySeparator(t)))}function Se(t,n,r,i,a){return t.filter(function(t){if(!e.isString(t))return!1;var i=Te(t,r);return void 0!==i&&n.push(o.apply(void 0,i)),void 0===i});function o(t,n){var r=e.getTsConfigPropArrayElementValue(i,a,n);return r?e.createDiagnosticForNodeInSourceFile(i,r,t,n):e.createCompilerDiagnostic(t,n)}}function Te(t,n){return n&&ye.test(t)?[e.Diagnostics.File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,t]:Ee(t)?[e.Diagnostics.File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,t]:void 0}function Ce(t,n,r){var i=t.validatedIncludeSpecs,a=t.validatedExcludeSpecs,o=e.getRegularExpressionForWildcard(a,n,"exclude"),s=o&&new RegExp(o,r?"":"i"),c={};if(void 0!==i){for(var l=[],u=0,d=i;u0);var i={sourceFile:t.configFile,commandLine:{options:t}};n.setOwnMap(n.getOrCreateMapOfCacheRedirects(i)),null==r||r.setOwnMap(r.getOrCreateMapOfCacheRedirects(i))}n.setOwnOptions(t),null==r||r.setOwnOptions(t)}}function L(t,n,r){return{getOrCreateCacheForDirectory:function(i,a){var o=e.toPath(i,t,n);return C(r,a,o,function(){return A()})},clear:function(){r.clear()},update:function(e){D(e,r)}}}function A(){var t=new e.Map,n=new e.Map,r={get:function(e,n){return t.get(i(e,n))},set:function(e,n,a){return t.set(i(e,n),a),r},delete:function(e,n){return t.delete(i(e,n)),r},has:function(e,n){return t.has(i(e,n))},forEach:function(e){return t.forEach(function(t,r){var i=n.get(r),a=i[0],o=i[1];return e(t,a,o)})},size:function(){return t.size}};return r;function i(e,t){var r=void 0===t?e:"".concat(t,"|").concat(e);return n.set(r,[e,t]),r}}function N(n,r,i,a,o){var s=function(n,r,i,a){var o,s=a.compilerOptions,c=s.baseUrl,l=s.paths,u=s.configFile;if(l&&!e.pathIsRelative(r))return a.traceEnabled&&(c&&t(a.host,e.Diagnostics.baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1,c,r),t(a.host,e.Diagnostics.paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0,r)),me(n,r,e.getPathsBasePath(a.compilerOptions,a.host),l,(null==u?void 0:u.configFileSpecs)?(o=u.configFileSpecs).pathPatterns||(o.pathPatterns=e.tryParsePatterns(l)):void 0,i,!1,a)}(n,r,a,o);return s?s.value:e.isExternalModuleNameRelative(r)?function(n,r,i,a,o){if(o.compilerOptions.rootDirs){o.traceEnabled&&t(o.host,e.Diagnostics.rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0,r);for(var s,c,l=e.normalizePath(e.combinePaths(i,r)),u=0,d=o.compilerOptions.rootDirs;u=e.ModuleResolutionKind.Node16&&e.getEmitModuleResolutionKind(s)<=e.ModuleResolutionKind.NodeNext&&t(l,e.Diagnostics.Resolving_in_0_mode_with_conditions_1,n&v.EsmMode?"ESM":"CJS",b.map(function(e){return"'".concat(e,"'")}).join(", "));var T=e.forEach(p,function(i){return function(i){var d,p=N(i,a,o,function(e,t,n,r){return B(e,t,n,r,!0)},S);if(p)return ve({resolved:p,isExternalLibraryImport:U(p.path)});if(e.isExternalModuleNameRelative(a)){var f=F(o,a),_=f.path,g=f.parts,y=B(i,_,!1,S,!0);return y&&ve({resolved:y,isExternalLibraryImport:e.contains(g,"node_modules")})}if(n&v.Imports&&e.startsWith(a,"#")&&(d=function(n,r,i,a,o,s){var c,l;if("#"===r||e.startsWith(r,"#/"))return a.traceEnabled&&t(a.host,e.Diagnostics.Invalid_import_specifier_0_has_no_possible_resolutions,r),ve(void 0);var u=e.getNormalizedAbsolutePath(e.combinePaths(i,"dummy"),null===(l=(c=a.host).getCurrentDirectory)||void 0===l?void 0:l.call(c)),d=Z(u,a);if(!d)return a.traceEnabled&&t(a.host,e.Diagnostics.Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve,u),ve(void 0);if(!d.contents.packageJsonContent.imports)return a.traceEnabled&&t(a.host,e.Diagnostics.package_json_scope_0_has_no_imports_defined,d.packageDirectory),ve(void 0);var p=oe(n,a,o,s,r,d.contents.packageJsonContent.imports,d,!0);return p||(a.traceEnabled&&t(a.host,e.Diagnostics.Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1,r,d.packageDirectory),ve(void 0))}(i,a,o,S,u,m)),!d&&n&v.SelfName&&(d=function(t,n,r,i,a,o){var s,c,l=Z(e.getNormalizedAbsolutePath(e.combinePaths(r,"dummy"),null===(c=(s=i.host).getCurrentDirectory)||void 0===c?void 0:c.call(s)),i);if(l&&l.contents.packageJsonContent.exports&&"string"==typeof l.contents.packageJsonContent.name){var u=e.getPathComponents(n),d=e.getPathComponents(l.contents.packageJsonContent.name);if(e.every(d,function(e,t){return u[t]===e})){var p=u.slice(d.length);return ie(l,t,e.length(p)?".".concat(e.directorySeparator).concat(p.join(e.directorySeparator)):".",i,a,o)}}}(i,a,o,S,u,m)),d||(h&&t(l,e.Diagnostics.Loading_module_0_from_node_modules_folder_target_file_type_1,a,c[i]),d=le(i,a,o,S,u,m)),d){var b=d.value;if(!s.preserveSymlinks&&b&&!b.originalPath){var x=G(b.path,l,h),T=E(x,b.path,l),C=T?void 0:b.path;b=r(r({},b),{path:T?b.path:x,originalPath:C})}return{value:b&&{resolved:b,isExternalLibraryImport:!0}}}}(i)});return d(null===(f=null==T?void 0:T.value)||void 0===f?void 0:f.resolved,null===(_=null==T?void 0:T.value)||void 0===_?void 0:_.isExternalLibraryImport,g,y,x,S.resultFromCache)}function F(t,n){var r=e.combinePaths(t,n),i=e.getPathComponents(r),a=e.lastOrUndefined(i);return{path:"."===a||".."===a?e.ensureTrailingDirectorySeparator(e.normalizePath(r)):e.normalizePath(r),parts:i}}function G(n,r,i){if(!r.realpath)return n;var a=e.normalizePath(r.realpath(n));return i&&t(r,e.Diagnostics.Resolving_real_path_for_0_result_1,n,a),e.Debug.assert(r.fileExists(a),"".concat(n," linked to nonexistent file ").concat(a)),a}function B(n,r,i,o,s){if(o.traceEnabled&&t(o.host,e.Diagnostics.Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_type_1,r,c[n]),!e.hasTrailingDirectorySeparator(r)){if(!i){var l=e.getDirectoryPath(r);e.directoryProbablyExists(l,o.host)||(o.traceEnabled&&t(o.host,e.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it,l),i=!0)}var u=H(n,r,i,o);if(u){var d=s?V(u.path):void 0;return a(d?ee(d,!1,o):void 0,u)}}if(i||e.directoryProbablyExists(r,o.host)||(o.traceEnabled&&t(o.host,e.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it,r),i=!0),!(o.features&v.EsmMode))return X(n,r,i,o,s)}function U(t){return e.stringContains(t,e.nodeModulesPathPart)}function V(t){var n=e.normalizePath(t),r=n.lastIndexOf(e.nodeModulesPathPart);if(-1!==r){var i=r+e.nodeModulesPathPart.length,a=K(n,i);return 64===n.charCodeAt(i)&&(a=K(n,a)),n.slice(0,a)}}function K(t,n){var r=t.indexOf(e.directorySeparator,n+1);return-1===r?n:r}function j(e,t,n,r){return o(H(e,t,n,r))}function H(t,n,r,i){if(t===c.Json||t===c.TSConfig){var a=e.tryRemoveExtension(n,".json"),o=a?n.substring(a.length):"";return void 0===a&&t===c.Json?void 0:q(a||n,t,o,r,i)}if(!(i.features&v.EsmMode)){var s=q(n,t,"",r,i);if(s)return s}return W(t,n,r,i)}function W(n,r,i,a){if(e.hasJSFileExtension(r)||e.fileExtensionIs(r,".json")&&a.compilerOptions.resolveJsonModule){var o=e.removeFileExtension(r),s=r.substring(o.length);return a.traceEnabled&&t(a.host,e.Diagnostics.File_name_0_has_a_1_extension_stripping_it,r,s),q(o,n,s,i,a)}}function $(t,n,r,i){return t!==c.TypeScript&&t!==c.DtsOnly||!e.fileExtensionIsOneOf(n,e.supportedTSExtensionsFlat)?W(t,n,r,i):void 0!==z(n,r,i)?{path:n,ext:e.tryExtractTSExtension(n)}:void 0}function q(t,n,r,i,a){if(!i){var o=e.getDirectoryPath(t);o&&(i=!e.directoryProbablyExists(o,a.host))}switch(n){case c.DtsOnly:switch(r){case".mjs":case".mts":case".d.mts":return l(".d.mts");case".cjs":case".cts":case".d.cts":return l(".d.cts");case".json":return t+=".json",l(".d.ts");default:return l(".d.ts")}case c.TypeScript:case c.TsOnly:var s=n===c.TypeScript;switch(r){case".mjs":case".mts":case".d.mts":return l(".mts")||(s?l(".d.mts"):void 0);case".cjs":case".cts":case".d.cts":return l(".cts")||(s?l(".d.cts"):void 0);case".json":return t+=".json",s?l(".d.ts"):void 0;default:return l(".ts")||l(".tsx")||(s?l(".d.ts"):void 0)}case c.JavaScript:switch(r){case".mjs":case".mts":case".d.mts":return l(".mjs");case".cjs":case".cts":case".d.cts":return l(".cjs");case".json":return l(".json");default:return l(".js")||l(".jsx")}case c.TSConfig:case c.Json:return l(".json")}function l(e){var n=z(t+e,i,a);return void 0===n?void 0:{path:n,ext:e}}}function z(t,n,r){var i,a;if(!(null===(i=r.compilerOptions.moduleSuffixes)||void 0===i?void 0:i.length))return J(t,n,r);var o=null!==(a=e.tryGetExtensionFromPath(t))&&void 0!==a?a:"",s=o?e.removeExtension(t,o):t;return e.forEach(r.compilerOptions.moduleSuffixes,function(e){return J(s+e+o,n,r)})}function J(n,r,i){if(!r){if(i.host.fileExists(n))return i.traceEnabled&&t(i.host,e.Diagnostics.File_0_exist_use_it_as_a_name_resolution_result,n),n;i.traceEnabled&&t(i.host,e.Diagnostics.File_0_does_not_exist,n)}i.failedLookupLocations.push(n)}function X(e,t,n,r,i){void 0===i&&(i=!0);var o=i?ee(t,n,r):void 0;return a(o,te(e,t,n,r,o&&o.contents.packageJsonContent,o&&o.contents.versionPaths))}function Y(t,n,r,i){var a;if(e.isArray(n))for(var o=0,s=n;o=0||c.indexOf(".")>=0||c.indexOf("node_modules")>=0)return!1;var u=e.combinePaths(t.packageDirectory,n),d=e.getNormalizedAbsolutePath(u,null===(s=(o=r.host).getCurrentDirectory)||void 0===s?void 0:s.call(o)),p=$(i,d,!1,r);if(p)return a=e.appendIfUnique(a,p,function(e,t){return e.path===t.path}),!0}else if(Array.isArray(n)){for(var m=0,f=n;m0;){var i=ee(e.getPathFromPathComponents(r),!1,n);if(i)return i;r.pop()}}function ee(n,r,i){var a,o,s,c=i.host,l=i.traceEnabled,u=e.combinePaths(n,"package.json");if(r)i.failedLookupLocations.push(u);else{var d=null===(a=i.packageJsonInfoCache)||void 0===a?void 0:a.getPackageJsonInfo(u);if(void 0!==d)return"boolean"!=typeof d?(l&&t(c,e.Diagnostics.File_0_exists_according_to_earlier_cached_lookups,u),i.affectingLocations.push(u),d.packageDirectory===n?d:{packageDirectory:n,contents:d.contents}):(d&&l&&t(c,e.Diagnostics.File_0_does_not_exist_according_to_earlier_cached_lookups,u),void i.failedLookupLocations.push(u));var p=e.directoryProbablyExists(n,c);if(p&&c.fileExists(u)){var m=e.readJson(u,c);l&&t(c,e.Diagnostics.Found_package_json_at_0,u);var f={packageDirectory:n,contents:{packageJsonContent:m,versionPaths:h(m,i),resolvedEntrypoints:void 0}};return null===(o=i.packageJsonInfoCache)||void 0===o||o.setPackageJsonInfo(u,f),i.affectingLocations.push(u),f}p&&l&&t(c,e.Diagnostics.File_0_does_not_exist,u),null===(s=i.packageJsonInfoCache)||void 0===s||s.setPackageJsonInfo(u,p),i.failedLookupLocations.push(u)}}function te(n,r,i,a,l,u){var d;if(l)switch(n){case c.JavaScript:case c.Json:case c.TsOnly:d=_(l,r,a);break;case c.TypeScript:d=f(l,r,a)||_(l,r,a);break;case c.DtsOnly:d=f(l,r,a);break;case c.TSConfig:d=function(e,t,n){return m(e,"tsconfig",t,n)}(l,r,a);break;default:return e.Debug.assertNever(n)}var p=function(n,r,i,a){var s=z(r,i,a);if(s){var u=function(t,n){var r=e.tryGetExtensionFromPath(n);return void 0!==r&&function(e,t){switch(e){case c.JavaScript:return".js"===t||".jsx"===t||".mjs"===t||".cjs"===t;case c.TSConfig:case c.Json:return".json"===t;case c.TypeScript:return".ts"===t||".tsx"===t||".mts"===t||".cts"===t||".d.ts"===t||".d.mts"===t||".d.cts"===t;case c.TsOnly:return".ts"===t||".tsx"===t||".mts"===t||".cts"===t;case c.DtsOnly:return".d.ts"===t||".d.mts"===t||".d.cts"===t}}(t,r)?{path:n,ext:r}:void 0}(n,s);if(u)return o(u);a.traceEnabled&&t(a.host,e.Diagnostics.File_0_has_an_unsupported_extension_so_skipping_it,s)}var d=n===c.DtsOnly?c.TypeScript:n,p=a.features;"module"!==(null==l?void 0:l.type)&&(a.features&=~v.EsmMode);var m=B(d,r,i,a,!1);return a.features=p,m},h=d?!e.directoryProbablyExists(e.getDirectoryPath(d),a.host):void 0,g=i||!e.directoryProbablyExists(r,a.host),y=e.combinePaths(r,n===c.TSConfig?"tsconfig":"index");if(u&&(!d||e.containsPath(r,d))){var b=e.getRelativePathFromDirectory(r,d||y,!1);a.traceEnabled&&t(a.host,e.Diagnostics.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2,u.version,e.version,b);var E=me(n,b,r,u.paths,void 0,p,h||g,a);if(E)return s(E.value)}return d&&s(p(n,d,h,a))||(a.features&v.EsmMode?void 0:H(n,y,g,a))}function ne(t){var n=t.indexOf(e.directorySeparator);return"@"===t[0]&&(n=t.indexOf(e.directorySeparator,n+1)),-1===n?{packageName:t,rest:""}:{packageName:t.slice(0,n),rest:t.slice(n+1)}}function re(t){return e.every(e.getOwnKeys(t),function(t){return e.startsWith(t,".")})}function ie(n,r,i,a,o,s){if(n.contents.packageJsonContent.exports){if("."===i){var c=void 0;if("string"==typeof n.contents.packageJsonContent.exports||Array.isArray(n.contents.packageJsonContent.exports)||"object"==typeof n.contents.packageJsonContent.exports&&(u=n.contents.packageJsonContent.exports,!e.some(e.getOwnKeys(u),function(t){return e.startsWith(t,".")}))?c=n.contents.packageJsonContent.exports:e.hasProperty(n.contents.packageJsonContent.exports,".")&&(c=n.contents.packageJsonContent.exports["."]),c)return se(r,a,o,s,i,n,!1)(c,"",!1,".")}else if(re(n.contents.packageJsonContent.exports)){if("object"!=typeof n.contents.packageJsonContent.exports)return a.traceEnabled&&t(a.host,e.Diagnostics.Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1,i,n.packageDirectory),ve(void 0);var l=oe(r,a,o,s,i,n.contents.packageJsonContent.exports,n,!1);if(l)return l}var u;return a.traceEnabled&&t(a.host,e.Diagnostics.Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1,i,n.packageDirectory),ve(void 0)}}function ae(e,t){var n=e.indexOf("*"),r=t.indexOf("*"),i=-1===n?e.length:n+1,a=-1===r?t.length:r+1;return i>a?-1:a>i||-1===n?1:-1===r||e.length>t.length?-1:t.length>e.length?1:0}function oe(t,n,r,i,a,o,s,c){var l=se(t,n,r,i,a,s,c);if(!e.endsWith(a,e.directorySeparator)&&-1===a.indexOf("*")&&e.hasProperty(o,a))return l(m=o[a],"",!1,a);for(var u=0,d=e.sort(e.filter(e.getOwnKeys(o),function(t){return-1!==t.indexOf("*")||e.endsWith(t,"/")}),ae);u0&&!e.endsWith(p,"/"))return r.traceEnabled&&t(r.host,e.Diagnostics.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,l.packageDirectory,s),ve(void 0);if(!e.startsWith(p,"./")){if(u&&!e.startsWith(p,"../")&&!e.startsWith(p,"/")&&!e.isRootedDiskPath(p)){var h=f?p.replace(/\*/g,m):p+m;return be(r,e.Diagnostics.Using_0_subpath_1_with_target_2,"imports",_,h),be(r,e.Diagnostics.Resolving_module_0_from_1,h,l.packageDirectory+"/"),ve((L=M(r.features,h,l.packageDirectory+"/",r.compilerOptions,r.host,i,[n],o)).resolvedModule?{path:L.resolvedModule.resolvedFileName,extension:L.resolvedModule.extension,packageId:L.resolvedModule.packageId,originalPath:L.resolvedModule.originalPath}:void 0)}return r.traceEnabled&&t(r.host,e.Diagnostics.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,l.packageDirectory,s),ve(void 0)}var g=(e.pathIsRelative(p)?e.getPathComponents(p).slice(1):e.getPathComponents(p)).slice(1);if(g.indexOf("..")>=0||g.indexOf(".")>=0||g.indexOf("node_modules")>=0)return r.traceEnabled&&t(r.host,e.Diagnostics.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,l.packageDirectory,s),ve(void 0);var y=e.combinePaths(l.packageDirectory,p),v=e.getPathComponents(m);if(v.indexOf("..")>=0||v.indexOf(".")>=0||v.indexOf("node_modules")>=0)return r.traceEnabled&&t(r.host,e.Diagnostics.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,l.packageDirectory,s),ve(void 0);r.traceEnabled&&t(r.host,e.Diagnostics.Using_0_subpath_1_with_target_2,u?"imports":"exports",_,f?p.replace(/\*/g,m):p+m);var b=A(f?y.replace(/\*/g,m):y+m),E=function(t,i,o,s){var u,d,p,m;if((n===c.TypeScript||n===c.JavaScript||n===c.Json)&&(r.compilerOptions.declarationDir||r.compilerOptions.outDir)&&-1===t.indexOf("/node_modules/")&&(!r.compilerOptions.configFile||e.containsPath(l.packageDirectory,A(r.compilerOptions.configFile.fileName),!k()))){var f=e.hostGetCanonicalFileName({useCaseSensitiveFileNames:k}),_=[];if(r.compilerOptions.rootDir||r.compilerOptions.composite&&r.compilerOptions.configFilePath){var h=A(e.getCommonSourceDirectory(r.compilerOptions,function(){return[]},(null===(d=(u=r.host).getCurrentDirectory)||void 0===d?void 0:d.call(u))||"",f));_.push(h)}else if(r.requestContainingDirectory){var g=A(e.combinePaths(r.requestContainingDirectory,"index.ts"));h=A(e.getCommonSourceDirectory(r.compilerOptions,function(){return[g,A(o)]},(null===(m=(p=r.host).getCurrentDirectory)||void 0===m?void 0:m.call(p))||"",f)),_.push(h);for(var y=e.ensureTrailingDirectorySeparator(h);y&&y.length>1;){var v=e.getPathComponents(y);v.pop();var b=e.getPathFromPathComponents(v);_.unshift(b),y=e.ensureTrailingDirectorySeparator(b)}}_.length>1&&r.reportDiagnostic(e.createCompilerDiagnostic(s?e.Diagnostics.The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:e.Diagnostics.The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate,""===i?".":i,o));for(var E=0,x=_;E=0||ce(r.conditions,T)){if(be(r,e.Diagnostics.Matched_0_condition_1,u?"imports":"exports",T),L=d(p[T],m,f,_))return L}else be(r,e.Diagnostics.Saw_non_matching_condition_0,T)}return}if(!e.length(p))return r.traceEnabled&&t(r.host,e.Diagnostics.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,l.packageDirectory,s),ve(void 0);for(var C=0,D=p;Ci&&(i=u),1===i)return i}return i}break;case 265:var d=0;return e.forEachChild(t,function(t){var r=o(t,n);switch(r){case 0:return;case 2:return void(d=2);case 1:return d=1,!0;default:e.Debug.assertNever(r)}}),d;case 264:return a(t,n);case 79:if(t.isInJSDocNamespace)return 0}return 1}(t,n);return n.set(r,i),i}function s(t,n){for(var r=t.propertyName||t.name,i=t.parent;i;){if(e.isBlock(i)||e.isModuleBlock(i)||e.isSourceFile(i)){for(var a=void 0,s=0,c=i.statements;sa)&&(a=u),1===a)return a}}if(void 0!==a)return a}i=i.parent}return 1}function c(t){return e.Debug.attachFlowNodeDebugInfo(t),t}(t=e.ModuleInstanceState||(e.ModuleInstanceState={}))[t.NonInstantiated=0]="NonInstantiated",t[t.Instantiated=1]="Instantiated",t[t.ConstEnumOnly=2]="ConstEnumOnly",e.getModuleInstanceState=a,function(e){e[e.None=0]="None",e[e.IsContainer=1]="IsContainer",e[e.IsBlockScopedContainer=2]="IsBlockScopedContainer",e[e.IsControlFlowContainer=4]="IsControlFlowContainer",e[e.IsFunctionLike=8]="IsFunctionLike",e[e.IsFunctionExpression=16]="IsFunctionExpression",e[e.HasLocals=32]="HasLocals",e[e.IsInterface=64]="IsInterface",e[e.IsObjectLiteralOrClassExpressionMethodOrAccessor=128]="IsObjectLiteralOrClassExpressionMethodOrAccessor"}(i||(i={}));var l=function(){var t,i,o,s,l,m,f,_,h,g,y,v,b,E,x,S,T,C,D,L,A,N,k,I,P=!1,w=0,O={flags:1},R={flags:1},M=function(){return e.createBinaryExpressionTrampoline(function(t,n){if(n){n.stackIndex++,e.setParent(t,s);var r=N;Ue(t);var i=s;s=t,n.skip=!1,n.inStrictModeStack[n.stackIndex]=r,n.parentStack[n.stackIndex]=i}else n={stackIndex:0,skip:!1,inStrictModeStack:[void 0],parentStack:[void 0]};var a=t.operatorToken.kind;if(55===a||56===a||60===a||e.isLogicalOrCoalescingAssignmentOperator(a)){if(ue(t)){var o=Z();ve(t,o,o),y=ce(o)}else ve(t,x,S);n.skip=!0}return n},function(e,n,r){if(!n.skip){var i=t(e);return 27===r.operatorToken.kind&&he(e),i}},function(e,t,n){t.skip||Me(e)},function(e,n,r){if(!n.skip){var i=t(e);return 27===r.operatorToken.kind&&he(e),i}},function(t,n){if(!n.skip){var r=t.operatorToken.kind;e.isAssignmentOperator(r)&&!e.isAssignmentTarget(t)&&(ye(t.left),63===r&&209===t.left.kind&&Q(t.left.expression)&&(y=oe(256,y,t)))}var i=n.inStrictModeStack[n.stackIndex],a=n.parentStack[n.stackIndex];void 0!==i&&(N=i),void 0!==a&&(s=a),n.skip=!1,n.stackIndex--},void 0);function t(t){if(t&&e.isBinaryExpression(t)&&!e.isDestructuringAssignment(t))return t;Me(t)}}();function F(n,r,i,a,o){return e.createDiagnosticForNodeInSourceFile(e.getSourceFileOfNode(n)||t,n,r,i,a,o)}return function(n,r){t=n,i=r,o=e.getEmitScriptTarget(i),N=function(t,n){return!(!e.getStrictOptionValue(n,"alwaysStrict")||t.isDeclarationFile)||!!t.externalModuleIndicator}(t,r),I=new e.Set,w=0,k=e.objectAllocator.getSymbolConstructor(),e.Debug.attachFlowNodeDebugInfo(O),e.Debug.attachFlowNodeDebugInfo(R),t.locals||(null===e.tracing||void 0===e.tracing||e.tracing.push("bind","bindSourceFile",{path:t.path},!0),Me(t),null===e.tracing||void 0===e.tracing||e.tracing.pop(),t.symbolCount=w,t.classifiableNames=I,function(){if(h){for(var n=l,r=_,i=f,a=s,o=y,u=0,p=h;u=240&&t.kind<=256&&!i.allowUnreachableCode&&(t.flowNode=y),t.kind){case 244:!function(e){var t=fe(e,ee()),n=Z(),r=Z();re(t,y),y=t,pe(e.expression,n,r),y=ce(n),me(e.statement,r,t),re(t,y),y=ce(r)}(t);break;case 243:!function(e){var t=ee(),n=fe(e,Z()),r=Z();re(t,y),y=t,me(e.statement,r,n),re(n,y),y=ce(n),pe(e.expression,t,r),y=ce(r)}(t);break;case 245:!function(e){var t=fe(e,ee()),n=Z(),r=Z();Me(e.initializer),re(t,y),y=t,pe(e.condition,n,r),y=ce(n),me(e.statement,r,t),Me(e.incrementor),re(t,y),y=ce(r)}(t);break;case 246:case 247:!function(e){var t=fe(e,ee()),n=Z();Me(e.expression),re(t,y),y=t,247===e.kind&&Me(e.awaitModifier),re(n,y),Me(e.initializer),258!==e.initializer.kind&&ye(e.initializer),me(e.statement,n,t),re(t,y),y=ce(n)}(t);break;case 242:!function(e){var t=Z(),n=Z(),r=Z();pe(e.expression,t,n),y=ce(t),Me(e.thenStatement),re(r,y),y=ce(n),Me(e.elseStatement),re(r,y),y=ce(r)}(t);break;case 250:case 254:!function(e){Me(e.expression),250===e.kind&&(L=!0,E&&re(E,y)),y=O}(t);break;case 249:case 248:!function(e){if(Me(e.label),e.label){var t=function(e){for(var t=D;t;t=t.next)if(t.name===e)return t}(e.label.escapedText);t&&(t.referenced=!0,_e(e,t.breakTarget,t.continueTarget))}else _e(e,v,b)}(t);break;case 255:!function(t){var n=E,r=T,i=Z(),a=Z(),o=Z();if(t.finallyBlock&&(E=a),re(o,y),T=o,Me(t.tryBlock),re(i,y),t.catchClause&&(y=ce(o),re(o=Z(),y),T=o,Me(t.catchClause),re(i,y)),E=n,T=r,t.finallyBlock){var s=Z();s.antecedents=e.concatenate(e.concatenate(i.antecedents,o.antecedents),a.antecedents),y=s,Me(t.finallyBlock),1&y.flags?y=O:(E&&a.antecedents&&re(E,te(s,a.antecedents,y)),T&&o.antecedents&&re(T,te(s,o.antecedents,y)),y=i.antecedents?te(s,i.antecedents,y):O)}else y=ce(i)}(t);break;case 252:!function(t){var n=Z();Me(t.expression);var r=v,i=C;v=n,C=y,Me(t.caseBlock),re(n,y);var a=e.forEach(t.caseBlock.clauses,function(e){return 293===e.kind});t.possiblyExhaustive=!a&&!n.antecedents,a||re(n,ae(C,t,0,0)),v=r,C=i,y=ce(n)}(t);break;case 266:!function(e){for(var t=e.clauses,n=z(e.parent.expression),r=O,a=0;a162){var i=s;s=n;var a=Ce(n);0===a?q(n):function(t,n){var r=l,i=m,a=f;if(1&n?(216!==t.kind&&(m=l),l=f=t,32&n&&(l.locals=e.createSymbolTable()),De(l)):2&n&&((f=t).locals=void 0),4&n){var o=y,s=v,u=b,d=E,p=T,_=D,h=L,x=16&n&&!e.hasSyntacticModifier(t,512)&&!t.asteriskToken&&!!e.getImmediatelyInvokedFunctionExpression(t)||172===t.kind;x||(y=c({flags:2}),144&n&&(y.node=t)),E=x||173===t.kind||e.isInJSFile(t)&&(259===t.kind||215===t.kind)?Z():void 0,T=void 0,v=void 0,b=void 0,D=void 0,L=!1,q(t),t.flags&=-2817,!(1&y.flags)&&8&n&&e.nodeIsPresent(t.body)&&(t.flags|=256,L&&(t.flags|=512),t.endFlowNode=y),308===t.kind&&(t.flags|=A,t.endFlowNode=y),E&&(re(E,y),y=ce(E),(173===t.kind||172===t.kind||e.isInJSFile(t)&&(259===t.kind||215===t.kind))&&(t.returnFlowNode=y)),x||(y=o),v=s,b=u,E=d,T=p,D=_,L=h}else 64&n?(g=!1,q(t),t.flags=g?128|t.flags:-129&t.flags):q(t);l=r,m=i,f=a}(n,a),s=i}else i=s,1===n.kind&&(s=n),Fe(n),s=i;N=r}}function Fe(t){if(e.hasJSDocNodes(t))if(e.isInJSFile(t))for(var n=0,r=t.jsDoc;n=117&&n.originalKeywordKind<=125?t.bindDiagnostics.push(F(n,function(n){return e.getContainingClass(n)?e.Diagnostics.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode:t.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}(n),e.declarationNameToString(n))):133===n.originalKeywordKind?e.isExternalModule(t)&&e.isInTopLevelContext(n)?t.bindDiagnostics.push(F(n,e.Diagnostics.Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module,e.declarationNameToString(n))):32768&n.flags&&t.bindDiagnostics.push(F(n,e.Diagnostics.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,e.declarationNameToString(n))):125===n.originalKeywordKind&&8192&n.flags&&t.bindDiagnostics.push(F(n,e.Diagnostics.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,e.declarationNameToString(n))))}(n);case 163:y&&e.isPartOfTypeQuery(n)&&(n.flowNode=y);break;case 233:case 106:n.flowNode=y;break;case 80:return function(n){"#constructor"===n.escapedText&&(t.parseDiagnostics.length||t.bindDiagnostics.push(F(n,e.Diagnostics.constructor_is_a_reserved_word,e.declarationNameToString(n))))}(n);case 208:case 209:var a=n;y&&J(a)&&(a.flowNode=y),e.isSpecialPropertyDeclaration(a)&&function(t){108===t.expression.kind?We(t):e.isBindableStaticAccessExpression(t)&&308===t.parent.parent.kind&&(e.isPrototypeAccess(t.expression)?ze(t,t.parent):Je(t))}(a),e.isInJSFile(a)&&t.commonJsModuleIndicator&&e.isModuleExportsAccessExpression(a)&&!p(f,"module")&&K(t.locals,void 0,a.expression,134217729,111550);break;case 223:switch(e.getAssignmentDeclarationKind(n)){case 1:je(n);break;case 2:!function(n){if(Ke(n)){var r=e.getRightMostAssignedExpression(n.right);if(!(e.isEmptyObjectLiteral(r)||l===t&&d(t,r)))if(e.isObjectLiteralExpression(r)&&e.every(r.properties,e.isShorthandPropertyAssignment))e.forEach(r.properties,He);else{var i=e.exportAssignmentIsAlias(n)?2097152:1049092,a=K(t.symbol.exports,t.symbol,n,67108864|i,0);e.setValueDeclaration(a,n)}}}(n);break;case 3:ze(n.left,n);break;case 6:!function(t){e.setParent(t.left,t),e.setParent(t.right,t),Ze(t.left.expression,t.left,!1,!0)}(n);break;case 4:We(n);break;case 5:var c=n.left.expression;if(e.isInJSFile(n)&&e.isIdentifier(c)){var u=p(f,c.escapedText);if(e.isThisInitializedDeclaration(null==u?void 0:u.valueDeclaration)){We(n);break}}!function(n){var r,i=et(n.left.expression,l)||et(n.left.expression,f);if(e.isInJSFile(n)||e.isFunctionSymbol(i)){var a=e.getLeftmostAccessExpression(n.left);e.isIdentifier(a)&&2097152&(null===(r=p(l,a.escapedText))||void 0===r?void 0:r.flags)||(e.setParent(n.left,n),e.setParent(n.right,n),e.isIdentifier(n.left.expression)&&l===t&&d(t,n.left.expression)?je(n):e.hasDynamicName(n)?(ke(n,67108868,"__computed"),qe(n,Xe(i,n.left.expression,Qe(n.left),!1,!1))):Je(e.cast(n.left,e.isBindableStaticNameExpression)))}}(n);break;case 0:break;default:e.Debug.fail("Unknown binary expression special property assignment kind")}return function(t){N&&e.isLeftHandSideExpression(t.left)&&e.isAssignmentOperator(t.operatorToken.kind)&&Pe(t,t.left)}(n);case 295:return function(e){N&&e.variableDeclaration&&Pe(e,e.variableDeclaration.name)}(n);case 217:return function(n){if(N&&79===n.expression.kind){var r=e.getErrorSpanForNode(t,n.expression);t.bindDiagnostics.push(e.createFileDiagnostic(t,r.start,r.length,e.Diagnostics.delete_cannot_be_called_on_an_identifier_in_strict_mode))}}(n);case 8:return function(n){o<1&&N&&32&n.numericLiteralFlags&&t.bindDiagnostics.push(F(n,e.Diagnostics.Octal_literals_are_not_allowed_in_strict_mode))}(n);case 222:return function(e){N&&Pe(e,e.operand)}(n);case 221:return function(e){N&&(45!==e.operator&&46!==e.operator||Pe(e,e.operand))}(n);case 251:return function(t){N&&Oe(t,e.Diagnostics.with_statements_are_not_allowed_in_strict_mode)}(n);case 253:return function(t){N&&e.getEmitScriptTarget(i)>=2&&(e.isDeclarationStatement(t.statement)||e.isVariableStatement(t.statement))&&Oe(t.label,e.Diagnostics.A_label_is_not_allowed_here)}(n);case 194:return void(g=!0);case 179:break;case 165:return function(t){if(e.isJSDocTemplateTag(t.parent)){var n=e.getEffectiveContainerForJSDocTemplateTag(t.parent);n?(n.locals||(n.locals=e.createSymbolTable()),K(n.locals,void 0,t,262144,526824)):Le(t,262144,526824)}else if(192===t.parent.kind){var r=function(t){var n=e.findAncestor(t,function(t){return t.parent&&e.isConditionalTypeNode(t.parent)&&t.parent.extendsType===t});return n&&n.parent}(t.parent);r?(r.locals||(r.locals=e.createSymbolTable()),K(r.locals,void 0,t,262144,526824)):ke(t,262144,U(t))}else Le(t,262144,526824)}(n);case 166:return rt(n);case 257:return nt(n);case 205:return n.flowNode=y,nt(n);case 169:case 168:return function(t){var n=e.isAutoAccessorPropertyDeclaration(t),r=n?13247:0;return it(t,(n?98304:4)|(t.questionToken?16777216:0),r)}(n);case 299:case 300:return it(n,4,0);case 302:return it(n,8,900095);case 176:case 177:case 178:return Le(n,131072,0);case 171:case 170:return it(n,8192|(n.questionToken?16777216:0),e.isObjectLiteralMethod(n)?0:103359);case 259:return function(n){t.isDeclarationFile||16777216&n.flags||e.isAsyncFunction(n)&&(A|=2048),we(n),N?(function(n){if(o<2&&308!==f.kind&&264!==f.kind&&!e.isFunctionLikeOrClassStaticBlockDeclaration(f)){var r=e.getErrorSpanForNode(t,n);t.bindDiagnostics.push(e.createFileDiagnostic(t,r.start,r.length,function(n){return e.getContainingClass(n)?e.Diagnostics.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_definitions_are_automatically_in_strict_mode:t.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}(n)))}}(n),Ie(n,16,110991)):Le(n,16,110991)}(n);case 173:return Le(n,16384,0);case 174:return it(n,32768,46015);case 175:return it(n,65536,78783);case 181:case 320:case 326:case 182:return function(t){var n=G(131072,U(t));B(n,t,131072);var r=G(2048,"__type");B(r,t,2048),r.members=e.createSymbolTable(),r.members.set(n.escapedName,n)}(n);case 184:case 325:case 197:return function(e){return ke(e,2048,"__type")}(n);case 335:return function(t){$(t);var n=e.getHostSignatureFromJSDoc(t);n&&171!==n.kind&&B(n.symbol,n,32)}(n);case 207:return function(e){return ke(e,4096,"__object")}(n);case 215:case 216:return function(n){return t.isDeclarationFile||16777216&n.flags||e.isAsyncFunction(n)&&(A|=2048),y&&(n.flowNode=y),we(n),ke(n,16,n.name?n.name.escapedText:"__function")}(n);case 210:switch(e.getAssignmentDeclarationKind(n)){case 7:return function(e){var t=et(e.arguments[0]),n=308===e.parent.parent.kind;Ye(e,t=Xe(t,e.arguments[0],n,!1,!1),!1)}(n);case 8:return function(e){if(Ke(e)){var t=tt(e.arguments[0],void 0,function(e,t){return t&&B(t,e,67110400),t});if(t){K(t.exports,t,e,1048580,0)}}}(n);case 9:return function(e){var t=et(e.arguments[0].expression);t&&t.valueDeclaration&&B(t,t.valueDeclaration,32),Ye(e,t,!0)}(n);case 0:break;default:return e.Debug.fail("Unknown call expression assignment declaration kind")}e.isInJSFile(n)&&function(n){!t.commonJsModuleIndicator&&e.isRequireCall(n,!1)&&Ke(n)}(n);break;case 228:case 260:return N=!0,function(n){260===n.kind?Ie(n,32,899503):(ke(n,32,n.name?n.name.escapedText:"__class"),n.name&&I.add(n.name.escapedText));var r=n.symbol,i=G(4194308,"prototype"),a=r.exports.get(i.escapedName);a&&(n.name&&e.setParent(n.name,n),t.bindDiagnostics.push(F(a.declarations[0],e.Diagnostics.Duplicate_identifier_0,e.symbolName(i)))),r.exports.set(i.escapedName,i),i.parent=r}(n);case 261:return Ie(n,64,788872);case 262:return Ie(n,524288,788968);case 263:return function(t){return e.isEnumConst(t)?Ie(t,128,899967):Ie(t,256,899327)}(n);case 264:return function(n){if(Ae(n),e.isAmbientModule(n))if(e.hasSyntacticModifier(n,1)&&Oe(n,e.Diagnostics.export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always_visible),e.isModuleAugmentationExternal(n))Ne(n);else{var r=void 0;if(10===n.name.kind){var i=n.name.text;void 0===(r=e.tryParsePattern(i))&&Oe(n.name,e.Diagnostics.Pattern_0_can_have_at_most_one_Asterisk_character,i)}var a=Le(n,512,110735);t.patternAmbientModules=e.append(t.patternAmbientModules,r&&!e.isString(r)?{pattern:r,symbol:a}:void 0)}else{var o=Ne(n);0!==o&&((a=n.symbol).constEnumOnlyModule=!(304&a.flags)&&2===o&&!1!==a.constEnumOnlyModule)}}(n);case 289:return function(e){return ke(e,4096,"__jsxAttributes")}(n);case 288:return function(e){return Le(e,4,0)}(n);case 268:case 271:case 273:case 278:return Le(n,2097152,2097152);case 267:return function(n){e.some(n.modifiers)&&t.bindDiagnostics.push(F(n,e.Diagnostics.Modifiers_cannot_appear_here));var r=e.isSourceFile(n.parent)?e.isExternalModule(n.parent)?n.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;r?t.bindDiagnostics.push(F(n,r)):(t.symbol.globalExports=t.symbol.globalExports||e.createSymbolTable(),K(t.symbol.globalExports,t.symbol,n,2097152,2097152))}(n);case 270:return function(e){e.name&&Le(e,2097152,2097152)}(n);case 275:return function(t){l.symbol&&l.symbol.exports?t.exportClause?e.isNamespaceExport(t.exportClause)&&(e.setParent(t.exportClause,t),K(l.symbol.exports,l.symbol,t.exportClause,2097152,2097152)):K(l.symbol.exports,l.symbol,t,8388608,0):ke(t,8388608,U(t))}(n);case 274:return function(t){if(l.symbol&&l.symbol.exports){var n=e.exportAssignmentIsAlias(t)?2097152:4,r=K(l.symbol.exports,l.symbol,t,n,67108863);t.isExportEquals&&e.setValueDeclaration(r,t)}else ke(t,111551,U(t))}(n);case 308:return Ge(n.statements),function(){if(Ae(t),e.isExternalModule(t))Ve();else if(e.isJsonSourceFile(t)){Ve();var n=t.symbol;K(t.symbol.exports,t.symbol,t,4,67108863),t.symbol=n}}();case 238:if(!e.isFunctionLikeOrClassStaticBlockDeclaration(n.parent))return;case 265:return Ge(n.statements);case 343:if(326===n.parent.kind)return rt(n);if(325!==n.parent.kind)break;case 350:var m=n;return Le(m,m.isBracketed||m.typeExpression&&319===m.typeExpression.type.kind?16777220:4,0);case 348:case 341:case 342:return(h||(h=[])).push(n)}}function Ve(){ke(t,512,'"'.concat(e.removeFileExtension(t.fileName),'"'))}function Ke(e){return!(t.externalModuleIndicator&&!0!==t.externalModuleIndicator||(t.commonJsModuleIndicator||(t.commonJsModuleIndicator=e,t.externalModuleIndicator||Ve()),0))}function je(t){if(Ke(t)){var n=tt(t.left.expression,void 0,function(e,t){return t&&B(t,e,67110400),t});if(n){var r=e.isAliasableExpression(t.right)&&(e.isExportsIdentifier(t.left.expression)||e.isModuleExportsAccessExpression(t.left.expression))?2097152:1048580;e.setParent(t.left,t),K(n.exports,n,t.left,r,0)}}}function He(e){K(t.symbol.exports,t.symbol,e,69206016,0)}function We(t){if(e.Debug.assert(e.isInJSFile(t)),!(e.isBinaryExpression(t)&&e.isPropertyAccessExpression(t.left)&&e.isPrivateIdentifier(t.left.name)||e.isPropertyAccessExpression(t)&&e.isPrivateIdentifier(t.name))){var n=e.getThisContainer(t,!1);switch(n.kind){case 259:case 215:var r=n.symbol;if(e.isBinaryExpression(n.parent)&&63===n.parent.operatorToken.kind){var i=n.parent.left;e.isBindableStaticAccessExpression(i)&&e.isPrototypeAccess(i.expression)&&(r=et(i.expression.expression,m))}r&&r.valueDeclaration&&(r.members=r.members||e.createSymbolTable(),e.hasDynamicName(t)?$e(t,r,r.members):K(r.members,r,t,67108868,0),B(r,r.valueDeclaration,32));break;case 173:case 169:case 171:case 174:case 175:case 172:var a=n.parent,o=e.isStatic(n)?a.symbol.exports:a.symbol.members;e.hasDynamicName(t)?$e(t,a.symbol,o):K(o,a.symbol,t,67108868,0,!0);break;case 308:if(e.hasDynamicName(t))break;n.commonJsModuleIndicator?K(n.symbol.exports,n.symbol,t,1048580,0):Le(t,1,111550);break;default:e.Debug.failBadSyntaxKind(n)}}}function $e(e,t,n){K(n,t,e,4,0,!0,!0),qe(e,t)}function qe(t,n){n&&(n.assignmentDeclarationMembers||(n.assignmentDeclarationMembers=new e.Map)).set(e.getNodeId(t),t)}function ze(t,n){var r=t.expression,i=r.expression;e.setParent(i,r),e.setParent(r,t),e.setParent(t,n),Ze(i,t,!0,!0)}function Je(t){e.Debug.assert(!e.isIdentifier(t)),e.setParent(t.expression,t),Ze(t.expression,t,!1,!1)}function Xe(n,r,i,a,o){if(2097152&(null==n?void 0:n.flags))return n;if(i&&!a){var s=67110400;n=tt(r,n,function(n,r,i){return r?(B(r,n,s),r):K(i?i.exports:t.jsGlobalAugmentations||(t.jsGlobalAugmentations=e.createSymbolTable()),i,n,s,110735)})}return o&&n&&n.valueDeclaration&&B(n,n.valueDeclaration,32),n}function Ye(t,n,r){if(n&&function(t){if(1072&t.flags)return!0;var n=t.valueDeclaration;if(n&&e.isCallExpression(n))return!!e.getAssignedExpandoInitializer(n);var r=n?e.isVariableDeclaration(n)?n.initializer:e.isBinaryExpression(n)?n.right:e.isPropertyAccessExpression(n)&&e.isBinaryExpression(n.parent)?n.parent.right:void 0:void 0;if(r=r&&e.getRightMostAssignedExpression(r)){var i=e.isPrototypeAccess(e.isVariableDeclaration(n)?n.name:e.isBinaryExpression(n)?n.left:n);return!!e.getExpandoInitializer(!e.isBinaryExpression(r)||56!==r.operatorToken.kind&&60!==r.operatorToken.kind?r:r.right,i)}return!1}(n)){var i=r?n.members||(n.members=e.createSymbolTable()):n.exports||(n.exports=e.createSymbolTable()),a=0,o=0;e.isFunctionLikeDeclaration(e.getAssignedExpandoInitializer(t))?(a=8192,o=103359):e.isCallExpression(t)&&e.isBindableObjectDefinePropertyCall(t)&&(e.some(t.arguments[2].properties,function(t){var n=e.getNameOfDeclaration(t);return!!n&&e.isIdentifier(n)&&"set"===e.idText(n)})&&(a|=65540,o|=78783),e.some(t.arguments[2].properties,function(t){var n=e.getNameOfDeclaration(t);return!!n&&e.isIdentifier(n)&&"get"===e.idText(n)})&&(a|=32772,o|=46015)),0===a&&(a=4,o=0),K(i,n,t,67108864|a,-67108865&o)}}function Qe(t){return e.isBinaryExpression(t.parent)?308===function(t){for(;e.isBinaryExpression(t.parent);)t=t.parent;return t.parent}(t.parent).parent.kind:308===t.parent.parent.kind}function Ze(e,t,n,r){var i=et(e,l)||et(e,f),a=Qe(t);Ye(t,i=Xe(i,t.expression,a,n,r),n)}function et(t,n){if(void 0===n&&(n=l),e.isIdentifier(t))return p(n,t.escapedText);var r=et(t.expression);return r&&r.exports&&r.exports.get(e.getElementOrPropertyAccessName(t))}function tt(n,r,i){if(d(t,n))return t.symbol;if(e.isIdentifier(n))return i(n,et(n),r);var a=tt(n.expression,r,i),o=e.getNameOrArgument(n);return e.isPrivateIdentifier(o)&&e.Debug.fail("unexpected PrivateIdentifier"),i(o,a&&a.exports&&a.exports.get(e.getElementOrPropertyAccessName(n)),a)}function nt(t){if(N&&Pe(t,t.name),!e.isBindingPattern(t.name)){var n=257===t.kind?t:t.parent.parent;!e.isInJSFile(t)||!e.isVariableDeclarationInitializedToBareOrAccessedRequire(n)||e.getJSDocTypeTag(t)||1&e.getCombinedModifierFlags(t)?e.isBlockOrCatchScoped(t)?Ie(t,2,111551):e.isParameterDeclaration(t)?Le(t,1,111551):Le(t,1,111550):Le(t,2097152,2097152)}}function rt(t){if((343!==t.kind||326===l.kind)&&(!N||16777216&t.flags||Pe(t,t.name),e.isBindingPattern(t.name)?ke(t,1,"__"+t.parent.parameters.indexOf(t)):Le(t,1,111551),e.isParameterPropertyDeclaration(t,t.parent))){var n=t.parent.parent;K(n.symbol.members,n.symbol,t,4|(t.questionToken?16777216:0),0)}}function it(n,r,i){return t.isDeclarationFile||16777216&n.flags||!e.isAsyncFunction(n)||(A|=2048),y&&e.isObjectLiteralOrClassExpressionMethodOrAccessor(n)&&(n.flowNode=y),e.hasDynamicName(n)?ke(n,r,"__computed"):Le(n,r,i)}}();function u(t){return!(e.isFunctionDeclaration(t)||function(t){switch(t.kind){case 261:case 262:return!0;case 264:return 1!==a(t);case 263:return e.hasSyntacticModifier(t,2048);default:return!1}}(t)||e.isEnumDeclaration(t)||e.isVariableStatement(t)&&!(3&e.getCombinedNodeFlags(t))&&t.declarationList.declarations.some(function(e){return!e.initializer}))}function d(t,n){var r=0,i=e.createQueue();for(i.enqueue(n);!i.isEmpty()&&r<100;){if(r++,n=i.dequeue(),e.isExportsIdentifier(n)||e.isModuleExportsAccessExpression(n))return!0;if(e.isIdentifier(n)){var a=p(t,n.escapedText);if(a&&a.valueDeclaration&&e.isVariableDeclaration(a.valueDeclaration)&&a.valueDeclaration.initializer){var o=a.valueDeclaration.initializer;i.enqueue(o),e.isAssignmentExpression(o,!0)&&(i.enqueue(o.left),i.enqueue(o.right))}}}return!1}function p(t,n){var r=t.locals&&t.locals.get(n);return r?r.exportSymbol||r:e.isSourceFile(t)&&t.jsGlobalAugmentations&&t.jsGlobalAugmentations.has(n)?t.jsGlobalAugmentations.get(n):t.symbol&&t.symbol.exports&&t.symbol.exports.get(n)}e.bindSourceFile=function(t,n){e.performance.mark("beforeBind"),e.perfLogger.logStartBindFile(""+t.fileName),l(t,n),e.perfLogger.logStopBindFile(),e.performance.mark("afterBind"),e.performance.measure("Bind","beforeBind","afterBind")},e.isExportsOrModuleExportsOrAlias=d}(c||(c={})),function(e){e.createGetSymbolWalker=function(t,n,r,i,a,o,s,c,l,u){return function(d){void 0===d&&(d=function(){return!0});var p=[],m=[];return{walkType:function(t){try{return f(t),{visitedTypes:e.getOwnValues(p),visitedSymbols:e.getOwnValues(m)}}finally{e.clear(p),e.clear(m)}},walkSymbol:function(t){try{return g(t),{visitedTypes:e.getOwnValues(p),visitedSymbols:e.getOwnValues(m)}}finally{e.clear(p),e.clear(m)}}};function f(t){if(t&&!p[t.id]&&(p[t.id]=t,!g(t.symbol))){if(524288&t.flags){var n=t,r=n.objectFlags;4&r&&function(t){f(t.target),e.forEach(u(t),f)}(t),32&r&&function(e){f(e.typeParameter),f(e.constraintType),f(e.templateType),f(e.modifiersType)}(t),3&r&&(h(a=t),e.forEach(a.typeParameters,f),e.forEach(i(a),f),f(a.thisType)),24&r&&h(n)}var a;262144&t.flags&&function(e){f(c(e))}(t),3145728&t.flags&&function(t){e.forEach(t.types,f)}(t),4194304&t.flags&&function(e){f(e.type)}(t),8388608&t.flags&&function(e){f(e.objectType),f(e.indexType),f(e.constraint)}(t)}}function _(i){var a=n(i);a&&f(a.type),e.forEach(i.typeParameters,f);for(var o=0,s=i.parameters;o1&&2097152&b.flags&&(t=e.createSymbolTable()).set("export=",b),C(t),g=function(t){var n=e.findIndex(t,function(t){return e.isExportDeclaration(t)&&!t.moduleSpecifier&&!t.assertClause&&!!t.exportClause&&e.isNamedExports(t.exportClause)});if(n>=0){var r=t[n],i=e.mapDefined(r.exportClause.elements,function(n){if(!n.propertyName){var r=e.indicesOf(t),i=e.filter(r,function(r){return e.nodeHasName(t[r],n.name)});if(e.length(i)&&e.every(i,function(n){return e.canHaveExportModifier(t[n])})){for(var a=0,o=i;a1){var i=e.filter(t,function(t){return!e.isExportDeclaration(t)||!!t.moduleSpecifier||!t.exportClause});t=n(n([],i,!0),[e.factory.createExportDeclaration(void 0,!1,e.factory.createNamedExports(e.flatMap(r,function(t){return e.cast(t.exportClause,e.isNamedExports).elements})),void 0)],!1)}var a=e.filter(t,function(t){return e.isExportDeclaration(t)&&!!t.moduleSpecifier&&!!t.exportClause&&e.isNamedExports(t.exportClause)});if(e.length(a)>1){var o=e.group(a,function(t){return e.isStringLiteral(t.moduleSpecifier)?">"+t.moduleSpecifier.text:">"});if(o.length!==a.length)for(var s=function(r){r.length>1&&(t=n(n([],e.filter(t,function(e){return-1===r.indexOf(e)}),!0),[e.factory.createExportDeclaration(void 0,!1,e.factory.createNamedExports(e.flatMap(r,function(t){return e.cast(t.exportClause,e.isNamedExports).elements})),r[0].moduleSpecifier)],!1))},c=0,l=o;c0&&e.isSingleOrDoubleQuote(a.charCodeAt(0))?e.stripQuotes(a):a}return"default"===n?n="_default":"export="===n&&(n="_exports"),e.isIdentifierText(n,H)&&!e.isStringANonContextualKeyword(n)?n:"_"+n.replace(/[^a-zA-Z0-9]/g,"_")}function ne(e,t){var n=O(e);return i.remappedSymbolNames.has(n)?i.remappedSymbolNames.get(n):(t=te(e,t),i.remappedSymbolNames.set(n,t),t)}}(t,i,u)})},symbolToNode:function(t,n,r,i,o){return a(r,i,o,function(r){return function(t,n,r){if(1073741824&n.flags){if(t.valueDeclaration){var i=e.getNameOfDeclaration(t.valueDeclaration);if(i&&e.isComputedPropertyName(i))return i}var a=pi(t).nameType;if(a&&9216&a.flags)return n.enclosingDeclaration=a.symbol.valueDeclaration,e.factory.createComputedPropertyName(P(a.symbol,n,r))}return P(t,n,r)}(t,r,n)})}};function a(n,r,i,a){var s,c;e.Debug.assert(void 0===n||!(8&n.flags));var l={enclosingDeclaration:n,flags:r||0,tracker:i&&i.trackSymbol?i:{trackSymbol:function(){return!1},moduleResolverHost:134217728&r?{getCommonSourceDirectory:t.getCommonSourceDirectory?function(){return t.getCommonSourceDirectory()}:function(){return""},getCurrentDirectory:function(){return t.getCurrentDirectory()},getSymlinkCache:e.maybeBind(t,t.getSymlinkCache),getPackageJsonInfoCache:function(){var e;return null===(e=t.getPackageJsonInfoCache)||void 0===e?void 0:e.call(t)},useCaseSensitiveFileNames:e.maybeBind(t,t.useCaseSensitiveFileNames),redirectTargetsMap:t.redirectTargetsMap,getProjectReferenceRedirect:function(e){return t.getProjectReferenceRedirect(e)},isSourceOfProjectReferenceRedirect:function(e){return t.isSourceOfProjectReferenceRedirect(e)},fileExists:function(e){return t.fileExists(e)},getFileIncludeReasons:function(){return t.getFileIncludeReasons()},readFile:t.readFile?function(e){return t.readFile(e)}:void 0}:void 0},encounteredError:!1,reportedDiagnostic:!1,visitedTypes:void 0,symbolDepth:void 0,inferTypeParameters:void 0,approximateLength:0};l.tracker=o(l,l.tracker);var u=a(l);return l.truncating&&1&l.flags&&(null===(c=null===(s=l.tracker)||void 0===s?void 0:s.reportTruncationError)||void 0===c||c.call(s)),l.encounteredError?void 0:u}function o(e,t){var n=t.trackSymbol;return r(r({},t),{reportCyclicStructureError:i(t.reportCyclicStructureError),reportInaccessibleThisError:i(t.reportInaccessibleThisError),reportInaccessibleUniqueSymbolError:i(t.reportInaccessibleUniqueSymbolError),reportLikelyUnsafeImportRequiredError:i(t.reportLikelyUnsafeImportRequiredError),reportNonlocalAugmentation:i(t.reportNonlocalAugmentation),reportPrivateInBaseOfClassExpression:i(t.reportPrivateInBaseOfClassExpression),reportNonSerializableProperty:i(t.reportNonSerializableProperty),trackSymbol:n&&function(){for(var t=[],r=0;r(1&t.flags?e.noTruncationMaximumTruncationLength:e.defaultMaximumTruncationLength)}function l(t,n){var r=n.flags,a=function(t,n){i&&i.throwIfCancellationRequested&&i.throwIfCancellationRequested();var r=8388608&n.flags;if(n.flags&=-8388609,!t)return 262144&n.flags?(n.approximateLength+=3,e.factory.createKeywordTypeNode(131)):void(n.encounteredError=!0);if(536870912&n.flags||(t=cl(t)),1&t.flags)return t.aliasSymbol?e.factory.createTypeReferenceNode(L(t.aliasSymbol),f(t.aliasTypeArguments,n)):t===Ue?e.addSyntheticLeadingComment(e.factory.createKeywordTypeNode(131),3,"unresolved"):(n.approximateLength+=3,e.factory.createKeywordTypeNode(t===Ke?139:131));if(2&t.flags)return e.factory.createKeywordTypeNode(157);if(4&t.flags)return n.approximateLength+=6,e.factory.createKeywordTypeNode(152);if(8&t.flags)return n.approximateLength+=6,e.factory.createKeywordTypeNode(148);if(64&t.flags)return n.approximateLength+=6,e.factory.createKeywordTypeNode(160);if(16&t.flags&&!t.aliasSymbol)return n.approximateLength+=7,e.factory.createKeywordTypeNode(134);if(1024&t.flags&&!(1048576&t.flags)){var a=Ta(t.symbol),o=A(a,n,788968);if(Vs(a)===t)return o;var c=e.symbolName(t.symbol);return e.isIdentifierText(c,0)?$(o,e.factory.createTypeReferenceNode(c,void 0)):e.isImportTypeNode(o)?(o.isTypeOf=!0,e.factory.createIndexedAccessTypeNode(o,e.factory.createLiteralTypeNode(e.factory.createStringLiteral(c)))):e.isTypeReferenceNode(o)?e.factory.createIndexedAccessTypeNode(e.factory.createTypeQueryNode(o.typeName),e.factory.createLiteralTypeNode(e.factory.createStringLiteral(c))):e.Debug.fail("Unhandled type node kind returned from `symbolToTypeNode`.")}if(1056&t.flags)return A(t.symbol,n,788968);if(128&t.flags)return n.approximateLength+=t.value.length+2,e.factory.createLiteralTypeNode(e.setEmitFlags(e.factory.createStringLiteral(t.value,!!(268435456&n.flags)),16777216));if(256&t.flags){var p=t.value;return n.approximateLength+=(""+p).length,e.factory.createLiteralTypeNode(p<0?e.factory.createPrefixUnaryExpression(40,e.factory.createNumericLiteral(-p)):e.factory.createNumericLiteral(p))}if(2048&t.flags)return n.approximateLength+=e.pseudoBigIntToString(t.value).length+1,e.factory.createLiteralTypeNode(e.factory.createBigIntLiteral(t.value));if(512&t.flags)return n.approximateLength+=t.intrinsicName.length,e.factory.createLiteralTypeNode("true"===t.intrinsicName?e.factory.createTrue():e.factory.createFalse());if(8192&t.flags){if(!(1048576&n.flags)){if(qa(t.symbol,n.enclosingDeclaration))return n.approximateLength+=6,A(t.symbol,n,111551);n.tracker.reportInaccessibleUniqueSymbolError&&n.tracker.reportInaccessibleUniqueSymbolError()}return n.approximateLength+=13,e.factory.createTypeOperatorNode(156,e.factory.createKeywordTypeNode(153))}if(16384&t.flags)return n.approximateLength+=4,e.factory.createKeywordTypeNode(114);if(32768&t.flags)return n.approximateLength+=9,e.factory.createKeywordTypeNode(155);if(65536&t.flags)return n.approximateLength+=4,e.factory.createLiteralTypeNode(e.factory.createNull());if(131072&t.flags)return n.approximateLength+=5,e.factory.createKeywordTypeNode(144);if(4096&t.flags)return n.approximateLength+=6,e.factory.createKeywordTypeNode(153);if(67108864&t.flags)return n.approximateLength+=6,e.factory.createKeywordTypeNode(149);if(e.isThisTypeParameter(t))return 4194304&n.flags&&(n.encounteredError||32768&n.flags||(n.encounteredError=!0),n.tracker.reportInaccessibleThisError&&n.tracker.reportInaccessibleThisError()),n.approximateLength+=4,e.factory.createThisTypeNode();if(!r&&t.aliasSymbol&&(16384&n.flags||$a(t.aliasSymbol,n.enclosingDeclaration))){var y=f(t.aliasTypeArguments,n);return!Fa(t.aliasSymbol.escapedName)||32&t.aliasSymbol.flags?1===e.length(y)&&t.aliasSymbol===Jt.symbol?e.factory.createArrayTypeNode(y[0]):A(t.aliasSymbol,n,788968,y):e.factory.createTypeReferenceNode(e.factory.createIdentifier(""),y)}var v=e.getObjectFlags(t);if(4&v)return e.Debug.assert(!!(524288&t.flags)),t.node?j(t,W):W(t);if(262144&t.flags||3&v){if(262144&t.flags&&e.contains(n.inferTypeParameters,t)){n.approximateLength+=e.symbolName(t.symbol).length+6;var b=void 0,E=Hc(t);if(E){var x=ou(t,!0);x&&Nm(E,x)||(n.approximateLength+=9,b=E&&l(E,n))}return e.factory.createInferTypeNode(g(t,n,b))}if(4&n.flags&&262144&t.flags&&!$a(t.symbol,n.enclosingDeclaration)){var S=k(t,n);return n.approximateLength+=e.idText(S).length,e.factory.createTypeReferenceNode(e.factory.createIdentifier(e.idText(S)),void 0)}if(t.symbol)return A(t.symbol,n,788968);var T=(t===Bt||t===Ut)&&d&&d.symbol?(t===Ut?"sub-":"super-")+e.symbolName(d.symbol):"?";return e.factory.createTypeReferenceNode(e.factory.createIdentifier(T),void 0)}if(1048576&t.flags&&t.origin&&(t=t.origin),3145728&t.flags){var C=1048576&t.flags?function(e){for(var t=[],n=0,r=0;r0?1048576&t.flags?e.factory.createUnionTypeNode(D):e.factory.createIntersectionTypeNode(D):void(n.encounteredError||262144&n.flags||(n.encounteredError=!0))}if(48&v)return e.Debug.assert(!!(524288&t.flags)),K(t);if(4194304&t.flags){var N=t.type;n.approximateLength+=6;var I=l(N,n);return e.factory.createTypeOperatorNode(141,I)}if(134217728&t.flags){var P=t.texts,R=t.types,M=e.factory.createTemplateHead(P[0]),F=e.factory.createNodeArray(e.map(R,function(t,r){return e.factory.createTemplateLiteralTypeSpan(l(t,n),(r10)return u(n);n.symbolDepth.set(c,p+1)}n.visitedTypes.add(o);var f=n.approximateLength,_=r(t),h=n.approximateLength-f;return n.reportedDiagnostic||n.encounteredError||(n.truncating&&(_.truncating=!0),_.addedLength=h,null===(a=null==l?void 0:l.serializedTypes)||void 0===a||a.set(d,_)),n.visitedTypes.delete(o),c&&n.symbolDepth.set(c,p),_;function g(t,n,r,i,a){return t&&0===t.length?e.setTextRange(e.factory.createNodeArray(void 0,t.hasTrailingComma),t):e.visitNodes(t,n,r,i,a)}}function H(t){if(Fc(t)||t.containsError)return function(t){e.Debug.assert(!!(524288&t.flags));var r,i,a=t.declaration.readonlyToken?e.factory.createToken(t.declaration.readonlyToken.kind):void 0,o=t.declaration.questionToken?e.factory.createToken(t.declaration.questionToken.kind):void 0;if(Pc(t)){if(V(t)&&4&n.flags){var s=k(Ma(ri(262144,"T")),n);i=e.factory.createTypeReferenceNode(s)}r=e.factory.createTypeOperatorNode(141,i||l(wc(t),n))}else r=l(Ac(t),n);var c=g(Lc(t),n,r),u=t.declaration.nameType?l(Nc(t),n):void 0,d=l(y_(kc(t),!!(4&Oc(t))),n),p=e.factory.createMappedTypeNode(a,c,u,o,d,void 0);n.approximateLength+=10;var m=e.setEmitFlags(p,1);if(V(t)&&4&n.flags){var f=bm(Hc(zp(t.declaration.typeParameter.constraint.type))||je,t.mapper);return e.factory.createConditionalTypeNode(l(wc(t),n),e.factory.createInferTypeNode(e.factory.createTypeParameterDeclaration(void 0,e.factory.cloneNode(i.typeName),2&f.flags?void 0:l(f,n))),m,e.factory.createKeywordTypeNode(144))}return m}(t);var r=Gc(t);if(!r.properties.length&&!r.indexInfos.length){if(!r.callSignatures.length&&!r.constructSignatures.length)return n.approximateLength+=2,e.setEmitFlags(e.factory.createTypeLiteralNode(void 0),1);if(1===r.callSignatures.length&&!r.constructSignatures.length)return h(r.callSignatures[0],181,n);if(1===r.constructSignatures.length&&!r.callSignatures.length)return h(r.constructSignatures[0],182,n)}var i=e.filter(r.constructSignatures,function(e){return!!(4&e.flags)});if(e.some(i)){var a=e.map(i,Ql),o=r.callSignatures.length+(r.constructSignatures.length-i.length)+r.indexInfos.length+(2048&n.flags?e.countWhere(r.properties,function(e){return!(4194304&e.flags)}):e.length(r.properties));return o&&a.push(function(t){if(0===t.constructSignatures.length)return t;if(t.objectTypeWithoutAbstractConstructSignatures)return t.objectTypeWithoutAbstractConstructSignatures;var n=e.filter(t.constructSignatures,function(e){return!(4&e.flags)});if(t.constructSignatures===n)return t;var r=Va(t.symbol,t.members,t.callSignatures,e.some(n)?n:e.emptyArray,t.indexInfos);return t.objectTypeWithoutAbstractConstructSignatures=r,r.objectTypeWithoutAbstractConstructSignatures=r,r}(r)),l(Nd(a),n)}var c=n.flags;n.flags|=4194304;var d=function(t){if(s(n))return[e.factory.createPropertySignature(void 0,"...",void 0,void 0)];for(var r=[],i=0,a=t.callSignatures;i0){var y=(t.target.typeParameters||e.emptyArray).length;g=f(r.slice(x,y),n)}S=n.flags,n.flags|=16;var v=A(t.symbol,n,788968,g);return n.flags=S,c?$(c,v):v}if(r=e.sameMap(r,function(e,n){return y_(e,!!(2&t.target.elementFlags[n]))}),r.length>0){var b=hu(t),E=f(r.slice(0,b),n);if(E){if(t.target.labeledElementDeclarations)for(var x=0;x2)return[l(t[0],n),e.factory.createTypeReferenceNode("... ".concat(t.length-2," more ..."),void 0),l(t[t.length-1],n)]}for(var i=64&n.flags?void 0:e.createUnderscoreEscapedMultiMap(),a=[],o=0,c=0,u=t;c0)),a}function S(t,n){var r;return 524384&rT(t).flags&&(r=e.factory.createNodeArray(e.map(Es(t),function(e){return y(e,n)}))),r}function T(t,n,r){var i;e.Debug.assert(t&&0<=n&&n1?N(l,l.length-1,1):void 0,p=i||T(l,0,n),m=e.getSourceFileOfNode(e.getOriginalNode(n.enclosingDeclaration)),f=e.getSourceFileOfModule(l[0]),_=void 0,h=void 0;if(e.getEmitModuleResolutionKind(j)!==e.ModuleResolutionKind.Node16&&e.getEmitModuleResolutionKind(j)!==e.ModuleResolutionKind.NodeNext||(null==f?void 0:f.impliedNodeFormat)===e.ModuleKind.ESNext&&f.impliedNodeFormat!==(null==m?void 0:m.impliedNodeFormat)&&(_=D(l[0],n,e.ModuleKind.ESNext),h=e.factory.createImportTypeAssertionContainer(e.factory.createAssertClause(e.factory.createNodeArray([e.factory.createAssertEntry(e.factory.createStringLiteral("resolution-mode"),e.factory.createStringLiteral("import"))]))),null===(o=(a=n.tracker).reportImportTypeNodeResolutionModeOverride)||void 0===o||o.call(a)),_||(_=D(l[0],n)),!(67108864&n.flags)&&e.getEmitModuleResolutionKind(j)!==e.ModuleResolutionKind.Classic&&_.indexOf("/node_modules/")>=0){var g=_;if(e.getEmitModuleResolutionKind(j)===e.ModuleResolutionKind.Node16||e.getEmitModuleResolutionKind(j)===e.ModuleResolutionKind.NodeNext){var y=(null==m?void 0:m.impliedNodeFormat)===e.ModuleKind.ESNext?e.ModuleKind.CommonJS:e.ModuleKind.ESNext;(_=D(l[0],n,y)).indexOf("/node_modules/")>=0?_=g:(h=e.factory.createImportTypeAssertionContainer(e.factory.createAssertClause(e.factory.createNodeArray([e.factory.createAssertEntry(e.factory.createStringLiteral("resolution-mode"),e.factory.createStringLiteral(y===e.ModuleKind.ESNext?"import":"require"))]))),null===(c=(s=n.tracker).reportImportTypeNodeResolutionModeOverride)||void 0===c||c.call(s))}h||(n.encounteredError=!0,n.tracker.reportLikelyUnsafeImportRequiredError&&n.tracker.reportLikelyUnsafeImportRequiredError(g))}var v=e.factory.createLiteralTypeNode(e.factory.createStringLiteral(_));if(n.tracker.trackExternalModuleSymbolOfImportTypeNode&&n.tracker.trackExternalModuleSymbolOfImportTypeNode(l[0]),n.approximateLength+=_.length+10,!d||e.isEntityName(d))return d&&((L=e.isIdentifier(d)?d:d.right).typeArguments=void 0),e.factory.createImportTypeNode(v,h,d,p,u);var b=C(d),x=b.objectType.typeName;return e.factory.createIndexedAccessTypeNode(e.factory.createImportTypeNode(v,h,x,p,u),b.indexType)}var S=N(l,l.length-1,0);if(e.isIndexedAccessTypeNode(S))return S;if(u)return e.factory.createTypeQueryNode(S);var L,A=(L=e.isIdentifier(S)?S:S.right).typeArguments;return L.typeArguments=void 0,e.factory.createTypeReferenceNode(S,A);function N(t,r,a){var o,s=r===t.length-1?i:T(t,r,n),c=t[r],l=t[r-1];if(0===r)n.flags|=16777216,o=go(c,n),n.approximateLength+=(o?o.length:0)+1,n.flags^=16777216;else if(l&&ya(l)){var u=ya(l);e.forEachEntry(u,function(t,n){if(Aa(t,c)&&!Zs(n)&&"export="!==n)return o=e.unescapeLeadingUnderscores(n),!0})}if(void 0===o){var d=e.firstDefined(c.declarations,e.getNameOfDeclaration);if(d&&e.isComputedPropertyName(d)&&e.isEntityName(d.expression)){var p=N(t,r-1,a);return e.isEntityName(p)?e.factory.createIndexedAccessTypeNode(e.factory.createParenthesizedType(e.factory.createTypeQueryNode(p)),e.factory.createTypeQueryNode(d.expression)):p}o=go(c,n)}if(n.approximateLength+=o.length+1,!(16&n.flags)&&l&&ac(l)&&ac(l).get(c.escapedName)&&Aa(ac(l).get(c.escapedName),c))return p=N(t,r-1,a),e.isIndexedAccessTypeNode(p)?e.factory.createIndexedAccessTypeNode(p,e.factory.createLiteralTypeNode(e.factory.createStringLiteral(o))):e.factory.createIndexedAccessTypeNode(e.factory.createTypeReferenceNode(p,s),e.factory.createLiteralTypeNode(e.factory.createStringLiteral(o)));var m=e.setEmitFlags(e.factory.createIdentifier(o,s),16777216);return m.symbol=c,r>a?(p=N(t,r-1,a),e.isEntityName(p)?e.factory.createQualifiedName(p,m):e.Debug.fail("Impossible construct - an export of an indexed access cannot be reachable")):m}}function N(e,t,n){var r=vi(t.enclosingDeclaration,e,788968,void 0,e,!1);return!(!r||262144&r.flags&&r===n.symbol)}function k(t,n){var r,i;if(4&n.flags&&n.typeParameterNames){var a=n.typeParameterNames.get(fd(t));if(a)return a}var o=I(t.symbol,n,788968,!0);if(!(79&o.kind))return e.factory.createIdentifier("(Missing type parameter)");if(4&n.flags){for(var s=o.escapedText,c=(null===(r=n.typeParameterNamesByTextNextNameCount)||void 0===r?void 0:r.get(s))||0,l=s;(null===(i=n.typeParameterNamesByText)||void 0===i?void 0:i.has(l))||N(l,n,t);)c++,l="".concat(s,"_").concat(c);l!==s&&(o=e.factory.createIdentifier(l,o.typeArguments)),(n.typeParameterNamesByTextNextNameCount||(n.typeParameterNamesByTextNextNameCount=new e.Map)).set(s,c),(n.typeParameterNames||(n.typeParameterNames=new e.Map)).set(fd(t),o),(n.typeParameterNamesByText||(n.typeParameterNamesByText=new e.Set)).add(s)}return o}function I(t,n,r,i){var a=E(t,n,r);return!i||1===a.length||n.encounteredError||65536&n.flags||(n.encounteredError=!0),function t(r,i){var a=T(r,i,n),o=r[i];0===i&&(n.flags|=16777216);var s=go(o,n);0===i&&(n.flags^=16777216);var c=e.setEmitFlags(e.factory.createIdentifier(s,a),16777216);return c.symbol=o,i>0?e.factory.createQualifiedName(t(r,i-1),c):c}(a,a.length-1)}function P(t,n,r){var i=E(t,n,r);return function t(r,i){var a=T(r,i,n),o=r[i];0===i&&(n.flags|=16777216);var s=go(o,n);0===i&&(n.flags^=16777216);var c=s.charCodeAt(0);if(e.isSingleOrDoubleQuote(c)&&e.some(o.declarations,eo))return e.factory.createStringLiteral(D(o,n));var l=35===c?s.length>1&&e.isIdentifierStart(s.charCodeAt(1),H):e.isIdentifierStart(c,H);if(0===i||l){var u=e.setEmitFlags(e.factory.createIdentifier(s,a),16777216);return u.symbol=o,i>0?e.factory.createPropertyAccessExpression(t(r,i-1),u):u}91===c&&(c=(s=s.substring(1,s.length-1)).charCodeAt(0));var d=void 0;return!e.isSingleOrDoubleQuote(c)||8&o.flags?""+ +s===s&&(d=e.factory.createNumericLiteral(+s)):d=e.factory.createStringLiteral(e.stripQuotes(s).replace(/\\./g,function(e){return e.substring(1)}),39===c),d||((d=e.setEmitFlags(e.factory.createIdentifier(s,a),16777216)).symbol=o),e.factory.createElementAccessExpression(t(r,i-1),d)}(i,i.length-1)}function R(t){var n=e.getNameOfDeclaration(t);return!!n&&e.isStringLiteral(n)}function M(t){var n=e.getNameOfDeclaration(t);return!!(n&&e.isStringLiteral(n)&&(n.singleQuote||!e.nodeIsSynthesized(n)&&e.startsWith(e.getTextOfNode(n,!1),"'")))}function F(t,n){var r=!!e.length(t.declarations)&&e.every(t.declarations,M),i=function(t,n,r){var i=pi(t).nameType;if(i){if(384&i.flags){var a=""+i.value;return e.isIdentifierText(a,e.getEmitScriptTarget(j))||e.isNumericLiteralName(a)?e.isNumericLiteralName(a)&&e.startsWith(a,"-")?e.factory.createComputedPropertyName(e.factory.createNumericLiteral(+a)):e.createPropertyNameNodeForIdentifierOrLiteral(a,e.getEmitScriptTarget(j)):e.factory.createStringLiteral(a,!!r)}if(8192&i.flags)return e.factory.createComputedPropertyName(P(i.symbol,n,111551))}}(t,n,r);if(i)return i;var a=e.unescapeLeadingUnderscores(t.escapedName),o=!!e.length(t.declarations)&&e.every(t.declarations,R);return e.createPropertyNameNodeForIdentifierOrLiteral(a,e.getEmitScriptTarget(j),r,o)}function G(t,n){return t.declarations&&e.find(t.declarations,function(t){return!(!e.getEffectiveTypeAnnotationNode(t)||n&&!e.findAncestor(t,function(e){return e===n}))})}function B(t,n){return!(4&e.getObjectFlags(n))||!e.isTypeReferenceNode(t)||e.length(t.typeArguments)>=wl(n.target.typeParameters)}function U(t,n,r,i,a,o){if(!Lo(n)&&i){var s=G(r,i);if(s&&!e.isFunctionLikeDeclaration(s)&&!e.isGetAccessorDeclaration(s)){var c=e.getEffectiveTypeAnnotationNode(s);if(function(t,n,r){var i=zp(t);return i===r||!(!e.isParameter(n)||!n.questionToken)&&Oh(r,524288)===i}(c,s,n)&&B(c,n)){var u=K(t,c,a,o);if(u)return u}}}var d=t.flags;8192&n.flags&&n.symbol===r&&(!t.enclosingDeclaration||e.some(r.declarations,function(n){return e.getSourceFileOfNode(n)===e.getSourceFileOfNode(t.enclosingDeclaration)}))&&(t.flags|=1048576);var p=l(n,t);return t.flags=d,p}function V(t,n,r){var i,a,o=!1,s=e.getFirstIdentifier(t);if(e.isInJSFile(t)&&(e.isExportsIdentifier(s)||e.isModuleExportsAccessExpression(s.parent)||e.isQualifiedName(s.parent)&&e.isModuleIdentifier(s.parent.left)&&e.isExportsIdentifier(s.parent.right)))return{introducesError:o=!0,node:t};var c=aa(s,67108863,!0,!0);if(c&&(0!==Xa(c,n.enclosingDeclaration,67108863,!1).accessibility?o=!0:(null===(a=null===(i=n.tracker)||void 0===i?void 0:i.trackSymbol)||void 0===a||a.call(i,c,n.enclosingDeclaration,67108863),null==r||r(c)),e.isIdentifier(t))){var l=Vs(c),u=262144&c.flags&&!$a(l.symbol,n.enclosingDeclaration)?k(l,n):e.factory.cloneNode(t);return u.symbol=c,{introducesError:o,node:e.setEmitFlags(e.setOriginalNode(u,t),16777216)}}return{introducesError:o,node:t}}function K(n,r,a,o){i&&i.throwIfCancellationRequested&&i.throwIfCancellationRequested();var s=!1,c=e.getSourceFileOfNode(r),u=e.visitNode(r,function r(i){if(e.isJSDocAllType(i)||322===i.kind)return e.factory.createKeywordTypeNode(131);if(e.isJSDocUnknownType(i))return e.factory.createKeywordTypeNode(157);if(e.isJSDocNullableType(i))return e.factory.createUnionTypeNode([e.visitNode(i.type,r),e.factory.createLiteralTypeNode(e.factory.createNull())]);if(e.isJSDocOptionalType(i))return e.factory.createUnionTypeNode([e.visitNode(i.type,r),e.factory.createKeywordTypeNode(155)]);if(e.isJSDocNonNullableType(i))return e.visitNode(i.type,r);if(e.isJSDocVariadicType(i))return e.factory.createArrayTypeNode(e.visitNode(i.type,r));if(e.isJSDocTypeLiteral(i))return e.factory.createTypeLiteralNode(e.map(i.jsDocPropertyTags,function(t){var a=e.isIdentifier(t.name)?t.name:t.name.right,o=Co(zp(i),a.escapedText),s=o&&t.typeExpression&&zp(t.typeExpression.type)!==o?l(o,n):void 0;return e.factory.createPropertySignature(void 0,a,t.isBracketed||t.typeExpression&&e.isJSDocOptionalType(t.typeExpression.type)?e.factory.createToken(57):void 0,s||t.typeExpression&&e.visitNode(t.typeExpression.type,r)||e.factory.createKeywordTypeNode(131))}));if(e.isTypeReferenceNode(i)&&e.isIdentifier(i.typeName)&&""===i.typeName.escapedText)return e.setOriginalNode(e.factory.createKeywordTypeNode(131),i);if((e.isExpressionWithTypeArguments(i)||e.isTypeReferenceNode(i))&&e.isJSDocIndexSignature(i))return e.factory.createTypeLiteralNode([e.factory.createIndexSignature(void 0,[e.factory.createParameterDeclaration(void 0,void 0,"x",void 0,e.visitNode(i.typeArguments[0],r))],e.visitNode(i.typeArguments[1],r))]);var u;if(e.isJSDocFunctionType(i))return e.isJSDocConstructSignature(i)?e.factory.createConstructorTypeNode(void 0,e.visitNodes(i.typeParameters,r),e.mapDefined(i.parameters,function(t,n){return t.name&&e.isIdentifier(t.name)&&"new"===t.name.escapedText?void(u=t.type):e.factory.createParameterDeclaration(void 0,_(t),h(t,n),t.questionToken,e.visitNode(t.type,r),void 0)}),e.visitNode(u||i.type,r)||e.factory.createKeywordTypeNode(131)):e.factory.createFunctionTypeNode(e.visitNodes(i.typeParameters,r),e.map(i.parameters,function(t,n){return e.factory.createParameterDeclaration(void 0,_(t),h(t,n),t.questionToken,e.visitNode(t.type,r),void 0)}),e.visitNode(i.type,r)||e.factory.createKeywordTypeNode(131));if(e.isTypeReferenceNode(i)&&e.isInJSDoc(i)&&(!B(i,zp(i))||ku(i)||Pe===xu(i,788968,!0)))return e.setOriginalNode(l(zp(i),n),i);if(e.isLiteralImportTypeNode(i)){var d=mi(i).resolvedSymbol;return!e.isInJSDoc(i)||!d||(i.isTypeOf||788968&d.flags)&&e.length(i.typeArguments)>=wl(Es(d))?e.factory.updateImportTypeNode(i,e.factory.updateLiteralTypeNode(i.argument,function(r,i){if(o){if(n.tracker&&n.tracker.moduleResolverHost){var a=LC(r);if(a){var s={getCanonicalFileName:e.createGetCanonicalFileName(!!t.useCaseSensitiveFileNames),getCurrentDirectory:function(){return n.tracker.moduleResolverHost.getCurrentDirectory()},getCommonSourceDirectory:function(){return n.tracker.moduleResolverHost.getCommonSourceDirectory()}},c=e.getResolvedExternalModuleName(s,a);return e.factory.createStringLiteral(c)}}}else if(n.tracker&&n.tracker.trackExternalModuleSymbolOfImportTypeNode){var l=ca(i,i,void 0);l&&n.tracker.trackExternalModuleSymbolOfImportTypeNode(l)}return i}(i,i.argument.literal)),i.assertions,i.qualifier,e.visitNodes(i.typeArguments,r,e.isTypeNode),i.isTypeOf):e.setOriginalNode(l(zp(i),n),i)}if(e.isEntityName(i)||e.isEntityNameExpression(i)){var p=V(i,n,a),m=p.introducesError,f=p.node;if(s=s||m,f!==i)return f}return c&&e.isTupleTypeNode(i)&&e.getLineAndCharacterOfPosition(c,i.pos).line===e.getLineAndCharacterOfPosition(c,i.end).line&&e.setEmitFlags(i,1),e.visitEachChild(i,r,e.nullTransformationContext);function _(t){return t.dotDotDotToken||(t.type&&e.isJSDocVariadicType(t.type)?e.factory.createToken(25):void 0)}function h(t,n){return t.name&&e.isIdentifier(t.name)&&"this"===t.name.escapedText?"this":_(t)?"args":"arg".concat(n)}});if(!s)return u===r?e.setTextRange(e.factory.cloneNode(r),r):u}}(),se=e.createSymbolTable(),ce=ri(4,"undefined");ce.declarations=[];var le=ri(1536,"globalThis",8);le.exports=se,le.declarations=[],se.set(le.escapedName,le);var ue,de=ri(4,"arguments"),pe=ri(4,"require"),me={getNodeCount:function(){return e.sum(t.getSourceFiles(),"nodeCount")},getIdentifierCount:function(){return e.sum(t.getSourceFiles(),"identifierCount")},getSymbolCount:function(){return e.sum(t.getSourceFiles(),"symbolCount")+E},getTypeCount:function(){return b},getInstantiationCount:function(){return T},getRelationCacheSizes:function(){return{assignable:Fr.size,identity:Br.size,subtype:Rr.size,strictSubtype:Mr.size}},isUndefinedSymbol:function(e){return e===ce},isArgumentsSymbol:function(e){return e===de},isUnknownSymbol:function(e){return e===Pe},getMergedSymbol:xa,getDiagnostics:IT,getGlobalDiagnostics:function(){return PT(),Pr.getGlobalDiagnostics()},getRecursionIdentity:kf,getUnmatchedProperties:J_,getTypeOfSymbolAtLocation:function(t,n){var r=e.getParseTreeNode(n);return r?function(t,n){if(t=t.exportSymbol||t,(79===n.kind||80===n.kind)&&(e.isRightSideOfQualifiedNameOrPropertyAccess(n)&&(n=n.parent),e.isExpressionNode(n)&&(!e.isAssignmentTarget(n)||e.isWriteAccess(n)))){var r=ex(n);if(Na(mi(n).resolvedSymbol)===t)return r}return e.isDeclarationName(n)&&e.isSetAccessor(n.parent)&&rs(n.parent)?os(n.parent.symbol):fs(t)}(t,r):Be},getTypeOfSymbol:ms,getSymbolsOfParameterPropertyDeclaration:function(t,n){var r=e.getParseTreeNode(t,e.isParameter);return void 0===r?e.Debug.fail("Cannot get symbols of a synthetic parameter that cannot be resolved to a parse-tree node."):function(t,n){var r=t.parent,i=t.parent.parent,a=_i(r.locals,n,111551),o=_i(ac(i.symbol),n,111551);return a&&o?[a,o]:e.Debug.fail("There should exist two symbols, one as property declaration and one as parameter declaration")}(r,e.escapeLeadingUnderscores(n))},getDeclaredTypeOfSymbol:Vs,getPropertiesOfType:Kc,getPropertyOfType:function(t,n){return ml(t,e.escapeLeadingUnderscores(n))},getPrivateIdentifierPropertyOfType:function(t,n,r){var i=e.getParseTreeNode(r);if(i){var a=uv(e.escapeLeadingUnderscores(n),i);return a?pv(t,a):void 0}},getTypeOfPropertyOfType:function(t,n){return Co(t,e.escapeLeadingUnderscores(n))},getIndexInfoOfType:function(e,t){return El(e,0===t?Ye:Qe)},getIndexInfosOfType:bl,getIndexInfosOfIndexSymbol:ru,getSignaturesOfType:_l,getIndexTypeOfType:function(e,t){return xl(e,0===t?Ye:Qe)},getIndexType:function(e){return Kd(e)},getBaseTypes:Ns,getBaseTypeOfLiteralType:Yf,getWidenedType:N_,getTypeFromTypeNode:function(t){var n=e.getParseTreeNode(t,e.isTypeNode);return n?zp(n):Be},getParameterType:$b,getParameterIdentifierNameAtPosition:function(e,t){var n;if(320!==(null===(n=e.declaration)||void 0===n?void 0:n.kind)){var r=e.parameters.length-(B(e)?1:0);if(t>",0,Me),Vn=lc(void 0,void 0,void 0,e.emptyArray,Me,void 0,0,0),Kn=lc(void 0,void 0,void 0,e.emptyArray,Be,void 0,0,0),jn=lc(void 0,void 0,void 0,e.emptyArray,Me,void 0,0,0),Hn=lc(void 0,void 0,void 0,e.emptyArray,lt,void 0,0,0),Wn=tu(Qe,Ye,!0),$n=new e.Map,qn={get yieldType(){return e.Debug.fail("Not supported")},get returnType(){return e.Debug.fail("Not supported")},get nextType(){return e.Debug.fail("Not supported")}},zn=SS(Me,Me,Me),Jn=SS(Me,Me,je),Xn=SS(ct,Me,We),Yn={iterableCacheKey:"iterationTypesOfAsyncIterable",iteratorCacheKey:"iterationTypesOfAsyncIterator",iteratorSymbolName:"asyncIterator",getGlobalIteratorType:function(e){return xn||(xn=Bu("AsyncIterator",3,e))||It},getGlobalIterableType:zu,getGlobalIterableIteratorType:function(e){return Sn||(Sn=Bu("AsyncIterableIterator",1,e))||It},getGlobalGeneratorType:function(e){return Tn||(Tn=Bu("AsyncGenerator",3,e))||It},resolveIterationType:kx,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},Qn={iterableCacheKey:"iterationTypesOfIterable",iteratorCacheKey:"iterationTypesOfIterator",iteratorSymbolName:"iterator",getGlobalIteratorType:function(e){return hn||(hn=Bu("Iterator",3,e))||It},getGlobalIterableType:Ju,getGlobalIterableIteratorType:function(e){return gn||(gn=Bu("IterableIterator",1,e))||It},getGlobalGeneratorType:function(e){return yn||(yn=Bu("Generator",3,e))||It},resolveIterationType:function(e,t){return e},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},Zn=new e.Map,er=!1,tr=new e.Map,nr=0,rr=0,ir=0,ar=!1,or=0,sr=Up(""),cr=Vp(0),lr=Kp({negative:!1,base10Value:"0"}),ur=[],dr=[],pr=[],mr=0,fr=10,_r=[],hr=[],gr=[],yr=[],vr=[],br=[],Er=[],xr=[],Sr=[],Tr=[],Cr=[],Dr=[],Lr=[],Ar=[],Nr=[],kr=[],Ir=[],Pr=e.createDiagnosticCollection(),wr=e.createDiagnosticCollection(),Or=Ed(e.arrayFrom(S.keys(),Up)),Rr=new e.Map,Mr=new e.Map,Fr=new e.Map,Gr=new e.Map,Br=new e.Map,Ur=new e.Map,Vr=e.createSymbolTable();Vr.set(ce.escapedName,ce);var Kr=[[".mts",".mjs"],[".ts",".js"],[".cts",".cjs"],[".mjs",".mjs"],[".js",".js"],[".cjs",".cjs"],[".tsx",1===j.jsx?".jsx":".js"],[".jsx",".jsx"],[".json",".json"]];return function(){for(var n=0,r=t.getSourceFiles();n=5||e.some(o.relatedInformation,function(t){return 0===e.compareDiagnostics(t,s)||0===e.compareDiagnostics(t,i)}))return"continue";e.addRelatedInfo(o,e.length(o.relatedInformation)?s:i)},c=0,l=i||e.emptyArray;c1)}function pi(e){if(33554432&e.flags)return e;var t=O(e);return hr[t]||(hr[t]=new I)}function mi(e){var t=w(e);return gr[t]||(gr[t]=new P)}function fi(t){return 308===t.kind&&!e.isExternalOrCommonJsModule(t)}function _i(t,n,r){if(r){var i=xa(t.get(n));if(i){if(e.Debug.assert(!(1&e.getCheckFlags(i)),"Should never get an instantiated symbol here."),i.flags&r)return i;if(2097152&i.flags&&Yi(i)&r)return i}}}function hi(n,r){var i=e.getSourceFileOfNode(n),a=e.getSourceFileOfNode(r),o=e.getEnclosingBlockScopeContainer(n);if(i!==a){if(W&&(i.externalModuleIndicator||a.externalModuleIndicator)||!e.outFile(j)||gh(r)||16777216&n.flags)return!0;if(l(r,n))return!0;var s=t.getSourceFiles();return s.indexOf(i)<=s.indexOf(a)}if(n.pos<=r.pos&&(!e.isPropertyDeclaration(n)||!e.isThisProperty(r.parent)||n.initializer||n.exclamationToken)){if(205===n.kind){var c=e.getAncestor(r,205);return c?e.findAncestor(c,e.isBindingElement)!==e.findAncestor(n,e.isBindingElement)||n.pos=i&&c.pos<=a){var l=e.factory.createPropertyAccessExpression(e.factory.createThis(),t);if(e.setParent(l.expression,l),e.setParent(l,c),l.flowNode=c.returnFlowNode,!ef(Dg(l,n,p_(n))))return!0}}return!1}(a,ms(Sa(n)),e.filter(n.parent.members,e.isClassStaticBlockDeclaration),n.parent.pos,r.pos))return!0}}else if(169!==n.kind||e.isStatic(n)||e.getContainingClass(t)!==e.getContainingClass(n))return!0;return!1})}function u(t,n,r){return!(n.end>t.end)&&void 0===e.findAncestor(n,function(n){if(n===t)return"quit";switch(n.kind){case 216:return!0;case 169:return!r||!(e.isPropertyDeclaration(t)&&n.parent===t.parent||e.isParameterPropertyDeclaration(t,t.parent)&&n.parent===t.parent.parent)||"quit";case 238:switch(n.parent.kind){case 174:case 171:case 175:return!0;default:return!1}default:return!1}})}}function gi(t,n,r){var i=e.getEmitScriptTarget(j),a=n;if(e.isParameter(r)&&a.body&&t.valueDeclaration&&t.valueDeclaration.pos>=a.body.pos&&t.valueDeclaration.end<=a.body.end&&i>=2){var o=mi(a);return void 0===o.declarationRequiresScopeChange&&(o.declarationRequiresScopeChange=e.forEach(a.parameters,function(e){return s(e.name)||!!e.initializer&&s(e.initializer)})||!1),!o.declarationRequiresScopeChange}return!1;function s(t){switch(t.kind){case 216:case 215:case 259:case 173:return!1;case 171:case 174:case 175:case 299:return s(t.name);case 169:return e.hasStaticModifier(t)?i<99||!$:s(t.name);default:return e.isNullishCoalesce(t)||e.isOptionalChain(t)?i<7:e.isBindingElement(t)&&t.dotDotDotToken&&e.isObjectBindingPattern(t.parent)?i<4:!e.isTypeNode(t)&&(e.forEachChild(t,s)||!1)}}}function yi(t){return e.isAssertionExpression(t)&&e.isConstTypeReference(t.type)||e.isJSDocTypeTag(t)&&e.isConstTypeReference(t.typeExpression)}function vi(e,t,n,r,i,a,o,s){return void 0===o&&(o=!1),void 0===s&&(s=!0),bi(e,t,n,r,i,a,o,s,_i)}function bi(t,n,r,i,a,o,s,c,l){var u,d,p,m,f,_,g,y,v,b=t,E=!1,x=t,S=!1;e:for(;t;){if("const"===n&&yi(t))return;if(t.locals&&!fi(t)&&(m=l(t.locals,n,r))){var T=!0;if(e.isFunctionLike(t)&&f&&f!==t.body?(r&m.flags&788968&&323!==f.kind&&(T=!!(262144&m.flags)&&(f===t.type||166===f.kind||343===f.kind||344===f.kind||165===f.kind)),r&m.flags&3&&(gi(m,t,f)?T=!1:1&m.flags&&(T=166===f.kind||f===t.type&&!!e.findAncestor(m.valueDeclaration,e.isParameter)))):191===t.kind&&(T=f===t.trueType),T)break e;m=void 0}switch(E=E||xi(t,f),t.kind){case 308:if(!e.isExternalOrCommonJsModule(t))break;S=!0;case 264:var C=(null===(u=Sa(t))||void 0===u?void 0:u.exports)||V;if(308===t.kind||e.isModuleDeclaration(t)&&16777216&t.flags&&!e.isGlobalScopeAugmentation(t)){if(m=C.get("default")){var D=e.getLocalSymbolForExportDefault(m);if(D&&m.flags&r&&D.escapedName===n)break e;m=void 0}var L=C.get(n);if(L&&2097152===L.flags&&(e.getDeclarationOfKind(L,278)||e.getDeclarationOfKind(L,277)))break}if("default"!==n&&(m=l(C,n,2623475&r))){if(!e.isSourceFile(t)||!t.commonJsModuleIndicator||(null===(d=m.declarations)||void 0===d?void 0:d.some(e.isJSDocTypeAlias)))break e;m=void 0}break;case 263:if(m=l((null===(p=Sa(t))||void 0===p?void 0:p.exports)||V,n,8&r))break e;break;case 169:if(!e.isStatic(t)){var A=Ia(t.parent);A&&A.locals&&l(A.locals,n,111551&r)&&(e.Debug.assertNode(t,e.isPropertyDeclaration),g=t)}break;case 260:case 228:case 261:if(m=l(Sa(t).members||V,n,788968&r)){if(!Ci(m,t)){m=void 0;break}if(f&&e.isStatic(f))return void(i&&Xr(x,e.Diagnostics.Static_members_cannot_reference_class_type_parameters));break e}if(228===t.kind&&32&r){var N=t.name;if(N&&n===N.escapedText){m=t.symbol;break e}}break;case 230:if(f===t.expression&&94===t.parent.token){var k=t.parent.parent;if(e.isClassLike(k)&&(m=l(Sa(k).members,n,788968&r)))return void(i&&Xr(x,e.Diagnostics.Base_class_expressions_cannot_reference_class_type_parameters))}break;case 164:if(v=t.parent.parent,(e.isClassLike(v)||261===v.kind)&&(m=l(Sa(v).members,n,788968&r)))return void(i&&Xr(x,e.Diagnostics.A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type));break;case 216:if(e.getEmitScriptTarget(j)>=2)break;case 171:case 173:case 174:case 175:case 259:if(3&r&&"arguments"===n){m=de;break e}break;case 215:if(3&r&&"arguments"===n){m=de;break e}if(16&r){var I=t.name;if(I&&n===I.escapedText){m=t.symbol;break e}}break;case 167:t.parent&&166===t.parent.kind&&(t=t.parent),t.parent&&(e.isClassElement(t.parent)||260===t.parent.kind)&&(t=t.parent);break;case 348:case 341:case 342:var P=e.getJSDocRoot(t);P&&(t=P.parent);break;case 166:f&&(f===t.initializer||f===t.name&&e.isBindingPattern(f))&&(y||(y=t));break;case 205:f&&(f===t.initializer||f===t.name&&e.isBindingPattern(f))&&e.isParameterDeclaration(t)&&!y&&(y=t);break;case 192:if(262144&r){var w=t.typeParameter.name;if(w&&n===w.escapedText){m=t.typeParameter.symbol;break e}}}Si(t)&&(_=t),f=t,t=e.isJSDocTemplateTag(t)?e.getEffectiveContainerForJSDocTemplateTag(t)||t.parent:(e.isJSDocParameterTag(t)||e.isJSDocReturnTag(t))&&e.getHostSignatureFromJSDoc(t)||t.parent}if(!o||!m||_&&m===_.symbol||(m.isReferenced|=r),!m){if(f&&(e.Debug.assert(308===f.kind),f.commonJsModuleIndicator&&"exports"===n&&r&f.symbol.flags))return f.symbol;s||(m=l(se,n,r))}if(!m&&b&&e.isInJSFile(b)&&b.parent&&e.isRequireCall(b.parent,!1))return pe;function O(){return!(!g||$&&e.getEmitScriptTarget(j)>=9||(Xr(x,x&&g.type&&e.textRangeContainsPositionInclusive(g.type,x.pos)?e.Diagnostics.Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:e.Diagnostics.Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor,e.declarationNameToString(g.name),Ti(a)),0))}if(m){if(!i||!O())return i&&h(function(){if(x&&(2&r||(32&r||384&r)&&!(111551&~r))){var t=Na(m);(2&t.flags||32&t.flags||384&t.flags)&&function(t,n){var r;if(e.Debug.assert(!!(2&t.flags||32&t.flags||384&t.flags)),!(67108881&t.flags&&32&t.flags)){var i=null===(r=t.declarations)||void 0===r?void 0:r.find(function(t){return e.isBlockOrCatchScoped(t)||e.isClassLike(t)||263===t.kind});if(void 0===i)return e.Debug.fail("checkResolvedBlockScopedVariable could not find block-scoped declaration");if(!(16777216&i.flags||hi(i,n))){var a=void 0,o=e.declarationNameToString(e.getNameOfDeclaration(i));2&t.flags?a=Xr(n,e.Diagnostics.Block_scoped_variable_0_used_before_its_declaration,o):32&t.flags?a=Xr(n,e.Diagnostics.Class_0_used_before_its_declaration,o):256&t.flags?a=Xr(n,e.Diagnostics.Enum_0_used_before_its_declaration,o):(e.Debug.assert(!!(128&t.flags)),e.shouldPreserveConstEnums(j)&&(a=Xr(n,e.Diagnostics.Enum_0_used_before_its_declaration,o))),a&&e.addRelatedInfo(a,e.createDiagnosticForNode(i,e.Diagnostics._0_is_declared_here,o))}}}(t,x)}if(m&&S&&!(111551&~r)&&!(8388608&b.flags)){var i=xa(m);e.length(i.declarations)&&e.every(i.declarations,function(t){return e.isNamespaceExportDeclaration(t)||e.isSourceFile(t)&&!!t.symbol.globalExports})&&Qr(!j.allowUmdGlobalAccess,x,e.Diagnostics._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead,e.unescapeLeadingUnderscores(n))}if(m&&y&&!E&&!(111551&~r)){var a=xa(oc(m)),o=e.getRootDeclaration(y);a===Sa(y)?Xr(x,e.Diagnostics.Parameter_0_cannot_reference_itself,e.declarationNameToString(y.name)):a.valueDeclaration&&a.valueDeclaration.pos>y.pos&&o.parent.locals&&l(o.parent.locals,a.escapedName,r)===a&&Xr(x,e.Diagnostics.Parameter_0_cannot_reference_identifier_1_declared_after_it,e.declarationNameToString(y.name),e.declarationNameToString(x))}if(m&&x&&111551&r&&2097152&m.flags&&!(111551&m.flags)&&!e.isValidTypeOnlyAliasUseSite(x)){var s=ea(m,111551);if(s){var c=278===s.kind?e.Diagnostics._0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type:e.Diagnostics._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type,u=e.unescapeLeadingUnderscores(n);Ei(Xr(x,c,u),s,u)}}}),m}else i&&h(function(){if(!x||!(function(t,n,r){if(!e.isIdentifier(t)||t.escapedText!==n||OT(t)||gh(t))return!1;for(var i=e.getThisContainer(t,!1),a=i;a;){if(e.isClassLike(a.parent)){var o=Sa(a.parent);if(!o)break;if(ml(ms(o),n))return Xr(t,e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_static_member_1_0,Ti(r),ro(o)),!0;if(a===i&&!e.isStatic(a)&&ml(Vs(o).thisType,n))return Xr(t,e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0,Ti(r)),!0}a=a.parent}return!1}(x,n,a)||O()||Di(x)||function(t,n,r){var i=1920|(e.isInJSFile(t)?111551:0);if(r===i){var a=Ji(vi(t,n,788968&~i,void 0,void 0,!1)),o=t.parent;if(a){if(e.isQualifiedName(o)){e.Debug.assert(o.left===t,"Should only be resolving left side of qualified name as a namespace");var s=o.right.escapedText;if(ml(Vs(a),s))return Xr(o,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(n),e.unescapeLeadingUnderscores(s)),!0}return Xr(t,e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here,e.unescapeLeadingUnderscores(n)),!0}}return!1}(x,n,r)||function(t,n){return!(!Ai(n)||278!==t.parent.kind)&&(Xr(t,e.Diagnostics.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,n),!0)}(x,n)||function(t,n,r){if(111127&r){if(Ji(vi(t,n,1024,void 0,void 0,!1)))return Xr(t,e.Diagnostics.Cannot_use_namespace_0_as_a_value,e.unescapeLeadingUnderscores(n)),!0}else if(788544&r&&Ji(vi(t,n,1536,void 0,void 0,!1)))return Xr(t,e.Diagnostics.Cannot_use_namespace_0_as_a_type,e.unescapeLeadingUnderscores(n)),!0;return!1}(x,n,r)||function(t,n,r){if(111551&r){if(Ai(n))return function(t){var n=t.parent.parent,r=n.parent;if(n&&r){var i=e.isHeritageClause(n)&&94===n.token,a=e.isInterfaceDeclaration(r);return i&&a}return!1}(t)?Xr(t,e.Diagnostics.An_interface_cannot_extend_a_primitive_type_like_0_an_interface_can_only_extend_named_types_and_classes,e.unescapeLeadingUnderscores(n)):Xr(t,e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,e.unescapeLeadingUnderscores(n)),!0;var i=Ji(vi(t,n,788544,void 0,void 0,!1)),a=i&&Yi(i);if(i&&void 0!==a&&!(111551&a)){var o=e.unescapeLeadingUnderscores(n);return function(e){switch(e){case"Promise":case"Symbol":case"Map":case"WeakMap":case"Set":case"WeakSet":return!0}return!1}(n)?Xr(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,o):function(t,n){var r=e.findAncestor(t.parent,function(t){return!e.isComputedPropertyName(t)&&!e.isPropertySignature(t)&&(e.isTypeLiteralNode(t)||"quit")});if(r&&1===r.members.length){var i=Vs(n);return!!(1048576&i.flags)&&CE(i,384,!0)}return!1}(t,i)?Xr(t,e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0,o,"K"===o?"P":"K"):Xr(t,e.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,o),!0}}return!1}(x,n,r)||function(t,n,r){if(788584&r){var i=Ji(vi(t,n,111127,void 0,void 0,!1));if(i&&!(1920&i.flags))return Xr(t,e.Diagnostics._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0,e.unescapeLeadingUnderscores(n)),!0}return!1}(x,n,r))){var t=void 0,o=void 0;if(a&&(o=function(t){for(var n=Ti(t),r=e.getScriptTargetFeatures(),i=0,a=e.getOwnKeys(r);i=e.ModuleKind.ES2015?"allowSyntheticDefaultImports":"esModuleInterop",p=t.exports.get("export=").valueDeclaration,m=Xr(n.name,e.Diagnostics.Module_0_can_only_be_default_imported_using_the_1_flag,ro(t),d);p&&e.addRelatedInfo(m,e.createDiagnosticForNode(p,e.Diagnostics.This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag,d))}else e.isImportClause(n)?function(t,n){var r,i,a;if(null===(r=t.exports)||void 0===r?void 0:r.has(n.symbol.escapedName))Xr(n.name,e.Diagnostics.Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead,ro(t),ro(n.symbol));else{var o=Xr(n.name,e.Diagnostics.Module_0_has_no_default_export,ro(t)),s=null===(i=t.exports)||void 0===i?void 0:i.get("__export");if(s){var c=null===(a=s.declarations)||void 0===a?void 0:a.find(function(t){var n,r;return!!(e.isExportDeclaration(t)&&t.moduleSpecifier&&(null===(r=null===(n=sa(t,t.moduleSpecifier))||void 0===n?void 0:n.exports)||void 0===r?void 0:r.has("default")))});c&&e.addRelatedInfo(o,e.createDiagnosticForNode(c,e.Diagnostics.export_Asterisk_does_not_re_export_a_default))}}}(t,n):ji(t,t,n,e.isImportOrExportSpecifier(n)&&n.propertyName||n.name);return Qi(n,a,void 0,!1),a}function Vi(t){switch(t.kind){case 270:return t.parent.moduleSpecifier;case 268:return e.isExternalModuleReference(t.moduleReference)?t.moduleReference.expression:void 0;case 271:case 278:return t.parent.parent.moduleSpecifier;case 273:return t.parent.parent.parent.moduleSpecifier;default:return e.Debug.assertNever(t)}}function Ki(t,n,r){var i;void 0===r&&(r=!1);var a=e.getExternalModuleRequireArgument(t)||t.moduleSpecifier,o=sa(t,a),s=!e.isPropertyAccessExpression(n)&&n.propertyName||n.name;if(e.isIdentifier(s)){var c=pa(o,a,!1,"default"===s.escapedText&&!(!j.allowSyntheticDefaultImports&&!e.getESModuleInterop(j)));if(c&&s.escapedText){if(e.isShorthandAmbientModuleSymbol(o))return o;var l=void 0;l=o&&o.exports&&o.exports.get("export=")?ml(ms(c),s.escapedText,!0):function(e,t){if(3&e.flags){var n=e.valueDeclaration.type;if(n)return Ji(ml(zp(n),t))}}(c,s.escapedText),l=Ji(l,r);var u=function(e,t,n,r){if(1536&e.flags){var i=ya(e).get(t.escapedText),a=Ji(i,r);return Qi(n,i,a,!1),a}}(c,s,n,r);if(void 0===u&&"default"===s.escapedText){var d=null===(i=o.declarations)||void 0===i?void 0:i.find(e.isSourceFile);(Gi(a)||Bi(d,o,r,a))&&(u=da(o,r)||Ji(o,r))}var p=u&&l&&u!==l?function(t,n){if(t===Pe&&n===Pe)return Pe;if(790504&t.flags)return t;var r=ri(t.flags|n.flags,t.escapedName);return r.declarations=e.deduplicate(e.concatenate(t.declarations,n.declarations),e.equateValues),r.parent=t.parent||n.parent,t.valueDeclaration&&(r.valueDeclaration=t.valueDeclaration),n.members&&(r.members=new e.Map(n.members)),t.exports&&(r.exports=new e.Map(t.exports)),r}(l,u):u||l;return p||ji(o,c,t,s),p}}}function ji(t,r,i,a){var o,s=ia(t,i),c=e.declarationNameToString(a),l=Dv(a,r);if(void 0!==l){var u=ro(l),d=Xr(a,e.Diagnostics._0_has_no_exported_member_named_1_Did_you_mean_2,s,c,u);l.valueDeclaration&&e.addRelatedInfo(d,e.createDiagnosticForNode(l.valueDeclaration,e.Diagnostics._0_is_declared_here,u))}else(null===(o=t.exports)||void 0===o?void 0:o.has("default"))?Xr(a,e.Diagnostics.Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead,s,c):function(t,r,i,a,o){var s,c,l=null===(c=null===(s=a.valueDeclaration)||void 0===s?void 0:s.locals)||void 0===c?void 0:c.get(r.escapedText),u=a.exports;if(l){var d=null==u?void 0:u.get("export=");if(d)Aa(d,l)?function(t,n,r,i){W>=e.ModuleKind.ES2015?Xr(n,e.getESModuleInterop(j)?e.Diagnostics._0_can_only_be_imported_by_using_a_default_import:e.Diagnostics._0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import,r):e.isInJSFile(t)?Xr(n,e.getESModuleInterop(j)?e.Diagnostics._0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import:e.Diagnostics._0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import,r):Xr(n,e.getESModuleInterop(j)?e.Diagnostics._0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import:e.Diagnostics._0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import,r,r,i)}(t,r,i,o):Xr(r,e.Diagnostics.Module_0_has_no_exported_member_1,o,i);else{var p=u?e.find(Ll(u),function(e){return!!Aa(e,l)}):void 0,m=p?Xr(r,e.Diagnostics.Module_0_declares_1_locally_but_it_is_exported_as_2,o,i,ro(p)):Xr(r,e.Diagnostics.Module_0_declares_1_locally_but_it_is_not_exported,o,i);l.declarations&&e.addRelatedInfo.apply(void 0,n([m],e.map(l.declarations,function(t,n){return e.createDiagnosticForNode(t,0===n?e.Diagnostics._0_is_declared_here:e.Diagnostics.and_here,i)}),!1))}}else Xr(r,e.Diagnostics.Module_0_has_no_exported_member_1,o,i)}(i,a,c,t,s)}function Hi(t){if(e.isVariableDeclaration(t)&&t.initializer&&e.isPropertyAccessExpression(t.initializer))return t.initializer}function Wi(t,n,r){if("default"===e.idText(t.propertyName||t.name)){var i=Vi(t),a=i&&sa(t,i);if(a)return Ui(a,t,!!r)}var o=t.parent.parent.moduleSpecifier?Ki(t.parent.parent,t,r):aa(t.propertyName||t.name,n,!1,r);return Qi(t,void 0,o,!1),o}function $i(t,n){return e.isClassExpression(t)?GE(t).symbol:e.isEntityName(t)||e.isEntityNameExpression(t)?aa(t,901119,!0,n)||(GE(t),mi(t).resolvedSymbol):void 0}function qi(t,n){switch(void 0===n&&(n=!1),t.kind){case 268:case 257:return function(t,n){var r=Hi(t);if(r){var i=e.getLeftmostAccessExpression(r.expression).arguments[0];return e.isIdentifier(r.name)?Ji(ml(Bl(i),r.name.escapedText)):void 0}if(e.isVariableDeclaration(t)||280===t.moduleReference.kind){var a=sa(t,e.getExternalModuleRequireArgument(t)||e.getExternalModuleImportEqualsDeclarationExpression(t)),o=da(a);return Qi(t,a,o,!1),o}var s=ra(t.moduleReference,n);return function(t,n){if(Qi(t,void 0,n,!1)&&!t.isTypeOnly){var r=ea(Sa(t)),i=278===r.kind,a=i?e.Diagnostics.An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type:e.Diagnostics.An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type,o=i?e.Diagnostics._0_was_exported_here:e.Diagnostics._0_was_imported_here,s=e.unescapeLeadingUnderscores(r.name.escapedText);e.addRelatedInfo(Xr(t.moduleReference,a),e.createDiagnosticForNode(r,o,s))}}(t,s),s}(t,n);case 270:return function(e,t){var n=sa(e,e.parent.moduleSpecifier);if(n)return Ui(n,e,t)}(t,n);case 271:return function(e,t){var n=e.parent.parent.moduleSpecifier,r=sa(e,n),i=pa(r,n,t,!1);return Qi(e,r,i,!1),i}(t,n);case 277:return function(e,t){var n=e.parent.moduleSpecifier,r=n&&sa(e,n),i=n&&pa(r,n,t,!1);return Qi(e,r,i,!1),i}(t,n);case 273:case 205:return function(t,n){if(e.isImportSpecifier(t)&&"default"===e.idText(t.propertyName||t.name)){var r=Vi(t),i=r&&sa(t,r);if(i)return Ui(i,t,n)}var a=e.isBindingElement(t)?e.getRootDeclaration(t):t.parent.parent.parent,o=Hi(a),s=Ki(a,o||t,n),c=t.propertyName||t.name;return o&&s&&e.isIdentifier(c)?Ji(ml(ms(s),c.escapedText),n):(Qi(t,void 0,s,!1),s)}(t,n);case 278:return Wi(t,901119,n);case 274:case 223:return function(t,n){var r=$i(e.isExportAssignment(t)?t.expression:t.right,n);return Qi(t,void 0,r,!1),r}(t,n);case 267:return function(e,t){var n=da(e.parent.symbol,t);return Qi(e,void 0,n,!1),n}(t,n);case 300:return aa(t.name,901119,!0,n);case 299:return $i(t.initializer,n);case 209:case 208:return function(t,n){if(e.isBinaryExpression(t.parent)&&t.parent.left===t&&63===t.parent.operatorToken.kind)return $i(t.parent.right,n)}(t,n);default:return e.Debug.fail()}}function zi(e,t){return void 0===t&&(t=901119),!(!e||2097152!=(e.flags&(2097152|t))&&!(2097152&e.flags&&67108864&e.flags))}function Ji(e,t){return!t&&zi(e)?Xi(e):e}function Xi(t){e.Debug.assert(!!(2097152&t.flags),"Should only get Alias here.");var n=pi(t);if(n.aliasTarget)n.aliasTarget===we&&(n.aliasTarget=Pe);else{n.aliasTarget=we;var r=Ii(t);if(!r)return e.Debug.fail();var i=qi(r);n.aliasTarget===we?n.aliasTarget=i||Pe:Xr(r,e.Diagnostics.Circular_definition_of_import_alias_0,ro(t))}return n.aliasTarget}function Yi(t){for(var n,r=t.flags;2097152&t.flags;){var i=Xi(t);if(i===Pe)return 67108863;if(i===t||(null==n?void 0:n.has(i)))break;2097152&i.flags&&(n?n.add(i):n=new e.Set([t,i])),r|=i.flags,t=i}return r}function Qi(t,n,r,i){if(!t||e.isPropertyAccessExpression(t))return!1;var a=Sa(t);if(e.isTypeOnlyImportOrExportDeclaration(t))return pi(a).typeOnlyDeclaration=t,!0;var o=pi(a);return Zi(o,n,i)||Zi(o,r,i)}function Zi(t,n,r){var i,a,o;if(n&&(void 0===t.typeOnlyDeclaration||r&&!1===t.typeOnlyDeclaration)){var s=null!==(a=null===(i=n.exports)||void 0===i?void 0:i.get("export="))&&void 0!==a?a:n,c=s.declarations&&e.find(s.declarations,e.isTypeOnlyImportOrExportDeclaration);t.typeOnlyDeclaration=null!==(o=null!=c?c:pi(s).typeOnlyDeclaration)&&void 0!==o&&o}return!!t.typeOnlyDeclaration}function ea(e,t){if(2097152&e.flags){var n=pi(e);return void 0===t?n.typeOnlyDeclaration||void 0:n.typeOnlyDeclaration&&Yi(Xi(n.typeOnlyDeclaration.symbol))&t?n.typeOnlyDeclaration:void 0}}function ta(e){var t=Sa(e),n=Xi(t);n&&(n===Pe||111551&Yi(n)&&!iC(n)&&!ea(t,111551))&&na(t)}function na(t){var n=pi(t);if(!n.referenced){n.referenced=!0;var r=Ii(t);if(!r)return e.Debug.fail();e.isInternalModuleImportEqualsDeclaration(r)&&111551&Yi(Ji(t))&&GE(r.moduleReference)}}function ra(t,n){return 79===t.kind&&e.isRightSideOfQualifiedNameOrPropertyAccess(t)&&(t=t.parent),79===t.kind||163===t.parent.kind?aa(t,1920,!1,n):(e.Debug.assert(268===t.parent.kind),aa(t,901119,!1,n))}function ia(e,t){return e.parent?ia(e.parent,t)+"."+ro(e):ro(e,t,void 0,36)}function aa(t,n,r,i,a){if(!e.nodeIsMissing(t)){var o,s=1920|(e.isInJSFile(t)?111551&n:0);if(79===t.kind){var c=n===s||e.nodeIsSynthesized(t)?e.Diagnostics.Cannot_find_namespace_0:_h(e.getFirstIdentifier(t)),l=e.isInJSFile(t)&&!e.nodeIsSynthesized(t)?function(t,n){if(Au(t.parent)){var r=function(t){if(!e.findAncestor(t,function(t){return e.isJSDocNode(t)||8388608&t.flags?e.isJSDocTypeAlias(t):"quit"})){var n=e.getJSDocHost(t);if(n&&e.isExpressionStatement(n)&&e.isPrototypePropertyAssignment(n.expression)&&(r=Sa(n.expression.left)))return oa(r);if(n&&e.isFunctionExpression(n)&&e.isPrototypePropertyAssignment(n.parent)&&e.isExpressionStatement(n.parent.parent)&&(r=Sa(n.parent.left)))return oa(r);if(n&&(e.isObjectLiteralMethod(n)||e.isPropertyAssignment(n))&&e.isBinaryExpression(n.parent.parent)&&6===e.getAssignmentDeclarationKind(n.parent.parent)&&(r=Sa(n.parent.parent.left)))return oa(r);var r,i=e.getEffectiveJSDocHost(t);if(i&&e.isFunctionLike(i))return(r=Sa(i))&&r.valueDeclaration}}(t.parent);if(r)return vi(r,t.escapedText,n,void 0,t,!0)}}(t,n):void 0;if(!(o=xa(vi(a||t,t.escapedText,n,r||l?void 0:c,t,!0,!1))))return xa(l)}else{if(163!==t.kind&&208!==t.kind)throw e.Debug.assertNever(t,"Unknown entity name kind.");var u=163===t.kind?t.left:t.expression,d=163===t.kind?t.right:t.name,p=aa(u,s,r,!1,a);if(!p||e.nodeIsMissing(d))return;if(p===Pe)return p;if(p.valueDeclaration&&e.isInJSFile(p.valueDeclaration)&&e.isVariableDeclaration(p.valueDeclaration)&&p.valueDeclaration.initializer&&Ob(p.valueDeclaration.initializer)){var m=p.valueDeclaration.initializer.arguments[0],f=sa(m,m);if(f){var _=da(f);_&&(p=_)}}if(!(o=xa(_i(ya(p),d.escapedText,n)))){if(!r){var h=ia(p),g=e.declarationNameToString(d),y=Dv(d,p);if(y)return void Xr(d,e.Diagnostics._0_has_no_exported_member_named_1_Did_you_mean_2,h,g,ro(y));var v=e.isQualifiedName(t)&&function(t){for(;e.isQualifiedName(t.parent);)t=t.parent;return t}(t),b=Wt&&788968&n&&v&&!e.isTypeOfExpression(v.parent)&&function(t){var n=e.getFirstIdentifier(t),r=vi(n,n.escapedText,111551,void 0,n,!0);if(r){for(;e.isQualifiedName(n.parent);){if(!(r=ml(ms(r),n.parent.right.escapedText)))return;n=n.parent}return r}}(v);if(b)return void Xr(v,e.Diagnostics._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0,e.entityNameToString(v));if(1920&n&&e.isQualifiedName(t.parent)){var E=xa(_i(ya(p),d.escapedText,788968));if(E)return void Xr(t.parent.right,e.Diagnostics.Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1,ro(E),e.unescapeLeadingUnderscores(t.parent.right.escapedText))}Xr(d,e.Diagnostics.Namespace_0_has_no_exported_member_1,h,g)}return}}return e.Debug.assert(!(1&e.getCheckFlags(o)),"Should never get an instantiated symbol here."),!e.nodeIsSynthesized(t)&&e.isEntityName(t)&&(2097152&o.flags||274===t.parent.kind)&&Qi(e.getAliasDeclarationFromName(t),o,void 0,!0),o.flags&n||i?o:Xi(o)}}function oa(t){var n=t.parent.valueDeclaration;if(n)return(e.isAssignmentDeclaration(n)?e.getAssignedExpandoInitializer(n):e.hasOnlyExpressionInitializer(n)?e.getDeclaredExpandoInitializer(n):void 0)||n}function sa(t,n,r){var i=e.getEmitModuleResolutionKind(j)===e.ModuleResolutionKind.Classic?e.Diagnostics.Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_node_or_to_add_aliases_to_the_paths_option:e.Diagnostics.Cannot_find_module_0_or_its_corresponding_type_declarations;return ca(t,n,r?void 0:i)}function ca(t,n,r,i){return void 0===i&&(i=!1),e.isStringLiteralLike(n)?la(t,n.text,r,n,i):void 0}function la(n,r,i,a,o){var s,c,l,u,d,p,m,f;void 0===o&&(o=!1),e.startsWith(r,"@types/")&&Xr(a,M=e.Diagnostics.Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1,e.removePrefix(r,"@types/"),r);var _=Nl(r,!0);if(_)return _;var h=e.getSourceFileOfNode(n),g=e.isStringLiteralLike(n)?n:(null===(s=e.findAncestor(n,e.isImportCall))||void 0===s?void 0:s.arguments[0])||(null===(c=e.findAncestor(n,e.isImportDeclaration))||void 0===c?void 0:c.moduleSpecifier)||(null===(l=e.findAncestor(n,e.isExternalModuleImportEqualsDeclaration))||void 0===l?void 0:l.moduleReference.expression)||(null===(u=e.findAncestor(n,e.isExportDeclaration))||void 0===u?void 0:u.moduleSpecifier)||(null===(d=e.isModuleDeclaration(n)?n:n.parent&&e.isModuleDeclaration(n.parent)&&n.parent.name===n?n.parent:void 0)||void 0===d?void 0:d.name)||(null===(p=e.isLiteralImportTypeNode(n)?n:void 0)||void 0===p?void 0:p.argument.literal),y=g&&e.isStringLiteralLike(g)?e.getModeForUsageLocation(h,g):h.impliedNodeFormat,v=e.getResolvedModule(h,r,y),b=v&&e.getResolutionDiagnostic(j,v),E=v&&(!b||b===e.Diagnostics.Module_0_was_resolved_to_1_but_jsx_is_not_set)&&t.getSourceFile(v.resolvedFileName);if(E){if(b&&Xr(a,b,r,v.resolvedFileName),E.symbol){if(v.isExternalLibraryImport&&!e.resolutionExtensionIsTSOrJson(v.extension)&&ua(!1,a,v,r),e.getEmitModuleResolutionKind(j)===e.ModuleResolutionKind.Node16||e.getEmitModuleResolutionKind(j)===e.ModuleResolutionKind.NodeNext){var x=h.impliedNodeFormat===e.ModuleKind.CommonJS&&!e.findAncestor(n,e.isImportCall)||!!e.findAncestor(n,e.isImportEqualsDeclaration),S=e.findAncestor(n,function(t){return e.isImportTypeNode(t)||e.isExportDeclaration(t)||e.isImportDeclaration(t)}),T=S&&e.isImportTypeNode(S)?null===(m=S.assertions)||void 0===m?void 0:m.assertClause:null==S?void 0:S.assertClause;if(x&&E.impliedNodeFormat===e.ModuleKind.ESNext&&!e.getResolutionModeOverrideForClause(T))if(e.findAncestor(n,e.isImportEqualsDeclaration))Xr(a,e.Diagnostics.Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_cannot_be_imported_with_require_Use_an_ECMAScript_import_instead,r);else{var C=void 0,D=e.tryGetExtensionFromPath(h.fileName);if(".ts"===D||".js"===D||".tsx"===D||".jsx"===D){var L=h.packageJsonScope,A=".ts"===D?".mts":".js"===D?".mjs":void 0;C=L&&!L.contents.packageJsonContent.type?A?e.chainDiagnosticMessages(void 0,e.Diagnostics.To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Colon_module_to_1,A,e.combinePaths(L.packageDirectory,"package.json")):e.chainDiagnosticMessages(void 0,e.Diagnostics.To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0,e.combinePaths(L.packageDirectory,"package.json")):A?e.chainDiagnosticMessages(void 0,e.Diagnostics.To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_package_json_file_with_type_Colon_module,A):e.chainDiagnosticMessages(void 0,e.Diagnostics.To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module)}Pr.add(e.createDiagnosticForNodeFromMessageChain(a,e.chainDiagnosticMessages(C,e.Diagnostics.The_current_file_is_a_CommonJS_module_whose_imports_will_produce_require_calls_however_the_referenced_file_is_an_ECMAScript_module_and_cannot_be_imported_with_require_Consider_writing_a_dynamic_import_0_call_instead,r)))}}return xa(E.symbol)}i&&Xr(a,e.Diagnostics.File_0_is_not_a_module,E.fileName)}else{if(jt){var N=e.findBestPatternMatch(jt,function(e){return e.pattern},r);if(N){var k=Ht&&Ht.get(r);return xa(k||N.symbol)}}if(v&&!e.resolutionExtensionIsTSOrJson(v.extension)&&void 0===b||b===e.Diagnostics.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type)o?Xr(a,M=e.Diagnostics.Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented,r,v.resolvedFileName):ua(Q&&!!i,a,v,r);else if(i){if(v){var I=t.getProjectReferenceRedirect(v.resolvedFileName);if(I)return void Xr(a,e.Diagnostics.Output_file_0_has_not_been_built_from_source_file_1,I,v.resolvedFileName)}if(b)Xr(a,b,r,v.resolvedFileName);else{var P=e.tryExtractTSExtension(r),w=e.pathIsRelative(r)&&!e.hasExtension(r),O=e.getEmitModuleResolutionKind(j),R=O===e.ModuleResolutionKind.Node16||O===e.ModuleResolutionKind.NodeNext;if(P){var M=e.Diagnostics.An_import_path_cannot_end_with_a_0_extension_Consider_importing_1_instead,F=e.removeExtension(r,P);W>=e.ModuleKind.ES2015&&(F+=".mts"===P?".mjs":".cts"===P?".cjs":".js"),Xr(a,M,P,F)}else if(!j.resolveJsonModule&&e.fileExtensionIs(r,".json")&&e.getEmitModuleResolutionKind(j)!==e.ModuleResolutionKind.Classic&&e.hasJsonModuleEmitEnabled(j))Xr(a,e.Diagnostics.Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension,r);else if(y===e.ModuleKind.ESNext&&R&&w){var G=e.getNormalizedAbsolutePath(r,e.getDirectoryPath(h.path)),B=null===(f=Kr.find(function(e){var n=e[0];return e[1],t.fileExists(G+n)}))||void 0===f?void 0:f[1];B?Xr(a,e.Diagnostics.Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_node16_or_nodenext_Did_you_mean_0,r+B):Xr(a,e.Diagnostics.Relative_import_paths_need_explicit_file_extensions_in_EcmaScript_imports_when_moduleResolution_is_node16_or_nodenext_Consider_adding_an_extension_to_the_import_path)}else Xr(a,i,r)}}}}function ua(t,n,r,i){var a,o=r.packageId,s=r.resolvedFileName,c=!e.isExternalModuleNameRelative(i)&&o?(a=o.name,f().has(e.getTypesPackageName(a))?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,o.name,e.mangleScopedPackageName(o.name)):function(e){return!!f().get(e)}(o.name)?e.chainDiagnosticMessages(void 0,e.Diagnostics.If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_declare_module_1,o.name,i):e.chainDiagnosticMessages(void 0,e.Diagnostics.Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0,i,e.mangleScopedPackageName(o.name))):void 0;Qr(t,n,e.chainDiagnosticMessages(c,e.Diagnostics.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type,i,s))}function da(t,n){if(null==t?void 0:t.exports){var r=function(t,n){if(!t||t===Pe||t===n||1===n.exports.size||2097152&t.flags)return t;var r=pi(t);if(r.cjsExportMerged)return r.cjsExportMerged;var i=33554432&t.flags?t:oi(t);return i.flags=512|i.flags,void 0===i.exports&&(i.exports=e.createSymbolTable()),n.exports.forEach(function(e,t){"export="!==t&&i.exports.set(t,i.exports.has(t)?si(i.exports.get(t),e):e)}),pi(i).cjsExportMerged=i,r.cjsExportMerged=i}(xa(Ji(t.exports.get("export="),n)),xa(t));return xa(r)||t}}function pa(t,n,r,i){var a,o=da(t,r);if(!r&&o){if(!(i||1539&o.flags||e.getDeclarationOfKind(o,308))){var s=W>=e.ModuleKind.ES2015?"allowSyntheticDefaultImports":"esModuleInterop";return Xr(n,e.Diagnostics.This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export,s),o}var c=n.parent;if(e.isImportDeclaration(c)&&e.getNamespaceDeclarationNode(c)||e.isImportCall(c)){var l=e.isImportCall(c)?c.arguments[0]:c.moduleSpecifier,u=ms(o),d=Pb(u,o,t,l);if(d)return ma(o,d,c);var p=null===(a=null==t?void 0:t.declarations)||void 0===a?void 0:a.find(e.isSourceFile),m=p&&Fi(Mi(l),p.impliedNodeFormat);if(e.getESModuleInterop(j)||m){var f=fl(u,0);if(f&&f.length||(f=fl(u,1)),f&&f.length||ml(u,"default",!0)||m)return ma(o,wb(u,o,t,l),c)}}}return o}function ma(t,n,r){var i=ri(t.flags,t.escapedName);i.declarations=t.declarations?t.declarations.slice():[],i.parent=t.parent,i.target=t,i.originatingImport=r,t.valueDeclaration&&(i.valueDeclaration=t.valueDeclaration),t.constEnumOnlyModule&&(i.constEnumOnlyModule=!0),t.members&&(i.members=new e.Map(t.members)),t.exports&&(i.exports=new e.Map(t.exports));var a=Gc(n);return i.type=Va(i,a.members,e.emptyArray,e.emptyArray,a.indexInfos),i}function fa(e){return void 0!==e.exports.get("export=")}function _a(e){return Ll(va(e))}function ha(e,t){var n=va(t);if(n)return n.get(e)}function ga(t){return!(131068&t.flags||1&e.getObjectFlags(t)||Mf(t)||n_(t))}function ya(e){return 6256&e.flags?ic(e,"resolvedExports"):1536&e.flags?va(e):e.exports||V}function va(e){var t=pi(e);return t.resolvedExports||(t.resolvedExports=Ea(e))}function ba(t,n,r,i){n&&n.forEach(function(n,a){if("default"!==a){var o=t.get(a);if(o){if(r&&i&&o&&Ji(o)!==Ji(n)){var s=r.get(a);s.exportsWithDuplicate?s.exportsWithDuplicate.push(i):s.exportsWithDuplicate=[i]}}else t.set(a,n),r&&i&&r.set(a,{specifierText:e.getTextOfNode(i.moduleSpecifier)})}})}function Ea(t){var n=[];return function t(r){if(r&&r.exports&&e.pushIfUnique(n,r)){var i=new e.Map(r.exports),a=r.exports.get("__export");if(a){var o=e.createSymbolTable(),s=new e.Map;if(a.declarations)for(var c=0,l=a.declarations;c=d?u.substr(0,d-3)+"...":u}function oo(e,t){var n=co(e.symbol)?ao(e,e.symbol.valueDeclaration):ao(e),r=co(t.symbol)?ao(t,t.symbol.valueDeclaration):ao(t);return n===r&&(n=so(e),r=so(t)),[n,r]}function so(e){return ao(e,void 0,64)}function co(t){return t&&!!t.valueDeclaration&&e.isExpression(t.valueDeclaration)&&!Cm(t.valueDeclaration)}function lo(e){return void 0===e&&(e=0),848330091&e}function uo(t){return!!(t.symbol&&32&t.symbol.flags&&(t===Ps(t.symbol)||524288&t.flags&&16777216&e.getObjectFlags(t)))}function po(t,n,r,i){return void 0===r&&(r=16384),i?a(i).getText():e.usingSingleLineStringWriter(a);function a(i){var a=e.factory.createTypePredicateNode(2===t.kind||3===t.kind?e.factory.createToken(129):void 0,1===t.kind||3===t.kind?e.factory.createIdentifier(t.parameterName):e.factory.createThisTypeNode(),t.type&&oe.typeToTypeNode(t.type,n,70222336|lo(r))),o=e.createPrinter({removeComments:!0}),s=n&&e.getSourceFileOfNode(n);return o.writeNode(4,a,s,i),i}}function mo(e){return 8===e?"private":16===e?"protected":"public"}function fo(t){return t&&t.parent&&265===t.parent.kind&&e.isExternalModuleAugmentation(t.parent.parent)}function _o(t){return 308===t.kind||e.isAmbientModule(t)}function ho(t,n){var r=pi(t).nameType;if(r){if(384&r.flags){var i=""+r.value;return e.isIdentifierText(i,e.getEmitScriptTarget(j))||e.isNumericLiteralName(i)?e.isNumericLiteralName(i)&&e.startsWith(i,"-")?"[".concat(i,"]"):i:'"'.concat(e.escapeString(i,34),'"')}if(8192&r.flags)return"[".concat(go(r.symbol,n),"]")}}function go(t,n){if(n&&"default"===t.escapedName&&!(16384&n.flags)&&(!(16777216&n.flags)||!t.declarations||n.enclosingDeclaration&&e.findAncestor(t.declarations[0],_o)!==e.findAncestor(n.enclosingDeclaration,_o)))return"default";if(t.declarations&&t.declarations.length){var r=e.firstDefined(t.declarations,function(t){return e.getNameOfDeclaration(t)?t:void 0}),i=r&&e.getNameOfDeclaration(r);if(r&&i){if(e.isCallExpression(r)&&e.isBindableObjectDefinePropertyCall(r))return e.symbolName(t);if(e.isComputedPropertyName(i)&&!(4096&e.getCheckFlags(t))){var a=pi(t).nameType;if(a&&384&a.flags){var o=ho(t,n);if(void 0!==o)return o}}return e.declarationNameToString(i)}if(r||(r=t.declarations[0]),r.parent&&257===r.parent.kind)return e.declarationNameToString(r.parent.name);switch(r.kind){case 228:case 215:case 216:return!n||n.encounteredError||131072&n.flags||(n.encounteredError=!0),228===r.kind?"(Anonymous class)":"(Anonymous function)"}}var s=ho(t,n);return void 0!==s?s:e.symbolName(t)}function yo(t){if(t){var n=mi(t);return void 0===n.isVisible&&(n.isVisible=!!function(){switch(t.kind){case 341:case 348:case 342:return!!(t.parent&&t.parent.parent&&t.parent.parent.parent&&e.isSourceFile(t.parent.parent.parent));case 205:return yo(t.parent.parent);case 257:if(e.isBindingPattern(t.name)&&!t.name.elements.length)return!1;case 264:case 260:case 261:case 262:case 259:case 263:case 268:if(e.isExternalModuleAugmentation(t))return!0;var n=To(t);return 1&e.getCombinedModifierFlags(t)||268!==t.kind&&308!==n.kind&&16777216&n.flags?yo(n):fi(n);case 169:case 168:case 174:case 175:case 171:case 170:if(e.hasEffectiveModifier(t,24))return!1;case 173:case 177:case 176:case 178:case 166:case 265:case 181:case 182:case 184:case 180:case 185:case 186:case 189:case 190:case 193:case 199:return yo(t.parent);case 270:case 271:case 273:return!1;case 165:case 308:case 267:return!0;default:return!1}}()),n.isVisible}return!1}function vo(t,n){var r,i,a;return t.parent&&274===t.parent.kind?r=vi(t,t.escapedText,2998271,void 0,t,!1):278===t.parent.kind&&(r=Wi(t.parent,2998271)),r&&((a=new e.Set).add(O(r)),function t(r){e.forEach(r,function(r){var o=ki(r)||r;if(n?mi(r).isVisible=!0:(i=i||[],e.pushIfUnique(i,o)),e.isInternalModuleImportEqualsDeclaration(r)){var s=r.moduleReference,c=vi(r,e.getFirstIdentifier(s).escapedText,901119,void 0,void 0,!1);c&&a&&e.tryAddToSet(a,O(c))&&t(c.declarations)}})}(r.declarations)),i}function bo(e,t){var n=Eo(e,t);if(n>=0){for(var r=ur.length,i=n;i=0;n--){if(xo(ur[n],pr[n]))return-1;if(ur[n]===e&&pr[n]===t)return n}return-1}function xo(t,n){switch(n){case 0:return!!pi(t).type;case 5:return!!mi(t).resolvedEnumType;case 2:return!!pi(t).declaredType;case 1:return!!t.resolvedBaseConstructorType;case 3:return!!t.resolvedReturnType;case 4:return!!t.immediateBaseConstraint;case 6:return!!t.resolvedTypeArguments;case 7:return!!t.baseTypesResolved;case 8:return!!pi(t).writeType}return e.Debug.assertNever(n)}function So(){return ur.pop(),pr.pop(),dr.pop()}function To(t){return e.findAncestor(e.getRootDeclaration(t),function(e){switch(e.kind){case 257:case 258:case 273:case 272:case 271:case 270:return!1;default:return!0}}).parent}function Co(e,t){var n=ml(e,t);return n?ms(n):void 0}function Do(e){return e&&!!(1&e.flags)}function Lo(e){return e===Be||!!(1&e.flags&&e.aliasSymbol)}function Ao(e,t){if(0!==t)return Uo(e,!1,t);var n=Sa(e);return n&&pi(n).type||Uo(e,!1,t)}function No(t,r,i){if(t=ng(t,function(e){return!(98304&e.flags)}),131072&t.flags)return Ct;if(1048576&t.flags)return ag(t,function(e){return No(e,r,i)});for(var a=Ed(e.map(r,Md)),o=[],s=[],c=0,l=Kc(t);c=2?(i=Me,Qu(Ju(!0),[i])):nn;var c=e.map(a,function(t){return e.isOmittedExpression(t)?Me:Yo(t,n,r)}),l=e.findLastIndex(a,function(t){return!(t===s||e.isOmittedExpression(t)||vy(t))},a.length-1)+1,u=e.map(a,function(e,t){return e===s?4:t>=l?2:1}),d=od(c,u);return n&&((d=mu(d)).pattern=t,d.objectFlags|=131072),d}(t,n,r)}function Zo(e,t){return es(Uo(e,!0,0),e,t)}function es(t,n,r){return t?(4096&t.flags&&(i=n.parent,a=Sa(i),(o=cn||(cn=Mu("SymbolConstructor",!1)))&&a&&a===o)&&(t=Hp(n)),r&&w_(n,t),8192&t.flags&&(e.isBindingElement(n)||!n.type)&&t.symbol!==Sa(n)&&(t=ot),N_(t)):(t=e.isParameter(n)&&n.dotDotDotToken?nn:Me,r&&(ts(n)||P_(n,t)),t);var i,a,o}function ts(t){var n=e.getRootDeclaration(t);return vx(166===n.kind?n.parent:n)}function ns(t){var n=e.getEffectiveTypeAnnotationNode(t);if(n)return zp(n)}function rs(t){if(t)switch(t.kind){case 174:return e.getEffectiveReturnTypeNode(t);case 175:return e.getEffectiveSetAccessorTypeAnnotationNode(t);case 169:return e.Debug.assert(e.hasAccessorModifier(t)),e.getEffectiveTypeAnnotationNode(t)}}function is(e){var t=rs(e);return t&&zp(t)}function as(t){var n=pi(t);if(!n.type){if(!bo(t,0))return Be;var r=e.getDeclarationOfKind(t,174),i=e.getDeclarationOfKind(t,175),a=e.tryCast(e.getDeclarationOfKind(t,169),e.isAutoAccessorPropertyDeclaration),o=r&&e.isInJSFile(r)&&Fo(r)||is(r)||is(i)||is(a)||r&&r.body&&sE(r)||a&&a.initializer&&Zo(a,!0);o||(i&&!vx(i)?Qr(Q,i,e.Diagnostics.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation,ro(t)):r&&!vx(r)?Qr(Q,r,e.Diagnostics.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation,ro(t)):a&&!vx(a)&&Qr(Q,a,e.Diagnostics.Member_0_implicitly_has_an_1_type,ro(t),"any"),o=Me),So()||(rs(r)?Xr(r,e.Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,ro(t)):rs(i)||rs(a)?Xr(i,e.Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,ro(t)):r&&Q&&Xr(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,ro(t)),o=Me),n.type=o}return n.type}function os(t){var n,r=pi(t);if(!r.writeType){if(!bo(t,8))return Be;var i=null!==(n=e.getDeclarationOfKind(t,175))&&void 0!==n?n:e.tryCast(e.getDeclarationOfKind(t,169),e.isAutoAccessorPropertyDeclaration),a=is(i);So()||(rs(i)&&Xr(i,e.Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,ro(t)),a=Me),r.writeType=a||as(t)}return r.writeType}function ss(t){var n=Ls(Ps(t));return 8650752&n.flags?n:2097152&n.flags?e.find(n.types,function(e){return!!(8650752&e.flags)}):void 0}function cs(t){var n=pi(t),r=n;if(!n.type){var i=t.valueDeclaration&&Lb(t.valueDeclaration,!1);if(i){var a=Db(t,i);a&&(t=n=a)}r.type=n.type=function(t){var n=t.valueDeclaration;if(1536&t.flags&&e.isShorthandAmbientModuleSymbol(t))return Me;if(n&&(223===n.kind||e.isAccessExpression(n)&&223===n.parent.kind))return $o(t);if(512&t.flags&&n&&e.isSourceFile(n)&&n.commonJsModuleIndicator){var r=da(t);if(r!==t){if(!bo(t,0))return Be;var i=xa(t.exports.get("export=")),a=$o(i,i===r?void 0:r);return So()?a:us(t)}}var o=Ra(16,t);if(32&t.flags){var s=ss(t);return s?Nd([o,s]):o}return z&&16777216&t.flags?p_(o):o}(t)}return n.type}function ls(e){var t=pi(e);return t.type||(t.type=Bs(e))}function us(t){var n=t.valueDeclaration;return e.getEffectiveTypeAnnotationNode(n)?(Xr(t.valueDeclaration,e.Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,ro(t)),Be):(Q&&(166!==n.kind||n.initializer)&&Xr(t.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,ro(t)),Me)}function ds(t){var n=pi(t);return n.type||(e.Debug.assertIsDefined(n.deferralParent),e.Debug.assertIsDefined(n.deferralConstituents),n.type=1048576&n.deferralParent.flags?Ed(n.deferralConstituents):Nd(n.deferralConstituents)),n.type}function ps(t){var n=e.getCheckFlags(t);return 4&t.flags?2&n?65536&n?function(t){var n=pi(t);return!n.writeType&&n.deferralWriteConstituents&&(e.Debug.assertIsDefined(n.deferralParent),e.Debug.assertIsDefined(n.deferralConstituents),n.writeType=1048576&n.deferralParent.flags?Ed(n.deferralWriteConstituents):Nd(n.deferralWriteConstituents)),n.writeType}(t)||ds(t):t.writeType||t.type:ms(t):98304&t.flags?1&n?function(e){var t=pi(e);return t.writeType||(t.writeType=bm(ps(t.target),t.mapper))}(t):os(t):ms(t)}function ms(t){var n=e.getCheckFlags(t);return 65536&n?ds(t):1&n?function(e){var t=pi(e);return t.type||(t.type=bm(ms(t.target),t.mapper))}(t):262144&n?function(t){if(!t.type){var n=t.mappedType;if(!bo(t,0))return n.containsError=!0,Be;var r=bm(kc(n.target||n),lm(n.mapper,Lc(n),t.keyType)),i=z&&16777216&t.flags&&!SE(r,49152)?p_(r,!0):524288&t.checkFlags?b_(r):r;So()||(Xr(u,e.Diagnostics.Type_of_property_0_circularly_references_itself_in_mapped_type_1,ro(t),ao(n)),i=Be),t.type=i}return t.type}(t):8192&n?function(e){var t=pi(e);return t.type||(t.type=z_(e.propertyType,e.mappedType,e.constraintType)),t.type}(t):7&t.flags?function(t){var n=pi(t);if(!n.type){var r=function(t){if(4194304&t.flags)return(n=Vs(Ta(t))).typeParameters?pu(n,e.map(n.typeParameters,function(e){return Me})):n;var n;if(t===pe)return Me;if(134217728&t.flags&&t.valueDeclaration){var r=Sa(e.getSourceFileOfNode(t.valueDeclaration)),i=ri(r.flags,"exports");i.declarations=r.declarations?r.declarations.slice():[],i.parent=t,i.target=r,r.valueDeclaration&&(i.valueDeclaration=r.valueDeclaration),r.members&&(i.members=new e.Map(r.members)),r.exports&&(i.exports=new e.Map(r.exports));var a=e.createSymbolTable();return a.set("exports",i),Va(t,a,e.emptyArray,e.emptyArray,e.emptyArray)}e.Debug.assertIsDefined(t.valueDeclaration);var o,s=t.valueDeclaration;if(e.isCatchClauseVariableDeclarationOrBindingElement(s)){var c=e.getEffectiveTypeAnnotationNode(s);if(void 0===c)return ee?je:Me;var l=VT(c);return Do(l)||l===je?l:Be}if(e.isSourceFile(s)&&e.isJsonSourceFile(s))return s.statements.length?N_(Qf(rx(s.statements[0].expression))):Ct;if(e.isAccessor(s))return as(t);if(!bo(t,0))return 512&t.flags&&!(67108864&t.flags)?cs(t):us(t);if(274===s.kind)o=es(ns(s)||GE(s.expression),s);else if(e.isBinaryExpression(s)||e.isInJSFile(s)&&(e.isCallExpression(s)||(e.isPropertyAccessExpression(s)||e.isBindableStaticElementAccessExpression(s))&&e.isBinaryExpression(s.parent)))o=$o(t);else if(e.isPropertyAccessExpression(s)||e.isElementAccessExpression(s)||e.isIdentifier(s)||e.isStringLiteralLike(s)||e.isNumericLiteral(s)||e.isClassDeclaration(s)||e.isFunctionDeclaration(s)||e.isMethodDeclaration(s)&&!e.isObjectLiteralMethod(s)||e.isMethodSignature(s)||e.isSourceFile(s)){if(9136&t.flags)return cs(t);o=e.isBinaryExpression(s.parent)?$o(t):ns(s)||Me}else if(e.isPropertyAssignment(s))o=ns(s)||WE(s);else if(e.isJsxAttribute(s))o=ns(s)||ky(s);else if(e.isShorthandPropertyAssignment(s))o=ns(s)||HE(s.name,0);else if(e.isObjectLiteralMethod(s))o=ns(s)||$E(s,0);else if(e.isParameter(s)||e.isPropertyDeclaration(s)||e.isPropertySignature(s)||e.isVariableDeclaration(s)||e.isBindingElement(s)||e.isJSDocPropertyLikeTag(s))o=Zo(s,!0);else if(e.isEnumDeclaration(s))o=cs(t);else{if(!e.isEnumMember(s))return e.Debug.fail("Unhandled declaration kind! "+e.Debug.formatSyntaxKind(s.kind)+" for "+e.Debug.formatSymbol(t));o=ls(t)}return So()?o:512&t.flags&&!(67108864&t.flags)?cs(t):us(t)}(t);n.type||(n.type=r)}return n.type}(t):9136&t.flags?cs(t):8&t.flags?ls(t):98304&t.flags?as(t):2097152&t.flags?function(t){var n=pi(t);if(!n.type){var r=Xi(t),i=t.declarations&&qi(Ii(t),!0),a=e.firstDefined(null==i?void 0:i.declarations,function(t){return e.isExportAssignment(t)?ns(t):void 0});n.type=(null==i?void 0:i.declarations)&&ST(i.declarations)&&t.declarations.length?function(t){var n=e.getSourceFileOfNode(t.declarations[0]),r=e.unescapeLeadingUnderscores(t.escapedName),i=t.declarations.every(function(t){return e.isInJSFile(t)&&e.isAccessExpression(t)&&e.isModuleExportsAccessExpression(t.expression)}),a=i?e.factory.createPropertyAccessExpression(e.factory.createPropertyAccessExpression(e.factory.createIdentifier("module"),e.factory.createIdentifier("exports")),r):e.factory.createPropertyAccessExpression(e.factory.createIdentifier("exports"),r);return i&&e.setParent(a.expression.expression,a.expression),e.setParent(a.expression,a),e.setParent(a,n),a.flowNode=n.endFlowNode,Dg(a,Fe,We)}(i):ST(t.declarations)?Fe:a||(111551&Yi(r)?ms(r):Be)}return n.type}(t):Be}function fs(e){return y_(ms(e),!!(16777216&e.flags))}function _s(t,n){return void 0!==t&&void 0!==n&&!!(4&e.getObjectFlags(t))&&t.target===n}function hs(t){return 4&e.getObjectFlags(t)?t.target:t}function gs(t,n){return function t(r){if(7&e.getObjectFlags(r)){var i=hs(r);return i===n||e.some(Ns(i),t)}return!!(2097152&r.flags)&&e.some(r.types,t)}(t)}function ys(t,n){for(var r=0,i=n;r0)return!0;if(8650752&e.flags){var t=Jc(e);return!!t&&xs(t)}return!1}function Ts(t){var n=e.getClassLikeDeclarationOfSymbol(t.symbol);return n&&e.getEffectiveBaseTypeNode(n)}function Cs(t,n,r){var i=e.length(n),a=e.isInJSFile(r);return e.filter(_l(t,1),function(t){return(a||i>=wl(t.typeParameters))&&i<=e.length(t.typeParameters)})}function Ds(t,n,r){var i=Cs(t,n,r),a=e.map(n,zp);return e.sameMap(i,function(t){return e.some(t.typeParameters)?ql(t,a,e.isInJSFile(r)):t})}function Ls(t){if(!t.resolvedBaseConstructorType){var n=e.getClassLikeDeclarationOfSymbol(t.symbol),r=n&&e.getEffectiveBaseTypeNode(n),i=Ts(t);if(!i)return t.resolvedBaseConstructorType=We;if(!bo(t,1))return Be;var a=rx(i.expression);if(r&&i!==r&&(e.Debug.assert(!r.typeArguments),rx(r.expression)),2621440&a.flags&&Gc(a),!So())return Xr(t.symbol.valueDeclaration,e.Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_base_expression,ro(t.symbol)),t.resolvedBaseConstructorType=Be;if(!(1&a.flags||a===Xe||Ss(a))){var o=Xr(i.expression,e.Diagnostics.Type_0_is_not_a_constructor_function_type,ao(a));if(262144&a.flags){var s=su(a),c=je;if(s){var l=_l(s,1);l[0]&&(c=jl(l[0]))}a.symbol.declarations&&e.addRelatedInfo(o,e.createDiagnosticForNode(a.symbol.declarations[0],e.Diagnostics.Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1,ro(a.symbol),ao(c)))}return t.resolvedBaseConstructorType=Be}t.resolvedBaseConstructorType=a}return t.resolvedBaseConstructorType}function As(t,n){Xr(t,e.Diagnostics.Type_0_recursively_references_itself_as_a_base_type,ao(n,void 0,2))}function Ns(t){if(!t.baseTypesResolved){if(bo(t,7)&&(8&t.objectFlags?t.resolvedBaseTypes=[ks(t)]:96&t.symbol.flags?(32&t.symbol.flags&&function(t){t.resolvedBaseTypes=e.resolvingEmptyArray;var n=rl(Ls(t));if(!(2621441&n.flags))return t.resolvedBaseTypes=e.emptyArray;var r,i=Ts(t),a=n.symbol?Vs(n.symbol):void 0;if(n.symbol&&32&n.symbol.flags&&function(e){var t=e.outerTypeParameters;if(t){var n=t.length-1,r=_u(e);return t[n].symbol!==r[n].symbol}return!0}(a))r=gu(i,n.symbol);else if(1&n.flags)r=n;else{var o=Ds(n,i.typeArguments,i);if(!o.length)return Xr(i.expression,e.Diagnostics.No_base_constructor_has_the_specified_number_of_type_arguments),t.resolvedBaseTypes=e.emptyArray;r=jl(o[0])}if(Lo(r))return t.resolvedBaseTypes=e.emptyArray;var s=cl(r);if(!Is(s)){var c=pl(void 0,r),l=e.chainDiagnosticMessages(c,e.Diagnostics.Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_known_members,ao(s));return Pr.add(e.createDiagnosticForNodeFromMessageChain(i.expression,l)),t.resolvedBaseTypes=e.emptyArray}if(t===s||gs(s,t))return Xr(t.symbol.valueDeclaration,e.Diagnostics.Type_0_recursively_references_itself_as_a_base_type,ao(t,void 0,2)),t.resolvedBaseTypes=e.emptyArray;t.resolvedBaseTypes===e.resolvingEmptyArray&&(t.members=void 0),t.resolvedBaseTypes=[s]}(t),64&t.symbol.flags&&function(t){if(t.resolvedBaseTypes=t.resolvedBaseTypes||e.emptyArray,t.symbol.declarations)for(var n=0,r=t.symbol.declarations;n0)return;for(var i=1;i1&&(r=void 0===r?i:-1);for(var a=0,o=t[i];a1){var u=s.thisParameter,d=e.forEach(c,function(e){return e.thisParameter});d&&(u=x_(d,Nd(e.mapDefined(c,function(e){return e.thisParameter&&ms(e.thisParameter)})))),(l=dc(s,c)).thisParameter=u}(n||(n=[])).push(l)}}}}if(!e.length(n)&&-1!==r){for(var p=t[void 0!==r?r:0],m=p.slice(),f=function(t){if(t!==p){var n=t[0];if(e.Debug.assert(!!n,"getUnionSignatures bails early on empty signature lists and should not have empty lists on second pass"),m=n.typeParameters&&e.some(m,function(e){return!!e.typeParameters&&!gc(n.typeParameters,e.typeParameters)})?void 0:e.map(m,function(t){return function(t,n){var r,i=t.typeParameters||n.typeParameters;t.typeParameters&&n.typeParameters&&(r=em(n.typeParameters,t.typeParameters));var a=t.declaration,o=function(e,t,n){for(var r=Jb(e),i=Jb(t),a=r>=i?e:t,o=a===e?t:e,s=a===e?r:i,c=Yb(e)||Yb(t),l=c&&!Yb(a),u=new Array(s+(l?1:0)),d=0;d=Xb(a)&&d>=Xb(o),g=d>=r?void 0:Kb(e,d),y=d>=i?void 0:Kb(t,d),v=ri(1|(h&&!_?16777216:0),(g===y?g:g?y?void 0:g:y)||"arg".concat(d));v.type=_?ed(f):f,u[d]=v}if(l){var b=ri(1,"args");b.type=ed($b(o,s)),o===t&&(b.type=bm(b.type,n)),u[s]=b}return u}(t,n,r),s=function(e,t,n){return e&&t?x_(e,Nd([ms(e),bm(ms(t),n)])):e||t}(t.thisParameter,n.thisParameter,r),c=lc(a,i,s,o,void 0,void 0,Math.max(t.minArgumentCount,n.minArgumentCount),39&(t.flags|n.flags));return c.compositeKind=1048576,c.compositeSignatures=e.concatenate(2097152!==t.compositeKind&&t.compositeSignatures||[t],[n]),r&&(c.mapper=2097152!==t.compositeKind&&t.mapper&&t.compositeSignatures?sm(t.mapper,r):r),c}(t,n)}),!m)return"break"}},_=0,h=t;_0}),r=e.map(t,xs);if(n>0&&n===e.countWhere(r,function(e){return e})){var i=r.indexOf(!0);r[i]=!1}return r}function Ec(t,n){for(var r=function(n){t&&!e.every(t,function(e){return!wf(e,n,!1,!1,!1,km)})||(t=e.append(t,n))},i=0,a=n;i=m&&c<=f){var _=f?Jl(p,Ol(s,p.typeParameters,m,o)):uc(p);_.typeParameters=t.localTypeParameters,_.resolvedReturnType=t,_.flags=i?4|_.flags:-5&_.flags,l.push(_)}}return l}(p)),t.constructSignatures=a}}}(t):32&t.objectFlags?function(t){var n,r=e.createSymbolTable();Ua(t,V,e.emptyArray,e.emptyArray,e.emptyArray);var i=Lc(t),a=Ac(t),o=Nc(t.target||t),s=kc(t.target||t),c=rl(wc(t)),l=Oc(t),u=te?128:8576;function d(e){Zh(o?bm(o,lm(t.mapper,i,e)):e,function(a){return function(e,a){if(Ys(a)){var u=nc(a),d=r.get(u);if(d)d.nameType=Ed([d.nameType,a]),d.keyType=Ed([d.keyType,e]);else{var p=Ys(e)?ml(c,nc(e)):void 0,m=!!(4&l||!(8&l)&&p&&16777216&p.flags),f=!!(1&l||!(2&l)&&p&&yE(p)),_=z&&!m&&p&&16777216&p.flags,h=ri(4|(m?16777216:0),u,262144|(p?Cc(p):0)|(f?8:0)|(_?524288:0));h.mappedType=t,h.nameType=a,h.keyType=e,p&&(h.syntheticOrigin=p,h.declarations=o?void 0:p.declarations),r.set(u,h)}}else if(iu(a)||33&a.flags){var g=tu(5&a.flags?Ye:40&a.flags?Qe:a,bm(s,lm(t.mapper,i,e)),!!(1&l));n=xc(n,g,!0)}}(e,a)})}Pc(t)?Dc(c,u,te,d):Zh(Tc(a),d),Ua(t,r,e.emptyArray,e.emptyArray,n||e.emptyArray)}(t):e.Debug.fail("Unhandled object type "+e.Debug.formatObjectFlags(t.objectFlags)):1048576&t.flags?function(t){var n=hc(e.map(t.types,function(e){return e===$t?[Kn]:_l(e,0)})),r=hc(e.map(t.types,function(e){return _l(e,1)})),i=yc(t.types);Ua(t,V,n,r,i)}(t):2097152&t.flags?function(t){for(var n,r,i,a=t.types,o=bc(a),s=e.countWhere(o,function(e){return e}),c=function(c){var l=t.types[c];if(!o[c]){var u=_l(l,1);u.length&&s>0&&(u=e.map(u,function(e){var t=uc(e);return t.resolvedReturnType=function(e,t,n,r){for(var i=[],a=0;a2?(P.checkFlags|=65536,P.deferralParent=t,P.deferralConstituents=C,P.deferralWriteConstituents=S):(P.type=u?Ed(C):Nd(C),S&&(P.writeType=u?Ed(S):Nd(S))),P}}function ol(t,n,r){var i,a,o=(null===(i=t.propertyCacheWithoutObjectFunctionPropertyAugment)||void 0===i?void 0:i.get(n))||!r?null===(a=t.propertyCache)||void 0===a?void 0:a.get(n):void 0;return o||(o=al(t,n,r))&&(r?t.propertyCacheWithoutObjectFunctionPropertyAugment||(t.propertyCacheWithoutObjectFunctionPropertyAugment=e.createSymbolTable()):t.propertyCache||(t.propertyCache=e.createSymbolTable())).set(n,o),o}function sl(t,n,r){var i=ol(t,n,r);return!i||16&e.getCheckFlags(i)?void 0:i}function cl(t){return 1048576&t.flags&&16777216&t.objectFlags?t.resolvedReducedType||(t.resolvedReducedType=function(t){var n=e.sameMap(t.types,cl);if(n===t.types)return t;var r=Ed(n);return 1048576&r.flags&&(r.resolvedReducedType=r),r}(t)):2097152&t.flags?(16777216&t.objectFlags||(t.objectFlags|=16777216|(e.some(Vc(t),ll)?33554432:0)),33554432&t.objectFlags?ct:t):t}function ll(e){return ul(e)||dl(e)}function ul(t){return!(16777216&t.flags||192!=(131264&e.getCheckFlags(t))||!(131072&ms(t).flags))}function dl(t){return!t.valueDeclaration&&!!(1024&e.getCheckFlags(t))}function pl(t,n){if(2097152&n.flags&&33554432&e.getObjectFlags(n)){var r=e.find(Vc(n),ul);if(r)return e.chainDiagnosticMessages(t,e.Diagnostics.The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituents,ao(n,void 0,536870912),ro(r));var i=e.find(Vc(n),dl);if(i)return e.chainDiagnosticMessages(t,e.Diagnostics.The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_private_in_some,ao(n,void 0,536870912),ro(i))}return t}function ml(e,t,n,r){if(524288&(e=il(e)).flags){var i=Gc(e),a=i.members.get(t);if(a&&ka(a,r))return a;if(n)return;var o=i===Pt?$t:i.callSignatures.length?qt:i.constructSignatures.length?zt:void 0;if(o){var s=Uc(o,t);if(s)return s}return Uc(Wt,t)}if(3145728&e.flags)return sl(e,t,n)}function fl(t,n){if(3670016&t.flags){var r=Gc(t);return 0===n?r.callSignatures:r.constructSignatures}return e.emptyArray}function _l(e,t){return fl(il(e),t)}function hl(t,n){return e.find(t,function(e){return e.keyType===n})}function gl(t,n){for(var r,i,a,o=0,s=t;o=0),r>=Xb(n,3)}var i=e.getImmediatelyInvokedFunctionExpression(t.parent);return!!i&&!t.type&&!t.dotDotDotToken&&t.parent.parameters.indexOf(t)>=i.arguments.length}function Il(t){if(!e.isJSDocPropertyLikeTag(t))return!1;var n=t.isBracketed,r=t.typeExpression;return n||!!r&&319===r.type.kind}function Pl(e,t,n,r){return{kind:e,parameterName:t,parameterIndex:n,type:r}}function wl(e){var t=0;if(e)for(var n=0;n=r&&o<=a){for(var s=t?t.slice():[],c=o;cl.arguments.length&&!f||Al(p)||(o=i.length)}if((174===t.kind||175===t.kind)&&tc(t)&&(!c||!s)){var _=174===t.kind?175:174,h=e.getDeclarationOfKind(Sa(t),_);h&&(s=(n=HC(h))&&n.symbol)}var g=173===t.kind?Ps(xa(t.parent.symbol)):void 0,y=g?g.localTypeParameters:Dl(t);(e.hasRestParameter(t)||e.isInJSFile(t)&&function(t,n){if(e.isJSDocSignature(t)||!Fl(t))return!1;var r=e.lastOrUndefined(t.parameters),i=r?e.getJSDocParameterTags(r):e.getJSDocTags(t).filter(e.isJSDocParameterTag),a=e.firstDefined(i,function(t){return t.typeExpression&&e.isJSDocVariadicType(t.typeExpression.type)?t.typeExpression.type:void 0}),o=ri(3,"args",32768);return a?o.type=ed(zp(a.type)):(o.checkFlags|=65536,o.deferralParent=ct,o.deferralConstituents=[nn],o.deferralWriteConstituents=[nn]),a&&n.pop(),n.push(o),!0}(t,i))&&(a|=1),(e.isConstructorTypeNode(t)&&e.hasSyntacticModifier(t,256)||e.isConstructorDeclaration(t)&&e.hasSyntacticModifier(t.parent,256))&&(a|=4),r.resolvedSignature=lc(t,y,s,i,void 0,void 0,o,a)}return r.resolvedSignature}function Ml(t){if(e.isInJSFile(t)&&e.isFunctionLikeDeclaration(t)){var n=e.getJSDocTypeTag(t);return(null==n?void 0:n.typeExpression)&&Wv(zp(n.typeExpression))}}function Fl(t){var n=mi(t);return void 0===n.containsArgumentsReference&&(8192&n.flags?n.containsArgumentsReference=!0:n.containsArgumentsReference=function t(n){if(!n)return!1;switch(n.kind){case 79:return n.escapedText===de.escapedName&&EC(n)===de;case 169:case 171:case 174:case 175:return 164===n.name.kind&&t(n.name);case 208:case 209:return t(n.expression);case 299:return t(n.initializer);default:return!e.nodeStartsNewLexicalEnvironment(n)&&!e.isPartOfTypeNode(n)&&!!e.forEachChild(n,t)}}(t.body)),n.containsArgumentsReference}function Gl(t){if(!t||!t.declarations)return e.emptyArray;for(var n=[],r=0;r0&&i.body){var a=t.declarations[r-1];if(i.parent===a.parent&&i.kind===a.kind&&i.pos===a.end)continue}n.push(!e.isFunctionExpressionOrArrowFunction(i)&&!e.isObjectLiteralMethod(i)&&Ml(i)||Rl(i))}}return n}function Bl(e){var t=sa(e,e);if(t){var n=da(t);if(n)return ms(n)}return Me}function Ul(e){if(e.thisParameter)return ms(e.thisParameter)}function Vl(t){if(!t.resolvedTypePredicate){if(t.target){var n=Vl(t.target);t.resolvedTypePredicate=n?(o=n,s=t.mapper,Pl(o.kind,o.parameterName,o.parameterIndex,bm(o.type,s))):Un}else if(t.compositeSignatures)t.resolvedTypePredicate=function(e,t){for(var n,r=[],i=0,a=e;i=0}function $l(e){if(B(e)){var t=ms(e.parameters[e.parameters.length-1]),n=n_(t)?a_(t):t;return n&&xl(n,Qe)}}function ql(e,t,n,r){var i=zl(e,Ol(t,e.typeParameters,wl(e.typeParameters),n));if(r){var a=$v(jl(i));if(a){var o=uc(a);o.typeParameters=r;var s=uc(i);return s.resolvedReturnType=Ql(o),s}}return i}function zl(t,n){var r=t.instantiations||(t.instantiations=new e.Map),i=lu(n),a=r.get(i);return a||r.set(i,a=Jl(t,n)),a}function Jl(e,t){return dm(e,function(e,t){return em(e.typeParameters,t)}(e,t),!0)}function Xl(e){return e.typeParameters?e.erasedSignatureCache||(e.erasedSignatureCache=function(e){return dm(e,om(e.typeParameters),!0)}(e)):e}function Yl(t){var n=t.typeParameters;if(n){if(t.baseSignatureCache)return t.baseSignatureCache;for(var r=om(n),i=em(n,e.map(n,function(e){return Hc(e)||je})),a=e.map(n,function(e){return bm(e,i)||je}),o=0;o1&&(t+=":"+a),r+=a}return t}function uu(e,t){return e?"@".concat(O(e))+(t?":".concat(lu(t)):""):""}function du(t,n){for(var r=0,i=0,a=t;ii.length)){var c=s&&e.isExpressionWithTypeArguments(t)&&!e.isJSDocAugmentsTag(t.parent);if(Xr(t,o===i.length?c?e.Diagnostics.Expected_0_type_arguments_provide_these_with_an_extends_tag:e.Diagnostics.Generic_type_0_requires_1_type_argument_s:c?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,ao(r,void 0,2),o,i.length),!s)return Be}return 180===t.kind&&rd(t,e.length(t.typeArguments)!==i.length)?fu(r,t,void 0):pu(r,e.concatenate(r.outerTypeParameters,Ol(Pu(t),i,o,s)))}return Nu(t,n)?r:Be}function yu(t,n,r,i){var a=Vs(t);if(a===Ke&&k.has(t.escapedName)&&n&&1===n.length)return $d(t,n[0]);var o=pi(t),s=o.typeParameters,c=lu(n)+uu(r,i),l=o.instantiations.get(c);return l||o.instantiations.set(c,l=Em(a,em(s,Ol(n,s,wl(s),e.isInJSFile(t.valueDeclaration))),r,i)),l}function vu(t){var n,r=null===(n=t.declarations)||void 0===n?void 0:n.find(e.isTypeAlias);return!(!r||!e.getContainingFunction(r))}function bu(e){return e.parent?"".concat(bu(e.parent),".").concat(e.escapedName):e.escapedName}function Eu(e){var t=(163===e.kind?e.right:208===e.kind?e.name:e).escapedText;if(t){var n=163===e.kind?Eu(e.left):208===e.kind?Eu(e.expression):void 0,r=n?"".concat(bu(n),".").concat(t):t,i=Oe.get(r);return i||(Oe.set(r,i=ri(524288,t,1048576)),i.parent=n,i.declaredType=Ue),i}return Pe}function xu(t,n,r){var i=function(t){switch(t.kind){case 180:return t.typeName;case 230:var n=t.expression;if(e.isEntityNameExpression(n))return n}}(t);if(!i)return Pe;var a=aa(i,n,r);return a&&a!==Pe?a:r?Pe:Eu(i)}function Su(t,n){if(n===Pe)return Be;if(96&(n=function(t){var n=t.valueDeclaration;if(n&&e.isInJSFile(n)&&!(524288&t.flags)&&!e.getExpandoInitializer(n,!1)){var r=e.isVariableDeclaration(n)?e.getDeclaredExpandoInitializer(n):e.getAssignedExpandoInitializer(n);if(r){var i=Sa(r);if(i)return Db(i,t)}}}(n)||n).flags)return gu(t,n);if(524288&n.flags)return function(t,n){if(1048576&e.getCheckFlags(n)){var r=Pu(t),i=uu(n,r),a=Re.get(i);return a||((a=Oa(1,"error")).aliasSymbol=n,a.aliasTypeArguments=r,Re.set(i,a)),a}var o=Vs(n),s=pi(n).typeParameters;if(s){var c=e.length(t.typeArguments),l=wl(s);if(cs.length)return Xr(t,l===s.length?e.Diagnostics.Generic_type_0_requires_1_type_argument_s:e.Diagnostics.Generic_type_0_requires_between_1_and_2_type_arguments,ro(n),l,s.length),Be;var u=Ap(t),d=!u||!vu(n)&&vu(u)?void 0:u;return yu(n,Pu(t),d,Np(d))}return Nu(t,n)?o:Be}(t,n);var r=Ks(n);if(r)return Nu(t,n)?Gp(r):Be;if(111551&n.flags&&Au(t)){var i=function(e,t){var n=mi(e);if(!n.resolvedJSDocType){var r=ms(t),i=r;if(t.valueDeclaration){var a=202===e.kind&&e.qualifier;r.symbol&&r.symbol!==t&&a&&(i=Su(e,r.symbol))}n.resolvedJSDocType=i}return n.resolvedJSDocType}(t,n);return i||(xu(t,788968),ms(n))}return Be}function Tu(e,t){if(3&t.flags||t===e||!np(e)&&!np(t))return e;var n="".concat(fd(e),">").concat(fd(t)),r=De.get(n);if(r)return r;var i=Pa(33554432);return i.baseType=e,i.constraint=t,De.set(n,i),i}function Cu(e){return Nd([e.constraint,e.baseType])}function Du(e){return 186===e.kind&&1===e.elements.length}function Lu(e,t,n){return Du(t)&&Du(n)?Lu(e,t.elements[0],n.elements[0]):_p(zp(t))===_p(e)?zp(n):void 0}function Au(e){return!!(8388608&e.flags)&&(180===e.kind||202===e.kind)}function Nu(t,n){return!t.typeArguments||(Xr(t,e.Diagnostics.Type_0_is_not_generic,n?ro(n):t.typeName?e.declarationNameToString(t.typeName):l),!1)}function ku(t){if(e.isIdentifier(t.typeName)){var n=t.typeArguments;switch(t.typeName.escapedText){case"String":return Nu(t),Ye;case"Number":return Nu(t),Qe;case"Boolean":return Nu(t),at;case"Void":return Nu(t),st;case"Undefined":return Nu(t),We;case"Null":return Nu(t),Je;case"Function":case"function":return Nu(t),$t;case"array":return n&&n.length||Q?void 0:nn;case"promise":return n&&n.length||Q?void 0:iE(Me);case"Object":if(n&&2===n.length){if(e.isJSDocIndexSignature(t)){var r=zp(n[0]),i=zp(n[1]),a=r===Ye||r===Qe?[tu(r,i,!1)]:e.emptyArray;return Va(void 0,V,e.emptyArray,e.emptyArray,a)}return Me}return Nu(t),Q?void 0:Me}}}function Iu(t){var n=mi(t);if(!n.resolvedType){if(e.isConstTypeReference(t)&&e.isAssertionExpression(t.parent))return n.resolvedSymbol=Pe,n.resolvedType=GE(t.parent.expression);var r=void 0,i=void 0,a=788968;Au(t)&&((i=ku(t))||((r=xu(t,a,!0))===Pe?r=xu(t,900095):xu(t,a),i=Su(t,r))),i||(i=Su(t,r=xu(t,a))),n.resolvedSymbol=r,n.resolvedType=i}return n.resolvedType}function Pu(t){return e.map(t.typeArguments,zp)}function wu(e){var t=mi(e);if(!t.resolvedType){var n=Fb(e);t.resolvedType=Gp(N_(n))}return t.resolvedType}function Ou(t,n){function r(e){var t=e.declarations;if(t)for(var n=0,r=t;n=0)return Id(e.map(n,function(e,n){return 8&t.elementFlags[n]?e:je}))?ag(n[o],function(r){return ld(t,e.replaceElement(n,o,r))}):Be}for(var s=[],c=[],l=[],d=-1,p=-1,m=-1,f=function(o){var c=n[o],l=t.elementFlags[o];if(8&l)if(58982400&c.flags||Fc(c))y(c,8,null===(r=t.labeledElementDeclarations)||void 0===r?void 0:r[o]);else if(n_(c)){var d=_u(c);if(d.length+s.length>=1e4)return Xr(u,e.isPartOfTypeNode(u)?e.Diagnostics.Type_produces_a_tuple_type_that_is_too_large_to_represent:e.Diagnostics.Expression_produces_a_tuple_type_that_is_too_large_to_represent),{value:Be};e.forEach(d,function(e,t){var n;return y(e,c.target.elementFlags[t],null===(n=c.target.labeledElementDeclarations)||void 0===n?void 0:n[t])})}else y(Vf(c)&&xl(c,Qe)||Be,4,null===(i=t.labeledElementDeclarations)||void 0===i?void 0:i[o]);else y(c,l,null===(a=t.labeledElementDeclarations)||void 0===a?void 0:a[o])},_=0;_=0&&pi.fixedLength?function(e){var t=a_(e);return t&&ed(t)}(t)||od(e.emptyArray):od(_u(t).slice(n,a),i.elementFlags.slice(n,a),!1,i.labeledElementDeclarations&&i.labeledElementDeclarations.slice(n,a))}function dd(t){return Ed(e.append(e.arrayOf(t.target.fixedLength,function(e){return Up(""+e)}),Kd(t.target.readonly?Xt:Jt)))}function pd(t,n){var r=e.findIndex(t.elementFlags,function(e){return!(e&n)});return r>=0?r:t.elementFlags.length}function md(t,n){return t.elementFlags.length-e.findLastIndex(t.elementFlags,function(e){return!(e&n)})-1}function fd(e){return e.id}function _d(t,n){return e.binarySearch(t,n,fd,e.compareValues)>=0}function hd(t,n){var r=e.binarySearch(t,n,fd,e.compareValues);return r<0&&(t.splice(~r,0,n),!0)}function gd(t,n,r){var i=r.flags;if(1048576&i)return yd(t,n|(function(e){return!!(1048576&e.flags&&(e.aliasSymbol||e.origin))}(r)?1048576:0),r.types);if(!(131072&i))if(n|=205258751&i,465829888&i&&(n|=33554432),r===Ge&&(n|=8388608),!z&&98304&i)65536&e.getObjectFlags(r)||(n|=4194304);else{var a=t.length,o=a&&r.id>t[a-1].id?~a:e.binarySearch(t,r,fd,e.compareValues);o<0&&t.splice(~o,0,r)}return n}function yd(e,t,n){for(var r=0,i=n;r=0&&_d(o,We)&&e.orderedRemoveItemAt(o,c)}if((402664320&s||16384&s&&32768&s)&&function(t,n,r){for(var i=t.length;i>0;){var a=t[--i],o=a.flags;(402653312&o&&4&n||256&o&&8&n||2048&o&&64&n||8192&o&&4096&n||r&&32768&o&&16384&n||Bp(a)&&_d(t,a.regularType))&&e.orderedRemoveItemAt(t,i)}}(o,s,!!(2&n)),128&s&&134217728&s&&function(t){var n=e.filter(t,tp);if(n.length)for(var r=t.length,i=function(){r--;var i=t[r];128&i.flags&&e.some(n,function(e){return ih(i,e)})&&e.orderedRemoveItemAt(t,r)};r>0;)i()}(o),2===n&&(o=function(t,n){if(t.length<2)return t;var r=lu(t),i=Le.get(r);if(i)return i;for(var a=n&&e.some(t,function(e){return!!(524288&e.flags)&&!Fc(e)&&Ym(Gc(e))}),o=t.length,s=o,c=0;s>0;){var l=t[--s];if(a||469499904&l.flags)for(var d=61603840&l.flags?e.find(Kc(l),function(e){return zf(ms(e))}):void 0,p=d&&Gp(ms(d)),m=0,f=t;m1e6)return null===e.tracing||void 0===e.tracing||e.tracing.instant("checkTypes","removeSubtypes_DepthLimit",{typeIds:t.map(function(e){return e.id})}),void Xr(u,e.Diagnostics.Expression_produces_a_union_type_that_is_too_complex_to_represent);if(c++,d&&61603840&_.flags){var h=Co(_,d.escapedName);if(h&&zf(h)&&Gp(h)!==p)continue}if(af(l,_,Mr)&&(!(1&e.getObjectFlags(hs(l)))||!(1&e.getObjectFlags(hs(_)))||Rm(l,_))){e.orderedRemoveItemAt(t,s);break}}}}return Le.set(r,t),t}(o,!!(524288&s)),!o))return Be;if(0===o.length)return 65536&s?4194304&s?Je:Xe:32768&s?4194304&s?We:$e:ct}if(!a&&1048576&s){var l=[];vd(l,t);for(var d=[],p=function(t){e.some(l,function(e){return _d(e.types,t)})||d.push(t)},m=0,f=o;m0;){var i=t[--n];if(134217728&i.flags)for(var a=0,o=r;a0;){var i=t[--r];(4&i.flags&&402653312&n||8&i.flags&&256&n||64&i.flags&&2048&n||4096&i.flags&&8192&n||16384&i.flags&&32768&n||Zm(i)&&470302716&n)&&e.orderedRemoveItemAt(t,r)}}(s,o)),262144&o&&(s[s.indexOf(We)]=ze),0===s.length)return je;if(1===s.length)return s[0];var c=lu(s)+uu(n,r),l=ye.get(c);if(!l){if(1048576&o)if(function(t){var n,r=e.findIndex(t,function(t){return!!(32768&e.getObjectFlags(t))});if(r<0)return!1;for(var i=r+1;i=0;o--)if(1048576&e[o].flags){var s=e[o].types,c=s.length;i[o]=s[a%c],a=Math.floor(a/c)}var l=Nd(i);131072&l.flags||n.push(l)}return n}(s),p=e.some(d,function(e){return!!(2097152&e.flags)})&&wd(d)>wd(s)?bd(2097152,s):void 0;l=Ed(d,1,n,r,p)}else l=function(e,t,n){var r=Pa(2097152);return r.objectFlags=du(e,98304),r.types=e,r.aliasSymbol=t,r.aliasTypeArguments=n,r}(s,n,r);ye.set(c,l)}return l}function kd(t){return e.reduceLeft(t,function(e,t){return 1048576&t.flags?e*t.types.length:131072&t.flags?0:e},1)}function Id(t){var n=kd(t);return!(n>=1e5&&(null===e.tracing||void 0===e.tracing||e.tracing.instant("checkTypes","checkCrossProductUnion_DepthLimit",{typeIds:t.map(function(e){return e.id}),size:n}),Xr(u,e.Diagnostics.Expression_produces_a_union_type_that_is_too_complex_to_represent),1))}function Pd(e){return 3145728&e.flags&&!e.aliasSymbol?1048576&e.flags&&e.origin?Pd(e.origin):wd(e.types):1}function wd(t){return e.reduceLeft(t,function(e,t){return e+Pd(t)},0)}function Od(e,t){var n=Pa(4194304);return n.type=e,n.stringsOnly=t,n}function Rd(e,t){return t?e.resolvedStringIndexType||(e.resolvedStringIndexType=Od(e,!0)):e.resolvedIndexType||(e.resolvedIndexType=Od(e,!1))}function Md(t){return e.isPrivateIdentifier(t)?ct:e.isIdentifier(t)?Up(e.unescapeLeadingUnderscores(t.escapedText)):Gp(e.isComputedPropertyName(t)?xy(t):rx(t))}function Fd(t,n,r){if(r||!(24&e.getDeclarationModifierFlagsFromSymbol(t))){var i=pi(oc(t)).nameType;if(!i){var a=e.getNameOfDeclaration(t.valueDeclaration);i="default"===t.escapedName?Up("default"):a&&Md(a)||(e.isKnownSymbol(t)?void 0:Up(e.symbolName(t)))}if(i&&i.flags&n)return i}return ct}function Gd(t,n){return!!(t.flags&n||2097152&t.flags&&e.some(t.types,function(e){return Gd(e,n)}))}function Bd(t,n,r){var i=r&&(7&e.getObjectFlags(t)||t.aliasSymbol)?function(e){var t=wa(4194304);return t.type=e,t}(t):void 0,a=e.map(Kc(t),function(e){return Fd(e,n)}),o=e.map(bl(t),function(e){return e!==Wn&&Gd(e.keyType,n)?e.keyType===Ye&&8&n?mt:e.keyType:ct});return Ed(e.concatenate(a,o),1,void 0,void 0,i)}function Ud(e){var t=function(e){return 262143&e.flags?e:e.uniqueLiteralFilledInstantiation||(e.uniqueLiteralFilledInstantiation=bm(e,xt))}(e);return cl(t)!==t}function Vd(t){return!!(58982400&t.flags||r_(t)||Fc(t)&&(n=t,r=Lc(n),!function t(n){return!!(68157439&n.flags)||(16777216&n.flags?n.root.isDistributive&&n.checkType===r:137363456&n.flags?e.every(n.types,t):8388608&n.flags?t(n.objectType)&&t(n.indexType):33554432&n.flags?t(n.baseType)&&t(n.constraint):!!(268435456&n.flags)&&t(n.type))}(Nc(n)||r))||1048576&t.flags&&e.some(t.types,Ud)||2097152&t.flags&&SE(t,465829888)&&e.some(t.types,Zm));var n,r}function Kd(t,n,r){return void 0===n&&(n=te),Vd(t=cl(t))?Rd(t,n):1048576&t.flags?Nd(e.map(t.types,function(e){return Kd(e,n,r)})):2097152&t.flags?Ed(e.map(t.types,function(e){return Kd(e,n,r)})):32&e.getObjectFlags(t)?function(e,t,n){var r=Lc(e),i=Ac(e),a=Nc(e.target||e);if(!a&&!n)return i;var o=[];if(Pc(e)){if(ip(i))return Rd(e,t);Dc(rl(wc(e)),8576,t,c)}else Zh(Tc(i),c);ip(i)&&Zh(i,c);var s=n?ng(Ed(o),function(e){return!(5&e.flags)}):Ed(o);return 1048576&s.flags&&1048576&i.flags&&lu(s.types)===lu(i.types)?i:s;function c(t){var n=a?bm(a,lm(e.mapper,r,t)):t;o.push(n===Ye?mt:n)}}(t,n,r):t===Ge?Ge:2&t.flags?ct:131073&t.flags?_t:Bd(t,(r?128:402653316)|(n?0:12584),n===te&&!r)}function jd(e){if(te)return e;var t=(Nn||(Nn=Fu("Extract",2,!0)||Pe),Nn===Pe?void 0:Nn);return t?yu(t,[e,Ye]):Ye}function Hd(t,n){var r=e.findIndex(n,function(e){return!!(1179648&e.flags)});if(r>=0)return Id(n)?ag(n[r],function(i){return Hd(t,e.replaceElement(n,r,i))}):Be;if(e.contains(n,Ge))return Ge;var i=[],a=[],o=t[0];if(!function t(n,r){for(var s=e.isArray(n),c=0;c=0)return E(El(n,Qe)),ag(n,function(e){var t=a_(e)||We;return 1&o?Ed([t,We]):t})}}if(!(98304&r.flags)&&TE(r,402665900)){if(131073&n.flags)return n;var f=Tl(n,r)||El(n,Ye);if(f)return 2&o&&f.keyType!==Qe?void(c&&Xr(c,e.Diagnostics.Type_0_cannot_be_used_to_index_type_1,ao(r),ao(t))):a&&f.keyType===Ye&&!TE(r,12)?(Xr(m=Zd(a),e.Diagnostics.Type_0_cannot_be_used_as_an_index_type,ao(r)),1&o?Ed([f.type,We]):f.type):(E(f),1&o&&!(n.symbol&&384&n.symbol.flags&&r.symbol&&1024&r.flags&&Ta(r.symbol)===n.symbol)?Ed([f.type,We]):f.type);if(131072&r.flags)return ct;if(Jd(n))return Me;if(c&&!DE(n)){if(uh(n)){if(Q&&384&r.flags)return Pr.add(e.createDiagnosticForNode(c,e.Diagnostics.Property_0_does_not_exist_on_type_1,r.value,ao(n))),We;if(12&r.flags){var _=e.map(n.properties,function(e){return ms(e)});return Ed(e.append(_,We))}}if(n.symbol===le&&void 0!==l&&le.exports.has(l)&&418&le.exports.get(l).flags)Xr(c,e.Diagnostics.Property_0_does_not_exist_on_type_1,e.unescapeLeadingUnderscores(l),ao(n));else if(Q&&!j.suppressImplicitAnyIndexErrors&&!(128&o))if(void 0!==l&&bv(l,n)){var h=ao(n);Xr(c,e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead,l,h,h+"["+e.getTextOfNode(c.argumentExpression)+"]")}else if(xl(n,Qe))Xr(c.argumentExpression,e.Diagnostics.Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number);else{var g=void 0;if(void 0!==l&&(g=Tv(l,n)))void 0!==g&&Xr(c.argumentExpression,e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2,l,ao(n),g);else{var y=function(t,n,r){var i=e.isAssignmentTarget(n)?"set":"get";if(function(e){var n=Uc(t,e);if(n){var i=Wv(ms(n));return!!i&&Xb(i)>=1&&Om(r,$b(i,0))}return!1}(i)){var a=e.tryGetPropertyAccessOrIdentifierToString(n.expression);return void 0===a?a=i:a+="."+i,a}}(n,c,r);if(void 0!==y)Xr(c,e.Diagnostics.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1,ao(n),y);else{var v=void 0;if(1024&r.flags)v=e.chainDiagnosticMessages(void 0,e.Diagnostics.Property_0_does_not_exist_on_type_1,"["+ao(r)+"]",ao(n));else if(8192&r.flags){var b=ia(r.symbol,c);v=e.chainDiagnosticMessages(void 0,e.Diagnostics.Property_0_does_not_exist_on_type_1,"["+b+"]",ao(n))}else 128&r.flags||256&r.flags?v=e.chainDiagnosticMessages(void 0,e.Diagnostics.Property_0_does_not_exist_on_type_1,r.value,ao(n)):12&r.flags&&(v=e.chainDiagnosticMessages(void 0,e.Diagnostics.No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1,ao(r),ao(n)));v=e.chainDiagnosticMessages(v,e.Diagnostics.Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1,ao(i),ao(n)),Pr.add(e.createDiagnosticForNodeFromMessageChain(c,v))}}}return}}return Jd(n)?Me:(a&&(m=Zd(a),384&r.flags?Xr(m,e.Diagnostics.Property_0_does_not_exist_on_type_1,""+r.value,ao(n)):12&r.flags?Xr(m,e.Diagnostics.Type_0_has_no_matching_index_signature_for_type_1,ao(n),ao(r)):Xr(m,e.Diagnostics.Type_0_cannot_be_used_as_an_index_type,ao(r))),Do(r)?r:void 0);function E(t){t&&t.isReadonly&&c&&(e.isAssignmentTarget(c)||e.isDeleteTarget(c))&&Xr(c,e.Diagnostics.Index_signature_in_type_0_only_permits_reading,ao(n))}}function Zd(e){return 209===e.kind?e.argumentExpression:196===e.kind?e.indexType:164===e.kind?e.expression:e}function ep(e){return!!(77&e.flags)||tp(e)}function tp(t){return!!(134217728&t.flags)&&e.every(t.types,ep)||!!(268435456&t.flags)&&ep(t.type)}function np(e){return!!ap(e)}function rp(e){return!!(4194304&ap(e))}function ip(e){return!!(8388608&ap(e))}function ap(t){return 3145728&t.flags?(2097152&t.objectFlags||(t.objectFlags|=2097152|e.reduceLeft(t.types,function(e,t){return e|ap(t)},0)),12582912&t.objectFlags):33554432&t.flags?(2097152&t.objectFlags||(t.objectFlags|=2097152|ap(t.baseType)|ap(t.constraint)),12582912&t.objectFlags):(58982400&t.flags||Fc(t)||r_(t)?4194304:0)|(465829888&t.flags&&!tp(t)?8388608:0)}function op(t,n){return 8388608&t.flags?function(t,n){var r=n?"simplifiedForWriting":"simplifiedForReading";if(t[r])return t[r]===Ot?t:t[r];t[r]=Ot;var i=op(t.objectType,n),a=op(t.indexType,n),o=function(t,n,r){if(1048576&n.flags){var i=e.map(n.types,function(e){return op(up(t,e),r)});return r?Nd(i):Ed(i)}}(i,a,n);if(o)return t[r]=o;if(!(465829888&a.flags)){var s=sp(i,a,n);if(s)return t[r]=s}if(r_(i)&&296&a.flags){var c=o_(i,8&a.flags?0:i.target.fixedLength,0,n);if(c)return t[r]=c}if(Fc(i)){var l=Nc(i);if(!l||Om(l,Lc(i)))return t[r]=ag(lp(i,t.indexType),function(e){return op(e,n)})}return t[r]=t}(t,n):16777216&t.flags?function(e,t){var n=e.checkType,r=e.extendsType,i=Ep(e),a=xp(e);if(131072&a.flags&&_p(i)===_p(n)){if(1&n.flags||Om(Sm(n),Sm(r)))return op(i,t);if(cp(n,r))return ct}else if(131072&i.flags&&_p(a)===_p(n)){if(!(1&n.flags)&&Om(Sm(n),Sm(r)))return ct;if(1&n.flags||cp(n,r))return op(a,t)}return e}(t,n):t}function sp(t,n,r){if(1048576&t.flags||2097152&t.flags&&!Vd(t)){var i=e.map(t.types,function(e){return op(up(e,n),r)});return 2097152&t.flags||r?Nd(i):Ed(i)}}function cp(e,t){return!!(131072&Ed([vc(e,t),ct]).flags)}function lp(e,t){var n=em([Lc(e)],[t]),r=sm(e.mapper,n);return bm(kc(e.target||e),r)}function up(e,t,n,r,i,a){return void 0===n&&(n=0),pp(e,t,n,r,i,a)||(r?Be:je)}function dp(t,n){return tg(t,function(t){if(384&t.flags){var r=nc(t);if(e.isNumericLiteralName(r)){var i=+r;return i>=0&&i=5e6)return null===e.tracing||void 0===e.tracing||e.tracing.instant("checkTypes","instantiateType_DepthLimit",{typeId:t.id,instantiationDepth:D,instantiationCount:C}),Xr(u,e.Diagnostics.Type_instantiation_is_excessively_deep_and_possibly_infinite),Be;T++,C++,D++;var a=function(t,n,r,i){var a=t.flags;if(262144&a)return tm(t,n);if(524288&a){var o=t.objectFlags;if(52&o){if(4&o&&!t.node){var s=t.resolvedTypeArguments,c=Yp(s,n);return c!==s?cd(t.target,c):t}return 1024&o?function(t,n){var r=bm(t.mappedType,n);if(!(32&e.getObjectFlags(r)))return t;var i=bm(t.constraintType,n);if(!(4194304&i.flags))return t;var a=$_(bm(t.source,n),r,i);return a||t}(t,n):function(t,n,r,i){var a=4&t.objectFlags||8388608&t.objectFlags?t.node:t.symbol.declarations[0],o=mi(a),s=4&t.objectFlags?o.resolvedType:64&t.objectFlags?t.target:t,c=o.outerTypeParameters;if(!c){var l=vs(a,!0);if(Cb(a)){var u=Dl(a);l=e.addRange(l,u)}c=l||e.emptyArray;var d=8388612&t.objectFlags?[a]:t.symbol.declarations;c=(8388612&s.objectFlags||8192&s.symbol.flags||2048&s.symbol.flags)&&!s.aliasTypeArguments?e.filter(c,function(t){return e.some(d,function(e){return mm(t,e)})}):c,o.outerTypeParameters=c}if(c.length){var p=sm(t.mapper,n),m=e.map(c,function(e){return tm(e,p)}),f=r||t.aliasSymbol,_=r?i:Yp(t.aliasTypeArguments,n),h=lu(m)+uu(f,_);s.instantiations||(s.instantiations=new e.Map,s.instantiations.set(lu(c)+uu(s.aliasSymbol,s.aliasTypeArguments),s));var g=s.instantiations.get(h);if(!g){var y=em(c,m);g=4&s.objectFlags?fu(t.target,t.node,y,f,_):32&s.objectFlags?_m(s,y,f,_):ym(s,y,f,_),s.instantiations.set(h,g)}return g}return t}(t,n,r,i)}return t}if(3145728&a){var l=1048576&t.flags?t.origin:void 0,u=l&&3145728&l.flags?l.types:t.types,d=Yp(u,n);if(d===u&&r===t.aliasSymbol)return t;var p=r||t.aliasSymbol,m=r?i:Yp(t.aliasTypeArguments,n);return 2097152&a||l&&2097152&l.flags?Nd(d,p,m):Ed(d,1,p,m)}if(4194304&a)return Kd(bm(t.type,n));if(134217728&a)return Hd(t.texts,Yp(t.types,n));if(268435456&a)return $d(t.symbol,bm(t.type,n));if(8388608&a)return p=r||t.aliasSymbol,m=r?i:Yp(t.aliasTypeArguments,n),up(bm(t.objectType,n),bm(t.indexType,n),t.accessFlags,void 0,p,m);if(16777216&a)return vm(t,sm(t.mapper,n),r,i);if(33554432&a){var f=bm(t.baseType,n),_=bm(t.constraint,n);return 8650752&f.flags&&np(_)?Tu(f,_):3&_.flags||Om(Sm(f),Sm(_))?f:8650752&f.flags?Tu(f,_):Nd([_,f])}return t}(t,n,r,i);return D--,a}function xm(e){return 262143&e.flags?e:e.permissiveInstantiation||(e.permissiveInstantiation=bm(e,bt))}function Sm(e){return 262143&e.flags?e:(e.restrictiveInstantiation||(e.restrictiveInstantiation=bm(e,vt),e.restrictiveInstantiation.restrictiveInstantiation=e.restrictiveInstantiation),e.restrictiveInstantiation)}function Tm(e,t){return tu(e.keyType,bm(e.type,t),e.isReadonly,e.declaration)}function Cm(t){switch(e.Debug.assert(171!==t.kind||e.isObjectLiteralMethod(t)),t.kind){case 215:case 216:case 171:case 259:return Dm(t);case 207:return e.some(t.properties,Cm);case 206:return e.some(t.elements,Cm);case 224:return Cm(t.whenTrue)||Cm(t.whenFalse);case 223:return(56===t.operatorToken.kind||60===t.operatorToken.kind)&&(Cm(t.left)||Cm(t.right));case 299:return Cm(t.initializer);case 214:return Cm(t.expression);case 289:return e.some(t.properties,Cm)||e.isJsxOpeningElement(t.parent)&&e.some(t.parent.parent.children,Cm);case 288:var n=t.initializer;return!!n&&Cm(n);case 291:var r=t.expression;return!!r&&Cm(r)}return!1}function Dm(t){return e.hasContextSensitiveParameters(t)||function(t){return!t.typeParameters&&!e.getEffectiveReturnTypeNode(t)&&!!t.body&&238!==t.body.kind&&Cm(t.body)}(t)}function Lm(t){return(e.isFunctionExpressionOrArrowFunction(t)||e.isObjectLiteralMethod(t))&&Dm(t)}function Am(t){if(524288&t.flags){var n=Gc(t);if(n.constructSignatures.length||n.callSignatures.length){var r=Ra(16,t.symbol);return r.members=n.members,r.properties=n.properties,r.callSignatures=e.emptyArray,r.constructSignatures=e.emptyArray,r.indexInfos=e.emptyArray,r}}else if(2097152&t.flags)return Nd(e.map(t.types,Am));return t}function Nm(e,t){return af(e,t,Br)}function km(e,t){return af(e,t,Br)?-1:0}function Im(e,t){return af(e,t,Fr)?-1:0}function Pm(e,t){return af(e,t,Rr)?-1:0}function wm(e,t){return af(e,t,Rr)}function Om(e,t){return af(e,t,Fr)}function Rm(t,n){return 1048576&t.flags?e.every(t.types,function(e){return Rm(e,n)}):1048576&n.flags?e.some(n.types,function(e){return Rm(t,e)}):58982400&t.flags?Rm(Jc(t)||je,n):n===Wt?!!(67633152&t.flags):n===$t?!!(524288&t.flags)&&Ph(t):gs(t,hs(n))||Mf(n)&&!Ff(n)&&Rm(t,Xt)}function Mm(e,t){return af(e,t,Gr)}function Fm(e,t){return Mm(e,t)||Mm(t,e)}function Gm(e,t,n,r,i,a){return lf(e,t,Fr,n,r,i,a)}function Bm(e,t,n,r,i,a){return Um(e,t,Fr,n,r,i,a,void 0)}function Um(e,t,n,r,i,a,o,s){return!!af(e,t,n)||(!r||!Km(i,e,t,n,a,o,s))&&lf(e,t,n,r,a,o,s)}function Vm(t){return!!(16777216&t.flags||2097152&t.flags&&e.some(t.types,Vm))}function Km(t,n,i,o,s,c,l){if(!t||Vm(i))return!1;if(!lf(n,i,o,void 0)&&function(t,n,r,i,a,o,s){for(var c=_l(n,0),l=_l(n,1),u=0,d=[l,c];u1,y=ng(_,$f),v=ng(_,function(e){return!$f(e)});if(g){if(y!==ct){var b=od(Iy(d,0)),E=function(t,n){var r,i,o,s,c;return a(this,function(a){switch(a.label){case 0:if(!e.length(t.children))return[2];r=0,i=0,a.label=1;case 1:return iu:Xb(t)>u))return 0;t.typeParameters&&t.typeParameters!==n.typeParameters&&(t=zv(t,n=(l=n).typeParameters?l.canonicalSignatureCache||(l.canonicalSignatureCache=function(t){return ql(t,e.map(t.typeParameters,function(e){return e.target&&!Hc(e.target)?e.target:e}),e.isInJSFile(t.declaration))}(l)):l,void 0,s));var d=Jb(t),p=Zb(t),m=Zb(n);(p||m)&&bm(p||m,c);var f=n.declaration?n.declaration.kind:0,_=!(3&r)&&J&&171!==f&&170!==f&&173!==f,h=-1,g=Ul(t);if(g&&g!==st){var y=Ul(n);if(y){if(!(T=!_&&s(g,y,!1)||s(y,g,i)))return i&&a(e.Diagnostics.The_this_types_of_each_signature_are_incompatible),0;h&=T}}for(var v=p||m?Math.min(d,u):Math.max(d,u),b=p||m?v-1:-1,E=0;E=Xb(t)&&E=3&&32768&n[0].flags&&65536&n[1].flags&&e.some(n,Zm)?67108864:0)}return!!(67108864&t.objectFlags)}return!1}(n))return!0}return!1}function af(e,t,n){if(Bp(e)&&(e=e.regularType),Bp(t)&&(t=t.regularType),e===t)return!0;if(n!==Br){if(n===Gr&&!(131072&t.flags)&&rf(t,e,n)||rf(e,t,n))return!0}else if(!(61865984&(e.flags|t.flags))){if(e.flags!==t.flags)return!1;if(67358815&e.flags)return!0}if(524288&e.flags&&524288&t.flags){var r=n.get(Tf(e,t,0,n,!1));if(void 0!==r)return!!(1&r)}return!!(469499904&e.flags||469499904&t.flags)&&lf(e,t,n,void 0)}function of(t,n){return 2048&e.getObjectFlags(t)&&Ay(n.escapedName)}function sf(t,n){for(;;){var r=Bp(t)?t.regularType:4&e.getObjectFlags(t)?t.node?pu(t.target,_u(t)):Kf(t)||t:3145728&t.flags?cf(t,n):33554432&t.flags?n?t.baseType:Cu(t):25165824&t.flags?op(t,n):t;if(r===t)return r;t=r}}function cf(t,n){var r=cl(t);if(r!==t)return r;if(2097152&t.flags&&e.some(t.types,Zm)){var i=e.sameMap(t.types,function(e){return sf(e,n)});if(i!==t.types)return Nd(i)}return t}function lf(t,r,i,a,o,s,c){var d,p,m,f,_,h,g,y=0,v=0,b=0,E=0,x=!1,S=0,T=!1;e.Debug.assert(i!==Br||!a,"no error reporting in identity checking");var C=V(t,r,3,!!a,o);if(g&&R(),x){null===e.tracing||void 0===e.tracing||e.tracing.instant("checkTypes","checkTypeRelatedTo_DepthLimit",{sourceId:t.id,targetId:r.id,depth:v,targetDepth:b});var D=Xr(a||u,e.Diagnostics.Excessive_stack_depth_comparing_types_0_and_1,ao(t),ao(r));c&&(c.errors||(c.errors=[])).push(D)}else if(d){if(s){var L=s();L&&(e.concatenateDiagnosticMessageChains(L,d),d=L)}var A=void 0;if(o&&a&&!C&&t.symbol){var k=pi(t.symbol);if(k.originatingImport&&!e.isImportCall(k.originatingImport)&&lf(ms(k.target),r,i,void 0)){var I=e.createDiagnosticForNode(k.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);A=e.append(A,I)}}D=e.createDiagnosticForNodeFromMessageChain(a,d,A),p&&e.addRelatedInfo.apply(void 0,n([D],p,!1)),c&&(c.errors||(c.errors=[])).push(D),c&&c.skipLogging||Pr.add(D)}return a&&c&&c.skipLogging&&0===C&&e.Debug.assert(!!c.errors,"missed opportunity to interact with error."),0!==C;function P(e){d=e.errorInfo,h=e.lastSkippedInfo,g=e.incompatibleStack,S=e.overrideNextErrorInfo,p=e.relatedInfo}function w(){return{errorInfo:d,lastSkippedInfo:h,incompatibleStack:null==g?void 0:g.slice(),overrideNextErrorInfo:S,relatedInfo:null==p?void 0:p.slice()}}function O(e,t,n,r,i){S++,h=void 0,(g||(g=[])).push([e,t,n,r,i])}function R(){var t=g||[];g=void 0;var r=h;if(h=void 0,1===t.length)return M.apply(void 0,t[0]),void(r&&G.apply(void 0,n([void 0],r,!1)));for(var i="",a=[];t.length;){var o=t.pop(),s=o[0],c=o.slice(1);switch(s.code){case e.Diagnostics.Types_of_property_0_are_incompatible.code:0===i.indexOf("new ")&&(i="(".concat(i,")"));var l=""+c[0];i=0===i.length?"".concat(l):e.isIdentifierText(l,e.getEmitScriptTarget(j))?"".concat(i,".").concat(l):"["===l[0]&&"]"===l[l.length-1]?"".concat(i).concat(l):"".concat(i,"[").concat(l,"]");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(0===i.length){var u=s;s.code===e.Diagnostics.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?u=e.Diagnostics.Call_signature_return_types_0_and_1_are_incompatible:s.code===e.Diagnostics.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code&&(u=e.Diagnostics.Construct_signature_return_types_0_and_1_are_incompatible),a.unshift([u,c[0],c[1]])}else{var d=s.code===e.Diagnostics.Construct_signature_return_types_0_and_1_are_incompatible.code||s.code===e.Diagnostics.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?"new ":"",p=s.code===e.Diagnostics.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code||s.code===e.Diagnostics.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?"":"...";i="".concat(d).concat(i,"(").concat(p,")")}break;case e.Diagnostics.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target.code:a.unshift([e.Diagnostics.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target,c[0],c[1]]);break;case e.Diagnostics.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target.code:a.unshift([e.Diagnostics.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target,c[0],c[1],c[2]]);break;default:return e.Debug.fail("Unhandled Diagnostic: ".concat(s.code))}}i?M(")"===i[i.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,i):a.shift();for(var m=0,f=a;m0||qT(l)),f=!!(2048&e.getObjectFlags(l));if(m&&!function(e,t,n){for(var r=0,i=Kc(e);r0&&V(jl(g[0]),u,1,!1)||y.length>0&&V(jl(y[0]),u,1,!1)?M(e.Diagnostics.Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it,_,h):M(e.Diagnostics.Type_0_has_no_properties_in_common_with_type_1,_,h)}return 0}H(l,u);var v=1048576&l.flags&&l.types.length<4&&!(1048576&u.flags)||1048576&u.flags&&u.types.length<4&&!(469499904&l.flags)?W(l,u,o,c):X(l,u,o,c,r);if(v)return v}return o&&K(t,n,l,u,s),0}function K(t,n,r,i,o){var s,c,l=!!Kf(t),u=!!Kf(n);r=t.aliasSymbol||l?t:r,i=n.aliasSymbol||u?n:i;var p=S>0;if(p&&S--,524288&r.flags&&524288&i.flags){var m=d;B(r,i,!0),d!==m&&(p=!!d)}if(524288&r.flags&&131068&i.flags)!function(t,n){var r=co(t.symbol)?ao(t,t.symbol.valueDeclaration):ao(t),i=co(n.symbol)?ao(n,n.symbol.valueDeclaration):ao(n);(Yt===t&&Ye===n||Qt===t&&Qe===n||Zt===t&&at===n||Hu()===t&&ot===n)&&M(e.Diagnostics._0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible,i,r)}(r,i);else if(r.symbol&&524288&r.flags&&Wt===r)M(e.Diagnostics.The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead);else if(2048&e.getObjectFlags(r)&&2097152&i.flags){var f=i.types,_=wy(N.IntrinsicAttributes,a),g=wy(N.IntrinsicClassAttributes,a);if(!Lo(_)&&!Lo(g)&&(e.contains(f,_)||e.contains(f,g)))return}else d=pl(d,n);if(o||!p){if(G(o,r,i),262144&r.flags&&(null===(c=null===(s=r.symbol)||void 0===s?void 0:s.declarations)||void 0===c?void 0:c[0])&&!jc(r)){var y=um(r);if(y.constraint=bm(i,nm(r,y)),Yc(y)){var v=ao(i,r.symbol.declarations[0]);F(e.createDiagnosticForNode(r.symbol.declarations[0],e.Diagnostics.This_type_parameter_might_need_an_extends_0_constraint,v))}}}else h=[r,i]}function H(t,n){if(e.tracing&&3145728&t.flags&&3145728&n.flags){var r=t,i=n;if(r.objectFlags&i.objectFlags&32768)return;var o=r.types.length,s=i.types.length;o*s>1e6&&e.tracing.instant("checkTypes","traceUnionsOrIntersectionsTooLarge_DepthLimit",{sourceId:t.id,sourceSize:o,targetId:n.id,targetSize:s,pos:null==a?void 0:a.pos,end:null==a?void 0:a.end})}}function W(t,n,r,a){if(1048576&t.flags)return i===Gr?J(t,n,r&&!(131068&t.flags),a):function(e,t,n,r){for(var i=-1,a=e.types,o=function(e,t){return 1048576&e.flags&&1048576&t.flags&&!(32768&e.types[0].flags)&&32768&t.types[0].flags?sg(t,-32769):t}(e,t),s=0;s=o.types.length&&a.length%o.types.length===0){var l=V(c,o.types[s%o.types.length],3,!1,void 0,r);if(l){i&=l;continue}}var u=V(c,t,1,n,void 0,r);if(!u)return 0;i&=u}return i}(t,n,r&&!(131068&t.flags),a);if(1048576&n.flags)return q(S_(t),n,r&&!(131068&t.flags)&&!(131068&n.flags));if(2097152&n.flags)return function(e,t,n){for(var r=-1,i=0,a=t.types;i25)return null===e.tracing||void 0===e.tracing||e.tracing.instant("checkTypes","typeRelatedToDiscriminatedType_DepthLimit",{sourceId:t.id,targetId:n.id,numCombinations:a}),0;for(var c=new Array(r.length),l=new e.Set,u=0;u=m-E)?t.target.elementFlags[C]:4,L=r.target.elementFlags[T];if(8&L&&!(8&D))return a&&M(e.Diagnostics.Source_provides_no_match_for_variadic_element_at_position_0_in_target,T),0;if(8&D&&!(12&L))return a&&M(e.Diagnostics.Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target,C,T),0;if(1&L&&!(1&D))return a&&M(e.Diagnostics.Source_provides_no_match_for_required_element_at_position_0_in_target,T),0;if(!(x&&((12&D||12&L)&&(x=!1),x&&(null==s?void 0:s.has(""+T))))){var A=n_(t)?T=m-E?y_(y[C],!!(D&L&2)):o_(t,b,E)||ct:y[0],N=v[T];if(!($=V(A,8&D&&4&L?ed(N):y_(N,!!(2&L)),3,a,void 0,c)))return a&&(m>1||p>1)&&(T=m-E||p-b-E===1?O(e.Diagnostics.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target,C,T):O(e.Diagnostics.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target,b,p-E-1,T)),0;u&=$}}return u}if(12&r.target.combinedFlags)return 0}var k=!(i!==Rr&&i!==Mr||uh(t)||Hf(t)||n_(t)),I=X_(t,r,k,!1);if(I)return a&&function(e,t){var n=fl(e,0),r=fl(e,1),i=Bc(e);return!((n.length||r.length)&&!i.length)||!!(_l(t,0).length&&n.length||_l(t,1).length&&r.length)}(t,r)&&function(t,r,i,a){var s=!1;if(i.valueDeclaration&&e.isNamedDeclaration(i.valueDeclaration)&&e.isPrivateIdentifier(i.valueDeclaration.name)&&t.symbol&&32&t.symbol.flags){var c=i.valueDeclaration.name.escapedText,u=e.getSymbolNameForPrivateIdentifier(t.symbol,c);if(u&&ml(t,u)){var p=e.factory.getDeclarationName(t.symbol.valueDeclaration),m=e.factory.getDeclarationName(r.symbol.valueDeclaration);return void M(e.Diagnostics.Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2,Ti(c),Ti(""===p.escapedText?l:p),Ti(""===m.escapedText?l:m))}}var f=e.arrayFrom(J_(t,r,a,!1));if((!o||o.code!==e.Diagnostics.Class_0_incorrectly_implements_interface_1.code&&o.code!==e.Diagnostics.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass.code)&&(s=!0),1===f.length){var _=ro(i,void 0,0,20);M.apply(void 0,n([e.Diagnostics.Property_0_is_missing_in_type_1_but_required_in_type_2,_],oo(t,r),!1)),e.length(i.declarations)&&F(e.createDiagnosticForNode(i.declarations[0],e.Diagnostics._0_is_declared_here,_)),s&&d&&S++}else B(t,r,!1)&&(f.length>5?M(e.Diagnostics.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more,ao(t),ao(r),e.map(f.slice(0,4),function(e){return ro(e)}).join(", "),f.length-4):M(e.Diagnostics.Type_0_is_missing_the_following_properties_from_type_1_Colon_2,ao(t),ao(r),e.map(f,function(e){return ro(e)}).join(", ")),s&&d&&S++)}(t,r,I,k),0;if(uh(r))for(var P=0,w=Y(Kc(t),s);P0||_l(t,r=1).length>0)return e.find(n.types,function(e){return _l(e,r).length>0})}(t,n)||function(t,n){var r;if(!(406978556&t.flags))for(var i=0,a=0,o=n.types;a=i&&(r=s,i=l)}}}return r}(t,n)}function ff(t,n,r,i,a){for(var o=t.types.map(function(e){}),s=0,c=n;s0&&e.every(n.properties,function(e){return!!(16777216&e.flags)})}return!!(2097152&t.flags)&&e.every(t.types,_f)}function hf(e){return e===Jt||e===Xt||8&e.objectFlags?K:yf(e.symbol,e.typeParameters)}function gf(e){return yf(e,pi(e).typeParameters)}function yf(t,n){void 0===n&&(n=e.emptyArray);var r=pi(t);if(!r.variances){null===e.tracing||void 0===e.tracing||e.tracing.push("checkTypes","getVariancesWorker",{arity:n.length,id:fd(Vs(t))}),r.variances=e.emptyArray;for(var i=[],a=function(e){var n=Ef(e),r=65536&n?32768&n?0:1:32768&n?2:void 0;if(void 0===r){var a=!1,o=!1,s=it;it=function(e){return e?o=!0:a=!0};var c=vf(t,e,Mt),l=vf(t,e,Ft);3==(r=(Om(l,c)?1:0)|(Om(c,l)?2:0))&&Om(vf(t,e,Gt),c)&&(r=4),it=s,(a||o)&&(a&&(r|=8),o&&(r|=16))}i.push(r)},o=0,s=n;ot.id){var a=e;e=t,t=a}var o=n?":"+n:"";return Sf(e)&&Sf(t)?function(e,t,n,r){var i=[],a="",o=c(e,0),s=c(t,0);return"".concat(a).concat(o,",").concat(s).concat(n);function c(e,t){void 0===t&&(t=0);for(var n=""+e.target.id,o=0,s=_u(e);o";continue}n+="-"+l.id}return n}}(e,t,o,i):"".concat(e.id,",").concat(t.id).concat(o)}function Cf(t,n){if(!(6&e.getCheckFlags(t)))return n(t);for(var r=0,i=t.containingType.types;r=r)for(var i=kf(e),a=0,o=0,s=0;s=o&&++a>=r)return!0;o=c.id}}return!1}function kf(t){if(524288&t.flags&&!dh(t)){if(e.getObjectFlags(t)&&t.node)return t.node;if(t.symbol&&!(16&e.getObjectFlags(t)&&32&t.symbol.flags))return t.symbol;if(n_(t))return t.target}if(262144&t.flags)return t.symbol;if(8388608&t.flags){do{t=t.objectType}while(8388608&t.flags);return t}return 16777216&t.flags?t.root:t}function If(e,t){return 0!==Pf(e,t,km)}function Pf(t,n,r){if(t===n)return-1;var i=24&e.getDeclarationModifierFlagsFromSymbol(t);if(i!==(24&e.getDeclarationModifierFlagsFromSymbol(n)))return 0;if(i){if(rT(t)!==rT(n))return 0}else if((16777216&t.flags)!=(16777216&n.flags))return 0;return yE(t)!==yE(n)?0:r(ms(t),ms(n))}function wf(t,n,r,i,a,o){if(t===n)return-1;if(!function(e,t,n){var r=Jb(e),i=Jb(t),a=Xb(e),o=Xb(t),s=Yb(e),c=Yb(t);return r===i&&a===o&&s===c||!!(n&&a<=o)}(t,n,r))return 0;if(e.length(t.typeParameters)!==e.length(n.typeParameters))return 0;if(n.typeParameters){for(var s=em(t.typeParameters,n.typeParameters),c=0;ce.length(n.typeParameters)&&(a=sc(a,e.last(_u(t)))),t.objectFlags|=67108864,t.cachedEquivalentBaseType=a}}}function jf(e){return z?e===ut:e===$e}function Hf(e){var t=Uf(e);return!!t&&jf(t)}function Wf(e){return n_(e)||!!ml(e,"0")}function $f(e){return Vf(e)||Wf(e)}function qf(e){return!(240512&e.flags)}function zf(e){return!!(109440&e.flags)}function Jf(t){var n=Xc(t);return 2097152&n.flags?e.some(n.types,zf):zf(n)}function Xf(t){return!!(16&t.flags)||(1048576&t.flags?!!(1024&t.flags)||e.every(t.types,zf):zf(t))}function Yf(e){return 1024&e.flags?Fs(e):402653312&e.flags?Ye:256&e.flags?Qe:2048&e.flags?Ze:512&e.flags?at:1048576&e.flags?function(e){var t,n="B".concat(fd(e));return null!==(t=jr(n))&&void 0!==t?t:Hr(n,ag(e,Yf))}(e):e}function Qf(e){return 1024&e.flags&&Bp(e)?Fs(e):128&e.flags&&Bp(e)?Ye:256&e.flags&&Bp(e)?Qe:2048&e.flags&&Bp(e)?Ze:512&e.flags&&Bp(e)?at:1048576&e.flags?ag(e,Qf):e}function Zf(e){return 8192&e.flags?ot:1048576&e.flags?ag(e,Zf):e}function e_(e,t){return KE(e,t)||(e=Zf(Qf(e))),Gp(e)}function t_(e,t,n,r){return e&&zf(e)&&(e=e_(e,t?KS(n,t,r):void 0)),e}function n_(t){return!!(4&e.getObjectFlags(t)&&8&t.target.objectFlags)}function r_(e){return n_(e)&&!!(8&e.target.combinedFlags)}function i_(e){return r_(e)&&1===e.target.elementFlags.length}function a_(e){return o_(e,e.target.fixedLength)}function o_(e,t,n,r){void 0===n&&(n=0),void 0===r&&(r=!1);var i=hu(e)-n;if(t-1&&(vi(o,o.name.escapedText,788968,void 0,o.name.escapedText,!0)||o.name.originalKeywordKind&&e.isTypeNodeKind(o.name.originalKeywordKind))){var s="arg"+o.parent.parameters.indexOf(o),c=e.declarationNameToString(o.name)+(o.dotDotDotToken?"[]":"");return void Qr(Q,t,e.Diagnostics.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1,s,c)}a=t.dotDotDotToken?Q?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:Q?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 205:if(a=e.Diagnostics.Binding_element_0_implicitly_has_an_1_type,!Q)return;break;case 320:return void Xr(t,e.Diagnostics.Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,i);case 259:case 171:case 170:case 174:case 175:case 215:case 216:if(Q&&!t.name)return void Xr(t,3===r?e.Diagnostics.Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_return_type_annotation:e.Diagnostics.Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,i);a=Q?3===r?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 197:return void(Q&&Xr(t,e.Diagnostics.Mapped_object_type_implicitly_has_an_any_template_type));default:a=Q?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}Qr(Q,t,a,e.declarationNameToString(e.getNameOfDeclaration(t)),i)}}function w_(t,n,r){h(function(){!(Q&&65536&e.getObjectFlags(n))||r&&gy(t)||I_(n)||P_(t,n,r)})}function O_(e,t,n){var r=Jb(e),i=Jb(t),a=Qb(e),o=Qb(t),s=o?i-1:i,c=a?s:Math.min(r,s),l=Ul(e);if(l){var u=Ul(t);u&&n(l,u)}for(var d=0;d0){for(var g=m,y=f;!((y=v(g).indexOf(h,y))>=0);){if(++g===e.length)return;y=0}b(g,y),f+=h.length}else if(f0)for(var x=0,S=n;xe.target.minLength||!t.target.hasRestElement&&(e.target.hasRestElement||t.target.fixedLength1){var n=e.filter(t,dh);if(n.length){var r=Ed(n,2);return e.concatenate(e.filter(t,function(e){return!dh(e)}),[r])}}return t}(t.candidates),i=function(e){var t=Hc(e);return!!t&&SE(16777216&t.flags?$c(t):t,406978556)}(t.typeParameter),a=!i&&t.topLevel&&(t.isFixed||!W_(jl(n),t.typeParameter)),o=i?e.sameMap(r,Gp):a?e.sameMap(r,Qf):r;return N_(416&t.priority?Ed(o,2):Rf(o))}(a,s):void 0;if(a.contraCandidates)o=!c||131072&c.flags||!e.some(a.contraCandidates,function(e){return wm(c,e)})?function(t){return 416&t.priority?Nd(t.contraCandidates):function(t){return e.reduceLeft(t,function(e,t){return wm(t,e)?t:e})}(t.contraCandidates)}(a):c;else if(c)o=c;else if(1&t.flags)o=lt;else{var l=el(a.typeParameter);l&&(o=bm(l,(r=function(t,n){var r=t.inferences.slice(n);return em(e.map(r,function(e){return e.typeParameter}),e.map(r,function(){return je}))}(t,n),i=t.nonFixingMapper,r?am(5,r,i):i)))}}else o=Y_(a);a.inferredType=o||mh(!!(2&t.flags));var u=Hc(a.typeParameter);if(u){var d=bm(u,t.nonFixingMapper);o&&t.compareTypes(o,sc(d,o))||(a.inferredType=o=d)}}return a.inferredType}function mh(e){return e?Me:je}function fh(e){for(var t=[],n=0;n=10&&2*i>=t.length?r:void 0}(n,r);t.keyPropertyName=i?r:"",t.constituentMap=i}return t.keyPropertyName.length?t.keyPropertyName:void 0}}function Lh(e,t){var n,r=null===(n=e.constituentMap)||void 0===n?void 0:n.get(fd(Gp(t)));return r!==je?r:void 0}function Ah(e,t){var n=Dh(e),r=n&&Co(t,n);return r&&Lh(e,r)}function Nh(e,t){return vh(e,t)||xh(e,t)}function kh(e,t){if(e.arguments)for(var n=0,r=e.arguments;n=0&&n.parameterIndex=r&&o0&&r.parameters[0].name&&"this"===r.parameters[0].name.escapedText)return zp(r.parameters[0].type)}var i=e.getJSDocThisTag(t);if(i&&i.typeExpression)return zp(i.typeExpression)}(r);if(!a){var o=function(t){return 215===t.kind&&e.isBinaryExpression(t.parent)&&3===e.getAssignmentDeclarationKind(t.parent)?t.parent.left.expression.expression:171===t.kind&&207===t.parent.kind&&e.isBinaryExpression(t.parent.parent)&&6===e.getAssignmentDeclarationKind(t.parent.parent)?t.parent.parent.left.expression:215===t.kind&&299===t.parent.kind&&207===t.parent.parent.kind&&e.isBinaryExpression(t.parent.parent.parent)&&6===e.getAssignmentDeclarationKind(t.parent.parent.parent)?t.parent.parent.parent.left.expression:215===t.kind&&e.isPropertyAssignment(t.parent)&&e.isIdentifier(t.parent.name)&&("value"===t.parent.name.escapedText||"get"===t.parent.name.escapedText||"set"===t.parent.name.escapedText)&&e.isObjectLiteralExpression(t.parent.parent)&&e.isCallExpression(t.parent.parent.parent)&&t.parent.parent.parent.arguments[2]===t.parent.parent&&9===e.getAssignmentDeclarationKind(t.parent.parent.parent)?t.parent.parent.parent.arguments[0].expression:e.isMethodDeclaration(t)&&e.isIdentifier(t.name)&&("value"===t.name.escapedText||"get"===t.name.escapedText||"set"===t.name.escapedText)&&e.isObjectLiteralExpression(t.parent)&&e.isCallExpression(t.parent.parent)&&t.parent.parent.arguments[2]===t.parent&&9===e.getAssignmentDeclarationKind(t.parent.parent)?t.parent.parent.arguments[0].expression:void 0}(r);if(i&&o){var s=rx(o).symbol;s&&s.members&&16&s.flags&&(a=Vs(s).thisType)}else Cb(r)&&(a=Vs(xa(r.symbol)).thisType);a||(a=qg(r))}if(a)return Dg(t,a)}if(e.isClassLike(r.parent)){var c=Sa(r.parent);return Dg(t,e.isStatic(r)?ms(c):Vs(c).thisType)}if(e.isSourceFile(r)){if(r.commonJsModuleIndicator){var l=Sa(r);return l&&ms(l)}if(r.externalModuleIndicator)return We;if(n)return ms(le)}}function jg(t,n){return!!e.findAncestor(t,function(t){return e.isFunctionLikeDeclaration(t)?"quit":166===t.kind&&t.parent===n})}function Hg(t){var n=210===t.parent.kind&&t.parent.expression===t,r=e.getSuperContainer(t,!0),i=r,a=!1,o=!1;if(!n){for(;i&&216===i.kind;)e.hasSyntacticModifier(i,512)&&(o=!0),i=e.getSuperContainer(i,!0),a=H<2;i&&e.hasSyntacticModifier(i,512)&&(o=!0)}var s=function(t){return!!t&&(n?173===t.kind:!(!e.isClassLike(t.parent)&&207!==t.parent.kind)&&(e.isStatic(t)?171===t.kind||170===t.kind||174===t.kind||175===t.kind||169===t.kind||172===t.kind:171===t.kind||170===t.kind||174===t.kind||175===t.kind||169===t.kind||168===t.kind||173===t.kind))}(i),c=0;if(!s){var l=e.findAncestor(t,function(e){return e===i?"quit":164===e.kind});return l&&164===l.kind?Xr(t,e.Diagnostics.super_cannot_be_referenced_in_a_computed_property_name):n?Xr(t,e.Diagnostics.Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors):i&&i.parent&&(e.isClassLike(i.parent)||207===i.parent.kind)?Xr(t,e.Diagnostics.super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class):Xr(t,e.Diagnostics.super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions),Be}if(n||173!==r.kind||Ug(t,i,e.Diagnostics.super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class),e.isStatic(i)||n?(c=512,!n&&H>=2&&H<=8&&(e.isPropertyDeclaration(i)||e.isClassStaticBlockDeclaration(i))&&e.forEachEnclosingBlockScopeContainer(t.parent,function(t){e.isSourceFile(t)&&!e.isExternalOrCommonJsModule(t)||(mi(t).flags|=134217728)})):c=256,mi(t).flags|=c,171===i.kind&&o&&(e.isSuperProperty(t.parent)&&e.isAssignmentTarget(t.parent)?mi(i).flags|=4096:mi(i).flags|=2048),a&&Fg(t.parent,i),207===i.parent.kind)return H<2?(Xr(t,e.Diagnostics.super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher),Be):Me;var u=i.parent;if(!e.getClassExtendsHeritageElement(u))return Xr(t,e.Diagnostics.super_can_only_be_referenced_in_a_derived_class),Be;var d=Vs(Sa(u)),p=d&&Ns(d)[0];return p?173===i.kind&&jg(t,i)?(Xr(t,e.Diagnostics.super_cannot_be_referenced_in_constructor_arguments),Be):512===c?Ls(d):sc(p,d.thisType):Be}function Wg(t){return 4&e.getObjectFlags(t)&&t.target===tn?_u(t)[0]:void 0}function $g(t){return ag(t,function(t){return 2097152&t.flags?e.forEach(t.types,Wg):Wg(t)})}function qg(t){if(216!==t.kind){if(Lm(t)){var n=yy(t);if(n){var r=n.thisParameter;if(r)return ms(r)}}var i=e.isInJSFile(t);if(Z||i){var a=function(e){return 171!==e.kind&&174!==e.kind&&175!==e.kind||207!==e.parent.kind?215===e.kind&&299===e.parent.kind?e.parent.parent:void 0:e.parent}(t);if(a){for(var o=ly(a,void 0),s=a,c=o;c;){var l=$g(c);if(l)return bm(l,K_(my(a)));if(299!==s.parent.kind)break;c=ly(s=s.parent.parent,void 0)}return N_(o?m_(o):GE(a))}var u=e.walkUpParenthesizedExpressions(t.parent);if(223===u.kind&&63===u.operatorToken.kind){var d=u.left;if(e.isAccessExpression(d)){var p=d.expression;if(i&&e.isIdentifier(p)){var m=e.getSourceFileOfNode(u);if(m.commonJsModuleIndicator&&hh(p)===m.symbol)return}return N_(GE(p))}}}}}function zg(t){var n=t.parent;if(Lm(n)){var r=e.getImmediatelyInvokedFunctionExpression(n);if(r&&r.arguments){var i=ib(r),a=n.parameters.indexOf(t);if(t.dotDotDotToken)return Qv(i,a,i.length,Me,void 0,0);var o=mi(r),s=o.resolvedSignature;o.resolvedSignature=Vn;var c=a=i?up(ms(r.parameters[i]),Vp(n-i),256):$b(r,n)}function ty(t,n){if(void 0===n&&(n=e.getAssignmentDeclarationKind(t)),4===n)return!0;if(!e.isInJSFile(t)||5!==n||!e.isIdentifier(t.left.expression))return!1;var r=t.left.expression.escapedText,i=vi(t.left,r,111551,void 0,void 0,!0,!0);return e.isThisInitializedDeclaration(null==i?void 0:i.valueDeclaration)}function ny(t){if(!t.symbol)return ex(t.left);if(t.symbol.valueDeclaration){var n=e.getEffectiveTypeAnnotationNode(t.symbol.valueDeclaration);if(n){var r=zp(n);if(r)return r}}var i=e.cast(t.left,e.isAccessExpression);if(e.isObjectLiteralMethod(e.getThisContainer(i.expression,!1))){var a=Vg(i.expression),o=e.getElementOrPropertyAccessName(i);return void 0!==o&&ry(a,o)||void 0}}function ry(t,n,r){return ag(t,function(t){var i,a;if(Fc(t)&&!t.declaration.nameType){var o=Ac(t),s=Jc(o)||o,c=r||Up(e.unescapeLeadingUnderscores(n));if(Om(c,s))return lp(t,c)}else if(3670016&t.flags){var l=ml(t,n);if(l)return a=l,262144&e.getCheckFlags(a)&&!a.type&&Eo(a,0)>=0?void 0:ms(l);if(n_(t)){var u=a_(t);if(u&&e.isNumericLiteralName(n)&&+n>=0)return u}return null===(i=gl(vl(t),r||Up(e.unescapeLeadingUnderscores(n))))||void 0===i?void 0:i.type}},!0)}function iy(t,n){if(e.Debug.assert(e.isObjectLiteralMethod(t)),!(33554432&t.flags))return ay(t,n)}function ay(t,n){var r=t.parent,i=e.isPropertyAssignment(t)&&Jg(t,n);if(i)return i;var a=ly(r,n);if(a){if(tc(t)){var o=Sa(t);return ry(a,o.escapedName,pi(o).nameType)}if(t.name){var s=Md(t.name);return ag(a,function(e){var t;return null===(t=gl(vl(e),s))||void 0===t?void 0:t.type},!0)}}}function oy(e,t){return e&&(ry(e,""+t)||ag(e,function(e){return ES(1,e,We,void 0,!1)},!0))}function sy(t,n){if(e.isJsxAttribute(t)){var r=ly(t.parent,n);if(!r||Do(r))return;return ry(r,t.name.escapedText)}return py(t.parent,n)}function cy(e){switch(e.kind){case 10:case 8:case 9:case 14:case 110:case 95:case 104:case 79:case 155:return!0;case 208:case 214:return cy(e.expression);case 291:return!e.expression||cy(e.expression)}return!1}function ly(t,n){var r=uy(e.isObjectLiteralMethod(t)?iy(t,n):py(t,n),t,n);if(r&&!(n&&2&n&&8650752&r.flags)){var i=ag(r,rl,!0);return 1048576&i.flags&&e.isObjectLiteralExpression(t)?function(t,n){return function(t,n){var r=Dh(t),i=r&&e.find(n.properties,function(e){return e.symbol&&299===e.kind&&e.symbol.escapedName===r&&cy(e.initializer)}),a=i&&nx(i.initializer);return a&&Lh(t,a)}(n,t)||ff(n,e.concatenate(e.map(e.filter(t.properties,function(e){return!!e.symbol&&299===e.kind&&cy(e.initializer)&&Th(n,e.symbol.escapedName)}),function(e){return[function(){return nx(e.initializer)},e.symbol.escapedName]}),e.map(e.filter(Kc(n),function(e){var r;return!!(16777216&e.flags)&&!!(null===(r=null==t?void 0:t.symbol)||void 0===r?void 0:r.members)&&!t.symbol.members.has(e.escapedName)&&Th(n,e.escapedName)}),function(e){return[function(){return We},e.escapedName]})),Om,n)}(t,i):1048576&i.flags&&e.isJsxAttributes(t)?function(t,n){return ff(n,e.concatenate(e.map(e.filter(t.properties,function(e){return!!e.symbol&&288===e.kind&&Th(n,e.symbol.escapedName)&&(!e.initializer||cy(e.initializer))}),function(e){return[e.initializer?function(){return nx(e.initializer)}:function(){return nt},e.symbol.escapedName]}),e.map(e.filter(Kc(n),function(e){var r;return!!(16777216&e.flags)&&!!(null===(r=null==t?void 0:t.symbol)||void 0===r?void 0:r.members)&&!t.symbol.members.has(e.escapedName)&&Th(n,e.escapedName)}),function(e){return[function(){return We},e.escapedName]})),Om,n)}(t,i):i}}function uy(t,n,r){if(t&&SE(t,465829888)){var i=my(n);if(i&&1&r&&e.some(i.inferences,XE))return dy(t,i.nonFixingMapper);if(null==i?void 0:i.returnMapper){var a=dy(t,i.returnMapper);return 1048576&a.flags&&_d(a.types,tt)&&_d(a.types,rt)?ng(a,function(e){return e!==tt&&e!==rt}):a}}return t}function dy(t,n){return 465829888&t.flags?bm(t,n):1048576&t.flags?Ed(e.map(t.types,function(e){return dy(e,n)}),0):2097152&t.flags?Nd(e.map(t.types,function(e){return dy(e,n)})):t}function py(t,n){if(33554432&t.flags);else{if(t.contextualType)return t.contextualType;var r=t.parent;switch(r.kind){case 257:case 166:case 169:case 168:case 205:return function(t,n){var r=t.parent;if(e.hasInitializer(r)&&t===r.initializer){var i=Jg(r,n);if(i)return i;if(!(8&n)&&e.isBindingPattern(r.name)&&r.name.elements.length>0)return Qo(r.name,!0,!1)}}(t,n);case 216:case 250:return function(t,n){var r=e.getContainingFunction(t);if(r){var i=Qg(r,n);if(i){var a=e.getFunctionFlags(r);if(1&a){var o=!!(2&a);1048576&i.flags&&(i=ng(i,function(e){return!!KS(1,e,o)}));var s=KS(1,i,!!(2&a));if(!s)return;i=s}if(2&a){var c=ag(i,Ix);return c&&Ed([c,aE(c)])}return i}}}(t,n);case 226:return function(t,n){var r=e.getContainingFunction(t);if(r){var i=e.getFunctionFlags(r),a=Qg(r,n);if(a){var o=!!(2&i);return!t.asteriskToken&&1048576&a.flags&&(a=ng(a,function(e){return!!KS(1,e,o)})),t.asteriskToken?a:KS(0,a,o)}}}(r,n);case 220:return function(e,t){var n=py(e,t);if(n){var r=Ix(n);return r&&Ed([r,aE(r)])}}(r,n);case 210:case 211:return Zg(r,t);case 213:case 231:return e.isConstTypeReference(r.type)?o(r):zp(r.type);case 223:return function(t,n){var r=t.parent,i=r.left,a=r.operatorToken,o=r.right;switch(a.kind){case 63:case 76:case 75:case 77:return t===o?function(t){var n,r,i=e.getAssignmentDeclarationKind(t);switch(i){case 0:case 4:var a=function(t){if(t.symbol)return t.symbol;if(e.isIdentifier(t))return hh(t);if(e.isPropertyAccessExpression(t)){var n=ex(t.expression);return e.isPrivateIdentifier(t.name)?function(e,t){var n=uv(t.escapedText,t);return n&&pv(e,n)}(n,t.name):ml(n,t.name.escapedText)}if(e.isElementAccessExpression(t)){var r=GE(t.argumentExpression);if(!Ys(r))return;return ml(n=ex(t.expression),nc(r))}}(t.left),o=a&&a.valueDeclaration;return o&&(e.isPropertyDeclaration(o)||e.isPropertySignature(o))?(c=e.getEffectiveTypeAnnotationNode(o))&&bm(zp(c),pi(a).mapper)||(e.isPropertyDeclaration(o)?o.initializer&&ex(t.left):void 0):0===i?ex(t.left):ny(t);case 5:if(ty(t,i))return ny(t);if(t.left.symbol){var s=t.left.symbol.valueDeclaration;if(!s)return;var c,l=e.cast(t.left,e.isAccessExpression);if(c=e.getEffectiveTypeAnnotationNode(s))return zp(c);if(e.isIdentifier(l.expression)){var u=l.expression,d=vi(u,u.escapedText,111551,void 0,u.escapedText,!0);if(d){var p=d.valueDeclaration&&e.getEffectiveTypeAnnotationNode(d.valueDeclaration);if(p){var m=e.getElementOrPropertyAccessName(l);if(void 0!==m)return ry(zp(p),m)}return}}return e.isInJSFile(s)?void 0:ex(t.left)}return ex(t.left);case 1:case 6:case 3:case 2:var f=void 0;2!==i&&(f=null===(n=t.left.symbol)||void 0===n?void 0:n.valueDeclaration),f||(f=null===(r=t.symbol)||void 0===r?void 0:r.valueDeclaration);var _=f&&e.getEffectiveTypeAnnotationNode(f);return _?zp(_):void 0;case 7:case 8:case 9:return e.Debug.fail("Does not apply");default:return e.Debug.assertNever(i)}}(r):void 0;case 56:case 60:var s=py(r,n);return t===o&&(s&&s.pattern||!s&&!e.isDefaultedExpandoInitializer(r))?ex(i):s;case 55:case 27:return t===o?py(r,n):void 0;default:return}}(t,n);case 299:case 300:return ay(r,n);case 301:return py(r.parent,n);case 206:var i=r;return oy(ly(i,n),e.indexOfNode(i.elements,t));case 224:return function(e,t){var n=e.parent;return e===n.whenTrue||e===n.whenFalse?py(n,t):void 0}(t,n);case 236:return e.Debug.assert(225===r.parent.kind),function(e,t){if(212===e.parent.kind)return Zg(e.parent,t)}(r.parent,t);case 214:var a=e.isInJSFile(r)?e.getJSDocTypeTag(r):void 0;return a?e.isJSDocTypeTag(a)&&e.isConstTypeReference(a.typeExpression.type)?o(r):zp(a.typeExpression.type):py(r,n);case 232:return py(r,n);case 235:return zp(r.type);case 274:return ns(r);case 291:return function(t,n){var r=t.parent;return e.isJsxAttributeLike(r)?py(t,n):e.isJsxElement(r)?function(t,n,r){var i=ly(t.openingElement.tagName,r),a=Gy(My(t));if(i&&!Do(i)&&a&&""!==a){var o=e.getSemanticJsxChildren(t.children),s=o.indexOf(n),c=ry(i,a);return c&&(1===o.length?c:ag(c,function(e){return Vf(e)?up(e,Vp(s)):e},!0))}}(r,t,n):void 0}(r,n);case 288:case 290:return sy(r,n);case 283:case 282:return function(t,n){return e.isJsxOpeningElement(t)&&t.parent.contextualType&&4!==n?t.parent.contextualType:ey(t,0)}(r,n)}}function o(e){return py(e,n)}}function my(t){var n=e.findAncestor(t,function(e){return!!e.inferenceContext});return n&&n.inferenceContext}function fy(t,n){return 0!==eb(n)?function(e,t){var n=tE(e,je);n=_y(t,My(t),n);var r=wy(N.IntrinsicAttributes,t);return Lo(r)||(n=vc(r,n)),n}(t,n):function(t,n){var r,i=My(n),a=(r=i,Fy(N.ElementAttributesPropertyNameContainer,r)),o=void 0===a?tE(t,je):""===a?jl(t):function(e,t){if(e.compositeSignatures){for(var n=[],r=0,i=e.compositeSignatures;r=2)return yu(a,Ol([s,r],c,2,e.isInJSFile(t)))}if(e.length(o.typeParameters)>=2)return pu(o,Ol([s,r],o.typeParameters,2,e.isInJSFile(t)))}return r}function hy(t,n){var r=_l(t,0),i=e.filter(r,function(t){return!function(t,n){for(var r=0;r=i?e:t,o=a===e?t:e,s=a===e?r:i,c=Yb(e)||Yb(t),l=c&&!Yb(a),u=new Array(s+(l?1:0)),d=0;d=Xb(a)&&d>=Xb(o),g=d>=r?void 0:Kb(e,d),y=d>=i?void 0:Kb(t,d),v=ri(1|(h&&!_?16777216:0),(g===y?g:g?y?void 0:g:y)||"arg".concat(d));v.type=_?ed(f):f,u[d]=v}if(l){var b=ri(1,"args");b.type=ed($b(o,s)),o===t&&(b.type=bm(b.type,n)),u[s]=b}return u}(t,n,r),s=function(e,t,n){return e&&t?x_(e,Ed([ms(e),bm(ms(t),n)])):e||t}(t.thisParameter,n.thisParameter,r),c=lc(a,i,s,o,void 0,void 0,Math.max(t.minArgumentCount,n.minArgumentCount),39&(t.flags|n.flags));return c.compositeKind=2097152,c.compositeSignatures=e.concatenate(2097152===t.compositeKind&&t.compositeSignatures||[t],[n]),r&&(c.mapper=2097152===t.compositeKind&&t.mapper&&t.compositeSignatures?sm(t.mapper,r):r),c}(t,n):void 0:t}):void 0}(i)}function gy(t){return e.isFunctionExpressionOrArrowFunction(t)||e.isObjectLiteralMethod(t)?yy(t):void 0}function yy(t){e.Debug.assert(171!==t.kind||e.isObjectLiteralMethod(t));var n=Ml(t);if(n)return n;var r=ly(t,1);if(r){if(!(1048576&r.flags))return hy(r,t);for(var i,a=0,o=r.types;a1&&r.declarations&&Xr(r.declarations[0],e.Diagnostics.The_global_type_JSX_0_may_not_have_more_than_one_property,e.unescapeLeadingUnderscores(t))}}function Gy(e){return Fy(N.ElementChildrenAttributeNameContainer,e)}function By(t,n){if(4&t.flags)return[Vn];if(128&t.flags){var r=Uy(t,n);return r?[Eb(n,r)]:(Xr(n,e.Diagnostics.Property_0_does_not_exist_on_type_1,t.value,"JSX."+N.IntrinsicElements),e.emptyArray)}var i=rl(t),a=_l(i,1);return 0===a.length&&(a=_l(i,0)),0===a.length&&1048576&i.flags&&(a=hc(e.map(i.types,function(e){return By(e,n)}))),a}function Uy(t,n){var r=wy(N.IntrinsicElements,n);if(!Lo(r)){var i=t.value,a=ml(r,e.escapeLeadingUnderscores(i));return a?ms(a):xl(r,Ye)||void 0}return Me}function Vy(t){e.Debug.assert(Ny(t.tagName));var n=mi(t);if(!n.resolvedJsxElementAttributesType){var r=Oy(t);return 1&n.jsxFlags?n.resolvedJsxElementAttributesType=ms(r)||Be:2&n.jsxFlags?n.resolvedJsxElementAttributesType=xl(wy(N.IntrinsicElements,t),Ye)||Be:n.resolvedJsxElementAttributesType=Be}return n.resolvedJsxElementAttributesType}function Ky(e){var t=wy(N.ElementClass,e);if(!Lo(t))return t}function jy(e){return wy(N.Element,e)}function Hy(e){var t=jy(e);if(t)return Ed([t,Je])}function Wy(t){var n,r=e.isJsxOpeningLikeElement(t);if(r&&function(t){(function(t){if(e.isPropertyAccessExpression(t)){var n=t;do{var r=a(n.name);if(r)return r;n=n.expression}while(e.isPropertyAccessExpression(n));var i=a(n);if(i)return i}function a(t){if(e.isIdentifier(t)&&-1!==e.idText(t).indexOf(":"))return nD(t,e.Diagnostics.JSX_property_access_expressions_cannot_include_JSX_namespace_names)}})(t.tagName),MC(t,t.typeArguments);for(var n=new e.Map,r=0,i=t.attributes.properties;r=0)return d>=Xb(r)&&(Yb(r)||ds)return!1;if(o||a>=c)return!0;for(var p=a;p=i&&n.length<=r}function Wv(e){return qv(e,0,!1)}function $v(e){return qv(e,0,!1)||qv(e,1,!1)}function qv(e,t,n){if(524288&e.flags){var r=Gc(e);if(n||0===r.properties.length&&0===r.indexInfos.length){if(0===t&&1===r.callSignatures.length&&0===r.constructSignatures.length)return r.callSignatures[0];if(1===t&&1===r.constructSignatures.length&&0===r.callSignatures.length)return r.constructSignatures[0]}}}function zv(t,n,r,i){var a=M_(t.typeParameters,t,0,i),o=Qb(n),s=r&&(o&&262144&o.flags?r.nonFixingMapper:r.mapper);return O_(s?dm(n,s):n,t,function(e,t){sh(a.inferences,e,t)}),r||R_(n,t,function(e,t){sh(a.inferences,e,t,128)}),ql(t,fh(a),e.isInJSFile(n.declaration))}function Jv(t){if(!t)return st;var n=rx(t);return e.isOptionalChainRoot(t.parent)?m_(n):e.isOptionalChain(t.parent)?__(n):n}function Xv(t,n,r,i,a){if(e.isJsxOpeningLikeElement(t))return function(e,t,n,r){var i=fy(t,e),a=FE(e.attributes,i,r,n);return sh(r.inferences,a,i),fh(r)}(t,n,i,a);if(167!==t.kind){var o=e.every(n.typeParameters,function(e){return!!el(e)}),s=py(t,o?8:0);if(s){var c=jl(n);if(j_(c)){var l=my(t);if(o||py(t,8)===s){var u=K_(function(t){return t&&F_(e.map(t.inferences,V_),t.signature,1|t.flags,t.compareTypes)}(l)),d=bm(s,u),p=Wv(d),m=p&&p.typeParameters?Ql(zl(p,p.typeParameters)):d;sh(a.inferences,m,c,128)}var f=M_(n.typeParameters,n,a.flags),_=bm(s,l&&l.returnMapper);sh(f.inferences,_,c),a.returnMapper=e.some(f.inferences,JE)?K_(function(t){var n=e.filter(t.inferences,JE);return n.length?F_(e.map(n,V_),t.signature,t.flags,t.compareTypes):void 0}(f)):void 0}}}var h=Zb(n),g=h?Math.min(Jb(n)-1,r.length):r.length;if(h&&262144&h.flags){var y=e.find(a.inferences,function(e){return e.typeParameter===h});y&&(y.impliedArity=e.findIndex(r,Bv,g)<0?r.length-g:void 0)}var v=Ul(n);if(v&&j_(v)){var b=nb(t);sh(a.inferences,Jv(b),v)}for(var E=0;E=r-1&&Bv(d=t[r-1]))return Yv(234===d.kind?d.type:FE(d.expression,i,a,o));for(var s=[],c=[],l=[],u=n;ud&&(d=y)}}if(!u)return!0;for(var v=1/0,b=0,E=i;b0||e.isJsxOpeningElement(t)&&t.parent.children.length>0?[t.attributes]:e.emptyArray;var i=t.arguments||e.emptyArray,a=Uv(i);if(a>=0){for(var o=i.slice(0,a),s=function(t){var n=i[t],r=227===n.kind&&(rr?rx(n.expression):GE(n.expression));r&&n_(r)?e.forEach(_u(r),function(e,t){var i,a=r.target.elementFlags[t],s=rb(n,4&a?ed(e):e,!!(12&a),null===(i=r.target.labeledElementDeclarations)||void 0===i?void 0:i[t]);o.push(s)}):o.push(n)},c=a;c-1)return e.createDiagnosticForNode(r[a],e.Diagnostics.A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter);for(var o,s=Number.POSITIVE_INFINITY,c=Number.NEGATIVE_INFINITY,l=Number.NEGATIVE_INFINITY,u=Number.POSITIVE_INFINITY,d=0,p=n;dl&&(l=f),r.length<_&&_1&&(g=W(m,Rr,v,E)),g||(g=W(m,Fr,v,E)),g)return g;if(g=function(t,n,r,i,a){return e.Debug.assert(n.length>0),LT(t),i||1===n.length||n.some(function(e){return!!e.typeParameters})?function(t,n,r,i){var a=function(e,t){for(var n=-1,r=-1,i=0;i=t)return i;o>r&&(r=o,n=i)}return n}(n,void 0===ue?r.length:ue),o=n[a],s=o.typeParameters;if(!s)return o;var c=Mv(t)?t.typeArguments:void 0,l=c?Jl(o,function(e,t,n){for(var r=e.map(VT);r.length>t.length;)r.pop();for(;r.length3){var x,S=f[f.length-1];f.length>3&&(x=e.chainDiagnosticMessages(x,e.Diagnostics.The_last_overload_gave_the_following_error),x=e.chainDiagnosticMessages(x,e.Diagnostics.No_overload_matches_this_call));var T=tb(t,y,S,Fr,0,!0,function(){return x});if(T)for(var C=0,D=T;C3&&e.addRelatedInfo(L,e.createDiagnosticForNode(S.declaration,e.Diagnostics.The_last_overload_is_declared_here)),H(S,L),Pr.add(L)}else e.Debug.fail("No error for last overload signature")}else{for(var A=[],N=0,k=Number.MAX_VALUE,I=0,P=0,w=function(n){var r=tb(t,y,n,Fr,0,!0,function(){return e.chainDiagnosticMessages(void 0,e.Diagnostics.Overload_0_of_1_2_gave_the_following_error,P+1,m.length,io(n))});r?(r.length<=k&&(k=r.length,I=P),N=Math.max(N,r.length),A.push(r)):e.Debug.fail("No error for 3 or fewer overload signatures"),P++},O=0,R=f;O1?A[I]:e.flatten(A);e.Debug.assert(M.length>0,"No errors reported for 3 or fewer overload signatures");var F=e.chainDiagnosticMessages(e.map(M,e.createDiagnosticMessageChainFromDiagnostic),e.Diagnostics.No_overload_matches_this_call),G=n([],e.flatMap(M,function(e){return e.relatedInformation}),!0),V=void 0;if(e.every(M,function(e){return e.start===M[0].start&&e.length===M[0].length&&e.file===M[0].file})){var K=M[0];V={file:K.file,start:K.start,length:K.length,code:F.code,category:F.category,messageText:F,relatedInformation:G}}else V=e.createDiagnosticForNodeFromMessageChain(t,F,G);H(f[0],V),Pr.add(V)}else if(_)Pr.add(cb(t,[_],y));else if(h)Zv(h,t.typeArguments,!0,s);else{var j=e.filter(r,function(e){return Hv(e,c)});0===j.length?Pr.add(function(t,n,r){var i=r.length;if(1===n.length){var a=wl((d=n[0]).typeParameters),o=e.length(d.typeParameters);return e.createDiagnosticForNodeArray(e.getSourceFileOfNode(t),r,e.Diagnostics.Expected_0_type_arguments_but_got_1,ai?c=Math.min(c,p):o1?e.find(c,function(t){return e.isFunctionLikeDeclaration(t)&&e.nodeIsPresent(t.body)}):void 0;if(l){var u=Rl(l),d=!u.typeParameters;W([u],Fr,d)&&e.addRelatedInfo(n,e.createDiagnosticForNode(l,e.Diagnostics.The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_are_not_externally_visible))}f=a,_=o,h=s}function W(n,r,i,o){if(void 0===o&&(o=!1),f=void 0,_=void 0,h=void 0,i){var s=n[0];if(e.some(c)||!jv(t,y,s,o))return;return tb(t,y,s,r,0,!1,void 0)?void(f=[s]):s}for(var l=0;l=0&&Xr(t.arguments[i],e.Diagnostics.Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher)}var a=Zy(t.expression);if(a===lt)return Hn;if(Lo(a=rl(a)))return Gv(t);if(Do(a))return t.typeArguments&&Xr(t,e.Diagnostics.Untyped_function_calls_may_not_accept_type_arguments),Fv(t);var o=_l(a,1);if(o.length){if(!function(t,n){if(!n||!n.declaration)return!0;var r=n.declaration,i=e.getSelectedEffectiveModifierFlags(r,24);if(!i||173!==r.kind)return!0;var a=e.getClassLikeDeclarationOfSymbol(r.parent.symbol),o=Vs(r.parent.symbol);if(!MT(t,a)){var s=e.getContainingClass(t);if(s&&16&i){var c=VT(s);if(gb(r.parent.symbol,c))return!0}return 8&i&&Xr(t,e.Diagnostics.Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration,ao(o)),16&i&&Xr(t,e.Diagnostics.Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration,ao(o)),!1}return!0}(t,o[0]))return Gv(t);if(hb(o,function(e){return!!(4&e.flags)}))return Xr(t,e.Diagnostics.Cannot_create_an_instance_of_an_abstract_class),Gv(t);var s=a.symbol&&e.getClassLikeDeclarationOfSymbol(a.symbol);return s&&e.hasSyntacticModifier(s,256)?(Xr(t,e.Diagnostics.Cannot_create_an_instance_of_an_abstract_class),Gv(t)):lb(t,o,n,r,0)}var c=_l(a,0);if(c.length){var l=lb(t,c,n,r,0);return Q||(l.declaration&&!Cb(l.declaration)&&jl(l)!==st&&Xr(t,e.Diagnostics.Only_a_void_function_can_be_called_with_the_new_keyword),Ul(l)===st&&Xr(t,e.Diagnostics.A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void)),l}return vb(t.expression,a,1),Gv(t)}function hb(t,n){return e.isArray(t)?e.some(t,function(e){return hb(e,n)}):1048576===t.compositeKind?e.some(t.compositeSignatures,n):n(t)}function gb(t,n){var r=Ns(n);if(!e.length(r))return!1;var i=r[0];if(2097152&i.flags){for(var a=bc(i.types),o=0,s=0,c=i.types;s0;if(1048576&n.flags){for(var c=!1,l=0,u=n.types;l=r-1)return n===r-1?a:ed(up(a,Qe));for(var o=[],s=[],c=[],l=n;l0&&(a=t.parameters.length-1+c)}}if(void 0===a){if(!r&&32&t.flags)return 0;a=t.minArgumentCount}if(i)return a;for(var l=a-1;l>=0&&!(131072&ng($b(t,l),Vv).flags);l--)a=l;t.resolvedMinArgumentCount=a}return t.resolvedMinArgumentCount}function Yb(e){if(B(e)){var t=ms(e.parameters[e.parameters.length-1]);return!n_(t)||t.target.hasRestElement}return!1}function Qb(e){if(B(e)){var t=ms(e.parameters[e.parameters.length-1]);if(!n_(t))return t;if(t.target.hasRestElement)return ud(t,t.target.fixedLength)}}function Zb(e){var t=Qb(e);return!t||Mf(t)||Do(t)||131072&cl(t).flags?void 0:t}function eE(e){return tE(e,ct)}function tE(e,t){return e.parameters.length>0?$b(e,0):t}function nE(t,n){var r=pi(t);if(r.type)n&&e.Debug.assertEqual(r.type,n,"Parameter symbol already has a cached type which differs from newly assigned type");else{var i=t.valueDeclaration;r.type=n||(i?Zo(i,!0):ms(t)),i&&79!==i.name.kind&&(r.type===je&&(r.type=Qo(i.name)),rE(i.name,r.type))}}function rE(t,n){for(var r=0,i=t.elements;r0&&(r=Ed(u,2)):l=ct;var d=function(t,n){var r=[],i=[],a=!!(2&e.getFunctionFlags(t));return e.forEachYieldExpression(t.body,function(t){var o,s=t.expression?rx(t.expression,n):$e;if(e.pushIfUnique(r,lE(t,s,Me,a)),t.asteriskToken){var c=LS(s,a?19:17,t.expression);o=c&&c.nextType}else o=py(t,void 0);o&&e.pushIfUnique(i,o)}),{yieldTypes:r,nextTypes:i}}(t,n),p=d.yieldTypes,m=d.nextTypes;i=e.some(p)?Ed(p,2):void 0,a=e.some(m)?Nd(m):void 0}else{var f=mE(t,n);if(!f)return 2&o?oE(t,ct):ct;if(0===f.length)return 2&o?oE(t,st):st;r=Ed(f,2)}if(r||i||a){if(i&&w_(t,i,3),r&&w_(t,r,1),a&&w_(t,a,2),r&&zf(r)||i&&zf(i)||a&&zf(a)){var _=gy(t),h=_?_===Rl(t)?c?void 0:r:uy(jl(_),t,void 0):void 0;c?(i=t_(i,h,0,s),r=t_(r,h,1,s),a=t_(a,h,2,s)):r=function(e,t,n){return e&&zf(e)&&(e=e_(e,t?n?Tx(t):t:void 0)),e}(r,h,s)}i&&(i=N_(i)),r&&(r=N_(r)),a&&(a=N_(a))}return c?cE(i||ct,r||l,a||Yg(2,t)||je,s):s?iE(r||l):r||l}function cE(e,t,n,r){var i=r?Yn:Qn,a=i.getGlobalGeneratorType(!1);if(e=i.resolveIterationType(e,void 0)||je,t=i.resolveIterationType(t,void 0)||je,n=i.resolveIterationType(n,void 0)||je,a===It){var o=i.getGlobalIterableIteratorType(!1),s=o!==It?IS(o,i):void 0,c=s?s.returnType:Me,l=s?s.nextType:We;return Om(t,c)&&Om(l,n)?o!==It?Qu(o,[e]):(i.getGlobalIterableIteratorType(!0),Ct):(i.getGlobalGeneratorType(!0),Ct)}return Qu(a,[e,t,n])}function lE(t,n,r,i){var a=t.expression||t,o=t.asteriskToken?bS(i?19:17,n,r,a):n;return i?kx(o,a,t.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):o}function uE(e,t,n){for(var r=0,i=0;i=t?n[i]:void 0;r|=void 0!==a?S.get(a)||32768:0}return r}function dE(t){var n=mi(t);if(void 0===n.isExhaustive){n.isExhaustive=0;var r=function(t){if(218===t.expression.kind){var n=Yh(t);if(!n)return!1;var r=Xc(GE(t.expression.expression)),i=uE(0,0,n);return 3&r.flags?!(556800&~i):!eg(r,function(e){return(wh(e)&i)===i})}var a=GE(t.expression);if(!Xf(a))return!1;var o=Xh(t);return!(!o.length||e.some(o,qf))&&function(t,n){return 1048576&t.flags?!e.forEach(t.types,function(t){return!e.contains(n,t)}):e.contains(n,t)}(ag(a,Gp),o)}(t);0===n.isExhaustive&&(n.isExhaustive=r)}else 0===n.isExhaustive&&(n.isExhaustive=!1);return n.isExhaustive}function pE(e){return e.endFlowNode&&Eg(e.endFlowNode)}function mE(t,n){var r=e.getFunctionFlags(t),i=[],a=pE(t),o=!1;if(e.forEachReturnStatement(t.body,function(s){var c=s.expression;if(c){var l=GE(c,n&&-9&n);2&r&&(l=Ax(Cx(l,!1,t,e.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member))),131072&l.flags&&(o=!0),e.pushIfUnique(i,l)}else a=!0}),0!==i.length||a||!o&&!function(e){switch(e.kind){case 215:case 216:return!0;case 171:return 207===e.parent.kind;default:return!1}}(t))return!(z&&i.length&&a)||Cb(t)&&i.some(function(e){return e.symbol===t.symbol})||e.pushIfUnique(i,We),i}function fE(t,n){h(function(){var r=e.getFunctionFlags(t),i=n&&HS(n,r);if((!i||!SE(i,16385))&&170!==t.kind&&!e.nodeIsMissing(t.body)&&238===t.body.kind&&pE(t)){var a=512&t.flags,o=e.getEffectiveReturnTypeNode(t)||t;if(i&&131072&i.flags)Xr(o,e.Diagnostics.A_function_returning_never_cannot_have_a_reachable_end_point);else if(i&&!a)Xr(o,e.Diagnostics.A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value);else if(i&&z&&!Om(We,i))Xr(o,e.Diagnostics.Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined);else if(j.noImplicitReturns){if(!i){if(!a)return;var s=jl(Rl(t));if(WS(t,s))return}Xr(o,e.Diagnostics.Not_all_code_paths_return_a_value)}}})}function _E(t,n){if(e.Debug.assert(171!==t.kind||e.isObjectLiteralMethod(t)),LT(t),e.isFunctionExpression(t)&&cS(t,t.name),n&&4&n&&Cm(t)){if(!e.getEffectiveReturnTypeNode(t)&&!e.hasContextSensitiveParameters(t)){var r=yy(t);if(r&&j_(jl(r))){var i=mi(t);if(i.contextFreeType)return i.contextFreeType;var a=sE(t,n),o=lc(void 0,void 0,void 0,e.emptyArray,a,void 0,0,0),s=Va(t.symbol,V,[o],e.emptyArray,e.emptyArray);return s.objectFlags|=262144,i.contextFreeType=s}}return Pt}return RC(t)||215!==t.kind||UC(t),function(t,n){var r=mi(t);if(!(1024&r.flags)){var i=yy(t);if(!(1024&r.flags)){r.flags|=1024;var a=e.firstOrUndefined(_l(ms(Sa(t)),0));if(!a)return;if(Cm(t))if(i){var o=my(t),s=void 0;if(n&&2&n){!function(t,n,r){for(var i=t.parameters.length-(B(t)?1:0),a=0;a1&&t.charCodeAt(n-1)>=48&&t.charCodeAt(n-1)<=57;)n--;for(var r=t.slice(0,n),i=1;;i++){var a=r+i;if(!YE(e,a))return a}}function ZE(e){var t=Wv(e);if(t&&!t.typeParameters)return jl(t)}function ex(t){var n=tx(t);if(n)return n;if(134217728&t.flags&&Fn){var r=Fn[w(t)];if(r)return r}var i=or,a=rx(t);return or!==i&&((Fn||(Fn=[]))[w(t)]=a,e.setNodeFlags(t,134217728|t.flags)),a}function tx(t){var n=e.skipParentheses(t,!0);if(e.isJSDocTypeAssertion(n)){var r=e.getJSDocTypeAssertionType(n);if(!e.isConstTypeReference(r))return zp(r)}if(n=e.skipParentheses(t),!e.isCallExpression(n)||106===n.expression.kind||e.isRequireCall(n,!0)||kb(n)){if(e.isAssertionExpression(n)&&!e.isConstTypeReference(n.type))return zp(n.type);if(8===t.kind||10===t.kind||110===t.kind||95===t.kind)return rx(t)}else if(r=e.isCallChain(n)?function(e){var t=rx(e.expression),n=g_(t,e.expression),r=ZE(t);return r&&h_(r,e,n!==t)}(n):ZE(Zy(n.expression)))return r}function nx(e){var t=mi(e);if(t.contextFreeType)return t.contextFreeType;var n=e.contextualType;e.contextualType=Me;try{return t.contextFreeType=rx(e,4)}finally{e.contextualType=n}}function rx(t,n,r){null===e.tracing||void 0===e.tracing||e.tracing.push("check","checkExpression",{kind:t.kind,pos:t.pos,end:t.end,path:t.tracingPath});var a=u;u=t,C=0;var o=function(t,n,r){var a=t.kind;if(i)switch(a){case 228:case 215:case 216:i.throwIfCancellationRequested()}switch(a){case 79:return function(t,n){if(e.isThisInTypeQuery(t))return Vg(t);var r=hh(t);if(r===Pe)return Be;if(r===de){if(gv(t))return Xr(t,e.Diagnostics.arguments_cannot_be_referenced_in_property_initializers),Be;var i=e.getContainingFunction(t);return H<2&&(216===i.kind?Xr(t,e.Diagnostics.The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_standard_function_expression):e.hasSyntacticModifier(i,512)&&Xr(t,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)),mi(i).flags|=8192,ms(r)}(function(t){var n,r=t.parent;if(r){if(e.isPropertyAccessExpression(r)&&r.expression===t)return!1;if(e.isExportSpecifier(r)&&r.isTypeOnly)return!1;var i=null===(n=r.parent)||void 0===n?void 0:n.parent;if(i&&e.isExportDeclaration(i)&&i.isTypeOnly)return!1}return!0})(t)&&Rg(r,t);var a=Na(r),o=_T(a,t);ti(o)&&Yd(t,o)&&o.declarations&&ni(t,o.declarations,t.escapedText);var s=a.valueDeclaration;if(s&&32&a.flags)if(260===s.kind&&e.nodeIsDecorated(s))for(i=e.getContainingClass(t);void 0!==i;){if(i===s&&i.name!==t){mi(s).flags|=16777216,mi(t).flags|=33554432;break}i=e.getContainingClass(i)}else if(228===s.kind)for(i=e.getThisContainer(t,!1);308!==i.kind;){if(i.parent===s){(e.isPropertyDeclaration(i)&&e.isStatic(i)||e.isClassStaticBlockDeclaration(i))&&(mi(s).flags|=16777216,mi(t).flags|=33554432);break}i=e.getThisContainer(i,!1)}!function(t,n){if(!(H>=2)&&34&n.flags&&n.valueDeclaration&&!e.isSourceFile(n.valueDeclaration)&&295!==n.valueDeclaration.parent.kind){var r=e.getEnclosingBlockScopeContainer(n.valueDeclaration),i=function(t,n){return!!e.findAncestor(t,function(t){return t===n?"quit":e.isFunctionLike(t)||t.parent&&e.isPropertyDeclaration(t.parent)&&!e.hasStaticModifier(t.parent)&&t.parent.initializer===t})}(t,r),a=Mg(r);if(a){if(i){var o=!0;if(e.isForStatement(r)&&(u=e.getAncestor(n.valueDeclaration,258))&&u.parent===r){var s=function(t,n){return e.findAncestor(t,function(e){return e===n?"quit":e===n.initializer||e===n.condition||e===n.incrementor||e===n.statement})}(t.parent,r);if(s){var c=mi(s);c.flags|=131072;var l=c.capturedBlockScopeBindings||(c.capturedBlockScopeBindings=[]);e.pushIfUnique(l,n),s===r.initializer&&(o=!1)}}o&&(mi(a).flags|=65536)}var u;e.isForStatement(r)&&(u=e.getAncestor(n.valueDeclaration,258))&&u.parent===r&&function(t,n){for(var r=t;214===r.parent.kind;)r=r.parent;var i=!1;if(e.isAssignmentTarget(r))i=!0;else if(221===r.parent.kind||222===r.parent.kind){var a=r.parent;i=45===a.operator||46===a.operator}return!!i&&!!e.findAncestor(r,function(e){return e===n?"quit":e===n.statement})}(t,r)&&(mi(n.valueDeclaration).flags|=4194304),mi(n.valueDeclaration).flags|=524288}i&&(mi(n.valueDeclaration).flags|=262144)}}(t,r);var c=function(t,n){var r=t.valueDeclaration;if(r){if(e.isBindingElement(r)&&!r.initializer&&!r.dotDotDotToken&&r.parent.elements.length>=2){var i=r.parent.parent;if(257===i.kind&&2&e.getCombinedNodeFlags(r)||166===i.kind){var a=mi(i);if(!(268435456&a.flags)){a.flags|=268435456;var o=Ao(i,0),s=o&&ag(o,Xc);if(a.flags&=-268435457,s&&1048576&s.flags&&(166!==i.kind||!Ag(t)))return 131072&(u=Dg(r.parent,s,s,void 0,n.flowNode)).flags?ct:Mo(r,u)}}}if(e.isParameter(r)&&!r.type&&!r.initializer&&!r.dotDotDotToken){var c=r.parent;if(c.parameters.length>=2&&Lm(c)){var l=yy(c);if(l&&1===l.parameters.length&&B(l)){var u,d=il(ms(l.parameters[0]));if(1048576&d.flags&&tg(d,n_)&&!Ag(t))return up(u=Dg(c,d,d,void 0,n.flowNode),Vp(c.parameters.indexOf(r)-(e.getThisParameter(c)?1:0)))}}}}return ms(t)}(a,t),l=e.getAssignmentTargetKind(t);if(l){if(!(3&a.flags||e.isInJSFile(t)&&512&a.flags))return Xr(t,384&a.flags?e.Diagnostics.Cannot_assign_to_0_because_it_is_an_enum:32&a.flags?e.Diagnostics.Cannot_assign_to_0_because_it_is_a_class:1536&a.flags?e.Diagnostics.Cannot_assign_to_0_because_it_is_a_namespace:16&a.flags?e.Diagnostics.Cannot_assign_to_0_because_it_is_a_function:2097152&a.flags?e.Diagnostics.Cannot_assign_to_0_because_it_is_an_import:e.Diagnostics.Cannot_assign_to_0_because_it_is_not_a_variable,ro(r)),Be;if(yE(a))return 3&a.flags?Xr(t,e.Diagnostics.Cannot_assign_to_0_because_it_is_a_constant,ro(r)):Xr(t,e.Diagnostics.Cannot_assign_to_0_because_it_is_a_read_only_property,ro(r)),Be}var u=2097152&a.flags;if(3&a.flags){if(1===l)return c}else{if(!u)return c;s=Ii(r)}if(!s)return c;c=wg(c,t,n);for(var d=166===e.getRootDeclaration(s).kind,p=Lg(s),m=Lg(t),f=m!==p,_=t.parent&&t.parent.parent&&e.isSpreadAssignment(t.parent)&&Kh(t.parent.parent),h=134217728&r.flags;m!==p&&(215===m.kind||216===m.kind||e.isObjectLiteralOrClassExpressionMethodOrAccessor(m))&&(kg(a)&&c!==rn||d&&!Ag(a));)m=Lg(m);var g=d||u||f||_||h||function(t,n){if(e.isBindingElement(n)){var r=e.findAncestor(t,e.isBindingElement);return r&&e.getRootDeclaration(r)===e.getRootDeclaration(n)}}(t,s)||c!==Fe&&c!==rn&&(!z||!!(16387&c.flags)||gh(t)||278===t.parent.kind)||232===t.parent.kind||257===s.kind&&s.exclamationToken||16777216&s.flags,y=g?d?function(e,t){if(bo(t.symbol,2)){var n=z&&166===t.kind&&t.initializer&&16777216&wh(e)&&!(16777216&wh(rx(t.initializer)));return So(),n?Oh(e,524288):e}return us(t.symbol),e}(c,s):c:c===Fe||c===rn?We:p_(c),v=Dg(t,c,y,m);if(hg(t)||c!==Fe&&c!==rn){if(!g&&!ef(c)&&ef(v))return Xr(t,e.Diagnostics.Variable_0_is_used_before_being_assigned,ro(r)),c}else if(v===Fe||v===rn)return Q&&(Xr(e.getNameOfDeclaration(s),e.Diagnostics.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined,ro(r),ao(v)),Xr(t,e.Diagnostics.Variable_0_implicitly_has_an_1_type,ro(r),ao(v))),lS(v);return l?Yf(v):v}(t,n);case 80:return function(t){!function(t){if(!e.getContainingClass(t))return nD(t,e.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies);if(!e.isForInStatement(t.parent)){if(!e.isExpressionNode(t))return nD(t,e.Diagnostics.Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression);var n=e.isBinaryExpression(t.parent)&&101===t.parent.operatorToken.kind;dv(t)||n||nD(t,e.Diagnostics.Cannot_find_name_0,e.idText(t))}}(t);var n=dv(t);return n&&Av(n,void 0,!1),Me}(t);case 108:return Vg(t);case 106:return Hg(t);case 104:return Xe;case 14:case 10:return Fp(Up(t.text));case 8:return aD(t),Fp(Vp(+t.text));case 9:return function(t){if(!(e.isLiteralTypeNode(t.parent)||e.isPrefixUnaryExpression(t.parent)&&e.isLiteralTypeNode(t.parent.parent))&&H<7&&nD(t,e.Diagnostics.BigInt_literals_are_not_available_when_targeting_lower_than_ES2020));}(t),Fp(Kp({negative:!1,base10Value:e.parsePseudoBigInt(t.text)}));case 110:return nt;case 95:return et;case 225:return RE(t);case 13:return en;case 206:return by(t,n,r);case 207:return function(t,n){var r=e.isAssignmentTarget(t);!function(t,n){for(var r=new e.Map,i=0,a=t.properties;i0&&(s=wp(s,U(),t.symbol,_,u),o=[],a=e.createSymbolTable(),g=!1,y=!1,v=!1),Ly(N=cl(rx(D.expression)))){var R=Pp(N,u);if(i&&Py(R,i,D),S=o.length,Lo(s))continue;s=wp(s,R,t.symbol,_,u)}else Xr(D,e.Diagnostics.Spread_types_may_only_be_created_from_object_types),s=Be;continue}e.Debug.assert(174===D.kind||175===D.kind),LT(D)}!A||8576&A.flags?a.set(L.escapedName,L):Om(A,ft)&&(Om(A,Qe)?y=!0:Om(A,ot)?v=!0:g=!0,r&&(h=!0)),o.push(L)}if(l){var M=e.findAncestor(c.pattern.parent,function(e){return 257===e.kind||223===e.kind||166===e.kind}),F=e.findAncestor(t,function(e){return e===M||301===e.kind});if(301!==F.kind)for(var G=0,B=Kc(c);G0&&(s=wp(s,U(),t.symbol,_,u),o=[],a=e.createSymbolTable(),g=!1,y=!1),ag(s,function(e){return e===Ct?U():e})):U();function U(){var n=[];g&&n.push(Cy(t,S,o,Ye)),y&&n.push(Cy(t,S,o,Qe)),v&&n.push(Cy(t,S,o,ot));var i=Va(t.symbol,a,e.emptyArray,e.emptyArray,n);return i.objectFlags|=131200|_,f&&(i.objectFlags|=4096),h&&(i.objectFlags|=512),r&&(i.pattern=t),i}}(t,n);case 208:return sv(t,n);case 163:return cv(t,n);case 209:return function(e,t){return 32&e.flags?function(e,t){var n=rx(e.expression),r=g_(n,e.expression);return h_(Rv(e,av(r,e.expression),t),e,r!==n)}(e,t):Rv(e,Zy(e.expression),t)}(t,n);case 210:if(100===t.expression.kind)return function(t){if(function(t){if(W===e.ModuleKind.ES2015)return nD(t,e.Diagnostics.Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd_system_umd_node16_or_nodenext);if(t.typeArguments)return nD(t,e.Diagnostics.This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments);var n=t.arguments;if(W!==e.ModuleKind.ESNext&&W!==e.ModuleKind.NodeNext&&W!==e.ModuleKind.Node16&&(wC(n),n.length>1))return nD(n[1],e.Diagnostics.Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_or_nodenext);if(0===n.length||n.length>2)return nD(t,e.Diagnostics.Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_assertion_as_arguments);var r=e.find(n,e.isSpreadElement);r&&nD(r,e.Diagnostics.Argument_of_dynamic_import_cannot_be_spread_element)}(t),0===t.arguments.length)return oE(t,Me);for(var n=t.arguments[0],r=GE(n),i=t.arguments.length>1?GE(t.arguments[1]):void 0,a=2;a=4)break;default:null!=i||(i=e.getSpanOfTokenAtPosition(r,t.pos)),Pr.add(e.createFileDiagnostic(r,i.start,i.length,e.Diagnostics.Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher))}}}else if(!ZC(r=e.getSourceFileOfNode(t))){if(i=e.getSpanOfTokenAtPosition(r,t.pos),a=e.createFileDiagnostic(r,i.start,i.length,e.Diagnostics.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules),n&&173!==n.kind&&!(2&e.getFunctionFlags(n))){var o=e.createDiagnosticForNode(n,e.Diagnostics.Did_you_mean_to_mark_this_function_as_async);e.addRelatedInfo(a,o)}Pr.add(a)}}Xg(t)&&Xr(t,e.Diagnostics.await_expressions_cannot_be_used_in_a_parameter_initializer)}(t)});var n=rx(t.expression),r=Cx(n,!0,t,e.Diagnostics.Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member);return r!==n||Lo(r)||3&n.flags||Yr(!1,e.createDiagnosticForNode(t,e.Diagnostics.await_has_no_effect_on_the_type_of_this_expression)),r}(t);case 221:return function(t){var n=rx(t.operand);if(n===lt)return lt;switch(t.operand.kind){case 8:switch(t.operator){case 40:return Fp(Vp(-t.operand.text));case 39:return Fp(Vp(+t.operand.text))}break;case 9:if(40===t.operator)return Fp(Kp({negative:!0,base10Value:e.parsePseudoBigInt(t.operand.text)}))}switch(t.operator){case 39:case 40:case 54:return av(n,t.operand),xE(n,12288)&&Xr(t.operand,e.Diagnostics.The_0_operator_cannot_be_applied_to_type_symbol,e.tokenToString(t.operator)),39===t.operator?(xE(n,2112)&&Xr(t.operand,e.Diagnostics.Operator_0_cannot_be_applied_to_type_1,e.tokenToString(t.operator),ao(Yf(n))),Qe):EE(n);case 53:gS(t.operand);var r=12582912&wh(n);return 4194304===r?et:8388608===r?nt:at;case 45:case 46:return hE(t.operand,av(n,t.operand),e.Diagnostics.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type)&&bE(t.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),EE(n)}return Be}(t);case 222:return function(t){var n=rx(t.operand);return n===lt?lt:(hE(t.operand,av(n,t.operand),e.Diagnostics.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type)&&bE(t.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),EE(n))}(t);case 223:return ie(t,n);case 224:return function(e,t){var n=gS(e.condition);return _S(e.condition,n,e.whenTrue),Ed([rx(e.whenTrue,t),rx(e.whenFalse,t)],2)}(t,n);case 227:return function(e,t){return H<2&&AC(e,j.downlevelIteration?1536:1024),bS(33,rx(e.expression,t),We,e.expression)}(t,n);case 229:return $e;case 226:return function(t){h(function(){8192&t.flags||eD(t,e.Diagnostics.A_yield_expression_is_only_allowed_in_a_generator_body),Xg(t)&&Xr(t,e.Diagnostics.yield_expressions_cannot_be_used_in_a_parameter_initializer)});var n=e.getContainingFunction(t);if(!n)return Me;var r=e.getFunctionFlags(n);if(!(1&r))return Me;var i=!!(2&r);t.asteriskToken&&(i&&H<99&&AC(t,26624),!i&&H<2&&j.downlevelIteration&&AC(t,256));var a=Hl(n),o=a&&jS(a,i),s=o&&o.yieldType||Me,c=o&&o.nextType||Me,l=i?kx(c)||Me:c,u=t.expression?rx(t.expression):$e,d=lE(t,u,l,i);if(a&&d&&Bm(d,s,t.expression||t,t.expression),t.asteriskToken)return xS(i?19:17,1,u,t.expression)||Me;if(a)return KS(2,a,i)||Me;var p=Yg(2,n);return p||(p=Me,h(function(){if(Q&&!e.expressionResultIsUnused(t)){var n=py(t,void 0);n&&!Do(n)||Xr(t,e.Diagnostics.yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_type_annotation)}})),p}(t);case 234:return function(e){return e.isSpread?up(e.type,Qe):e.type}(t);case 291:return function(t,n){if(function(t){t.expression&&e.isCommaSequence(t.expression)&&nD(t.expression,e.Diagnostics.JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array)}(t),t.expression){var r=rx(t.expression,n);return t.dotDotDotToken&&r!==Me&&!Mf(r)&&Xr(t,e.Diagnostics.JSX_spread_child_must_be_an_array_type),r}return Be}(t,n);case 281:case 282:return function(e){return LT(e),jy(e)||Me}(t);case 285:return function(t){Wy(t.openingFragment);var n=e.getSourceFileOfNode(t);return!e.getJSXTransformEnabled(j)||!j.jsxFactory&&!n.pragmas.has("jsx")||j.jsxFragmentFactory||n.pragmas.has("jsxfrag")||Xr(t,j.jsxFactory?e.Diagnostics.The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_compiler_option:e.Diagnostics.An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments),Iy(t),jy(t)||Me}(t);case 289:return function(t,n){return function(t,n){for(var r,i=t.attributes,a=py(i,0),o=z?e.createSymbolTable():void 0,s=e.createSymbolTable(),c=Dt,l=!1,u=!1,d=2048,p=Gy(My(t)),m=0,f=i.properties;m0&&(c=wp(c,D(),i.symbol,d,!1),s=e.createSymbolTable()),Do(g=cl(GE(_.expression,n)))&&(l=!0),Ly(g)?(c=wp(c,g,i.symbol,d,!1),o&&Py(g,o,_)):(Xr(_.expression,e.Diagnostics.Spread_types_may_only_be_created_from_object_types),r=r?Nd([r,g]):g)}l||s.size>0&&(c=wp(c,D(),i.symbol,d,!1));var b=281===t.parent.kind?t.parent:void 0;if(b&&b.openingElement===t&&b.children.length>0){var E=Iy(b,n);if(!l&&p&&""!==p){u&&Xr(i,e.Diagnostics._0_are_specified_twice_The_attribute_named_0_will_be_overwritten,e.unescapeLeadingUnderscores(p));var x=ly(t.attributes,void 0),S=x&&ry(x,p),T=ri(4,p);T.type=1===E.length?E[0]:S&&eg(S,Wf)?od(E):ed(Ed(E)),T.valueDeclaration=e.factory.createPropertySignature(void 0,e.unescapeLeadingUnderscores(p),void 0,void 0),e.setParent(T.valueDeclaration,i),T.valueDeclaration.symbol=T;var C=e.createSymbolTable();C.set(p,T),c=wp(c,Va(i.symbol,C,e.emptyArray,e.emptyArray,e.emptyArray),i.symbol,d,!1)}}return l?Me:r&&c!==Dt?Nd([r,c]):r||(c===Dt?D():c);function D(){d|=ne;var t=Va(i.symbol,s,e.emptyArray,e.emptyArray,e.emptyArray);return t.objectFlags|=131200|d,t}}(t.parent,n)}(t,n);case 283:e.Debug.fail("Shouldn't ever directly check a JsxOpeningElement")}return Be}(t,n,r),s=qE(t,o,n);return DE(s)&&function(t,n){208===t.parent.kind&&t.parent.expression===t||209===t.parent.kind&&t.parent.expression===t||(79===t.kind||163===t.kind)&&FT(t)||183===t.parent.kind&&t.parent.exprName===t||278===t.parent.kind||Xr(t,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),j.isolatedModules&&(e.Debug.assert(!!(128&n.symbol.flags)),16777216&n.symbol.valueDeclaration.flags&&Xr(t,e.Diagnostics.Cannot_access_ambient_const_enums_when_the_isolatedModules_flag_is_provided))}(t,s),u=a,null===e.tracing||void 0===e.tracing||e.tracing.pop(),s}function ix(t){IC(t),t.expression&&eD(t.expression,e.Diagnostics.Type_expected),TT(t.constraint),TT(t.default);var n=Us(Sa(t));Jc(n),function(e){return Zc(e)!==Ot}(n)||Xr(t.default,e.Diagnostics.Type_parameter_0_has_a_circular_default,ao(n));var r=Hc(n),i=el(n);r&&i&&Gm(i,sc(bm(r,nm(n,i)),i),t.default,e.Diagnostics.Type_0_does_not_satisfy_the_constraint_1),LT(t),h(function(){return JS(t.name,e.Diagnostics.Type_parameter_name_cannot_be_0)})}function ax(t){kC(t),uS(t);var n=e.getContainingFunction(t);e.hasSyntacticModifier(t,16476)&&(173===n.kind&&e.nodeIsPresent(n.body)||Xr(t,e.Diagnostics.A_parameter_property_is_only_allowed_in_a_constructor_implementation),173===n.kind&&e.isIdentifier(t.name)&&"constructor"===t.name.escapedText&&Xr(t.name,e.Diagnostics.constructor_cannot_be_used_as_a_parameter_property_name)),(t.questionToken||Al(t))&&e.isBindingPattern(t.name)&&n.body&&Xr(t,e.Diagnostics.A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature),t.name&&e.isIdentifier(t.name)&&("this"===t.name.escapedText||"new"===t.name.escapedText)&&(0!==n.parameters.indexOf(t)&&Xr(t,e.Diagnostics.A_0_parameter_must_be_the_first_parameter,t.name.escapedText),173!==n.kind&&177!==n.kind&&182!==n.kind||Xr(t,e.Diagnostics.A_constructor_cannot_have_a_this_parameter),216===n.kind&&Xr(t,e.Diagnostics.An_arrow_function_cannot_have_a_this_parameter),174!==n.kind&&175!==n.kind||Xr(t,e.Diagnostics.get_and_set_accessors_cannot_declare_this_parameters)),!t.dotDotDotToken||e.isBindingPattern(t.name)||Om(cl(ms(t.symbol)),an)||Xr(t,e.Diagnostics.A_rest_parameter_must_be_of_an_array_type)}function ox(t,n,r){for(var i=0,a=t.elements;i=2||!e.hasRestParameter(t)||16777216&t.flags||e.nodeIsMissing(t.body)||e.forEach(t.parameters,function(t){t.name&&!e.isBindingPattern(t.name)&&t.name.escapedText===de.escapedName&&zr("noEmit",t,e.Diagnostics.Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters)})}(t);var n=e.getEffectiveReturnTypeNode(t);if(Q&&!n)switch(t.kind){case 177:Xr(t,e.Diagnostics.Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type);break;case 176:Xr(t,e.Diagnostics.Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type)}if(n){var r=e.getFunctionFlags(t);if(1==(5&r)){var i=zp(n);if(i===st)Xr(n,e.Diagnostics.A_generator_cannot_have_a_void_type_annotation);else{var a=KS(0,i,!!(2&r))||Me;Gm(cE(a,KS(1,i,!!(2&r))||a,KS(2,i,!!(2&r))||je,!!(2&r)),i,n)}}else 2==(3&r)&&function(t,n){var r=zp(n);if(H>=2){if(Lo(r))return;var i=Wu(!0);if(i!==It&&!_s(r,i))return void Xr(n,e.Diagnostics.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0,ao(Ix(r)||st))}else{if(function(t){wx(t&&e.getEntityNameFromTypeNode(t),!1)}(n),Lo(r))return;var a=e.getEntityNameFromTypeNode(n);if(void 0===a)return void Xr(n,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,ao(r));var o=aa(a,111551,!0),s=o?ms(o):Be;if(Lo(s))return void(79===a.kind&&"Promise"===a.escapedText&&hs(r)===Wu(!1)?Xr(n,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):Xr(n,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(a)));var c=fn||(fn=Bu("PromiseConstructorLike",0,true))||Ct;if(c===Ct)return void Xr(n,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(a));if(!Gm(s,c,n,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 l=a&&e.getFirstIdentifier(a),u=_i(t.locals,l.escapedText,111551);if(u)return void Xr(u.valueDeclaration,e.Diagnostics.Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions,e.idText(l),e.entityNameToString(a))}Cx(r,!1,t,e.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member)}(t,n)}178!==t.kind&&320!==t.kind&&Vx(t)})}function cx(t){for(var n=new e.Map,r=0,i=t.members;r0&&n.declarations[0]!==t)return}var r=Zl(Sa(t));if(null==r?void 0:r.declarations){for(var i=new e.Map,a=function(e){1===e.parameters.length&&e.parameters[0].type&&Zh(zp(e.parameters[0].type),function(t){var n=i.get(fd(t));n?n.declarations.push(e):i.set(fd(t),{type:t,declarations:[e]})})},o=0,s=r.declarations;o1)for(var n=0,r=t.declarations;n0}function Lx(e){var t;if(16777216&e.flags){var n=Yu(!1);return!!n&&e.aliasSymbol===n&&1===(null===(t=e.aliasTypeArguments)||void 0===t?void 0:t.length)}return!1}function Ax(e){return 1048576&e.flags?ag(e,Ax):Lx(e)?e.aliasTypeArguments[0]:e}function Nx(e){if(Do(e)||Lx(e))return!1;if(rp(e)){var t=Jc(e);if(t?3&t.flags||Qm(t)||eg(t,Dx):SE(e,8650752))return!0}return!1}function kx(t,n,r,i){var a=Ix(t,n,r,i);return a&&function(t){if(Nx(t)){var n=function(e){var t=Yu(!0);if(t)return yu(t,[Ax(e)])}(t);if(n)return n}return e.Debug.assert(void 0===Tx(t),"type provided should not be a non-generic 'promise'-like."),t}(a)}function Ix(t,n,r,i){if(Do(t))return t;if(Lx(t))return t;var a=t;if(a.awaitedTypeOfType)return a.awaitedTypeOfType;if(1048576&t.flags){if(Ir.lastIndexOf(t.id)>=0)return void(n&&Xr(n,e.Diagnostics.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method));var o=n?function(e){return Ix(e,n,r,i)}:Ix;Ir.push(t.id);var s=ag(t,o);return Ir.pop(),a.awaitedTypeOfType=s}if(Nx(t))return a.awaitedTypeOfType=t;var c={value:void 0},l=Tx(t,void 0,c);if(l){if(t.id===l.id||Ir.lastIndexOf(l.id)>=0)return void(n&&Xr(n,e.Diagnostics.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method));Ir.push(t.id);var u=Ix(l,n,r,i);if(Ir.pop(),!u)return;return a.awaitedTypeOfType=u}if(!Dx(t))return a.awaitedTypeOfType=t;if(n){e.Debug.assertIsDefined(r);var d=void 0;c.value&&(d=e.chainDiagnosticMessages(d,e.Diagnostics.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1,ao(t),ao(c.value))),d=e.chainDiagnosticMessages(d,r,i),Pr.add(e.createDiagnosticForNodeFromMessageChain(n,d))}}function Px(t){var n=Tb(t);Ab(n,t);var r=jl(n);if(!(1&r.flags)){var i,a;switch(t.parent.kind){case 260:i=e.Diagnostics.Decorator_function_return_type_0_is_not_assignable_to_type_1,a=Ed([ms(Sa(t.parent)),st]);break;case 169:case 166:i=e.Diagnostics.Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any,a=st;break;case 171:case 174:case 175:i=e.Diagnostics.Decorator_function_return_type_0_is_not_assignable_to_type_1,a=Ed([Zu(VT(t.parent)),st]);break;default:return e.Debug.fail()}Gm(r,a,t,i)}}function wx(t,n){if(t){var r=e.getFirstIdentifier(t),i=2097152|(79===t.kind?788968:1920),a=vi(r,r.escapedText,i,void 0,void 0,!0);if(a&&2097152&a.flags)if(!ka(a)||iC(Xi(a))||ea(a)){if(n&&j.isolatedModules&&e.getEmitModuleKind(j)>=e.ModuleKind.ES2015&&!ka(a)&&!e.some(a.declarations,e.isTypeOnlyImportOrExportDeclaration)){var o=Xr(t,e.Diagnostics.A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled),s=e.find(a.declarations||e.emptyArray,Pi);s&&e.addRelatedInfo(o,e.createDiagnosticForNode(s,e.Diagnostics._0_was_imported_here,e.idText(r)))}}else na(a)}}function Ox(t){var n=Rx(t);n&&e.isEntityName(n)&&wx(n,!0)}function Rx(e){if(e)switch(e.kind){case 190:case 189:return Mx(e.types);case 191:return Mx([e.trueType,e.falseType]);case 193:case 199:return Rx(e.type);case 180:return e.typeName}}function Mx(t){for(var n,r=0,i=t;r=e.ModuleKind.ES2015)||W>=e.ModuleKind.Node16&&e.getSourceFileOfNode(t).impliedNodeFormat===e.ModuleKind.CommonJS)&&n&&(rS(t,n,"require")||rS(t,n,"exports"))&&(!e.isModuleDeclaration(t)||1===e.getModuleInstanceState(t))){var r=To(t);308===r.kind&&e.isExternalOrCommonJsModule(r)&&zr("noEmit",n,e.Diagnostics.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module,e.declarationNameToString(n),e.declarationNameToString(n))}}(t,n),function(t,n){if(n&&!(H>=4)&&rS(t,n,"Promise")&&(!e.isModuleDeclaration(t)||1===e.getModuleInstanceState(t))){var r=To(t);308===r.kind&&e.isExternalOrCommonJsModule(r)&&2048&r.flags&&zr("noEmit",n,e.Diagnostics.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions,e.declarationNameToString(n),e.declarationNameToString(n))}}(t,n),function(e,t){H<=8&&(rS(e,t,"WeakMap")||rS(e,t,"WeakSet"))&&Ar.push(e)}(t,n),function(e,t){t&&H>=2&&H<=8&&rS(e,t,"Reflect")&&Nr.push(e)}(t,n),e.isClassLike(t)?(JS(n,e.Diagnostics.Class_name_cannot_be_0),16777216&t.flags||function(t){H>=1&&"Object"===t.escapedText&&(W1&&e.some(p.declarations,function(n){return n!==t&&e.isVariableLike(n)&&!pS(n,t)})&&Xr(t.name,e.Diagnostics.All_declarations_of_0_must_have_identical_modifiers,e.declarationNameToString(t.name))}else{var _=lS(Zo(t));Lo(m)||Lo(_)||Nm(m,_)||67108864&p.flags||dS(p.valueDeclaration,m,t,_),e.hasOnlyExpressionInitializer(t)&&t.initializer&&Bm(GE(t.initializer),_,t,t.initializer,void 0),p.valueDeclaration&&!pS(t,p.valueDeclaration)&&Xr(t.name,e.Diagnostics.All_declarations_of_0_must_have_identical_modifiers,e.declarationNameToString(t.name))}169!==t.kind&&168!==t.kind&&(xx(t),257!==t.kind&&205!==t.kind||function(t){if(!(3&e.getCombinedNodeFlags(t)||e.isParameterDeclaration(t))&&(257!==t.kind||t.initializer)){var n=Sa(t);if(1&n.flags){if(!e.isIdentifier(t.name))return e.Debug.fail();var r=vi(t,t.name.escapedText,3,void 0,void 0,!1);if(r&&r!==n&&2&r.flags&&3&zy(r)){var i=e.getAncestor(r.valueDeclaration,258),a=240===i.parent.kind&&i.parent.parent?i.parent.parent:void 0;if(!a||!(238===a.kind&&e.isFunctionLike(a.parent)||265===a.kind||264===a.kind||308===a.kind)){var o=ro(r);Xr(t,e.Diagnostics.Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1,o,o)}}}}}(t),cS(t,t.name))}}}}function dS(t,n,r,i){var a=e.getNameOfDeclaration(r),o=169===r.kind||168===r.kind?e.Diagnostics.Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_type_2:e.Diagnostics.Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_type_2,s=e.declarationNameToString(a),c=Xr(a,o,s,ao(n),ao(i));t&&e.addRelatedInfo(c,e.createDiagnosticForNode(t,e.Diagnostics._0_was_also_declared_here,s))}function pS(t,n){return 166===t.kind&&257===n.kind||257===t.kind&&166===n.kind||e.hasQuestionToken(t)===e.hasQuestionToken(n)&&e.getSelectedEffectiveModifierFlags(t,888)===e.getSelectedEffectiveModifierFlags(n,888)}function mS(t){null===e.tracing||void 0===e.tracing||e.tracing.push("check","checkVariableDeclaration",{kind:t.kind,pos:t.pos,end:t.end,path:t.tracingPath}),function(t){if(246!==t.parent.parent.kind&&247!==t.parent.parent.kind)if(16777216&t.flags)zC(t);else if(!t.initializer){if(e.isBindingPattern(t.name)&&!e.isBindingPattern(t.parent))return nD(t,e.Diagnostics.A_destructuring_declaration_must_have_an_initializer);if(e.isVarConst(t))return nD(t,e.Diagnostics.const_declarations_must_be_initialized)}if(t.exclamationToken&&(240!==t.parent.parent.kind||!t.type||t.initializer||16777216&t.flags)){var n=t.initializer?e.Diagnostics.Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:t.type?e.Diagnostics.A_definite_assignment_assertion_is_not_permitted_in_this_context:e.Diagnostics.Declarations_with_definite_assignment_assertions_must_also_have_type_annotations;return nD(t.exclamationToken,n)}!(W=1&&mS(t.declarations[0])}function vS(e){return bS(e.awaitModifier?15:13,Zy(e.expression),We,e.expression)}function bS(e,t,n,r){return Do(t)?t:ES(e,t,n,r,!0)||Me}function ES(t,n,r,i,a){var o=!!(2&t);if(n!==ct){var s=H>=2,c=!s&&j.downlevelIteration,l=j.noUncheckedIndexedAccess&&!!(128&t);if(s||c||o){var u=LS(n,t,s?i:void 0);if(a&&u){var d=8&t?e.Diagnostics.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_send_0:32&t?e.Diagnostics.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_always_send_0:64&t?e.Diagnostics.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring_will_always_send_0:16&t?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;d&&Gm(r,u.nextType,i,d)}if(u||s)return l?Uh(u&&u.yieldType):u&&u.yieldType}var p=n,m=!1,f=!1;if(4&t){if(1048576&p.flags){var _=n.types,h=e.filter(_,function(e){return!(402653316&e.flags)});h!==_&&(p=Ed(h,2))}else 402653316&p.flags&&(p=ct);if((f=p!==n)&&(H<1&&i&&(Xr(i,e.Diagnostics.Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher),m=!0),131072&p.flags))return l?Uh(Ye):Ye}if(!Vf(p)){if(i&&!m){var g=function(r,i){var a;return i?r?[e.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator,!0]:[e.Diagnostics.Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator,!0]:xS(t,0,n,void 0)?[e.Diagnostics.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher,!1]:function(e){switch(e){case"Float32Array":case"Float64Array":case"Int16Array":case"Int32Array":case"Int8Array":case"NodeList":case"Uint16Array":case"Uint32Array":case"Uint8Array":case"Uint8ClampedArray":return!0}return!1}(null===(a=n.symbol)||void 0===a?void 0:a.escapedName)?[e.Diagnostics.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher,!0]:r?[e.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type,!0]:[e.Diagnostics.Type_0_is_not_an_array_type,!0]}(!!(4&t)&&!f,c),y=g[0];Zr(i,g[1]&&!!Sx(p),y,ao(p))}return f?l?Uh(Ye):Ye:void 0}var v=xl(p,Qe);return f&&v?402653316&v.flags&&!j.noUncheckedIndexedAccess?Ye:Ed(l?[v,Ye,We]:[v,Ye],2):128&t?Uh(v):v}OS(i,n,o)}function xS(e,t,n,r){if(!Do(n)){var i=LS(n,e,r);return i&&i[G(t)]}}function SS(e,t,n){if(void 0===e&&(e=ct),void 0===t&&(t=ct),void 0===n&&(n=je),67359327&e.flags&&180227&t.flags&&180227&n.flags){var r=lu([e,t,n]),i=$n.get(r);return i||(i={yieldType:e,returnType:t,nextType:n},$n.set(r,i)),i}return{yieldType:e,returnType:t,nextType:n}}function TS(t){for(var n,r,i,a=0,o=t;a1)for(var m=0,f=i;mi)return!1;for(var u=0;u1)return eD(o.types[1],e.Diagnostics.Classes_can_only_extend_a_single_class);n=!0}else{if(e.Debug.assert(117===o.token),r)return eD(o,e.Diagnostics.implements_clause_already_seen);r=!0}FC(o)}})(t)||OC(t.typeParameters,n)}(t),Gx(t),cS(t,t.name),XS(e.getEffectiveTypeParameterDeclarations(t)),xx(t);var n=Sa(t),r=Vs(n),i=sc(r),a=ms(n);YS(n),Ex(n),function(t){for(var n=new e.Map,r=new e.Map,i=new e.Map,a=0,o=t.members;a>o;case 49:return a>>>o;case 47:return a<1&&!ST(r))for(var o=0,s=r;o1&&t.every(function(t){return e.isInJSFile(t)&&e.isAccessExpression(t)&&(e.isExportsIdentifier(t.expression)||e.isModuleExportsAccessExpression(t.expression))})}function TT(t){if(t){var n=u;u=t,C=0,function(t){e.forEach(t.jsDoc,function(n){var r=n.comment,i=n.tags;CT(r),e.forEach(i,function(n){CT(n.comment),e.isInJSFile(t)&&TT(n)})});var n=t.kind;if(i)switch(n){case 264:case 260:case 261:case 259:i.throwIfCancellationRequested()}switch(n>=240&&n<=256&&t.flowNode&&!Eg(t.flowNode)&&Qr(!1===j.allowUnreachableCode,t,e.Diagnostics.Unreachable_code_detected),n){case 165:return ix(t);case 166:return ax(t);case 169:return ux(t);case 168:return function(t){return e.isPrivateIdentifier(t.name)&&Xr(t,e.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies),ux(t)}(t);case 182:case 181:case 176:case 177:case 178:return sx(t);case 171:case 170:return function(t){$C(t)||BC(t.name),e.isMethodDeclaration(t)&&t.asteriskToken&&e.isIdentifier(t.name)&&"constructor"===e.idText(t.name)&&Xr(t.name,e.Diagnostics.Class_constructor_may_not_be_a_generator),Ux(t),e.hasSyntacticModifier(t,256)&&171===t.kind&&t.body&&Xr(t,e.Diagnostics.Method_0_cannot_have_an_implementation_because_it_is_marked_abstract,e.declarationNameToString(t.name)),e.isPrivateIdentifier(t.name)&&!e.getContainingClass(t)&&Xr(t,e.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies),dx(t)}(t);case 172:return function(t){kC(t),e.forEachChild(t,TT)}(t);case 173:return function(t){sx(t),function(t){var n=e.isInJSFile(t)?e.getJSDocTypeParameterDeclarations(t):void 0,r=t.typeParameters||n&&e.firstOrUndefined(n);if(r){var i=r.pos===r.end?r.pos:e.skipTrivia(e.getSourceFileOfNode(t).text,r.pos);return tD(t,i,r.end-i,e.Diagnostics.Type_parameters_cannot_appear_on_a_constructor_declaration)}}(t)||function(t){var n=t.type||e.getEffectiveReturnTypeNode(t);n&&nD(n,e.Diagnostics.Type_annotation_cannot_appear_on_a_constructor_declaration)}(t),TT(t.body);var n=Sa(t),r=e.getDeclarationOfKind(n,t.kind);function i(t){return!!e.isPrivateIdentifierClassElementDeclaration(t)||169===t.kind&&!e.isStatic(t)&&!!t.initializer}t===r&&Ex(n),e.nodeIsMissing(t.body)||h(function(){var n=t.parent;if(e.getClassExtendsHeritageElement(n)){Fg(t.parent,n);var r=Bg(n),a=Gg(t.body);if(a){r&&Xr(a,e.Diagnostics.A_constructor_cannot_contain_a_super_call_when_its_class_extends_null);var o=(99!==e.getEmitScriptTarget(j)||!$)&&(e.some(t.parent.members,i)||e.some(t.parameters,function(t){return e.hasSyntacticModifier(t,16476)}));if(o)if(function(t,n){var r=e.walkUpParenthesizedExpressions(t.parent);return e.isExpressionStatement(r)&&r.parent===n}(a,t.body)){for(var s=void 0,c=0,l=t.body.statements;c=0)B(r)&&i.parameterIndex===r.parameters.length-1?Xr(a,e.Diagnostics.A_type_predicate_cannot_reference_a_rest_parameter):i.type&&Gm(i.type,ms(r.parameters[i.parameterIndex]),t.type,void 0,function(){return e.chainDiagnosticMessages(void 0,e.Diagnostics.A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type)});else if(a){for(var o=!1,s=0,c=n.parameters;s1){var r=pi(n);if(!r.typeParametersChecked){r.typeParametersChecked=!0;var i=Us(n),a=e.getDeclarationsOfKind(n,165);if(!QS(a,[i],function(e){return[e]}))for(var o=ro(n),s=0,c=a;s0),r.length>1&&Xr(r[1],e.Diagnostics.Class_declarations_cannot_have_more_than_one_augments_or_extends_tag);var i=Bx(t.class.expression),a=e.getClassExtendsHeritageElement(n);if(a){var o=Bx(a.expression);o&&i.escapedText!==o.escapedText&&Xr(i,e.Diagnostics.JSDoc_0_1_does_not_match_the_extends_2_clause,e.idText(t.tagName),e.idText(i),e.idText(o))}}else Xr(n,e.Diagnostics.JSDoc_0_is_not_attached_to_a_class,e.idText(t.tagName))}(t);case 332:return function(t){var n=e.getEffectiveJSDocHost(t);n&&(e.isClassDeclaration(n)||e.isClassExpression(n))||Xr(n,e.Diagnostics.JSDoc_0_is_not_attached_to_a_class,e.idText(t.tagName))}(t);case 348:case 341:case 342:return function(t){t.typeExpression||Xr(t.name,e.Diagnostics.JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags),t.name&&JS(t.name,e.Diagnostics.Type_alias_name_cannot_be_0),TT(t.typeExpression),XS(e.getEffectiveTypeParameterDeclarations(t))}(t);case 347:return function(e){TT(e.constraint);for(var t=0,n=e.typeParameters;t1){var r=e.isEnumConst(t);e.forEach(n.declarations,function(t){e.isEnumDeclaration(t)&&e.isEnumConst(t)!==r&&Xr(e.getNameOfDeclaration(t),e.Diagnostics.Enum_declarations_must_all_be_const_or_non_const)})}var i=!1;e.forEach(n.declarations,function(t){if(263!==t.kind)return!1;var n=t;if(!n.members.length)return!1;var r=n.members[0];r.initializer||(i?Xr(r.name,e.Diagnostics.In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element):i=!0)})}}(t)})}(t);case 264:return function(t){t.body&&(TT(t.body),e.isGlobalScopeAugmentation(t)||Vx(t)),h(function(){var n=e.isGlobalScopeAugmentation(t),r=16777216&t.flags;n&&!r&&Xr(t.name,e.Diagnostics.Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambient_context);var i=e.isAmbientModule(t),a=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_at_the_top_level_of_a_namespace_or_module;if(!yT(t,a)){kC(t)||r||10!==t.name.kind||nD(t.name,e.Diagnostics.Only_ambient_modules_can_use_quoted_names),e.isIdentifier(t.name)&&cS(t,t.name),xx(t);var o,s,c,l,u=Sa(t);if(512&u.flags&&!r&&u.declarations&&u.declarations.length>1&&R(t,e.shouldPreserveConstEnums(j))){var d=function(t){var n=t.declarations;if(n)for(var r=0,i=n;r=e.ModuleKind.ES2015&&void 0===e.getSourceFileOfNode(t).impliedNodeFormat)||t.isTypeOnly||16777216&t.flags||nD(t,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)}(t);case 275:return function(t){if(!yT(t,e.isInJSFile(t)?e.Diagnostics.An_export_declaration_can_only_be_used_at_the_top_level_of_a_module:e.Diagnostics.An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)){if(!kC(t)&&e.hasSyntacticModifiers(t)&&eD(t,e.Diagnostics.An_export_declaration_cannot_have_modifiers),t.moduleSpecifier&&t.exportClause&&e.isNamedExports(t.exportClause)&&e.length(t.exportClause.elements)&&0===H&&AC(t,4194304),function(t){var n;t.isTypeOnly&&(276===(null===(n=t.exportClause)||void 0===n?void 0:n.kind)?oD(t.exportClause):nD(t,e.Diagnostics.Only_named_exports_may_use_export_type))}(t),!t.moduleSpecifier||pT(t))if(t.exportClause&&!e.isNamespaceExport(t.exportClause)){e.forEach(t.exportClause.elements,ET);var n=265===t.parent.kind&&e.isAmbientModule(t.parent.parent),r=!n&&265===t.parent.kind&&!t.moduleSpecifier&&16777216&t.flags;308===t.parent.kind||n||r||Xr(t,e.Diagnostics.Export_declarations_are_not_permitted_in_a_namespace)}else{var i=sa(t,t.moduleSpecifier);i&&fa(i)?Xr(t.moduleSpecifier,e.Diagnostics.Module_0_uses_export_and_cannot_be_used_with_export_Asterisk,ro(i)):t.exportClause&&mT(t.exportClause),W!==e.ModuleKind.System&&(W=e.ModuleKind.ES2015&&e.getSourceFileOfNode(t).impliedNodeFormat!==e.ModuleKind.CommonJS?nD(t,e.Diagnostics.Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead):W===e.ModuleKind.System&&nD(t,e.Diagnostics.Export_assignment_is_not_supported_when_module_flag_is_system))}else t.isExportEquals?Xr(t,e.Diagnostics.An_export_assignment_cannot_be_used_in_a_namespace):Xr(t,e.Diagnostics.A_default_export_can_only_be_used_in_an_ECMAScript_style_module)}}(t);case 239:case 256:return void iD(t);case 279:!function(e){Gx(e)}(t)}}(t),u=n}}function CT(t){e.isArray(t)&&e.forEach(t,function(t){e.isJSDocLinkLike(t)&&TT(t)})}function DT(t){e.isInJSFile(t)||nD(t,e.Diagnostics.JSDoc_types_can_only_be_used_inside_documentation_comments)}function LT(t){var n=mi(e.getSourceFileOfNode(t));1&n.flags||(n.deferredNodes||(n.deferredNodes=new e.Set),n.deferredNodes.add(t))}function AT(t){null===e.tracing||void 0===e.tracing||e.tracing.push("check","checkDeferredNode",{kind:t.kind,pos:t.pos,end:t.end,path:t.tracingPath});var n=u;switch(u=t,C=0,t.kind){case 210:case 211:case 212:case 167:case 283:Fv(t);break;case 215:case 216:case 171:case 170:!function(t){e.Debug.assert(171!==t.kind||e.isObjectLiteralMethod(t));var n=e.getFunctionFlags(t),r=Hl(t);if(fE(t,r),t.body)if(e.getEffectiveReturnTypeNode(t)||jl(Rl(t)),238===t.body.kind)TT(t.body);else{var i=rx(t.body),a=r&&HS(r,n);a&&Bm(2==(3&n)?Cx(i,!1,t.body,e.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):i,a,t.body,t.body)}}(t);break;case 174:case 175:mx(t);break;case 228:!function(t){e.forEach(t.members,TT),Vx(t)}(t);break;case 165:!function(t){if(e.isInterfaceDeclaration(t.parent)||e.isClassLike(t.parent)||e.isTypeAliasDeclaration(t.parent)){var n=Us(Sa(t)),r=Ef(n);if(r){var i=Sa(t.parent);if(!e.isTypeAliasDeclaration(t.parent)||48&e.getObjectFlags(Vs(i))){if(32768===r||65536===r){null===e.tracing||void 0===e.tracing||e.tracing.push("checkTypes","checkTypeParameterDeferred",{parent:fd(Vs(i)),id:fd(n)});var a=vf(i,n,65536===r?Ut:Bt),o=vf(i,n,65536===r?Bt:Ut),s=n;d=n,Gm(a,o,t,e.Diagnostics.Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation),d=s,null===e.tracing||void 0===e.tracing||e.tracing.pop()}}else Xr(t,e.Diagnostics.Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_types)}}}(t);break;case 282:!function(e){Wy(e)}(t);break;case 281:!function(e){Wy(e.openingElement),Ny(e.closingElement.tagName)?Oy(e.closingElement):rx(e.closingElement.tagName),Iy(e)}(t)}u=n,null===e.tracing||void 0===e.tracing||e.tracing.pop()}function NT(t,n){if(n)return!1;switch(t){case 0:return!!j.noUnusedLocals;case 1:return!!j.noUnusedParameters;default:return e.Debug.assertNever(t)}}function kT(t){return tr.get(t.path)||e.emptyArray}function IT(n,r){try{return i=r,function(n){if(n){PT();var r=Pr.getGlobalDiagnostics(),i=r.length;wT(n);var a=Pr.getDiagnostics(n.fileName),o=Pr.getGlobalDiagnostics();if(o!==r){var s=e.relativeComplement(r,o,e.compareDiagnostics);return e.concatenate(s,a)}return 0===i&&o.length>0?e.concatenate(o,a):a}return e.forEach(t.getSourceFiles(),wT),Pr.getDiagnostics()}(n)}finally{i=void 0}}function PT(){for(var e=0,t=_;e1||1===n.length&&n[0].declaration!==t}return!1}function sC(t){return!(!z||kl(t)||e.isJSDocParameterTag(t)||!t.initializer||e.hasSyntacticModifier(t,16476))}function cC(t){return z&&kl(t)&&!t.initializer&&e.hasSyntacticModifier(t,16476)}function lC(t){var n=e.getParseTreeNode(t,e.isFunctionDeclaration);if(!n)return!1;var r=Sa(n);return!!(r&&16&r.flags)&&!!e.forEachEntry(ya(r),function(t){return 111551&t.flags&&t.valueDeclaration&&e.isPropertyAccessExpression(t.valueDeclaration)})}function uC(t){var n=e.getParseTreeNode(t,e.isFunctionDeclaration);if(!n)return e.emptyArray;var r=Sa(n);return r&&Kc(ms(r))||e.emptyArray}function dC(e){var t,n=e.id||0;return n<0||n>=gr.length?0:(null===(t=gr[n])||void 0===t?void 0:t.flags)||0}function pC(e){return sT(e.parent),mi(e).enumMemberValue}function mC(e){switch(e.kind){case 302:case 208:case 209:return!0}return!1}function fC(t){if(302===t.kind)return pC(t);var n=mi(t).resolvedSymbol;if(n&&8&n.flags){var r=n.valueDeclaration;if(e.isEnumConst(r.parent))return pC(r)}}function _C(e){return!!(524288&e.flags)&&_l(e,0).length>0}function hC(t,n){var r,i,a=e.getParseTreeNode(t,e.isEntityName);if(!a)return e.TypeReferenceSerializationKind.Unknown;if(n&&!(n=e.getParseTreeNode(n)))return e.TypeReferenceSerializationKind.Unknown;var o=!1;if(e.isQualifiedName(a)){var s=aa(e.getFirstIdentifier(a),111551,!0,!0,n);o=!!(null===(r=null==s?void 0:s.declarations)||void 0===r?void 0:r.every(e.isTypeOnlyImportOrExportDeclaration))}var c=aa(a,111551,!0,!0,n),l=c&&2097152&c.flags?Xi(c):c;o||(o=!!(null===(i=null==c?void 0:c.declarations)||void 0===i?void 0:i.every(e.isTypeOnlyImportOrExportDeclaration)));var u=aa(a,788968,!0,!1,n);if(l&&l===u){var d=qu(!1);if(d&&l===d)return e.TypeReferenceSerializationKind.Promise;var p=ms(l);if(p&&Ss(p))return o?e.TypeReferenceSerializationKind.TypeWithCallSignature:e.TypeReferenceSerializationKind.TypeWithConstructSignatureAndValue}if(!u)return o?e.TypeReferenceSerializationKind.ObjectType:e.TypeReferenceSerializationKind.Unknown;var m=Vs(u);return Lo(m)?o?e.TypeReferenceSerializationKind.ObjectType:e.TypeReferenceSerializationKind.Unknown:3&m.flags?e.TypeReferenceSerializationKind.ObjectType:TE(m,245760)?e.TypeReferenceSerializationKind.VoidNullableOrNeverType:TE(m,528)?e.TypeReferenceSerializationKind.BooleanType:TE(m,296)?e.TypeReferenceSerializationKind.NumberLikeType:TE(m,2112)?e.TypeReferenceSerializationKind.BigIntLikeType:TE(m,402653316)?e.TypeReferenceSerializationKind.StringLikeType:n_(m)?e.TypeReferenceSerializationKind.ArrayLikeType:TE(m,12288)?e.TypeReferenceSerializationKind.ESSymbolType:_C(m)?e.TypeReferenceSerializationKind.TypeWithCallSignature:Mf(m)?e.TypeReferenceSerializationKind.ArrayLikeType:e.TypeReferenceSerializationKind.ObjectType}function gC(t,n,r,i,a){var o=e.getParseTreeNode(t,e.isVariableLikeOrAccessor);if(!o)return e.factory.createToken(131);var s=Sa(o),c=!s||133120&s.flags?Be:Qf(ms(s));return 8192&c.flags&&c.symbol===s&&(r|=1048576),a&&(c=p_(c)),oe.typeToTypeNode(c,n,1024|r,i)}function yC(t,n,r,i){var a=e.getParseTreeNode(t,e.isFunctionLike);if(!a)return e.factory.createToken(131);var o=Rl(a);return oe.typeToTypeNode(jl(o),n,1024|r,i)}function vC(t,n,r,i){var a=e.getParseTreeNode(t,e.isExpression);if(!a)return e.factory.createToken(131);var o=N_(jT(a));return oe.typeToTypeNode(o,n,1024|r,i)}function bC(t){return se.has(e.escapeLeadingUnderscores(t))}function EC(t,n){var r=mi(t).resolvedSymbol;if(r)return r;var i=t;if(n){var a=t.parent;e.isDeclaration(a)&&t===a.name&&(i=To(a))}return vi(i,t.escapedText,3257279,void 0,void 0,!0)}function xC(t){if(!e.isGeneratedIdentifier(t)){var n=e.getParseTreeNode(t,e.isIdentifier);if(n){var r=EC(n);if(r)return Na(r).valueDeclaration}}}function SC(t){return!!(e.isDeclarationReadonly(t)||e.isVariableDeclaration(t)&&e.isVarConst(t))&&Bp(ms(Sa(t)))}function TC(t,n){return function(t,n,r){var i=1024&t.flags?oe.symbolToExpression(t.symbol,111551,n,void 0,r):t===nt?e.factory.createTrue():t===et&&e.factory.createFalse();if(i)return i;var a=t.value;return"object"==typeof a?e.factory.createBigIntLiteral(a):"number"==typeof a?e.factory.createNumericLiteral(a):e.factory.createStringLiteral(a)}(ms(Sa(t)),t,n)}function CC(t){return t?(Wr(t),e.getSourceFileOfNode(t).localJsxFactory||Bn):Bn}function DC(t){if(t){var n=e.getSourceFileOfNode(t);if(n){if(n.localJsxFragmentFactory)return n.localJsxFragmentFactory;var r=n.pragmas.get("jsxfrag"),i=e.isArray(r)?r[0]:r;if(i)return n.localJsxFragmentFactory=e.parseIsolatedEntityName(i.arguments.factory,H),n.localJsxFragmentFactory}}if(j.jsxFragmentFactory)return e.parseIsolatedEntityName(j.jsxFragmentFactory,H)}function LC(t){var n=264===t.kind?e.tryCast(t.name,e.isStringLiteral):e.getExternalModuleName(t),r=ca(n,n,void 0);if(r)return e.getDeclarationOfKind(r,308)}function AC(t,n){if((o&n)!==n&&j.importHelpers){var r=e.getSourceFileOfNode(t);if(e.isEffectiveExternalModule(r,j)&&!(16777216&t.flags)){var i=(d=r,p=t,s||(s=la(d,e.externalHelpersModuleNameText,e.Diagnostics.This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found,p)||Pe),s);if(i!==Pe)for(var a=n&~o,c=1;c<=4194304;c<<=1)if(a&c){var l=NC(c),u=_i(i.exports,e.escapeLeadingUnderscores(l),111551);u?524288&c?e.some(Gl(u),function(e){return Jb(e)>3})||Xr(t,e.Diagnostics.This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0,e.externalHelpersModuleNameText,l,4):1048576&c?e.some(Gl(u),function(e){return Jb(e)>4})||Xr(t,e.Diagnostics.This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0,e.externalHelpersModuleNameText,l,5):1024&c&&(e.some(Gl(u),function(e){return Jb(e)>2})||Xr(t,e.Diagnostics.This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0,e.externalHelpersModuleNameText,l,3)):Xr(t,e.Diagnostics.This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_version_of_0,e.externalHelpersModuleNameText,l)}o|=n}}var d,p}function NC(t){switch(t){case 1:return"__extends";case 2:return"__assign";case 4:return"__rest";case 8:return"__decorate";case 16:return"__metadata";case 32:return"__param";case 64:return"__awaiter";case 128:return"__generator";case 256:return"__values";case 512:return"__read";case 1024:return"__spreadArray";case 2048:return"__await";case 4096:return"__asyncGenerator";case 8192:return"__asyncDelegator";case 16384:return"__asyncValues";case 32768:return"__exportStar";case 65536:return"__importStar";case 131072:return"__importDefault";case 262144:return"__makeTemplateObject";case 524288:return"__classPrivateFieldGet";case 1048576:return"__classPrivateFieldSet";case 2097152:return"__classPrivateFieldIn";case 4194304:return"__createBinding";default:return e.Debug.fail("Unrecognized helper")}}function kC(t){return function(t){if(e.canHaveIllegalDecorators(t)&&e.some(t.illegalDecorators))return eD(t,e.Diagnostics.Decorators_are_not_valid_here);if(!e.canHaveDecorators(t)||!e.hasDecorators(t))return!1;if(!e.nodeCanBeDecorated(t,t.parent,t.parent.parent))return 171!==t.kind||e.nodeIsPresent(t.body)?eD(t,e.Diagnostics.Decorators_are_not_valid_here):eD(t,e.Diagnostics.A_decorator_can_only_decorate_a_method_implementation_not_an_overload);if(174===t.kind||175===t.kind){var n=e.getAllAccessorDeclarations(t.parent.members,t);if(e.hasDecorators(n.firstAccessor)&&t===n.secondAccessor)return eD(t,e.Diagnostics.Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name)}return!1}(t)||IC(t)}function IC(t){var n,r,i,a,o=function(t){return!!t.modifiers&&(function(t){switch(t.kind){case 174:case 175:case 173:case 169:case 168:case 171:case 170:case 178:case 264:case 269:case 268:case 275:case 274:case 215:case 216:case 166:case 165:return!1;case 172:case 299:case 300:case 267:case 181:case 279:return!0;default:if(265===t.parent.kind||308===t.parent.kind)return!1;switch(t.kind){case 259:return PC(t,132);case 260:case 182:return PC(t,126);case 228:case 261:case 240:case 262:return!0;case 263:return PC(t,85);default:e.Debug.assertNever(t)}}}(t)?eD(t,e.Diagnostics.Modifiers_cannot_appear_here):void 0)}(t);if(void 0!==o)return o;for(var s=0,c=0,l=t.modifiers;c1||t.typeParameters.hasTrailingComma||t.typeParameters[0].constraint)&&n&&e.fileExtensionIsOneOf(n.fileName,[".mts",".cts"])&&nD(t.typeParameters[0],e.Diagnostics.This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_constraint);var r=t.equalsGreaterThanToken;return e.getLineAndCharacterOfPosition(n,r.pos).line!==e.getLineAndCharacterOfPosition(n,r.end).line&&nD(r,e.Diagnostics.Line_terminator_not_permitted_before_arrow)}(t,r)||e.isFunctionLikeDeclaration(t)&&function(t){if(H>=3){var r=t.body&&e.isBlock(t.body)&&e.findUseStrictPrologue(t.body.statements);if(r){var i=(o=t.parameters,e.filter(o,function(t){return!!t.initializer||e.isBindingPattern(t.name)||e.isRestParameter(t)}));if(e.length(i)){e.forEach(i,function(t){e.addRelatedInfo(Xr(t,e.Diagnostics.This_parameter_is_not_allowed_with_use_strict_directive),e.createDiagnosticForNode(r,e.Diagnostics.use_strict_directive_used_here))});var a=i.map(function(t,n){return 0===n?e.createDiagnosticForNode(t,e.Diagnostics.Non_simple_parameter_declared_here):e.createDiagnosticForNode(t,e.Diagnostics.and_here)});return e.addRelatedInfo.apply(void 0,n([Xr(r,e.Diagnostics.use_strict_directive_cannot_be_used_with_non_simple_parameter_list)],a,!1)),!0}}}var o;return!1}(t)}function MC(t,n){return wC(n)||function(t,n){if(n&&0===n.length){var r=e.getSourceFileOfNode(t),i=n.pos-1;return tD(r,i,e.skipTrivia(r.text,n.end)+1-i,e.Diagnostics.Type_argument_list_cannot_be_empty)}return!1}(t,n)}function FC(t){var n=t.types;if(wC(n))return!0;if(n&&0===n.length){var r=e.tokenToString(t.token);return tD(t,n.pos,0,e.Diagnostics._0_list_cannot_be_empty,r)}return e.some(n,GC)}function GC(t){return e.isExpressionWithTypeArguments(t)&&e.isImportKeyword(t.expression)&&t.typeArguments?nD(t,e.Diagnostics.This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments):MC(t,t.typeArguments)}function BC(t){if(164!==t.kind)return!1;var n=t;return 223===n.expression.kind&&27===n.expression.operatorToken.kind&&nD(n.expression,e.Diagnostics.A_comma_expression_is_not_allowed_in_a_computed_property_name)}function UC(t){if(t.asteriskToken){if(e.Debug.assert(259===t.kind||215===t.kind||171===t.kind),16777216&t.flags)return nD(t.asteriskToken,e.Diagnostics.Generators_are_not_allowed_in_an_ambient_context);if(!t.body)return nD(t.asteriskToken,e.Diagnostics.An_overload_signature_cannot_be_declared_as_a_generator)}}function VC(e,t){return!!e&&nD(e,t)}function KC(e,t){return!!e&&nD(e,t)}function jC(t){if(iD(t))return!0;if(247===t.kind&&t.awaitModifier&&!(32768&t.flags)){var n=e.getSourceFileOfNode(t);if(e.isInTopLevelContext(t)){if(!ZC(n))switch(e.isEffectiveExternalModule(n,j)||Pr.add(e.createDiagnosticForNode(t.awaitModifier,e.Diagnostics.for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module)),W){case e.ModuleKind.Node16:case e.ModuleKind.NodeNext:if(n.impliedNodeFormat===e.ModuleKind.CommonJS){Pr.add(e.createDiagnosticForNode(t.awaitModifier,e.Diagnostics.The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level));break}case e.ModuleKind.ES2022:case e.ModuleKind.ESNext:case e.ModuleKind.System:if(H>=4)break;default:Pr.add(e.createDiagnosticForNode(t.awaitModifier,e.Diagnostics.Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher))}}else if(!ZC(n)){var r=e.createDiagnosticForNode(t.awaitModifier,e.Diagnostics.for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules),i=e.getContainingFunction(t);if(i&&173!==i.kind){e.Debug.assert(!(2&e.getFunctionFlags(i)),"Enclosing function should never be an async function.");var a=e.createDiagnosticForNode(i,e.Diagnostics.Did_you_mean_to_mark_this_function_as_async);e.addRelatedInfo(r,a)}return Pr.add(r),!0}return!1}if(e.isForOfStatement(t)&&!(32768&t.flags)&&e.isIdentifier(t.initializer)&&"async"===t.initializer.escapedText)return nD(t.initializer,e.Diagnostics.The_left_hand_side_of_a_for_of_statement_may_not_be_async),!1;if(258===t.initializer.kind){var o=t.initializer;if(!YC(o)){var s=o.declarations;if(!s.length)return!1;if(s.length>1)return r=246===t.kind?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,eD(o.declarations[1],r);var c=s[0];if(c.initializer){r=246===t.kind?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 nD(c.name,r)}if(c.type)return nD(c,r=246===t.kind?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!1}function HC(t){if(t.parameters.length===(174===t.kind?1:2))return e.getThisParameter(t)}function WC(t,n){if(function(t){return e.isDynamicName(t)&&!Qs(t)}(t))return nD(t,n)}function $C(t){if(RC(t))return!0;if(171===t.kind){if(207===t.parent.kind){if(t.modifiers&&(1!==t.modifiers.length||132!==e.first(t.modifiers).kind))return eD(t,e.Diagnostics.Modifiers_cannot_appear_here);if(VC(t.questionToken,e.Diagnostics.An_object_member_cannot_be_declared_optional))return!0;if(KC(t.exclamationToken,e.Diagnostics.A_definite_assignment_assertion_is_not_permitted_in_this_context))return!0;if(void 0===t.body)return tD(t,t.end-1,1,e.Diagnostics._0_expected,"{")}if(UC(t))return!0}if(e.isClassLike(t.parent)){if(H<2&&e.isPrivateIdentifier(t.name))return nD(t.name,e.Diagnostics.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(16777216&t.flags)return WC(t.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(171===t.kind&&!t.body)return WC(t.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(261===t.parent.kind)return WC(t.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(184===t.parent.kind)return WC(t.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 qC(t){return e.isStringOrNumericLiteralLike(t)||221===t.kind&&40===t.operator&&8===t.operand.kind}function zC(t){var n,r=t.initializer;if(r){var i=!(qC(r)||function(t){if((e.isPropertyAccessExpression(t)||e.isElementAccessExpression(t)&&qC(t.argumentExpression))&&e.isEntityNameExpression(t.expression))return!!(1024&GE(t).flags)}(r)||110===r.kind||95===r.kind||(n=r,9===n.kind||221===n.kind&&40===n.operator&&9===n.operand.kind));if(!(e.isDeclarationReadonly(t)||e.isVariableDeclaration(t)&&e.isVarConst(t))||t.type)return nD(r,e.Diagnostics.Initializers_are_not_allowed_in_ambient_contexts);if(i)return nD(r,e.Diagnostics.A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference)}}function JC(t){if(79===t.kind){if("__esModule"===e.idText(t))return a=t,o=e.Diagnostics.Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules,!ZC(e.getSourceFileOfNode(a))&&(zr("noEmit",a,o,void 0,void 0,void 0),!0)}else for(var n=0,r=t.elements;n0}function eD(t,n,r,i,a){var o=e.getSourceFileOfNode(t);if(!ZC(o)){var s=e.getSpanOfTokenAtPosition(o,t.pos);return Pr.add(e.createFileDiagnostic(o,s.start,s.length,n,r,i,a)),!0}return!1}function tD(t,n,r,i,a,o,s){var c=e.getSourceFileOfNode(t);return!ZC(c)&&(Pr.add(e.createFileDiagnostic(c,n,r,i,a,o,s)),!0)}function nD(t,n,r,i,a){return!ZC(e.getSourceFileOfNode(t))&&(Pr.add(e.createDiagnosticForNode(t,n,r,i,a)),!0)}function rD(t){return 261!==t.kind&&262!==t.kind&&269!==t.kind&&268!==t.kind&&275!==t.kind&&274!==t.kind&&267!==t.kind&&!e.hasSyntacticModifier(t,1027)&&eD(t,e.Diagnostics.Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier)}function iD(t){if(16777216&t.flags){if(!mi(t).hasReportedStatementInAmbientContext&&(e.isFunctionLike(t.parent)||e.isAccessor(t.parent)))return mi(t).hasReportedStatementInAmbientContext=eD(t,e.Diagnostics.An_implementation_cannot_be_declared_in_ambient_contexts);if(238===t.parent.kind||265===t.parent.kind||308===t.parent.kind){var n=mi(t.parent);if(!n.hasReportedStatementInAmbientContext)return n.hasReportedStatementInAmbientContext=eD(t,e.Diagnostics.Statements_are_not_allowed_in_ambient_contexts)}}return!1}function aD(t){if(32&t.numericLiteralFlags){var n=void 0;if(H>=1?n=e.Diagnostics.Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0:e.isChildOfNodeWithKind(t,198)?n=e.Diagnostics.Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0:e.isChildOfNodeWithKind(t,302)&&(n=e.Diagnostics.Octal_literals_are_not_allowed_in_enums_members_initializer_Use_the_syntax_0),n){var r=e.isPrefixUnaryExpression(t.parent)&&40===t.parent.operator,i=(r?"-":"")+"0o"+t.text;return nD(r?t.parent:t,n,i)}}return function(t){var n=-1!==e.getTextOfNode(t).indexOf("."),r=16&t.numericLiteralFlags;n||r||(+t.text<=Math.pow(2,53)-1||Yr(!1,e.createDiagnosticForNode(t,e.Diagnostics.Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers)))}(t),!1}function oD(t){return!!e.forEach(t.elements,function(t){if(t.isTypeOnly)return eD(t,273===t.kind?e.Diagnostics.The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement:e.Diagnostics.The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement)})}function sD(t,n,r,i){if(1048576&n.flags&&2621440&t.flags){var a=Ah(n,t);if(a)return a;var o=Kc(t);if(o){var s=Ch(o,n);if(s)return ff(n,e.map(s,function(e){return[function(){return ms(e)},e.escapedName]}),r,void 0,i)}}}},function(e){e.JSX="JSX",e.IntrinsicElements="IntrinsicElements",e.ElementClass="ElementClass",e.ElementAttributesPropertyNameContainer="ElementAttributesProperty",e.ElementChildrenAttributeNameContainer="ElementChildrenAttribute",e.Element="Element",e.IntrinsicAttributes="IntrinsicAttributes",e.IntrinsicClassAttributes="IntrinsicClassAttributes",e.LibraryManagedAttributes="LibraryManagedAttributes"}(N||(N={})),e.signatureHasRestParameter=B,e.signatureHasLiteralTypes=U}(c||(c={})),function(e){var t;function n(t,n,r,i){if(void 0===t||void 0===n)return t;var a,o=n(t);return o===t?t:void 0!==o?(a=e.isArray(o)?(i||d)(o):o,e.Debug.assertNode(a,r),a):void 0}function r(t,n,r,a,o){if(void 0===t||void 0===n)return t;var s,c=t.length;(void 0===a||a<0)&&(a=0),(void 0===o||o>c-a)&&(o=c-a);var l=-1,u=-1;a>0||o0||a=2&&(o=function(t,n){for(var r,i=0;io-r)&&(a=o-r),i(e,t,n,r,a)},e.visitLexicalEnvironment=a,e.visitParameterList=o,e.visitFunctionBody=c,e.visitIterationBody=l,e.visitEachChild=function(e,t,i,a,o,s){if(void 0===a&&(a=r),void 0===s&&(s=n),void 0!==e){var c=u[e.kind];return void 0===c?e:c(e,t,i,a,s,o)}};var u=((t={})[79]=function(t,n,r,i,a,o){return r.factory.updateIdentifier(t,i(t.typeArguments,n,e.isTypeNodeOrTypeParameterDeclaration))},t[163]=function(t,n,r,i,a,o){return r.factory.updateQualifiedName(t,a(t.left,n,e.isEntityName),a(t.right,n,e.isIdentifier))},t[164]=function(t,n,r,i,a,o){return r.factory.updateComputedPropertyName(t,a(t.expression,n,e.isExpression))},t[165]=function(t,n,r,i,a,o){return r.factory.updateTypeParameterDeclaration(t,i(t.modifiers,n,e.isModifier),a(t.name,n,e.isIdentifier),a(t.constraint,n,e.isTypeNode),a(t.default,n,e.isTypeNode))},t[166]=function(t,n,r,i,a,o){return r.factory.updateParameterDeclaration(t,i(t.modifiers,n,e.isModifierLike),a(t.dotDotDotToken,o,e.isDotDotDotToken),a(t.name,n,e.isBindingName),a(t.questionToken,o,e.isQuestionToken),a(t.type,n,e.isTypeNode),a(t.initializer,n,e.isExpression))},t[167]=function(t,n,r,i,a,o){return r.factory.updateDecorator(t,a(t.expression,n,e.isExpression))},t[168]=function(t,n,r,i,a,o){return r.factory.updatePropertySignature(t,i(t.modifiers,n,e.isModifier),a(t.name,n,e.isPropertyName),a(t.questionToken,o,e.isToken),a(t.type,n,e.isTypeNode))},t[169]=function(t,n,r,i,a,o){var s;return r.factory.updatePropertyDeclaration(t,i(t.modifiers,n,e.isModifierLike),a(t.name,n,e.isPropertyName),a(null!==(s=t.questionToken)&&void 0!==s?s:t.exclamationToken,o,e.isQuestionOrExclamationToken),a(t.type,n,e.isTypeNode),a(t.initializer,n,e.isExpression))},t[170]=function(t,n,r,i,a,o){return r.factory.updateMethodSignature(t,i(t.modifiers,n,e.isModifier),a(t.name,n,e.isPropertyName),a(t.questionToken,o,e.isQuestionToken),i(t.typeParameters,n,e.isTypeParameterDeclaration),i(t.parameters,n,e.isParameterDeclaration),a(t.type,n,e.isTypeNode))},t[171]=function(t,n,r,i,a,s){return r.factory.updateMethodDeclaration(t,i(t.modifiers,n,e.isModifierLike),a(t.asteriskToken,s,e.isAsteriskToken),a(t.name,n,e.isPropertyName),a(t.questionToken,s,e.isQuestionToken),i(t.typeParameters,n,e.isTypeParameterDeclaration),o(t.parameters,n,r,i),a(t.type,n,e.isTypeNode),c(t.body,n,r,a))},t[173]=function(t,n,r,i,a,s){return r.factory.updateConstructorDeclaration(t,i(t.modifiers,n,e.isModifier),o(t.parameters,n,r,i),c(t.body,n,r,a))},t[174]=function(t,n,r,i,a,s){return r.factory.updateGetAccessorDeclaration(t,i(t.modifiers,n,e.isModifierLike),a(t.name,n,e.isPropertyName),o(t.parameters,n,r,i),a(t.type,n,e.isTypeNode),c(t.body,n,r,a))},t[175]=function(t,n,r,i,a,s){return r.factory.updateSetAccessorDeclaration(t,i(t.modifiers,n,e.isModifierLike),a(t.name,n,e.isPropertyName),o(t.parameters,n,r,i),c(t.body,n,r,a))},t[172]=function(e,t,n,r,i,a){return n.startLexicalEnvironment(),n.suspendLexicalEnvironment(),n.factory.updateClassStaticBlockDeclaration(e,c(e.body,t,n,i))},t[176]=function(t,n,r,i,a,o){return r.factory.updateCallSignature(t,i(t.typeParameters,n,e.isTypeParameterDeclaration),i(t.parameters,n,e.isParameterDeclaration),a(t.type,n,e.isTypeNode))},t[177]=function(t,n,r,i,a,o){return r.factory.updateConstructSignature(t,i(t.typeParameters,n,e.isTypeParameterDeclaration),i(t.parameters,n,e.isParameterDeclaration),a(t.type,n,e.isTypeNode))},t[178]=function(t,n,r,i,a,o){return r.factory.updateIndexSignature(t,i(t.modifiers,n,e.isModifier),i(t.parameters,n,e.isParameterDeclaration),a(t.type,n,e.isTypeNode))},t[179]=function(t,n,r,i,a,o){return r.factory.updateTypePredicateNode(t,a(t.assertsModifier,n,e.isAssertsKeyword),a(t.parameterName,n,e.isIdentifierOrThisTypeNode),a(t.type,n,e.isTypeNode))},t[180]=function(t,n,r,i,a,o){return r.factory.updateTypeReferenceNode(t,a(t.typeName,n,e.isEntityName),i(t.typeArguments,n,e.isTypeNode))},t[181]=function(t,n,r,i,a,o){return r.factory.updateFunctionTypeNode(t,i(t.typeParameters,n,e.isTypeParameterDeclaration),i(t.parameters,n,e.isParameterDeclaration),a(t.type,n,e.isTypeNode))},t[182]=function(t,n,r,i,a,o){return r.factory.updateConstructorTypeNode(t,i(t.modifiers,n,e.isModifier),i(t.typeParameters,n,e.isTypeParameterDeclaration),i(t.parameters,n,e.isParameterDeclaration),a(t.type,n,e.isTypeNode))},t[183]=function(t,n,r,i,a,o){return r.factory.updateTypeQueryNode(t,a(t.exprName,n,e.isEntityName),i(t.typeArguments,n,e.isTypeNode))},t[184]=function(t,n,r,i,a,o){return r.factory.updateTypeLiteralNode(t,i(t.members,n,e.isTypeElement))},t[185]=function(t,n,r,i,a,o){return r.factory.updateArrayTypeNode(t,a(t.elementType,n,e.isTypeNode))},t[186]=function(t,n,r,i,a,o){return r.factory.updateTupleTypeNode(t,i(t.elements,n,e.isTypeNode))},t[187]=function(t,n,r,i,a,o){return r.factory.updateOptionalTypeNode(t,a(t.type,n,e.isTypeNode))},t[188]=function(t,n,r,i,a,o){return r.factory.updateRestTypeNode(t,a(t.type,n,e.isTypeNode))},t[189]=function(t,n,r,i,a,o){return r.factory.updateUnionTypeNode(t,i(t.types,n,e.isTypeNode))},t[190]=function(t,n,r,i,a,o){return r.factory.updateIntersectionTypeNode(t,i(t.types,n,e.isTypeNode))},t[191]=function(t,n,r,i,a,o){return r.factory.updateConditionalTypeNode(t,a(t.checkType,n,e.isTypeNode),a(t.extendsType,n,e.isTypeNode),a(t.trueType,n,e.isTypeNode),a(t.falseType,n,e.isTypeNode))},t[192]=function(t,n,r,i,a,o){return r.factory.updateInferTypeNode(t,a(t.typeParameter,n,e.isTypeParameterDeclaration))},t[202]=function(t,n,r,i,a,o){return r.factory.updateImportTypeNode(t,a(t.argument,n,e.isTypeNode),a(t.assertions,n,e.isImportTypeAssertionContainer),a(t.qualifier,n,e.isEntityName),i(t.typeArguments,n,e.isTypeNode),t.isTypeOf)},t[298]=function(t,n,r,i,a,o){return r.factory.updateImportTypeAssertionContainer(t,a(t.assertClause,n,e.isAssertClause),t.multiLine)},t[199]=function(t,n,r,i,a,o){return r.factory.updateNamedTupleMember(t,a(t.dotDotDotToken,o,e.isDotDotDotToken),a(t.name,n,e.isIdentifier),a(t.questionToken,o,e.isQuestionToken),a(t.type,n,e.isTypeNode))},t[193]=function(t,n,r,i,a,o){return r.factory.updateParenthesizedType(t,a(t.type,n,e.isTypeNode))},t[195]=function(t,n,r,i,a,o){return r.factory.updateTypeOperatorNode(t,a(t.type,n,e.isTypeNode))},t[196]=function(t,n,r,i,a,o){return r.factory.updateIndexedAccessTypeNode(t,a(t.objectType,n,e.isTypeNode),a(t.indexType,n,e.isTypeNode))},t[197]=function(t,n,r,i,a,o){return r.factory.updateMappedTypeNode(t,a(t.readonlyToken,o,e.isReadonlyKeywordOrPlusOrMinusToken),a(t.typeParameter,n,e.isTypeParameterDeclaration),a(t.nameType,n,e.isTypeNode),a(t.questionToken,o,e.isQuestionOrPlusOrMinusToken),a(t.type,n,e.isTypeNode),i(t.members,n,e.isTypeElement))},t[198]=function(t,n,r,i,a,o){return r.factory.updateLiteralTypeNode(t,a(t.literal,n,e.isExpression))},t[200]=function(t,n,r,i,a,o){return r.factory.updateTemplateLiteralType(t,a(t.head,n,e.isTemplateHead),i(t.templateSpans,n,e.isTemplateLiteralTypeSpan))},t[201]=function(t,n,r,i,a,o){return r.factory.updateTemplateLiteralTypeSpan(t,a(t.type,n,e.isTypeNode),a(t.literal,n,e.isTemplateMiddleOrTemplateTail))},t[203]=function(t,n,r,i,a,o){return r.factory.updateObjectBindingPattern(t,i(t.elements,n,e.isBindingElement))},t[204]=function(t,n,r,i,a,o){return r.factory.updateArrayBindingPattern(t,i(t.elements,n,e.isArrayBindingElement))},t[205]=function(t,n,r,i,a,o){return r.factory.updateBindingElement(t,a(t.dotDotDotToken,o,e.isDotDotDotToken),a(t.propertyName,n,e.isPropertyName),a(t.name,n,e.isBindingName),a(t.initializer,n,e.isExpression))},t[206]=function(t,n,r,i,a,o){return r.factory.updateArrayLiteralExpression(t,i(t.elements,n,e.isExpression))},t[207]=function(t,n,r,i,a,o){return r.factory.updateObjectLiteralExpression(t,i(t.properties,n,e.isObjectLiteralElementLike))},t[208]=function(t,n,r,i,a,o){return e.isPropertyAccessChain(t)?r.factory.updatePropertyAccessChain(t,a(t.expression,n,e.isExpression),a(t.questionDotToken,o,e.isQuestionDotToken),a(t.name,n,e.isMemberName)):r.factory.updatePropertyAccessExpression(t,a(t.expression,n,e.isExpression),a(t.name,n,e.isMemberName))},t[209]=function(t,n,r,i,a,o){return e.isElementAccessChain(t)?r.factory.updateElementAccessChain(t,a(t.expression,n,e.isExpression),a(t.questionDotToken,o,e.isQuestionDotToken),a(t.argumentExpression,n,e.isExpression)):r.factory.updateElementAccessExpression(t,a(t.expression,n,e.isExpression),a(t.argumentExpression,n,e.isExpression))},t[210]=function(t,n,r,i,a,o){return e.isCallChain(t)?r.factory.updateCallChain(t,a(t.expression,n,e.isExpression),a(t.questionDotToken,o,e.isQuestionDotToken),i(t.typeArguments,n,e.isTypeNode),i(t.arguments,n,e.isExpression)):r.factory.updateCallExpression(t,a(t.expression,n,e.isExpression),i(t.typeArguments,n,e.isTypeNode),i(t.arguments,n,e.isExpression))},t[211]=function(t,n,r,i,a,o){return r.factory.updateNewExpression(t,a(t.expression,n,e.isExpression),i(t.typeArguments,n,e.isTypeNode),i(t.arguments,n,e.isExpression))},t[212]=function(t,n,r,i,a,o){return r.factory.updateTaggedTemplateExpression(t,a(t.tag,n,e.isExpression),i(t.typeArguments,n,e.isTypeNode),a(t.template,n,e.isTemplateLiteral))},t[213]=function(t,n,r,i,a,o){return r.factory.updateTypeAssertion(t,a(t.type,n,e.isTypeNode),a(t.expression,n,e.isExpression))},t[214]=function(t,n,r,i,a,o){return r.factory.updateParenthesizedExpression(t,a(t.expression,n,e.isExpression))},t[215]=function(t,n,r,i,a,s){return r.factory.updateFunctionExpression(t,i(t.modifiers,n,e.isModifier),a(t.asteriskToken,s,e.isAsteriskToken),a(t.name,n,e.isIdentifier),i(t.typeParameters,n,e.isTypeParameterDeclaration),o(t.parameters,n,r,i),a(t.type,n,e.isTypeNode),c(t.body,n,r,a))},t[216]=function(t,n,r,i,a,s){return r.factory.updateArrowFunction(t,i(t.modifiers,n,e.isModifier),i(t.typeParameters,n,e.isTypeParameterDeclaration),o(t.parameters,n,r,i),a(t.type,n,e.isTypeNode),a(t.equalsGreaterThanToken,s,e.isEqualsGreaterThanToken),c(t.body,n,r,a))},t[217]=function(t,n,r,i,a,o){return r.factory.updateDeleteExpression(t,a(t.expression,n,e.isExpression))},t[218]=function(t,n,r,i,a,o){return r.factory.updateTypeOfExpression(t,a(t.expression,n,e.isExpression))},t[219]=function(t,n,r,i,a,o){return r.factory.updateVoidExpression(t,a(t.expression,n,e.isExpression))},t[220]=function(t,n,r,i,a,o){return r.factory.updateAwaitExpression(t,a(t.expression,n,e.isExpression))},t[221]=function(t,n,r,i,a,o){return r.factory.updatePrefixUnaryExpression(t,a(t.operand,n,e.isExpression))},t[222]=function(t,n,r,i,a,o){return r.factory.updatePostfixUnaryExpression(t,a(t.operand,n,e.isExpression))},t[223]=function(t,n,r,i,a,o){return r.factory.updateBinaryExpression(t,a(t.left,n,e.isExpression),a(t.operatorToken,o,e.isBinaryOperatorToken),a(t.right,n,e.isExpression))},t[224]=function(t,n,r,i,a,o){return r.factory.updateConditionalExpression(t,a(t.condition,n,e.isExpression),a(t.questionToken,o,e.isQuestionToken),a(t.whenTrue,n,e.isExpression),a(t.colonToken,o,e.isColonToken),a(t.whenFalse,n,e.isExpression))},t[225]=function(t,n,r,i,a,o){return r.factory.updateTemplateExpression(t,a(t.head,n,e.isTemplateHead),i(t.templateSpans,n,e.isTemplateSpan))},t[226]=function(t,n,r,i,a,o){return r.factory.updateYieldExpression(t,a(t.asteriskToken,o,e.isAsteriskToken),a(t.expression,n,e.isExpression))},t[227]=function(t,n,r,i,a,o){return r.factory.updateSpreadElement(t,a(t.expression,n,e.isExpression))},t[228]=function(t,n,r,i,a,o){return r.factory.updateClassExpression(t,i(t.modifiers,n,e.isModifierLike),a(t.name,n,e.isIdentifier),i(t.typeParameters,n,e.isTypeParameterDeclaration),i(t.heritageClauses,n,e.isHeritageClause),i(t.members,n,e.isClassElement))},t[230]=function(t,n,r,i,a,o){return r.factory.updateExpressionWithTypeArguments(t,a(t.expression,n,e.isExpression),i(t.typeArguments,n,e.isTypeNode))},t[231]=function(t,n,r,i,a,o){return r.factory.updateAsExpression(t,a(t.expression,n,e.isExpression),a(t.type,n,e.isTypeNode))},t[235]=function(t,n,r,i,a,o){return r.factory.updateSatisfiesExpression(t,a(t.expression,n,e.isExpression),a(t.type,n,e.isTypeNode))},t[232]=function(t,n,r,i,a,o){return e.isOptionalChain(t)?r.factory.updateNonNullChain(t,a(t.expression,n,e.isExpression)):r.factory.updateNonNullExpression(t,a(t.expression,n,e.isExpression))},t[233]=function(t,n,r,i,a,o){return r.factory.updateMetaProperty(t,a(t.name,n,e.isIdentifier))},t[236]=function(t,n,r,i,a,o){return r.factory.updateTemplateSpan(t,a(t.expression,n,e.isExpression),a(t.literal,n,e.isTemplateMiddleOrTemplateTail))},t[238]=function(t,n,r,i,a,o){return r.factory.updateBlock(t,i(t.statements,n,e.isStatement))},t[240]=function(t,n,r,i,a,o){return r.factory.updateVariableStatement(t,i(t.modifiers,n,e.isModifier),a(t.declarationList,n,e.isVariableDeclarationList))},t[241]=function(t,n,r,i,a,o){return r.factory.updateExpressionStatement(t,a(t.expression,n,e.isExpression))},t[242]=function(t,n,r,i,a,o){return r.factory.updateIfStatement(t,a(t.expression,n,e.isExpression),a(t.thenStatement,n,e.isStatement,r.factory.liftToBlock),a(t.elseStatement,n,e.isStatement,r.factory.liftToBlock))},t[243]=function(t,n,r,i,a,o){return r.factory.updateDoStatement(t,l(t.statement,n,r,a),a(t.expression,n,e.isExpression))},t[244]=function(t,n,r,i,a,o){return r.factory.updateWhileStatement(t,a(t.expression,n,e.isExpression),l(t.statement,n,r,a))},t[245]=function(t,n,r,i,a,o){return r.factory.updateForStatement(t,a(t.initializer,n,e.isForInitializer),a(t.condition,n,e.isExpression),a(t.incrementor,n,e.isExpression),l(t.statement,n,r,a))},t[246]=function(t,n,r,i,a,o){return r.factory.updateForInStatement(t,a(t.initializer,n,e.isForInitializer),a(t.expression,n,e.isExpression),l(t.statement,n,r,a))},t[247]=function(t,n,r,i,a,o){return r.factory.updateForOfStatement(t,a(t.awaitModifier,o,e.isAwaitKeyword),a(t.initializer,n,e.isForInitializer),a(t.expression,n,e.isExpression),l(t.statement,n,r,a))},t[248]=function(t,n,r,i,a,o){return r.factory.updateContinueStatement(t,a(t.label,n,e.isIdentifier))},t[249]=function(t,n,r,i,a,o){return r.factory.updateBreakStatement(t,a(t.label,n,e.isIdentifier))},t[250]=function(t,n,r,i,a,o){return r.factory.updateReturnStatement(t,a(t.expression,n,e.isExpression))},t[251]=function(t,n,r,i,a,o){return r.factory.updateWithStatement(t,a(t.expression,n,e.isExpression),a(t.statement,n,e.isStatement,r.factory.liftToBlock))},t[252]=function(t,n,r,i,a,o){return r.factory.updateSwitchStatement(t,a(t.expression,n,e.isExpression),a(t.caseBlock,n,e.isCaseBlock))},t[253]=function(t,n,r,i,a,o){return r.factory.updateLabeledStatement(t,a(t.label,n,e.isIdentifier),a(t.statement,n,e.isStatement,r.factory.liftToBlock))},t[254]=function(t,n,r,i,a,o){return r.factory.updateThrowStatement(t,a(t.expression,n,e.isExpression))},t[255]=function(t,n,r,i,a,o){return r.factory.updateTryStatement(t,a(t.tryBlock,n,e.isBlock),a(t.catchClause,n,e.isCatchClause),a(t.finallyBlock,n,e.isBlock))},t[257]=function(t,n,r,i,a,o){return r.factory.updateVariableDeclaration(t,a(t.name,n,e.isBindingName),a(t.exclamationToken,o,e.isExclamationToken),a(t.type,n,e.isTypeNode),a(t.initializer,n,e.isExpression))},t[258]=function(t,n,r,i,a,o){return r.factory.updateVariableDeclarationList(t,i(t.declarations,n,e.isVariableDeclaration))},t[259]=function(t,n,r,i,a,s){return r.factory.updateFunctionDeclaration(t,i(t.modifiers,n,e.isModifier),a(t.asteriskToken,s,e.isAsteriskToken),a(t.name,n,e.isIdentifier),i(t.typeParameters,n,e.isTypeParameterDeclaration),o(t.parameters,n,r,i),a(t.type,n,e.isTypeNode),c(t.body,n,r,a))},t[260]=function(t,n,r,i,a,o){return r.factory.updateClassDeclaration(t,i(t.modifiers,n,e.isModifierLike),a(t.name,n,e.isIdentifier),i(t.typeParameters,n,e.isTypeParameterDeclaration),i(t.heritageClauses,n,e.isHeritageClause),i(t.members,n,e.isClassElement))},t[261]=function(t,n,r,i,a,o){return r.factory.updateInterfaceDeclaration(t,i(t.modifiers,n,e.isModifier),a(t.name,n,e.isIdentifier),i(t.typeParameters,n,e.isTypeParameterDeclaration),i(t.heritageClauses,n,e.isHeritageClause),i(t.members,n,e.isTypeElement))},t[262]=function(t,n,r,i,a,o){return r.factory.updateTypeAliasDeclaration(t,i(t.modifiers,n,e.isModifier),a(t.name,n,e.isIdentifier),i(t.typeParameters,n,e.isTypeParameterDeclaration),a(t.type,n,e.isTypeNode))},t[263]=function(t,n,r,i,a,o){return r.factory.updateEnumDeclaration(t,i(t.modifiers,n,e.isModifier),a(t.name,n,e.isIdentifier),i(t.members,n,e.isEnumMember))},t[264]=function(t,n,r,i,a,o){return r.factory.updateModuleDeclaration(t,i(t.modifiers,n,e.isModifier),a(t.name,n,e.isModuleName),a(t.body,n,e.isModuleBody))},t[265]=function(t,n,r,i,a,o){return r.factory.updateModuleBlock(t,i(t.statements,n,e.isStatement))},t[266]=function(t,n,r,i,a,o){return r.factory.updateCaseBlock(t,i(t.clauses,n,e.isCaseOrDefaultClause))},t[267]=function(t,n,r,i,a,o){return r.factory.updateNamespaceExportDeclaration(t,a(t.name,n,e.isIdentifier))},t[268]=function(t,n,r,i,a,o){return r.factory.updateImportEqualsDeclaration(t,i(t.modifiers,n,e.isModifier),t.isTypeOnly,a(t.name,n,e.isIdentifier),a(t.moduleReference,n,e.isModuleReference))},t[269]=function(t,n,r,i,a,o){return r.factory.updateImportDeclaration(t,i(t.modifiers,n,e.isModifier),a(t.importClause,n,e.isImportClause),a(t.moduleSpecifier,n,e.isExpression),a(t.assertClause,n,e.isAssertClause))},t[296]=function(t,n,r,i,a,o){return r.factory.updateAssertClause(t,i(t.elements,n,e.isAssertEntry),t.multiLine)},t[297]=function(t,n,r,i,a,o){return r.factory.updateAssertEntry(t,a(t.name,n,e.isAssertionKey),a(t.value,n,e.isExpression))},t[270]=function(t,n,r,i,a,o){return r.factory.updateImportClause(t,t.isTypeOnly,a(t.name,n,e.isIdentifier),a(t.namedBindings,n,e.isNamedImportBindings))},t[271]=function(t,n,r,i,a,o){return r.factory.updateNamespaceImport(t,a(t.name,n,e.isIdentifier))},t[277]=function(t,n,r,i,a,o){return r.factory.updateNamespaceExport(t,a(t.name,n,e.isIdentifier))},t[272]=function(t,n,r,i,a,o){return r.factory.updateNamedImports(t,i(t.elements,n,e.isImportSpecifier))},t[273]=function(t,n,r,i,a,o){return r.factory.updateImportSpecifier(t,t.isTypeOnly,a(t.propertyName,n,e.isIdentifier),a(t.name,n,e.isIdentifier))},t[274]=function(t,n,r,i,a,o){return r.factory.updateExportAssignment(t,i(t.modifiers,n,e.isModifier),a(t.expression,n,e.isExpression))},t[275]=function(t,n,r,i,a,o){return r.factory.updateExportDeclaration(t,i(t.modifiers,n,e.isModifier),t.isTypeOnly,a(t.exportClause,n,e.isNamedExportBindings),a(t.moduleSpecifier,n,e.isExpression),a(t.assertClause,n,e.isAssertClause))},t[276]=function(t,n,r,i,a,o){return r.factory.updateNamedExports(t,i(t.elements,n,e.isExportSpecifier))},t[278]=function(t,n,r,i,a,o){return r.factory.updateExportSpecifier(t,t.isTypeOnly,a(t.propertyName,n,e.isIdentifier),a(t.name,n,e.isIdentifier))},t[280]=function(t,n,r,i,a,o){return r.factory.updateExternalModuleReference(t,a(t.expression,n,e.isExpression))},t[281]=function(t,n,r,i,a,o){return r.factory.updateJsxElement(t,a(t.openingElement,n,e.isJsxOpeningElement),i(t.children,n,e.isJsxChild),a(t.closingElement,n,e.isJsxClosingElement))},t[282]=function(t,n,r,i,a,o){return r.factory.updateJsxSelfClosingElement(t,a(t.tagName,n,e.isJsxTagNameExpression),i(t.typeArguments,n,e.isTypeNode),a(t.attributes,n,e.isJsxAttributes))},t[283]=function(t,n,r,i,a,o){return r.factory.updateJsxOpeningElement(t,a(t.tagName,n,e.isJsxTagNameExpression),i(t.typeArguments,n,e.isTypeNode),a(t.attributes,n,e.isJsxAttributes))},t[284]=function(t,n,r,i,a,o){return r.factory.updateJsxClosingElement(t,a(t.tagName,n,e.isJsxTagNameExpression))},t[285]=function(t,n,r,i,a,o){return r.factory.updateJsxFragment(t,a(t.openingFragment,n,e.isJsxOpeningFragment),i(t.children,n,e.isJsxChild),a(t.closingFragment,n,e.isJsxClosingFragment))},t[288]=function(t,n,r,i,a,o){return r.factory.updateJsxAttribute(t,a(t.name,n,e.isIdentifier),a(t.initializer,n,e.isStringLiteralOrJsxExpression))},t[289]=function(t,n,r,i,a,o){return r.factory.updateJsxAttributes(t,i(t.properties,n,e.isJsxAttributeLike))},t[290]=function(t,n,r,i,a,o){return r.factory.updateJsxSpreadAttribute(t,a(t.expression,n,e.isExpression))},t[291]=function(t,n,r,i,a,o){return r.factory.updateJsxExpression(t,a(t.expression,n,e.isExpression))},t[292]=function(t,n,r,i,a,o){return r.factory.updateCaseClause(t,a(t.expression,n,e.isExpression),i(t.statements,n,e.isStatement))},t[293]=function(t,n,r,i,a,o){return r.factory.updateDefaultClause(t,i(t.statements,n,e.isStatement))},t[294]=function(t,n,r,i,a,o){return r.factory.updateHeritageClause(t,i(t.types,n,e.isExpressionWithTypeArguments))},t[295]=function(t,n,r,i,a,o){return r.factory.updateCatchClause(t,a(t.variableDeclaration,n,e.isVariableDeclaration),a(t.block,n,e.isBlock))},t[299]=function(t,n,r,i,a,o){return r.factory.updatePropertyAssignment(t,a(t.name,n,e.isPropertyName),a(t.initializer,n,e.isExpression))},t[300]=function(t,n,r,i,a,o){return r.factory.updateShorthandPropertyAssignment(t,a(t.name,n,e.isIdentifier),a(t.objectAssignmentInitializer,n,e.isExpression))},t[301]=function(t,n,r,i,a,o){return r.factory.updateSpreadAssignment(t,a(t.expression,n,e.isExpression))},t[302]=function(t,n,r,i,a,o){return r.factory.updateEnumMember(t,a(t.name,n,e.isPropertyName),a(t.initializer,n,e.isExpression))},t[308]=function(e,t,n,r,i,o){return n.factory.updateSourceFile(e,a(e.statements,t,n))},t[353]=function(t,n,r,i,a,o){return r.factory.updatePartiallyEmittedExpression(t,a(t.expression,n,e.isExpression))},t[354]=function(t,n,r,i,a,o){return r.factory.updateCommaListExpression(t,i(t.elements,n,e.isExpression))},t);function d(t){return e.Debug.assert(t.length<=1,"Too many nodes written to output."),e.singleOrUndefined(t)}}(c||(c={})),function(e){e.createSourceMapGenerator=function(t,n,r,i,o){var c,l,u=o.extendedDiagnostics?e.performance.createTimer("Source Map","beforeSourcemap","afterSourcemap"):e.performance.nullTimer,d=u.enter,p=u.exit,m=[],f=[],_=new e.Map,h=[],g=[],y="",v=0,b=0,E=0,x=0,S=0,T=0,C=!1,D=0,L=0,A=0,N=0,k=0,I=0,P=!1,w=!1,O=!1;return{getSources:function(){return m},addSource:R,setSourceContent:M,addName:F,addMapping:G,appendSourceMap:function(t,n,r,i,o,s){e.Debug.assert(t>=D,"generatedLine cannot backtrack"),e.Debug.assert(n>=0,"generatedCharacter cannot be negative"),d();for(var c,l=[],u=a(r.mappings),m=u.next();!m.done;m=u.next()){var f=m.value;if(s&&(f.generatedLine>s.line||f.generatedLine===s.line&&f.generatedCharacter>s.character))break;if(!o||!(f.generatedLine=D,"generatedLine cannot backtrack"),e.Debug.assert(n>=0,"generatedCharacter cannot be negative"),e.Debug.assert(void 0===r||r>=0,"sourceIndex cannot be negative"),e.Debug.assert(void 0===i||i>=0,"sourceLine cannot be negative"),e.Debug.assert(void 0===a||a>=0,"sourceCharacter cannot be negative"),d(),(function(e,t){return!P||D!==e||L!==t}(t,n)||function(e,t,n){return void 0!==e&&void 0!==t&&void 0!==n&&A===e&&(N>t||N===t&&k>n)}(r,i,a))&&(U(),D=t,L=n,w=!1,O=!1,P=!0),void 0!==r&&void 0!==i&&void 0!==a&&(A=r,N=i,k=a,w=!0,void 0!==o&&(I=o,O=!0)),p()}function B(e){g.push(e),g.length>=1024&&V()}function U(){if(P&&(!C||v!==D||b!==L||E!==A||x!==N||S!==k||T!==I)){if(d(),v0&&(y+=String.fromCharCode.apply(void 0,g),g.length=0)}function K(){return U(),V(),{version:3,file:n,sourceRoot:r,sources:f,names:h,mappings:y,sourcesContent:c}}function j(e){e<0?e=1+(-e<<1):e<<=1;do{var t=31&e;(e>>=5)>0&&(t|=32),B(s(t))}while(e>0)}};var t=/^\/\/[@#] source[M]appingURL=(.+)\r?\n?$/,n=/^\s*(\/\/[@#] .*)?$/;function r(e){return"string"==typeof e||null===e}function i(t){return null!==t&&"object"==typeof t&&3===t.version&&"string"==typeof t.file&&"string"==typeof t.mappings&&e.isArray(t.sources)&&e.every(t.sources,e.isString)&&(void 0===t.sourceRoot||null===t.sourceRoot||"string"==typeof t.sourceRoot)&&(void 0===t.sourcesContent||null===t.sourcesContent||e.isArray(t.sourcesContent)&&e.every(t.sourcesContent,r))&&(void 0===t.names||null===t.names||e.isArray(t.names)&&e.every(t.names,e.isString))}function a(e){var t,n=!1,r=0,i=0,a=0,o=0,s=0,l=0,u=0;return{get pos(){return r},get error(){return t},get state(){return d(!0,!0)},next:function(){for(;!n&&r=e.length)return m("Error in decoding base64VLQFormatDecode, past the mapping string"),-1;var a=c(e.charCodeAt(r));if(-1===a)return m("Invalid character in VLQ"),-1;t=!!(32&a),i|=(31&a)<>=1):i>>=1,i}}function o(e){return void 0!==e.sourceIndex&&void 0!==e.sourceLine&&void 0!==e.sourceCharacter}function s(t){return t>=0&&t<26?65+t:t>=26&&t<52?97+t-26:t>=52&&t<62?48+t-52:62===t?43:63===t?47:e.Debug.fail("".concat(t,": not a base64 value"))}function c(e){return e>=65&&e<=90?e-65:e>=97&&e<=122?e-97+26:e>=48&&e<=57?e-48+52:43===e?62:47===e?63:-1}function l(e){return void 0!==e.sourceIndex&&void 0!==e.sourcePosition}function u(e,t){return e.generatedPosition===t.generatedPosition&&e.sourceIndex===t.sourceIndex&&e.sourcePosition===t.sourcePosition}function d(t,n){return e.Debug.assert(t.sourceIndex===n.sourceIndex),e.compareValues(t.sourcePosition,n.sourcePosition)}function p(t,n){return e.compareValues(t.generatedPosition,n.generatedPosition)}function m(e){return e.sourcePosition}function f(e){return e.generatedPosition}e.getLineInfo=function(e,t){return{getLineCount:function(){return t.length},getLineText:function(n){return e.substring(t[n],t[n+1])}}},e.tryGetSourceMappingURL=function(r){for(var i=r.getLineCount()-1;i>=0;i--){var a=r.getLineText(i),o=t.exec(a);if(o)return e.trimStringEnd(o[1]);if(!a.match(n))break}},e.isRawSourceMap=i,e.tryParseRawSourceMap=function(e){try{var t=JSON.parse(e);if(i(t))return t}catch(e){}},e.decodeMappings=a,e.sameMapping=function(e,t){return e===t||e.generatedLine===t.generatedLine&&e.generatedCharacter===t.generatedCharacter&&e.sourceIndex===t.sourceIndex&&e.sourceLine===t.sourceLine&&e.sourceCharacter===t.sourceCharacter&&e.nameIndex===t.nameIndex},e.isSourceMapping=o,e.createDocumentPositionMapper=function(t,n,r){var i,s,c,_=e.getDirectoryPath(r),h=n.sourceRoot?e.getNormalizedAbsolutePath(n.sourceRoot,_):_,g=e.getNormalizedAbsolutePath(n.file,_),y=t.getSourceFileLike(g),v=n.sources.map(function(t){return e.getNormalizedAbsolutePath(t,h)}),b=new e.Map(v.map(function(e,n){return[t.getCanonicalFileName(e),n]}));return{getSourcePosition:function(t){var n=T();if(!e.some(n))return t;var r=e.binarySearchKey(n,t.pos,f,e.compareValues);r<0&&(r=~r);var i=n[r];return void 0!==i&&l(i)?{fileName:v[i.sourceIndex],pos:i.sourcePosition}:t},getGeneratedPosition:function(n){var r=b.get(t.getCanonicalFileName(n.fileName));if(void 0===r)return n;var i=S(r);if(!e.some(i))return n;var a=e.binarySearchKey(i,n.pos,m,e.compareValues);a<0&&(a=~a);var o=i[a];return void 0===o||o.sourceIndex!==r?n:{fileName:g,pos:o.generatedPosition}}};function E(r){var i,a,s=void 0!==y?e.getPositionOfLineAndCharacter(y,r.generatedLine,r.generatedCharacter,!0):-1;if(o(r)){var c=t.getSourceFileLike(v[r.sourceIndex]);i=n.sources[r.sourceIndex],a=void 0!==c?e.getPositionOfLineAndCharacter(c,r.sourceLine,r.sourceCharacter,!0):-1}return{generatedPosition:s,source:i,sourceIndex:r.sourceIndex,sourcePosition:a,nameIndex:r.nameIndex}}function x(){if(void 0===i){var r=a(n.mappings),o=e.arrayFrom(r,E);void 0!==r.error?(t.log&&t.log("Encountered error while decoding sourcemap: ".concat(r.error)),i=e.emptyArray):i=o}return i}function S(t){if(void 0===c){for(var n=[],r=0,i=x();r0&&i!==r.elements.length||!!(r.elements.length-i)&&e.isDefaultImport(t)}function i(t){return!r(t)&&(e.isDefaultImport(t)||!!t.importClause&&e.isNamedImports(t.importClause.namedBindings)&&function(t){return!!t&&!!e.isNamedImports(t)&&e.some(t.elements,n)}(t.importClause.namedBindings))}function a(t,n,r){if(e.isBindingPattern(t.name))for(var i=0,o=t.name.elements;i0&&e.parameterIsThisKeyword(r[0]),a=i?1:0,o=i?r.length-1:r.length,s=0;s=64&&e<=78},e.getNonAssignmentOperatorForCompoundAssignment=function(e){switch(e){case 64:return 39;case 65:return 40;case 66:return 41;case 67:return 42;case 68:return 43;case 69:return 44;case 70:return 47;case 71:return 48;case 72:return 49;case 73:return 50;case 74:return 51;case 78:return 52;case 75:return 56;case 76:return 55;case 77:return 60}},e.getSuperCallFromStatement=c,e.findSuperStatementIndex=function(e,t){for(var n=t;n=1)||98304&f.transformFlags||98304&e.getTargetOfBindingOrAssignmentElement(f).transformFlags||e.isComputedPropertyName(_)){l&&(t.emitBindingOrAssignment(t.createObjectBindingOrAssignmentPattern(l),a,c,r),l=void 0);var h=o(t,a,_);e.isComputedPropertyName(_)&&(u=e.append(u,h.argumentExpression)),i(t,f,h,f)}else l=e.append(l,e.visitNode(f,t.visitor))}}l&&t.emitBindingOrAssignment(t.createObjectBindingOrAssignmentPattern(l),a,c,r)}(t,n,u,r,c):e.isArrayBindingOrAssignmentPattern(u)?function(t,n,r,o,c){var l,u,d=e.getElementsOfBindingOrAssignmentPattern(r),p=d.length;t.level<1&&t.downlevelIteration?o=s(t,e.setTextRange(t.context.getEmitHelperFactory().createReadHelper(o,p>0&&e.getRestIndicatorOfBindingOrAssignmentElement(d[p-1])?void 0:p),c),!1,c):(1!==p&&(t.level<1||0===p)||e.every(d,e.isOmittedExpression))&&(o=s(t,o,!e.isDeclarationBindingElement(n)||0!==p,c));for(var m=0;m=1)if(65536&f.transformFlags||t.hasTransformedPriorElement&&!a(f)){t.hasTransformedPriorElement=!0;var _=t.context.factory.createTempVariable(void 0);t.hoistTempVariables&&t.context.hoistVariableDeclaration(_),u=e.append(u,[_,f]),l=e.append(l,t.createArrayBindingOrAssignmentElement(_))}else l=e.append(l,f);else{if(e.isOmittedExpression(f))continue;if(e.getRestIndicatorOfBindingOrAssignmentElement(f))m===p-1&&(h=t.context.factory.createArraySliceCall(o,m),i(t,f,h,f));else{var h=t.context.factory.createElementAccessExpression(o,m);i(t,f,h,f)}}}if(l&&t.emitBindingOrAssignment(t.createArrayBindingOrAssignmentPattern(l),o,c,r),u)for(var g=0,y=u;g=0&&e.addRange(o,e.visitNodes(r.statements,D,e.isStatement,s,c+1-s));var l=e.mapDefined(a,j);c>=0?e.addRange(o,l):o=n(n(n([],o.slice(0,s),!0),l,!0),o.slice(s),!0);var u=c>=0?c+1:s;e.addRange(o,e.visitNodes(r.statements,D,e.isStatement,u)),o=d.mergeLexicalEnvironment(o,_());var p=d.createBlock(e.setTextRange(d.createNodeArray(o),r.statements),!0);return e.setTextRange(p,r),e.setOriginalNode(p,r),p}(r.body,r))}(r);case 169:return function(t,n){var r=16777216&t.flags||e.hasSyntacticModifier(t,256);if(!r||e.hasDecorators(t)){var i=B(t,n,e.getAllDecoratorsOfClassElement(t,n));return r?d.updatePropertyDeclaration(t,e.concatenate(i,d.createModifiersFromModifierFlags(2)),e.visitNode(t.name,D,e.isPropertyName),void 0,void 0,void 0):d.updatePropertyDeclaration(t,e.concatenate(i,e.visitNodes(t.modifiers,w,e.isModifierLike)),V(t),void 0,void 0,e.visitNode(t.initializer,D))}}(r,i);case 174:return $(r,i);case 175:return q(r,i);case 171:return H(r,i);case 172:return e.visitEachChild(r,D,t);case 237:return r;case 178:return;default:return e.Debug.failBadSyntaxKind(r)}}(i,r)})}}function w(t){if(!e.isDecorator(t)&&!(117086&e.modifierToFlag(t.kind)||i&&93===t.kind))return t}function O(n){if(e.isStatement(n)&&e.hasSyntacticModifier(n,2))return d.createNotEmittedStatement(n);switch(n.kind){case 93:case 88:return i?void 0:n;case 123:case 121:case 122:case 126:case 161:case 85:case 136:case 146:case 101:case 145:case 185:case 186:case 187:case 188:case 184:case 179:case 165:case 131:case 157:case 134:case 152:case 148:case 144:case 114:case 153:case 182:case 181:case 183:case 180:case 189:case 190:case 191:case 193:case 194:case 195:case 196:case 197:case 198:case 178:case 267:return;case 262:case 261:return d.createNotEmittedStatement(n);case 260:return function(n){if(!(F(n)||i&&e.hasSyntacticModifier(n,1)))return d.updateClassDeclaration(n,e.visitNodes(n.modifiers,w,e.isModifier),n.name,void 0,e.visitNodes(n.heritageClauses,D,e.isHeritageClause),e.visitNodes(n.members,P(n),e.isClassElement));var a=function(t,n){var r=0;e.some(n)&&(r|=1);var i=e.getEffectiveBaseTypeNode(t);return i&&104!==e.skipOuterExpressions(i.expression).kind&&(r|=64),e.classOrConstructorParameterIsDecorated(t)&&(r|=2),e.childIsDecorated(t)&&(r|=4),se(t)?r|=8:function(t){return ce(t)&&e.hasSyntacticModifier(t,1024)}(t)?r|=32:le(t)&&(r|=16),v<=1&&7&r&&(r|=128),r}(n,e.getProperties(n,!0,!0));128&a&&t.startLexicalEnvironment();var o=n.name||(5&a?d.getGeneratedNameForNode(n):void 0),s=B(n,n,e.getAllDecoratorsOfClass(n)),c=128&a?e.elideNodes(d,n.modifiers):e.visitNodes(n.modifiers,w,e.isModifier),l=d.updateClassDeclaration(n,e.concatenate(s,c),o,void 0,e.visitNodes(n.heritageClauses,D,e.isHeritageClause),G(n)),u=e.getEmitFlags(n);1&a&&(u|=32),e.setEmitFlags(l,u);var p=[l];if(128&a){var m=e.createTokenRange(e.skipTrivia(r.text,n.members.end),19),f=d.getInternalName(n),_=d.createPartiallyEmittedExpression(f);e.setTextRangeEnd(_,m.end),e.setEmitFlags(_,1536);var h=d.createReturnStatement(_);e.setTextRangePos(h,m.pos),e.setEmitFlags(h,1920),p.push(h),e.insertStatementsAfterStandardPrologue(p,t.endLexicalEnvironment());var g=d.createImmediatelyInvokedArrowFunction(p);e.setEmitFlags(g,33554432);var y=d.createVariableStatement(void 0,d.createVariableDeclarationList([d.createVariableDeclaration(d.getLocalName(n,!1,!1),void 0,void 0,g)]));e.setOriginalNode(y,n),e.setCommentRange(y,n),e.setSourceMapRange(y,e.moveRangePastDecorators(n)),e.startOnNewLine(y),p=[y]}return 8&a?ue(p,n):(128&a||2&a)&&(32&a?p.push(d.createExportDefault(d.getLocalName(n,!1,!0))):16&a&&p.push(d.createExternalModuleExport(d.getLocalName(n,!1,!0)))),p.length>1&&(p.push(d.createEndOfDeclarationMarker(n)),e.setEmitFlags(l,4194304|e.getEmitFlags(l))),e.singleOrMany(p)}(n);case 228:return function(t){var n=B(t,t,e.getAllDecoratorsOfClass(t));return d.updateClassExpression(t,n,t.name,void 0,e.visitNodes(t.heritageClauses,D,e.isHeritageClause),F(t)?G(t):e.visitNodes(t.members,P(t),e.isClassElement))}(n);case 294:return function(n){if(117!==n.token)return e.visitEachChild(n,D,t)}(n);case 230:return function(t){return d.updateExpressionWithTypeArguments(t,e.visitNode(t.expression,D,e.isLeftHandSideExpression),void 0)}(n);case 207:return function(t){return d.updateObjectLiteralExpression(t,e.visitNodes(t.properties,(n=t,function(t){return C(t,function(t){return function(t,n){switch(t.kind){case 299:case 300:case 301:return D(t);case 174:return $(t,n);case 175:return q(t,n);case 171:return H(t,n);default:return e.Debug.failBadSyntaxKind(t)}}(t,n)})}),e.isObjectLiteralElement));var n}(n);case 173:case 169:case 171:case 174:case 175:case 172:return e.Debug.fail("Class and object literal elements must be visited with their respective visitors");case 259:return function(n){if(!K(n))return d.createNotEmittedStatement(n);var r=d.updateFunctionDeclaration(n,e.visitNodes(n.modifiers,w,e.isModifier),n.asteriskToken,n.name,void 0,e.visitParameterList(n.parameters,D,t),void 0,e.visitFunctionBody(n.body,D,t)||d.createBlock([]));if(se(n)){var i=[r];return ue(i,n),i}return r}(n);case 215:return function(n){return K(n)?d.updateFunctionExpression(n,e.visitNodes(n.modifiers,w,e.isModifier),n.asteriskToken,n.name,void 0,e.visitParameterList(n.parameters,D,t),void 0,e.visitFunctionBody(n.body,D,t)||d.createBlock([])):d.createOmittedExpression()}(n);case 216:return function(n){return d.updateArrowFunction(n,e.visitNodes(n.modifiers,w,e.isModifier),void 0,e.visitParameterList(n.parameters,D,t),void 0,n.equalsGreaterThanToken,e.visitFunctionBody(n.body,D,t))}(n);case 166:return function(t){if(!e.parameterIsThisKeyword(t)){var n=d.updateParameterDeclaration(t,e.elideNodes(d,t.modifiers),t.dotDotDotToken,e.visitNode(t.name,D,e.isBindingName),void 0,void 0,e.visitNode(t.initializer,D,e.isExpression));return n!==t&&(e.setCommentRange(n,t),e.setTextRange(n,e.moveRangePastModifiers(t)),e.setSourceMapRange(n,e.moveRangePastModifiers(t)),e.setEmitFlags(n.name,32)),n}}(n);case 214:return function(n){var r=e.skipOuterExpressions(n.expression,-7);if(e.isAssertionExpression(r)){var i=e.visitNode(n.expression,D,e.isExpression);return d.createPartiallyEmittedExpression(i,n)}return e.visitEachChild(n,D,t)}(n);case 213:case 231:return function(t){var n=e.visitNode(t.expression,D,e.isExpression);return d.createPartiallyEmittedExpression(n,t)}(n);case 235:return function(t){var n=e.visitNode(t.expression,D,e.isExpression);return d.createPartiallyEmittedExpression(n,t)}(n);case 210:return function(t){return d.updateCallExpression(t,e.visitNode(t.expression,D,e.isExpression),void 0,e.visitNodes(t.arguments,D,e.isExpression))}(n);case 211:return function(t){return d.updateNewExpression(t,e.visitNode(t.expression,D,e.isExpression),void 0,e.visitNodes(t.arguments,D,e.isExpression))}(n);case 212:return function(t){return d.updateTaggedTemplateExpression(t,e.visitNode(t.tag,D,e.isExpression),void 0,e.visitNode(t.template,D,e.isExpression))}(n);case 232:return function(t){var n=e.visitNode(t.expression,D,e.isLeftHandSideExpression);return d.createPartiallyEmittedExpression(n,t)}(n);case 263:return function(t){if(!function(t){return!e.isEnumConst(t)||e.shouldPreserveConstEnums(y)}(t))return d.createNotEmittedStatement(t);var n=[],i=2,s=Z(n,t);s&&(b===e.ModuleKind.System&&o===r||(i|=512));var c=me(t),l=fe(t),u=e.hasSyntacticModifier(t,1)?d.getExternalModuleOrNamespaceExportName(a,t,!1,!0):d.getLocalName(t,!1,!0),p=d.createLogicalOr(u,d.createAssignment(u,d.createObjectLiteralExpression()));if(X(t)){var f=d.getLocalName(t,!1,!0);p=d.createAssignment(f,p)}var h=d.createExpressionStatement(d.createCallExpression(d.createFunctionExpression(void 0,void 0,void 0,void 0,[d.createParameterDeclaration(void 0,void 0,c)],void 0,function(t,n){var r=a;a=n;var i=[];m();var o=e.map(t.members,J);return e.insertStatementsAfterStandardPrologue(i,_()),e.addRange(i,o),a=r,d.createBlock(e.setTextRange(d.createNodeArray(i),t.members),!0)}(t,l)),void 0,[p]));return e.setOriginalNode(h,t),s&&(e.setSyntheticLeadingComments(h,void 0),e.setSyntheticTrailingComments(h,void 0)),e.setTextRange(h,t),e.addEmitFlags(h,i),n.push(h),n.push(d.createEndOfDeclarationMarker(t)),n}(n);case 240:return function(n){if(se(n)){var r=e.getInitializedVariables(n.declarationList);if(0===r.length)return;return e.setTextRange(d.createExpressionStatement(d.inlineExpressions(e.map(r,z))),n)}return e.visitEachChild(n,D,t)}(n);case 257:return function(t){var n=d.updateVariableDeclaration(t,e.visitNode(t.name,D,e.isBindingName),void 0,void 0,e.visitNode(t.initializer,D,e.isExpression));return t.type&&e.setTypeNode(n.name,t.type),n}(n);case 264:return ee(n);case 268:return oe(n);case 282:return function(t){return d.updateJsxSelfClosingElement(t,e.visitNode(t.tagName,D,e.isJsxTagNameExpression),void 0,e.visitNode(t.attributes,D,e.isJsxAttributes))}(n);case 283:return function(t){return d.updateJsxOpeningElement(t,e.visitNode(t.tagName,D,e.isJsxTagNameExpression),void 0,e.visitNode(t.attributes,D,e.isJsxAttributes))}(n);default:return e.visitEachChild(n,D,t)}}function R(n){var r=e.getStrictOptionValue(y,"alwaysStrict")&&!(e.isExternalModule(n)&&b>=e.ModuleKind.ES2015)&&!e.isJsonSourceFile(n);return d.updateSourceFile(n,e.visitLexicalEnvironment(n.statements,A,t,0,r))}function M(e){return!!(8192&e.transformFlags)}function F(t){return e.hasDecorators(t)||e.some(t.typeParameters)||e.some(t.heritageClauses,M)||e.some(t.members,M)}function G(t){var n=[],r=e.getFirstConstructorWithBody(t),i=r&&e.filter(r.parameters,function(t){return e.isParameterPropertyDeclaration(t,r)});if(i)for(var a=0,o=i;a=2,S=y||v||b,T=t.onSubstituteNode;t.onSubstituteNode=function(t,n){return n=T(t,n),1===t?function(t){switch(t.kind){case 79:return function(t){return function(t){if(1&C&&33554432&p.getNodeCheckFlags(t)){var n=p.getReferencedValueDeclaration(t);if(n){var i=D[n.id];if(i){var a=r.cloneNode(i);return e.setSourceMapRange(a,t),e.setCommentRange(a,t),a}}}}(t)||t}(t);case 108:return function(t){if(2&C&&k){var n=k.facts,i=k.classConstructor;if(1&n)return r.createParenthesizedExpression(r.createVoidZero());if(i)return e.setTextRange(e.setOriginalNode(r.cloneNode(i),t),t)}return t}(t)}return t}(n):n};var C,D,L,A,N=t.onEmitNode;t.onEmitNode=function(t,n,r){var i=e.getOriginalNode(n);if(i.id){var a=R.get(i.id);if(a){var o=k,s=P;return k=a,P=a,N(t,n,r),k=o,void(P=s)}}switch(n.kind){case 215:if(e.isArrowFunction(i)||262144&e.getEmitFlags(n))break;case 259:case 173:return o=k,s=P,k=void 0,P=void 0,N(t,n,r),k=o,void(P=s);case 174:case 175:case 171:case 169:return o=k,s=P,P=k,k=void 0,N(t,n,r),k=o,void(P=s);case 164:return o=k,s=P,k=P,P=void 0,N(t,n,r),k=o,void(P=s)}N(t,n,r)};var k,I,P,w,O=[],R=new e.Map;return e.chainBundle(t,function(n){if(n.isDeclarationFile||!S)return n;var r=e.visitEachChild(n,M,t);return e.addEmitHelpers(r,t.readEmitHelpers()),r});function M(a){if(!(16777216&a.transformFlags||134234112&a.transformFlags))return a;switch(a.kind){case 127:return b?void 0:a;case 260:return function(e){return te(e,ne)}(a);case 228:return function(e){return te(e,re)}(a);case 172:return function(n){if(!v)return e.visitEachChild(n,M,t)}(a);case 169:return $(a);case 240:return function(r){var i=A;A=[];var a=e.visitEachChild(r,M,t),o=e.some(A)?n([a],A,!0):a;return A=i,o}(a);case 80:return function(t){return v?e.isStatement(t.parent)?t:e.setOriginalNode(r.createIdentifier(""),t):t}(a);case 208:return function(n){if(v&&e.isPrivateIdentifier(n.name)){var i=ve(n.name);if(i)return e.setTextRange(e.setOriginalNode(q(i,n.expression),n),n)}if(x&&e.isSuperProperty(n)&&e.isIdentifier(n.name)&&w&&k){var a=k.classConstructor,o=k.superClassReference;if(1&k.facts)return ue(n);if(a&&o){var s=r.createReflectGetCall(o,r.createStringLiteralFromNode(n.name),a);return e.setOriginalNode(s,n.expression),e.setTextRange(s,n.expression),s}}return e.visitEachChild(n,M,t)}(a);case 209:return function(n){if(x&&e.isSuperProperty(n)&&w&&k){var i=k.classConstructor,a=k.superClassReference;if(1&k.facts)return ue(n);if(i&&a){var o=r.createReflectGetCall(a,e.visitNode(n.argumentExpression,M,e.isExpression),i);return e.setOriginalNode(o,n.expression),e.setTextRange(o,n.expression),o}}return e.visitEachChild(n,M,t)}(a);case 221:case 222:return J(a,!1);case 223:return Q(a,!1);case 210:return function(a){if(v&&e.isPrivateIdentifierPropertyAccessExpression(a.expression)){var o=r.createCallBinding(a.expression,i,f),s=o.thisArg,c=o.target;return e.isCallChain(a)?r.updateCallChain(a,r.createPropertyAccessChain(e.visitNode(c,M),a.questionDotToken,"call"),void 0,void 0,n([e.visitNode(s,M,e.isExpression)],e.visitNodes(a.arguments,M,e.isExpression),!0)):r.updateCallExpression(a,r.createPropertyAccessExpression(e.visitNode(c,M),"call"),void 0,n([e.visitNode(s,M,e.isExpression)],e.visitNodes(a.arguments,M,e.isExpression),!0))}if(x&&e.isSuperProperty(a.expression)&&w&&(null==k?void 0:k.classConstructor)){var l=r.createFunctionCallCall(e.visitNode(a.expression,M,e.isExpression),k.classConstructor,e.visitNodes(a.arguments,M,e.isExpression));return e.setOriginalNode(l,a),e.setTextRange(l,a),l}return e.visitEachChild(a,M,t)}(a);case 241:return function(t){return r.updateExpressionStatement(t,e.visitNode(t.expression,G,e.isExpression))}(a);case 212:return function(n){if(v&&e.isPrivateIdentifierPropertyAccessExpression(n.tag)){var a=r.createCallBinding(n.tag,i,f),o=a.thisArg,s=a.target;return r.updateTaggedTemplateExpression(n,r.createCallExpression(r.createPropertyAccessExpression(e.visitNode(s,M),"bind"),void 0,[e.visitNode(o,M,e.isExpression)]),void 0,e.visitNode(n.template,M,e.isTemplateLiteral))}if(x&&e.isSuperProperty(n.tag)&&w&&(null==k?void 0:k.classConstructor)){var c=r.createFunctionBindCall(e.visitNode(n.tag,M,e.isExpression),k.classConstructor,[]);return e.setOriginalNode(c,n),e.setTextRange(c,n),r.updateTaggedTemplateExpression(n,c,void 0,e.visitNode(n.template,M,e.isTemplateLiteral))}return e.visitEachChild(n,M,t)}(a);case 245:return function(n){return r.updateForStatement(n,e.visitNode(n.initializer,G,e.isForInitializer),e.visitNode(n.condition,M,e.isExpression),e.visitNode(n.incrementor,G,e.isExpression),e.visitIterationBody(n.statement,M,t))}(a);case 259:case 215:case 173:case 171:case 174:case 175:return H(void 0,F,a);default:return F(a)}}function F(n){return e.visitEachChild(n,M,t)}function G(e){switch(e.kind){case 221:case 222:return J(e,!0);case 223:return Q(e,!0);default:return M(e)}}function B(n){switch(n.kind){case 294:return e.visitEachChild(n,B,t);case 230:return function(n){if(4&((null==k?void 0:k.facts)||0)){var a=r.createTempVariable(i,!0);return de().superClassReference=a,r.updateExpressionWithTypeArguments(n,r.createAssignment(a,e.visitNode(n.expression,M,e.isExpression)),void 0)}return e.visitEachChild(n,M,t)}(n);default:return M(n)}}function U(t){switch(t.kind){case 207:case 206:return function(t){return e.isArrayLiteralExpression(t)?r.updateArrayLiteralExpression(t,e.visitNodes(t.elements,xe,e.isExpression)):r.updateObjectLiteralExpression(t,e.visitNodes(t.properties,Se,e.isObjectLiteralElementLike))}(t);default:return M(t)}}function V(t){switch(t.kind){case 173:return function(e){return I?oe(e,I):F(e)}(t);case 174:case 175:case 171:return H(void 0,j,t);case 169:return H(void 0,$,t);case 164:return function(t){var i=e.visitNode(t.expression,M,e.isExpression);return e.some(L)&&(i=e.isParenthesizedExpression(i)?r.updateParenthesizedExpression(i,r.inlineExpressions(n(n([],L,!0),[i.expression],!1))):r.inlineExpressions(n(n([],L,!0),[i],!1)),L=void 0),r.updateComputedPropertyName(t,i)}(t);case 237:return t;default:return M(t)}}function K(t){switch(t.kind){case 169:return W(t);case 174:case 175:return V(t);default:e.Debug.assertMissingNode(t,"Expected node to either be a PropertyDeclaration, GetAccessorDeclaration, or SetAccessorDeclaration")}}function j(n){if(e.Debug.assert(!e.hasDecorators(n)),!v||!e.isPrivateIdentifier(n.name))return e.visitEachChild(n,V,t);var i=ve(n.name);if(e.Debug.assert(i,"Undeclared private name for property declaration."),!i.isValid)return n;var a=function(t){e.Debug.assert(e.isPrivateIdentifier(t.name));var n=ve(t.name);if(e.Debug.assert(n,"Undeclared private name for property declaration."),"m"===n.kind)return n.methodName;if("a"===n.kind){if(e.isGetAccessor(t))return n.getterName;if(e.isSetAccessor(t))return n.setterName}}(n);a&&me().push(r.createAssignment(a,r.createFunctionExpression(e.filter(n.modifiers,function(t){return e.isModifier(t)&&!e.isStaticModifier(t)&&!e.isAccessorModifier(t)}),n.asteriskToken,a,void 0,e.visitParameterList(n.parameters,M,t),void 0,e.visitFunctionBody(n.body,M,t))))}function H(e,t,n){var r=w;w=e;var i=t(n);return w=r,i}function W(n){return e.Debug.assert(!e.hasDecorators(n),"Decorators should already have been transformed and elided."),e.isPrivateIdentifierClassElementDeclaration(n)?function(n){if(v){var i=ve(n.name);return e.Debug.assert(i,"Undeclared private name for property declaration."),i.isValid?void 0:n}return h&&!e.isStatic(n)?r.updatePropertyDeclaration(n,e.visitNodes(n.modifiers,M,e.isModifierLike),n.name,void 0,void 0,void 0):e.visitEachChild(n,M,t)}(n):function(n){if(!y)return e.visitEachChild(n,V,t);var a=function(t,n){if(e.isComputedPropertyName(t)){var a=e.visitNode(t.expression,M,e.isExpression),o=e.skipPartiallyEmittedExpressions(a),s=e.isSimpleInlineableExpression(o);if((!e.isAssignmentExpression(o)||!e.isGeneratedIdentifier(o.left))&&!s&&n){var c=r.getGeneratedNameForNode(t);return 524288&p.getNodeCheckFlags(t)?d(c):i(c),r.createAssignment(c,a)}return s||e.isIdentifier(o)?void 0:a}}(n.name,!!n.initializer||_);if(a&&me().push(a),e.isStatic(n)&&!v){var o=ce(n,r.createThis());if(o){var s=r.createClassStaticBlockDeclaration(r.createBlock([o]));return e.setOriginalNode(s,n),e.setCommentRange(s,n),e.setCommentRange(o,{pos:-1,end:-1}),e.setSyntheticLeadingComments(o,void 0),e.setSyntheticTrailingComments(o,void 0),s}}}(n)}function $(t){return b&&e.isAutoAccessorPropertyDeclaration(t)?function(t){e.Debug.assertEachNode(t.modifiers,e.isModifier);var n=e.getCommentRange(t),a=e.getSourceMapRange(t),o=t.name,s=o,c=o;if(e.isComputedPropertyName(o)&&!e.isSimpleInlineableExpression(o.expression)){var l=r.createTempVariable(i);e.setSourceMapRange(l,o.expression);var u=e.visitNode(o.expression,M,e.isExpression),d=r.createAssignment(l,u);e.setSourceMapRange(d,o.expression),s=r.updateComputedPropertyName(o,r.inlineExpressions([d,l])),c=r.updateComputedPropertyName(o,l)}var p=e.createAccessorPropertyBackingField(r,t,t.modifiers,t.initializer);e.setOriginalNode(p,t),e.setEmitFlags(p,1536),e.setSourceMapRange(p,a);var m=e.createAccessorPropertyGetRedirector(r,t,t.modifiers,s);e.setOriginalNode(m,t),e.setCommentRange(m,n),e.setSourceMapRange(m,a);var f=e.createAccessorPropertySetRedirector(r,t,t.modifiers,c);return e.setOriginalNode(f,t),e.setEmitFlags(f,1536),e.setSourceMapRange(f,a),e.visitArray([p,m,f],K,e.isClassElement)}(t):W(t)}function q(t,n){return z(t,e.visitNode(n,M,e.isExpression))}function z(n,r){switch(e.setCommentRange(r,e.moveRangePos(r,-1)),n.kind){case"a":return t.getEmitHelperFactory().createClassPrivateFieldGetHelper(r,n.brandCheckIdentifier,n.kind,n.getterName);case"m":return t.getEmitHelperFactory().createClassPrivateFieldGetHelper(r,n.brandCheckIdentifier,n.kind,n.methodName);case"f":return t.getEmitHelperFactory().createClassPrivateFieldGetHelper(r,n.brandCheckIdentifier,n.kind,n.variableName);default:e.Debug.assertNever(n,"Unknown private element type")}}function J(n,a){if(45===n.operator||46===n.operator){var o,s=e.skipParentheses(n.operand);if(v&&e.isPrivateIdentifierPropertyAccessExpression(s)){if(o=ve(s.name)){var c=X(e.visitNode(s.expression,M,e.isExpression)),l=c.readExpression,u=c.initializeExpression,d=q(o,l),p=e.isPrefixUnaryExpression(n)||a?void 0:r.createTempVariable(i);return d=Z(o,u||l,d=e.expandPreOrPostfixIncrementOrDecrementExpression(r,n,d,i,p),63),e.setOriginalNode(d,n),e.setTextRange(d,n),p&&(d=r.createComma(d,p),e.setTextRange(d,n)),d}}else if(x&&e.isSuperProperty(s)&&w&&k){var m=k.classConstructor,f=k.superClassReference;if(1&k.facts)return d=ue(s),e.isPrefixUnaryExpression(n)?r.updatePrefixUnaryExpression(n,d):r.updatePostfixUnaryExpression(n,d);if(m&&f){var _=void 0,h=void 0;if(e.isPropertyAccessExpression(s)?e.isIdentifier(s.name)&&(h=_=r.createStringLiteralFromNode(s.name)):e.isSimpleInlineableExpression(s.argumentExpression)?h=_=s.argumentExpression:(h=r.createTempVariable(i),_=r.createAssignment(h,e.visitNode(s.argumentExpression,M,e.isExpression))),_&&h)return d=r.createReflectGetCall(f,h,m),e.setTextRange(d,s),p=a?void 0:r.createTempVariable(i),d=e.expandPreOrPostfixIncrementOrDecrementExpression(r,n,d,i,p),d=r.createReflectSetCall(f,_,d,m),e.setOriginalNode(d,n),e.setTextRange(d,n),p&&(d=r.createComma(d,p),e.setTextRange(d,n)),d}}}return e.visitEachChild(n,M,t)}function X(t){var n=e.nodeIsSynthesized(t)?t:r.cloneNode(t);if(e.isSimpleInlineableExpression(t))return{readExpression:n,initializeExpression:void 0};var a=r.createTempVariable(i);return{readExpression:a,initializeExpression:r.createAssignment(a,n)}}function Y(t){if(v){k&&R.set(e.getOriginalNodeId(t),k),l();var n=H(t,function(t){return e.visitNodes(t,M,e.isStatement)},t.body.statements);n=r.mergeLexicalEnvironment(n,c());var i=r.createImmediatelyInvokedArrowFunction(n);return e.setOriginalNode(i,t),e.setTextRange(i,t),e.addEmitFlags(i,2),i}}function Q(a,o){if(e.isDestructuringAssignment(a)){var s=L;L=void 0,a=r.updateBinaryExpression(a,e.visitNode(a.left,U),a.operatorToken,e.visitNode(a.right,M));var c=e.some(L)?r.inlineExpressions(e.compact(n(n([],L,!0),[a],!1))):a;return L=s,c}if(e.isAssignmentExpression(a))if(v&&e.isPrivateIdentifierPropertyAccessExpression(a.left)){var l=ve(a.left.name);if(l)return e.setTextRange(e.setOriginalNode(Z(l,a.left.expression,a.right,a.operatorToken.kind),a),a)}else if(x&&e.isSuperProperty(a.left)&&w&&k){var u=k.classConstructor,d=k.superClassReference;if(1&k.facts)return r.updateBinaryExpression(a,ue(a.left),a.operatorToken,e.visitNode(a.right,M,e.isExpression));if(u&&d){var p=e.isElementAccessExpression(a.left)?e.visitNode(a.left.argumentExpression,M,e.isExpression):e.isIdentifier(a.left.name)?r.createStringLiteralFromNode(a.left.name):void 0;if(p){var m=e.visitNode(a.right,M,e.isExpression);if(e.isCompoundAssignment(a.operatorToken.kind)){var f=p;e.isSimpleInlineableExpression(p)||(f=r.createTempVariable(i),p=r.createAssignment(f,p));var _=r.createReflectGetCall(d,f,u);e.setOriginalNode(_,a.left),e.setTextRange(_,a.left),m=r.createBinaryExpression(_,e.getNonAssignmentOperatorForCompoundAssignment(a.operatorToken.kind),m),e.setTextRange(m,a)}var h=o?void 0:r.createTempVariable(i);return h&&(m=r.createAssignment(h,m),e.setTextRange(h,a)),m=r.createReflectSetCall(d,p,m,u),e.setOriginalNode(m,a),e.setTextRange(m,a),h&&(m=r.createComma(m,h),e.setTextRange(m,a)),m}}}return v&&function(t){return e.isPrivateIdentifier(t.left)&&101===t.operatorToken.kind}(a)?function(n){var r=ve(n.left);if(r){var i=e.visitNode(n.right,M,e.isExpression);return e.setOriginalNode(t.getEmitHelperFactory().createClassPrivateFieldInHelper(r.brandCheckIdentifier,i),n)}return e.visitEachChild(n,M,t)}(a):e.visitEachChild(a,M,t)}function Z(n,i,a,o){if(i=e.visitNode(i,M,e.isExpression),a=e.visitNode(a,M,e.isExpression),e.isCompoundAssignment(o)){var s=X(i),c=s.readExpression;i=s.initializeExpression||c,a=r.createBinaryExpression(z(n,c),e.getNonAssignmentOperatorForCompoundAssignment(o),a)}switch(e.setCommentRange(i,e.moveRangePos(i,-1)),n.kind){case"a":return t.getEmitHelperFactory().createClassPrivateFieldSetHelper(i,n.brandCheckIdentifier,a,n.kind,n.setterName);case"m":return t.getEmitHelperFactory().createClassPrivateFieldSetHelper(i,n.brandCheckIdentifier,a,n.kind,void 0);case"f":return t.getEmitHelperFactory().createClassPrivateFieldSetHelper(i,n.brandCheckIdentifier,a,n.kind,n.variableName);default:e.Debug.assertNever(n,"Unknown private element type")}}function ee(t){return e.filter(t.members,e.isNonStaticMethodOrAccessorWithPrivateName)}function te(n,r){var i=I,a=L;if(I=n,L=void 0,O.push(k),k=void 0,v){var o=e.getNameOfDeclaration(n);o&&e.isIdentifier(o)&&(pe().className=o);var s=ee(n);e.some(s)&&(pe().weakSetName=ge("instances",s[0].name))}var c=function(t){var n=0,r=e.getOriginalNode(t);e.isClassDeclaration(r)&&e.classOrConstructorParameterIsDecorated(r)&&(n|=1);for(var i=0,a=t.members;i=0?(h=y+1,b=n(n(n([],b.slice(0,g),!0),e.visitNodes(a.body.statements,M,e.isStatement,g,h-g),!0),b.slice(g),!0)):g>=0&&(h=g)),f&&b.push(r.createExpressionStatement(r.createCallExpression(r.createSuper(),void 0,[r.createSpreadElement(r.createIdentifier("arguments"))])));var E=0;if(null==a?void 0:a.body)if(_)b=b.filter(function(t){return!e.isParameterPropertyDeclaration(e.getOriginalNode(t),a)});else{for(var x=0,S=a.body.statements;x0){var C=e.visitNodes(a.body.statements,M,e.isStatement,h,E);if(y>=0)e.addRange(b,C);else{var D=g;f&&D++,b=n(n(n([],b.slice(0,D),!0),C,!0),b.slice(D),!0)}h+=E}}var L=r.createThis();if(function(t,n,i){if(v&&e.some(n)){var a=pe().weakSetName;e.Debug.assert(a,"weakSetName should be set in private identifier environment"),t.push(r.createExpressionStatement(function(t,n){return e.factory.createCallExpression(e.factory.createPropertyAccessExpression(n,"add"),void 0,[t])}(i,a)))}}(b,p,L),se(b,d,L),a&&e.addRange(b,e.visitNodes(a.body.statements,function(t){if(!_||!e.isParameterPropertyDeclaration(e.getOriginalNode(t),a))return M(t)},e.isStatement,h)),0!==(b=r.mergeLexicalEnvironment(b,c())).length||a){var A=(null==a?void 0:a.body)&&a.body.statements.length>=b.length&&null!==(l=a.body.multiLine)&&void 0!==l?l:b.length>0;return e.setTextRange(r.createBlock(e.setTextRange(r.createNodeArray(b),a?a.body.statements:i.members),A),a?a.body:void 0)}}(a,i,s);return d?i?(e.Debug.assert(l),r.updateConstructorDeclaration(i,void 0,l,d)):e.startOnNewLine(e.setOriginalNode(e.setTextRange(r.createConstructorDeclaration(void 0,null!=l?l:[],d),i||a),i)):i}function se(t,n,r){for(var i=0,a=n;i=0;--n){var r,i=O[n];if(i&&i.privateIdentifierEnvironment&&(r=e(i.privateIdentifierEnvironment,t)))return r}}function Ee(n){var a=r.getGeneratedNameForNode(n),o=ve(n.name);if(!o)return e.visitEachChild(n,M,t);var s=n.expression;return(e.isThisProperty(n)||e.isSuperProperty(n)||!e.isSimpleCopiableExpression(n.expression))&&(s=r.createTempVariable(i,!0),me().push(r.createBinaryExpression(s,63,e.visitNode(n.expression,M,e.isExpression)))),r.createAssignmentTargetWrapper(a,Z(o,s,a,63))}function xe(t){var n=e.getTargetOfBindingOrAssignmentElement(t);if(n){var i=void 0;if(e.isPrivateIdentifierPropertyAccessExpression(n))i=Ee(n);else if(x&&e.isSuperProperty(n)&&w&&k){var a=k.classConstructor,o=k.superClassReference;if(1&k.facts)i=ue(n);else if(a&&o){var s=e.isElementAccessExpression(n)?e.visitNode(n.argumentExpression,M,e.isExpression):e.isIdentifier(n.name)?r.createStringLiteralFromNode(n.name):void 0;if(s){var c=r.createTempVariable(void 0);i=r.createAssignmentTargetWrapper(c,r.createReflectSetCall(o,s,c,a))}}}if(i)return e.isAssignmentExpression(t)?r.updateBinaryExpression(t,i,t.operatorToken,e.visitNode(t.right,M,e.isExpression)):e.isSpreadElement(t)?r.updateSpreadElement(t,i):i}return e.visitNode(t,U)}function Se(t){if(e.isObjectBindingOrAssignmentElement(t)&&!e.isShorthandPropertyAssignment(t)){var n=e.getTargetOfBindingOrAssignmentElement(t),i=void 0;if(n)if(e.isPrivateIdentifierPropertyAccessExpression(n))i=Ee(n);else if(x&&e.isSuperProperty(n)&&w&&k){var a=k.classConstructor,o=k.superClassReference;if(1&k.facts)i=ue(n);else if(a&&o){var s=e.isElementAccessExpression(n)?e.visitNode(n.argumentExpression,M,e.isExpression):e.isIdentifier(n.name)?r.createStringLiteralFromNode(n.name):void 0;if(s){var c=r.createTempVariable(void 0);i=r.createAssignmentTargetWrapper(c,r.createReflectSetCall(o,s,c,a))}}}if(e.isPropertyAssignment(t)){var l=e.getInitializerOfBindingOrAssignmentElement(t);return r.updatePropertyAssignment(t,e.visitNode(t.name,M,e.isPropertyName),i?l?r.createAssignment(i,e.visitNode(l,M)):i:e.visitNode(t.initializer,U,e.isExpression))}if(e.isSpreadAssignment(t))return r.updateSpreadAssignment(t,i||e.visitNode(t.expression,U,e.isExpression));e.Debug.assert(void 0===i,"Should not have generated a wrapped target")}return e.visitNode(t,M)}}}(c||(c={})),function(e){e.createRuntimeTypeSerializer=function(t){var n,r,i=t.hoistVariableDeclaration,a=t.getEmitResolver(),o=t.getCompilerOptions(),s=e.getEmitScriptTarget(o),c=e.getStrictOptionValue(o,"strictNullChecks");return{serializeTypeNode:function(e,t){return l(e,m,t)},serializeTypeOfNode:function(e,t){return l(e,u,t)},serializeParameterTypesOfNode:function(e,t,n){return l(e,d,t,n)},serializeReturnTypeOfNode:function(e,t){return l(e,p,t)}};function l(e,t,i,a){var o=n,s=r;n=e.currentLexicalScope,r=e.currentNameScope;var c=void 0===a?t(i):t(i,a);return n=o,r=s,c}function u(t){switch(t.kind){case 169:case 166:return m(t.type);case 175:case 174:return m(function(t){var n=a.getAllAccessorDeclarations(t);return n.setAccessor&&e.getSetAccessorTypeAnnotationNode(n.setAccessor)||n.getAccessor&&e.getEffectiveReturnTypeNode(n.getAccessor)}(t));case 260:case 228:case 171:return e.factory.createIdentifier("Function");default:return e.factory.createVoidZero()}}function d(t,n){var r=e.isClassLike(t)?e.getFirstConstructorWithBody(t):e.isFunctionLike(t)&&e.nodeIsPresent(t.body)?t:void 0,i=[];if(r)for(var a=function(t,n){if(n&&174===t.kind){var r=e.getAllAccessorDeclarations(n.members,t).setAccessor;if(r)return r.parameters}return t.parameters}(r,n),o=a.length,s=0;s1&&(c.push(i.createEndOfDeclarationMarker(n)),e.setEmitFlags(c[0],4194304|e.getEmitFlags(c[0]))),e.singleOrMany(c)}(n);case 228:return function(t){return i.updateClassExpression(t,e.visitNodes(t.modifiers,d,e.isModifier),t.name,void 0,e.visitNodes(t.heritageClauses,p,e.isHeritageClause),e.visitNodes(t.members,p,e.isClassElement))}(n);case 173:return function(t){return i.updateConstructorDeclaration(t,e.visitNodes(t.modifiers,d,e.isModifier),e.visitNodes(t.parameters,p,e.isParameterDeclaration),e.visitNode(t.body,p,e.isBlock))}(n);case 171:return function(t){return h(i.updateMethodDeclaration(t,e.visitNodes(t.modifiers,d,e.isModifier),t.asteriskToken,e.visitNode(t.name,p,e.isPropertyName),void 0,void 0,e.visitNodes(t.parameters,p,e.isParameterDeclaration),void 0,e.visitNode(t.body,p,e.isBlock)),t)}(n);case 175:return function(t){return h(i.updateSetAccessorDeclaration(t,e.visitNodes(t.modifiers,d,e.isModifier),e.visitNode(t.name,p,e.isPropertyName),e.visitNodes(t.parameters,p,e.isParameterDeclaration),e.visitNode(t.body,p,e.isBlock)),t)}(n);case 174:return function(t){return h(i.updateGetAccessorDeclaration(t,e.visitNodes(t.modifiers,d,e.isModifier),e.visitNode(t.name,p,e.isPropertyName),e.visitNodes(t.parameters,p,e.isParameterDeclaration),void 0,e.visitNode(t.body,p,e.isBlock)),t)}(n);case 169:return function(t){if(!(16777216&t.flags||e.hasSyntacticModifier(t,2)))return h(i.updatePropertyDeclaration(t,e.visitNodes(t.modifiers,d,e.isModifier),e.visitNode(t.name,p,e.isPropertyName),void 0,void 0,e.visitNode(t.initializer,p,e.isExpression)),t)}(n);case 166:return function(t){var n=i.updateParameterDeclaration(t,e.elideNodes(i,t.modifiers),t.dotDotDotToken,e.visitNode(t.name,p,e.isBindingName),void 0,void 0,e.visitNode(t.initializer,p,e.isExpression));return n!==t&&(e.setCommentRange(n,t),e.setTextRange(n,e.moveRangePastModifiers(t)),e.setSourceMapRange(n,e.moveRangePastModifiers(t)),e.setEmitFlags(n.name,32)),n}(n);default:return e.visitEachChild(n,p,t)}}function m(e){return!!(536870912&e.transformFlags)}function f(t){return e.some(t,m)}function _(t,r){var a=[];return y(a,t,!1),y(a,t,!0),function(t){for(var n=0,r=t.members;n0?e.isPropertyDeclaration(n)&&!e.hasAccessorModifier(n)?i.createVoidZero():i.createNull():void 0,u=a().createDecorateHelper(r,o,s,c);return e.setEmitFlags(u,1536),e.setSourceMapRange(u,e.moveRangePastModifiers(n)),u}}function b(t){return e.visitNode(t.expression,p,e.isExpression)}function E(t,n){var r;if(t){r=[];for(var i=0,o=t;i=2&&6144&m.getNodeCheckFlags(n)&&3&~e.getFunctionFlags(u)){if(H(),o.size){var d=i(c,m,n,o);g[e.getNodeId(d)]=!0;var p=l.statements.slice();e.insertStatementsAfterStandardPrologue(p,[d]),l=c.updateBlock(l,p)}s&&(4096&m.getNodeCheckFlags(n)?e.addEmitHelper(l,e.advancedAsyncSuperHelper):2048&m.getNodeCheckFlags(n)&&e.addEmitHelper(l,e.asyncSuperHelper))}return o=r,s=a,l}function K(t){u();var n=e.getOriginalNode(t,e.isFunctionLike).type,r=_<2?function(t){var n=t&&e.getEntityNameFromTypeNode(t);if(n&&e.isEntityName(n)){var r=m.getTypeReferenceSerializationKind(n);if(r===e.TypeReferenceSerializationKind.TypeWithConstructSignatureAndValue||r===e.TypeReferenceSerializationKind.Unknown)return n}}(n):void 0,p=216===t.kind,f=!!(8192&m.getNodeCheckFlags(t)),h=a;a=new e.Set;for(var y=0,v=t.parameters;y=2&&6144&m.getNodeCheckFlags(t);if(N&&(H(),o.size)){var k=i(c,m,t,o);g[e.getNodeId(k)]=!0,e.insertStatementsAfterStandardPrologue(L,[k])}var I=c.createBlock(L,!0);e.setTextRange(I,t.body),N&&s&&(4096&m.getNodeCheckFlags(t)?e.addEmitHelper(I,e.advancedAsyncSuperHelper):2048&m.getNodeCheckFlags(t)&&e.addEmitHelper(I,e.asyncSuperHelper)),b=I}return a=h,p||(o=E,s=x),b}function j(t,n){return e.isBlock(t)?c.updateBlock(t,e.visitNodes(t.statements,L,e.isStatement,n)):c.converters.convertToFunctionBlock(e.visitNode(t,L,e.isConciseBody))}function H(){1&r||(r|=1,t.enableSubstitution(210),t.enableSubstitution(208),t.enableSubstitution(209),t.enableEmitNotification(260),t.enableEmitNotification(171),t.enableEmitNotification(174),t.enableEmitNotification(175),t.enableEmitNotification(173),t.enableEmitNotification(240))}function W(t){return 106===t.expression.kind?e.setTextRange(c.createPropertyAccessExpression(c.createUniqueName("_super",48),t.name),t):t}function $(t){return 106===t.expression.kind?(n=t.argumentExpression,r=t,4096&h?e.setTextRange(c.createPropertyAccessExpression(c.createCallExpression(c.createUniqueName("_superIndex",48),void 0,[n]),"value"),r):e.setTextRange(c.createCallExpression(c.createUniqueName("_superIndex",48),void 0,[n]),r)):t;var n,r}},e.createSuperAccessVariableStatement=i}(c||(c={})),function(e){var t,r;!function(e){e[e.AsyncMethodsWithSuper=1]="AsyncMethodsWithSuper"}(t||(t={})),function(e){e[e.None=0]="None",e[e.HasLexicalThis=1]="HasLexicalThis",e[e.IterationContainer=2]="IterationContainer",e[e.AncestorFactsMask=3]="AncestorFactsMask",e[e.SourceFileIncludes=1]="SourceFileIncludes",e[e.SourceFileExcludes=2]="SourceFileExcludes",e[e.StrictModeSourceFileIncludes=0]="StrictModeSourceFileIncludes",e[e.ClassOrFunctionIncludes=1]="ClassOrFunctionIncludes",e[e.ClassOrFunctionExcludes=2]="ClassOrFunctionExcludes",e[e.ArrowFunctionIncludes=0]="ArrowFunctionIncludes",e[e.ArrowFunctionExcludes=2]="ArrowFunctionExcludes",e[e.IterationStatementIncludes=2]="IterationStatementIncludes",e[e.IterationStatementExcludes=0]="IterationStatementExcludes"}(r||(r={})),e.transformES2018=function(t){var r=t.factory,i=t.getEmitHelperFactory,a=t.resumeLexicalEnvironment,o=t.endLexicalEnvironment,s=t.hoistVariableDeclaration,c=t.getEmitResolver(),l=t.getCompilerOptions(),u=e.getEmitScriptTarget(l),d=t.onEmitNode;t.onEmitNode=function(t,n,r){if(1&m&&function(e){var t=e.kind;return 260===t||173===t||171===t||174===t||175===t}(n)){var i=6144&c.getNodeCheckFlags(n);if(i!==E){var a=E;return E=i,d(t,n,r),void(E=a)}}else if(m&&S[e.getNodeId(n)])return a=E,E=0,d(t,n,r),void(E=a);d(t,n,r)};var p=t.onSubstituteNode;t.onSubstituteNode=function(t,i){return i=p(t,i),1===t&&E?function(t){switch(t.kind){case 208:return X(t);case 209:return Y(t);case 210:return function(t){var i=t.expression;if(e.isSuperProperty(i)){var a=e.isPropertyAccessExpression(i)?X(i):Y(i);return r.createCallExpression(r.createPropertyAccessExpression(a,"call"),void 0,n([r.createThis()],t.arguments,!0))}return t}(t)}return t}(i):i};var m,f,_,h,g,y,v,b=!1,E=0,x=0,S=[];return e.chainBundle(t,function(n){if(n.isDeclarationFile)return n;h=n;var i=function(n){var i=T(2,e.isEffectiveStrictModeSourceFile(n,l)?0:1);b=!1;var a=e.visitEachChild(n,L,t),o=e.concatenate(a.statements,g&&[r.createVariableStatement(void 0,r.createVariableDeclarationList(g))]),s=r.updateSourceFile(a,e.setTextRange(r.createNodeArray(o),n.statements));return C(i),s}(n);return e.addEmitHelpers(i,t.readEmitHelpers()),h=void 0,g=void 0,i});function T(e,t){var n=x;return x=3&(x&~e|t),n}function C(e){x=e}function D(t){g=e.append(g,r.createVariableDeclaration(t))}function L(e){return P(e,!1)}function A(e){return P(e,!0)}function N(e){if(132!==e.kind)return e}function k(e,t,n,r){if(function(e,t){return x!==(x&~e|t)}(n,r)){var i=T(n,r),a=e(t);return C(i),a}return e(t)}function I(n){return e.visitEachChild(n,L,t)}function P(a,o){if(!(128&a.transformFlags))return a;switch(a.kind){case 220:return function(n){return 2&f&&1&f?e.setOriginalNode(e.setTextRange(r.createYieldExpression(void 0,i().createAwaitHelper(e.visitNode(n.expression,L,e.isExpression))),n),n):e.visitEachChild(n,L,t)}(a);case 226:return function(n){if(2&f&&1&f){if(n.asteriskToken){var a=e.visitNode(e.Debug.checkDefined(n.expression),L,e.isExpression);return e.setOriginalNode(e.setTextRange(r.createYieldExpression(void 0,i().createAwaitHelper(r.updateYieldExpression(n,n.asteriskToken,e.setTextRange(i().createAsyncDelegatorHelper(e.setTextRange(i().createAsyncValuesHelper(a),a)),a)))),n),n)}return e.setOriginalNode(e.setTextRange(r.createYieldExpression(void 0,M(n.expression?e.visitNode(n.expression,L,e.isExpression):r.createVoidZero())),n),n)}return e.visitEachChild(n,L,t)}(a);case 250:return function(n){return 2&f&&1&f?r.updateReturnStatement(n,M(n.expression?e.visitNode(n.expression,L,e.isExpression):r.createVoidZero())):e.visitEachChild(n,L,t)}(a);case 253:return function(n){if(2&f){var i=e.unwrapInnermostStatementOfLabel(n);return 247===i.kind&&i.awaitModifier?R(i,n):r.restoreEnclosingLabel(e.visitNode(i,L,e.isStatement,r.liftToBlock),n)}return e.visitEachChild(n,L,t)}(a);case 207:return function(n){if(65536&n.transformFlags){var a=function(t){for(var n,i=[],a=0,o=t;a1){for(var s=1;s=2&&6144&c.getNodeCheckFlags(n);if(_){1&m||(m|=1,t.enableSubstitution(210),t.enableSubstitution(208),t.enableSubstitution(209),t.enableEmitNotification(260),t.enableEmitNotification(171),t.enableEmitNotification(174),t.enableEmitNotification(175),t.enableEmitNotification(173),t.enableEmitNotification(240));var h=e.createSuperAccessVariableStatement(r,c,n,y);S[e.getNodeId(h)]=!0,e.insertStatementsAfterStandardPrologue(s,[h])}s.push(f),e.insertStatementsAfterStandardPrologue(s,o());var g=r.updateBlock(n.body,s);return _&&v&&(4096&c.getNodeCheckFlags(n)?e.addEmitHelper(g,e.advancedAsyncSuperHelper):2048&c.getNodeCheckFlags(n)&&e.addEmitHelper(g,e.asyncSuperHelper)),y=d,v=p,g}function z(t){var n;a();var i=0,s=[],c=null!==(n=e.visitNode(t.body,L,e.isConciseBody))&&void 0!==n?n:r.createBlock([]);e.isBlock(c)&&(i=r.copyPrologue(c.statements,s,!1,L)),e.addRange(s,J(void 0,t));var l=o();if(i>0||e.some(s)||e.some(l)){var u=r.converters.convertToFunctionBlock(c,!0);return e.insertStatementsAfterStandardPrologue(s,l),e.addRange(s,u.statements.slice(i)),r.updateBlock(u,e.setTextRange(r.createNodeArray(s),u.statements))}return c}function J(n,i){for(var a=!1,o=0,s=i.parameters;o0){var l=e.flattenDestructuringBinding(c,L,t,0,r.getGeneratedNameForNode(c));if(e.some(l)){var u=r.createVariableDeclarationList(l),d=r.createVariableStatement(void 0,u);e.setEmitFlags(d,1048576),n=e.append(n,d)}}else if(c.initializer){var p=r.getGeneratedNameForNode(c),m=e.visitNode(c.initializer,L,e.isExpression),f=r.createAssignment(p,m);d=r.createExpressionStatement(f),e.setEmitFlags(d,1048576),n=e.append(n,d)}}else if(c.initializer){p=r.cloneNode(c.name),e.setTextRange(p,c.name),e.setEmitFlags(p,48),m=e.visitNode(c.initializer,L,e.isExpression),e.addEmitFlags(m,1584),f=r.createAssignment(p,m),e.setTextRange(f,c),e.setEmitFlags(f,1536);var _=r.createBlock([r.createExpressionStatement(f)]);e.setTextRange(_,c),e.setEmitFlags(_,1953);var h=r.createTypeCheck(r.cloneNode(c.name),"undefined");d=r.createIfStatement(h,_),e.startOnNewLine(d),e.setTextRange(d,c),e.setEmitFlags(d,1050528),n=e.append(n,d)}}else 65536&c.transformFlags&&(a=!0,l=e.flattenDestructuringBinding(c,L,t,1,r.getGeneratedNameForNode(c),!1,!0),e.some(l)&&(u=r.createVariableDeclarationList(l),d=r.createVariableStatement(void 0,u),e.setEmitFlags(d,1048576),n=e.append(n,d)))}return n}function X(t){return 106===t.expression.kind?e.setTextRange(r.createPropertyAccessExpression(r.createUniqueName("_super",48),t.name),t):t}function Y(t){return 106===t.expression.kind?(n=t.argumentExpression,i=t,4096&E?e.setTextRange(r.createPropertyAccessExpression(r.createCallExpression(r.createIdentifier("_superIndex"),void 0,[n]),"value"),i):e.setTextRange(r.createCallExpression(r.createIdentifier("_superIndex"),void 0,[n]),i)):t;var n,i}}}(c||(c={})),function(e){e.transformES2019=function(t){var n=t.factory;return e.chainBundle(t,function(n){return n.isDeclarationFile?n:e.visitEachChild(n,r,t)});function r(i){return 64&i.transformFlags?295===i.kind?function(i){return i.variableDeclaration?e.visitEachChild(i,r,t):n.updateCatchClause(i,n.createVariableDeclaration(n.createTempVariable(void 0)),e.visitNode(i.block,r,e.isBlock))}(i):e.visitEachChild(i,r,t):i}}}(c||(c={})),function(e){e.transformES2020=function(t){var n=t.factory,r=t.hoistVariableDeclaration;return e.chainBundle(t,function(n){return n.isDeclarationFile?n:e.visitEachChild(n,i,t)});function i(a){if(!(32&a.transformFlags))return a;switch(a.kind){case 210:var u=o(a,!1);return e.Debug.assertNotNode(u,e.isSyntheticReference),u;case 208:case 209:return e.isOptionalChain(a)?(u=c(a,!1,!1),e.Debug.assertNotNode(u,e.isSyntheticReference),u):e.visitEachChild(a,i,t);case 223:return 60===a.operatorToken.kind?function(t){var a=e.visitNode(t.left,i,e.isExpression),o=a;return e.isSimpleCopiableExpression(a)||(o=n.createTempVariable(r),a=n.createAssignment(o,a)),e.setTextRange(n.createConditionalExpression(l(a,o),void 0,o,void 0,e.visitNode(t.right,i,e.isExpression)),t)}(a):e.visitEachChild(a,i,t);case 217:return function(t){return e.isOptionalChain(e.skipParentheses(t.expression))?e.setOriginalNode(s(t.expression,!1,!0),t):n.updateDeleteExpression(t,e.visitNode(t.expression,i,e.isExpression))}(a);default:return e.visitEachChild(a,i,t)}}function a(t,r,i){var a=s(t.expression,r,i);return e.isSyntheticReference(a)?n.createSyntheticReferenceExpression(n.updateParenthesizedExpression(t,a.expression),a.thisArg):n.updateParenthesizedExpression(t,a)}function o(r,o){if(e.isOptionalChain(r))return c(r,o,!1);if(e.isParenthesizedExpression(r.expression)&&e.isOptionalChain(e.skipParentheses(r.expression))){var s=a(r.expression,!0,!1),l=e.visitNodes(r.arguments,i,e.isExpression);return e.isSyntheticReference(s)?e.setTextRange(n.createFunctionCallCall(s.expression,s.thisArg,l),r):n.updateCallExpression(r,s,void 0,l)}return e.visitEachChild(r,i,t)}function s(t,s,l){switch(t.kind){case 214:return a(t,s,l);case 208:case 209:return function(t,a,o){if(e.isOptionalChain(t))return c(t,a,o);var s,l=e.visitNode(t.expression,i,e.isExpression);return e.Debug.assertNotNode(l,e.isSyntheticReference),a&&(e.isSimpleCopiableExpression(l)?s=l:(s=n.createTempVariable(r),l=n.createAssignment(s,l))),l=208===t.kind?n.updatePropertyAccessExpression(t,l,e.visitNode(t.name,i,e.isIdentifier)):n.updateElementAccessExpression(t,l,e.visitNode(t.argumentExpression,i,e.isExpression)),s?n.createSyntheticReferenceExpression(l,s):l}(t,s,l);case 210:return o(t,s);default:return e.visitNode(t,i,e.isExpression)}}function c(t,a,o){var c=function(t){e.Debug.assertNotNode(t,e.isNonNullChain);for(var n=[t];!t.questionDotToken&&!e.isTaggedTemplateExpression(t);)t=e.cast(e.skipPartiallyEmittedExpressions(t.expression),e.isOptionalChain),e.Debug.assertNotNode(t,e.isNonNullChain),n.unshift(t);return{expression:t.expression,chain:n}}(t),u=c.expression,d=c.chain,p=s(e.skipPartiallyEmittedExpressions(u),e.isCallChain(d[0]),!1),m=e.isSyntheticReference(p)?p.thisArg:void 0,f=e.isSyntheticReference(p)?p.expression:p,_=n.restoreOuterExpressions(u,f,8);e.isSimpleCopiableExpression(f)||(f=n.createTempVariable(r),_=n.createAssignment(f,_));for(var h,g=f,y=0;y1||!!(null===(p=m[0])||void 0===p?void 0:p.dotDotDotToken),_=[t,n];if(i&&_.push(C(i.initializer)),5===s.jsx){var h=e.getOriginalNode(r);if(h&&e.isSourceFile(h)){void 0===i&&_.push(a.createVoidZero()),_.push(f?a.createTrue():a.createFalse());var g=e.getLineAndCharacterOfPosition(h,d.pos);_.push(a.createObjectLiteralExpression([a.createPropertyAssignment("fileName",c()),a.createPropertyAssignment("lineNumber",a.createNumericLiteral(g.line+1)),a.createPropertyAssignment("columnNumber",a.createNumericLiteral(g.character+1))])),_.push(a.createThis())}}var y=e.setTextRange(a.createCallExpression(function(e){var t=function(e){return 5===s.jsx?"jsxDEV":e?"jsxs":"jsx"}(e);return l(t)}(f),void 0,_),d);return u&&e.startOnNewLine(y),y}function v(t,o,c,u){var p=A(t),m=t.attributes.properties,f=e.length(m)?x(m):a.createNull(),_=void 0===i.importSpecifier?e.createJsxFactoryExpression(a,n.getEmitResolver().getJsxFactoryEntity(r),s.reactNamespace,t):l("createElement"),h=e.createExpressionForJsxElement(a,_,p,f,e.mapDefined(o,d),u);return c&&e.startOnNewLine(h),h}function b(e,t,n,r){var i;if(t&&t.length){var o=function(e){var t=h(e);return t&&a.createObjectLiteralExpression([t])}(t);o&&(i=o)}return y(l("Fragment"),i||a.createObjectLiteralExpression([]),void 0,t,n,r)}function E(t,i,o,c){var l=e.createExpressionForJsxFragment(a,n.getEmitResolver().getJsxFactoryEntity(r),n.getEmitResolver().getJsxFragmentFactoryEntity(r),s.reactNamespace,e.mapDefined(i,d),t,c);return o&&e.startOnNewLine(l),l}function x(t,n){var r=e.getEmitScriptTarget(s);return r&&r>=5?a.createObjectLiteralExpression(function(t,n){var r=e.flatten(e.spanMap(t,e.isJsxSpreadAttribute,function(t,n){return e.map(t,function(t){return n?(r=t,a.createSpreadAssignment(e.visitNode(r.expression,u,e.isExpression))):T(t);var r})}));return n&&r.push(n),r}(t,n)):function(t,n){var r=e.flatten(e.spanMap(t,e.isJsxSpreadAttribute,function(t,n){return n?e.map(t,S):a.createObjectLiteralExpression(e.map(t,T))}));return e.isJsxSpreadAttribute(t[0])&&r.unshift(a.createObjectLiteralExpression()),n&&r.push(a.createObjectLiteralExpression([n])),e.singleOrUndefined(r)||o().createAssignHelper(r)}(t,n)}function S(t){return e.visitNode(t.expression,u,e.isExpression)}function T(t){var n=function(t){var n=t.name,r=e.idText(n);return/^[A-Za-z_]\w*$/.test(r)?n:a.createStringLiteral(r)}(t),r=C(t.initializer);return a.createPropertyAssignment(n,r)}function C(t){if(void 0===t)return a.createTrue();if(10===t.kind){var n=void 0!==t.singleQuote?t.singleQuote:!e.isStringDoubleQuoted(t,r),i=a.createStringLiteral(((s=L(o=t.text))===o?void 0:s)||t.text,n);return e.setTextRange(i,t)}var o,s;return 291===t.kind?void 0===t.expression?a.createTrue():e.visitNode(t.expression,u,e.isExpression):e.isJsxElement(t)?m(t,!1):e.isJsxSelfClosingElement(t)?f(t,!1):e.isJsxFragment(t)?_(t,!1):e.Debug.failBadSyntaxKind(t)}function D(e,t){var n=L(t);return void 0===e?n:e+" "+n}function L(n){return n.replace(/&((#((\d+)|x([\da-fA-F]+)))|(\w+));/g,function(n,r,i,a,o,s,c){if(o)return e.utf16EncodeAsString(parseInt(o,10));if(s)return e.utf16EncodeAsString(parseInt(s,16));var l=t.get(c);return l?e.utf16EncodeAsString(l):n})}function A(t){if(281===t.kind)return A(t.openingElement);var n=t.tagName;return e.isIdentifier(n)&&e.isIntrinsicJsxName(n.escapedText)?a.createStringLiteral(e.idText(n)):e.createExpressionFromEntityName(a,n)}function N(t){var n=e.visitNode(t.expression,u,e.isExpression);return t.dotDotDotToken?a.createSpreadElement(n):n}};var t=new e.Map(e.getEntries({quot:34,amp:38,apos:39,lt:60,gt:62,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,copy:169,ordf:170,laquo:171,not:172,shy:173,reg:174,macr:175,deg:176,plusmn:177,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,sup1:185,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,Agrave:192,Aacute:193,Acirc:194,Atilde:195,Auml:196,Aring:197,AElig:198,Ccedil:199,Egrave:200,Eacute:201,Ecirc:202,Euml:203,Igrave:204,Iacute:205,Icirc:206,Iuml:207,ETH:208,Ntilde:209,Ograve:210,Oacute:211,Ocirc:212,Otilde:213,Ouml:214,times:215,Oslash:216,Ugrave:217,Uacute:218,Ucirc:219,Uuml:220,Yacute:221,THORN:222,szlig:223,agrave:224,aacute:225,acirc:226,atilde:227,auml:228,aring:229,aelig:230,ccedil:231,egrave:232,eacute:233,ecirc:234,euml:235,igrave:236,iacute:237,icirc:238,iuml:239,eth:240,ntilde:241,ograve:242,oacute:243,ocirc:244,otilde:245,ouml:246,divide:247,oslash:248,ugrave:249,uacute:250,ucirc:251,uuml:252,yacute:253,thorn:254,yuml:255,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830}))}(c||(c={})),function(e){e.transformES2016=function(t){var n=t.factory,r=t.hoistVariableDeclaration;return e.chainBundle(t,function(n){return n.isDeclarationFile?n:e.visitEachChild(n,i,t)});function i(a){return 512&a.transformFlags?223===a.kind?function(a){switch(a.operatorToken.kind){case 67:return function(t){var a,o,s=e.visitNode(t.left,i,e.isExpression),c=e.visitNode(t.right,i,e.isExpression);if(e.isElementAccessExpression(s)){var l=n.createTempVariable(r),u=n.createTempVariable(r);a=e.setTextRange(n.createElementAccessExpression(e.setTextRange(n.createAssignment(l,s.expression),s.expression),e.setTextRange(n.createAssignment(u,s.argumentExpression),s.argumentExpression)),s),o=e.setTextRange(n.createElementAccessExpression(l,u),s)}else e.isPropertyAccessExpression(s)?(l=n.createTempVariable(r),a=e.setTextRange(n.createPropertyAccessExpression(e.setTextRange(n.createAssignment(l,s.expression),s.expression),s.name),s),o=e.setTextRange(n.createPropertyAccessExpression(l,s.name),s)):(a=s,o=s);return e.setTextRange(n.createAssignment(a,e.setTextRange(n.createGlobalMethodCall("Math","pow",[o,c]),t)),t)}(a);case 42:return function(t){var r=e.visitNode(t.left,i,e.isExpression),a=e.visitNode(t.right,i,e.isExpression);return e.setTextRange(n.createGlobalMethodCall("Math","pow",[r,a]),t)}(a);default:return e.visitEachChild(a,i,t)}}(a):e.visitEachChild(a,i,t):a}}}(c||(c={})),function(e){var t,r,i,a,o,s;function c(e,t){return{kind:e,expression:t}}!function(e){e[e.CapturedThis=1]="CapturedThis",e[e.BlockScopedBindings=2]="BlockScopedBindings"}(t||(t={})),function(e){e[e.Body=1]="Body",e[e.Initializer=2]="Initializer"}(r||(r={})),function(e){e[e.ToOriginal=0]="ToOriginal",e[e.ToOutParameter=1]="ToOutParameter"}(i||(i={})),function(e){e[e.Break=2]="Break",e[e.Continue=4]="Continue",e[e.Return=8]="Return"}(a||(a={})),function(e){e[e.None=0]="None",e[e.Function=1]="Function",e[e.ArrowFunction=2]="ArrowFunction",e[e.AsyncFunctionBody=4]="AsyncFunctionBody",e[e.NonStaticClassElement=8]="NonStaticClassElement",e[e.CapturesThis=16]="CapturesThis",e[e.ExportedVariableStatement=32]="ExportedVariableStatement",e[e.TopLevel=64]="TopLevel",e[e.Block=128]="Block",e[e.IterationStatement=256]="IterationStatement",e[e.IterationStatementBlock=512]="IterationStatementBlock",e[e.IterationContainer=1024]="IterationContainer",e[e.ForStatement=2048]="ForStatement",e[e.ForInOrForOfStatement=4096]="ForInOrForOfStatement",e[e.ConstructorWithCapturedSuper=8192]="ConstructorWithCapturedSuper",e[e.StaticInitializer=16384]="StaticInitializer",e[e.AncestorFactsMask=32767]="AncestorFactsMask",e[e.BlockScopeIncludes=0]="BlockScopeIncludes",e[e.BlockScopeExcludes=7104]="BlockScopeExcludes",e[e.SourceFileIncludes=64]="SourceFileIncludes",e[e.SourceFileExcludes=8064]="SourceFileExcludes",e[e.FunctionIncludes=65]="FunctionIncludes",e[e.FunctionExcludes=32670]="FunctionExcludes",e[e.AsyncFunctionBodyIncludes=69]="AsyncFunctionBodyIncludes",e[e.AsyncFunctionBodyExcludes=32662]="AsyncFunctionBodyExcludes",e[e.ArrowFunctionIncludes=66]="ArrowFunctionIncludes",e[e.ArrowFunctionExcludes=15232]="ArrowFunctionExcludes",e[e.ConstructorIncludes=73]="ConstructorIncludes",e[e.ConstructorExcludes=32662]="ConstructorExcludes",e[e.DoOrWhileStatementIncludes=1280]="DoOrWhileStatementIncludes",e[e.DoOrWhileStatementExcludes=0]="DoOrWhileStatementExcludes",e[e.ForStatementIncludes=3328]="ForStatementIncludes",e[e.ForStatementExcludes=5056]="ForStatementExcludes",e[e.ForInOrForOfStatementIncludes=5376]="ForInOrForOfStatementIncludes",e[e.ForInOrForOfStatementExcludes=3008]="ForInOrForOfStatementExcludes",e[e.BlockIncludes=128]="BlockIncludes",e[e.BlockExcludes=6976]="BlockExcludes",e[e.IterationStatementBlockIncludes=512]="IterationStatementBlockIncludes",e[e.IterationStatementBlockExcludes=7104]="IterationStatementBlockExcludes",e[e.StaticInitializerIncludes=16449]="StaticInitializerIncludes",e[e.StaticInitializerExcludes=32670]="StaticInitializerExcludes",e[e.NewTarget=32768]="NewTarget",e[e.CapturedLexicalThis=65536]="CapturedLexicalThis",e[e.SubtreeFactsMask=-32768]="SubtreeFactsMask",e[e.ArrowFunctionSubtreeExcludes=0]="ArrowFunctionSubtreeExcludes",e[e.FunctionSubtreeExcludes=98304]="FunctionSubtreeExcludes"}(o||(o={})),function(e){e[e.None=0]="None",e[e.UnpackedSpread=1]="UnpackedSpread",e[e.PackedSpread=2]="PackedSpread"}(s||(s={})),e.transformES2015=function(t){var r,i,a,o,s,l,u=t.factory,d=t.getEmitHelperFactory,p=t.startLexicalEnvironment,m=t.resumeLexicalEnvironment,f=t.endLexicalEnvironment,_=t.hoistVariableDeclaration,h=t.getCompilerOptions(),g=t.getEmitResolver(),y=t.onSubstituteNode,v=t.onEmitNode;function b(t){o=e.append(o,u.createVariableDeclaration(t))}return t.onEmitNode=function(t,n,r){if(1&l&&e.isFunctionLike(n)){var i=E(32670,8&e.getEmitFlags(n)?81:65);return v(t,n,r),void x(i,0,0)}v(t,n,r)},t.onSubstituteNode=function(t,n){return n=y(t,n),1===t?function(t){switch(t.kind){case 79:return function(t){if(2&l&&!e.isInternalName(t)){var n=g.getReferencedDeclarationWithCollidingName(t);if(n&&(!e.isClassLike(n)||!function(t,n){var r=e.getParseTreeNode(n);if(!r||r===t||r.end<=t.pos||r.pos>=t.end)return!1;for(var i=e.getEnclosingBlockScopeContainer(t);r;){if(r===i||r===t)return!1;if(e.isClassElement(r)&&r.parent===t)return!0;r=r.parent}return!1}(n,t)))return e.setTextRange(u.getGeneratedNameForNode(e.getNameOfDeclaration(n)),t)}return t}(t);case 108:return function(t){return 1&l&&16&a?e.setTextRange(u.createUniqueName("_this",48),t):t}(t)}return t}(n):e.isIdentifier(n)?function(t){if(2&l&&!e.isInternalName(t)){var n=e.getParseTreeNode(t,e.isIdentifier);if(n&&function(e){switch(e.parent.kind){case 205:case 260:case 263:case 257:return e.parent.name===e&&g.isDeclarationWithCollidingName(e.parent)}return!1}(n))return e.setTextRange(u.getGeneratedNameForNode(n),t)}return t}(n):n},e.chainBundle(t,function(n){if(n.isDeclarationFile)return n;r=n,i=n.text;var s=function(t){var n=E(8064,64),r=[],i=[];p();var a=u.copyPrologue(t.statements,r,!1,C);return e.addRange(i,e.visitNodes(t.statements,C,e.isStatement,a)),o&&i.push(u.createVariableStatement(void 0,u.createVariableDeclarationList(o))),u.mergeLexicalEnvironment(r,f()),V(r,t),x(n,0,0),u.updateSourceFile(t,e.setTextRange(u.createNodeArray(e.concatenate(r,i)),t.statements))}(n);return e.addEmitHelpers(s,t.readEmitHelpers()),r=void 0,i=void 0,o=void 0,a=0,s});function E(e,t){var n=a;return a=32767&(a&~e|t),n}function x(e,t,n){a=-32768&(a&~t|n)|e}function S(e){return!!(8192&a)&&250===e.kind&&!e.expression}function T(t){return!!(1024&t.transformFlags)||void 0!==s||8192&a&&function(t){return 4194304&t.transformFlags&&(e.isReturnStatement(t)||e.isIfStatement(t)||e.isWithStatement(t)||e.isSwitchStatement(t)||e.isCaseBlock(t)||e.isCaseClause(t)||e.isDefaultClause(t)||e.isTryStatement(t)||e.isCatchClause(t)||e.isLabeledStatement(t)||e.isIterationStatement(t,!1)||e.isBlock(t))}(t)||e.isIterationStatement(t,!1)&&fe(t)||!!(33554432&e.getEmitFlags(t))}function C(e){return T(e)?N(e,!1):e}function D(e){return T(e)?N(e,!0):e}function L(t){if(T(t)){var n=e.getOriginalNode(t);if(e.isPropertyDeclaration(n)&&e.hasStaticModifier(n)){var r=E(32670,16449),i=N(t,!1);return x(r,98304,0),i}return N(t,!1)}return t}function A(e){return 106===e.kind?we(!0):C(e)}function N(i,o){switch(i.kind){case 124:return;case 260:return function(t){var n=u.createVariableDeclaration(u.getLocalName(t,!0),void 0,void 0,P(t));e.setOriginalNode(n,t);var r=[],i=u.createVariableStatement(void 0,u.createVariableDeclarationList([n]));if(e.setOriginalNode(i,t),e.setTextRange(i,t),e.startOnNewLine(i),r.push(i),e.hasSyntacticModifier(t,1)){var a=e.hasSyntacticModifier(t,1024)?u.createExportDefault(u.getLocalName(t)):u.createExternalModuleExport(u.getLocalName(t));e.setOriginalNode(a,i),r.push(a)}var o=e.getEmitFlags(t);return 4194304&o||(r.push(u.createEndOfDeclarationMarker(t)),e.setEmitFlags(i,4194304|o)),e.singleOrMany(r)}(i);case 228:return function(e){return P(e)}(i);case 166:return function(t){return t.dotDotDotToken?void 0:e.isBindingPattern(t.name)?e.setOriginalNode(e.setTextRange(u.createParameterDeclaration(void 0,void 0,u.getGeneratedNameForNode(t),void 0,void 0,void 0),t),t):t.initializer?e.setOriginalNode(e.setTextRange(u.createParameterDeclaration(void 0,void 0,t.name,void 0,void 0,void 0),t),t):t}(i);case 259:return function(n){var r=s;s=void 0;var i=E(32670,65),o=e.visitParameterList(n.parameters,C,t),c=J(n),l=32768&a?u.getLocalName(n):n.name;return x(i,98304,0),s=r,u.updateFunctionDeclaration(n,e.visitNodes(n.modifiers,C,e.isModifier),n.asteriskToken,l,void 0,o,void 0,c)}(i);case 216:return function(n){16384&n.transformFlags&&!(16384&a)&&(a|=65536);var r=s;s=void 0;var i=E(15232,66),o=u.createFunctionExpression(void 0,void 0,void 0,void 0,e.visitParameterList(n.parameters,C,t),void 0,J(n));return e.setTextRange(o,n),e.setOriginalNode(o,n),e.setEmitFlags(o,8),x(i,0,0),s=r,o}(i);case 215:return function(n){var r=262144&e.getEmitFlags(n)?E(32662,69):E(32670,65),i=s;s=void 0;var o=e.visitParameterList(n.parameters,C,t),c=J(n),l=32768&a?u.getLocalName(n):n.name;return x(r,98304,0),s=i,u.updateFunctionExpression(n,void 0,n.asteriskToken,l,void 0,o,void 0,c)}(i);case 257:return Q(i);case 79:return I(i);case 258:return function(n){if(3&n.flags||524288&n.transformFlags){3&n.flags&&Oe();var r=e.flatMap(n.declarations,1&n.flags?Y:Q),i=u.createVariableDeclarationList(r);return e.setOriginalNode(i,n),e.setTextRange(i,n),e.setCommentRange(i,n),524288&n.transformFlags&&(e.isBindingPattern(n.declarations[0].name)||e.isBindingPattern(e.last(n.declarations).name))&&e.setSourceMapRange(i,function(t){for(var n=-1,r=-1,i=0,a=t;i0&&o.push(u.createStringLiteral(a.literal.text)),n=u.createCallExpression(u.createPropertyAccessExpression(n,"concat"),void 0,o)}return e.setTextRange(n,t)}(i);case 227:return function(t){return e.visitNode(t.expression,C,e.isExpression)}(i);case 106:return we(!1);case 108:return function(e){return 2&a&&!(16384&a)&&(a|=65536),s?2&a?(s.containsLexicalThis=!0,e):s.thisName||(s.thisName=u.createUniqueName("this")):e}(i);case 233:return function(e){return 103===e.keywordToken&&"target"===e.name.escapedText?(a|=32768,u.createUniqueName("_newTarget",48)):e}(i);case 171:return function(t){e.Debug.assert(!e.isComputedPropertyName(t.name));var n=z(t,e.moveRangePos(t,-1),void 0,void 0);return e.setEmitFlags(n,512|e.getEmitFlags(n)),e.setTextRange(u.createPropertyAssignment(t.name,n),t)}(i);case 174:case 175:return function(n){e.Debug.assert(!e.isComputedPropertyName(n.name));var r=s;s=void 0;var i,a=E(32670,65),o=e.visitParameterList(n.parameters,C,t),c=J(n);return i=174===n.kind?u.updateGetAccessorDeclaration(n,n.modifiers,n.name,o,n.type,c):u.updateSetAccessorDeclaration(n,n.modifiers,n.name,o,c),x(a,98304,0),s=r,i}(i);case 240:return function(n){var r,i=E(0,e.hasSyntacticModifier(n,1)?32:0);if(!s||3&n.declarationList.flags||function(t){return 1===t.declarationList.declarations.length&&!!t.declarationList.declarations[0].initializer&&!!(33554432&e.getEmitFlags(t.declarationList.declarations[0].initializer))}(n))r=e.visitEachChild(n,C,t);else{for(var a=void 0,o=0,c=n.declarationList.declarations;o0?(e.insertStatementAfterCustomPrologue(n,e.setEmitFlags(u.createVariableStatement(void 0,u.createVariableDeclarationList(e.flattenDestructuringBinding(r,C,t,0,u.getGeneratedNameForNode(r)))),1048576)),!0):!!a&&(e.insertStatementAfterCustomPrologue(n,e.setEmitFlags(u.createExpressionStatement(u.createAssignment(u.getGeneratedNameForNode(r),e.visitNode(a,C,e.isExpression))),1048576)),!0)}function B(t,n,r,i){i=e.visitNode(i,C,e.isExpression);var a=u.createIfStatement(u.createTypeCheck(u.cloneNode(r),"undefined"),e.setEmitFlags(e.setTextRange(u.createBlock([u.createExpressionStatement(e.setEmitFlags(e.setTextRange(u.createAssignment(e.setEmitFlags(e.setParent(e.setTextRange(u.cloneNode(r),r),r.parent),48),e.setEmitFlags(i,1584|e.getEmitFlags(i))),n),1536))]),n),1953));e.startOnNewLine(a),e.setTextRange(a,n),e.setEmitFlags(a,1050528),e.insertStatementAfterCustomPrologue(t,a)}function U(n,r,i){var a=[],o=e.lastOrUndefined(r.parameters);if(!function(e,t){return!(!e||!e.dotDotDotToken||t)}(o,i))return!1;var s=79===o.name.kind?e.setParent(e.setTextRange(u.cloneNode(o.name),o.name),o.name.parent):u.createTempVariable(void 0);e.setEmitFlags(s,48);var c=79===o.name.kind?u.cloneNode(o.name):s,l=r.parameters.length-1,d=u.createLoopVariable();a.push(e.setEmitFlags(e.setTextRange(u.createVariableStatement(void 0,u.createVariableDeclarationList([u.createVariableDeclaration(s,void 0,void 0,u.createArrayLiteralExpression([]))])),o),1048576));var p=u.createForStatement(e.setTextRange(u.createVariableDeclarationList([u.createVariableDeclaration(d,void 0,void 0,u.createNumericLiteral(l))]),o),e.setTextRange(u.createLessThan(d,u.createPropertyAccessExpression(u.createIdentifier("arguments"),"length")),o),e.setTextRange(u.createPostfixIncrement(d),o),u.createBlock([e.startOnNewLine(e.setTextRange(u.createExpressionStatement(u.createAssignment(u.createElementAccessExpression(c,0===l?d:u.createSubtract(d,u.createNumericLiteral(l))),u.createElementAccessExpression(u.createIdentifier("arguments"),d))),o))]));return e.setEmitFlags(p,1048576),e.startOnNewLine(p),a.push(p),79!==o.name.kind&&a.push(e.setEmitFlags(e.setTextRange(u.createVariableStatement(void 0,u.createVariableDeclarationList(e.flattenDestructuringBinding(o,C,t,0,c))),o),1048576)),e.insertStatementsAfterCustomPrologue(n,a),!0}function V(e,t){return!!(65536&a&&216!==t.kind)&&(K(e,t,u.createThis()),!0)}function K(t,n,r){Re();var i=u.createVariableStatement(void 0,u.createVariableDeclarationList([u.createVariableDeclaration(u.createUniqueName("_this",48),void 0,void 0,r)]));e.setEmitFlags(i,1050112),e.setSourceMapRange(i,n),e.insertStatementAfterCustomPrologue(t,i)}function j(t,n,r){if(32768&a){var i=void 0;switch(n.kind){case 216:return t;case 171:case 174:case 175:i=u.createVoidZero();break;case 173:i=u.createPropertyAccessExpression(e.setEmitFlags(u.createThis(),4),"constructor");break;case 259:case 215:i=u.createConditionalExpression(u.createLogicalAnd(e.setEmitFlags(u.createThis(),4),u.createBinaryExpression(e.setEmitFlags(u.createThis(),4),102,u.getLocalName(n))),void 0,u.createPropertyAccessExpression(e.setEmitFlags(u.createThis(),4),"constructor"),void 0,u.createVoidZero());break;default:return e.Debug.failBadSyntaxKind(n)}var o=u.createVariableStatement(void 0,u.createVariableDeclarationList([u.createVariableDeclaration(u.createUniqueName("_newTarget",48),void 0,void 0,i)]));e.setEmitFlags(o,1050112),e.insertStatementAfterCustomPrologue(t,o)}return t}function H(t){return e.setTextRange(u.createEmptyStatement(),t)}function W(n,r,i){var a,o=e.getCommentRange(r),s=e.getSourceMapRange(r),c=z(r,r,void 0,i),l=e.visitNode(r.name,C,e.isPropertyName);if(!e.isPrivateIdentifier(l)&&e.getUseDefineForClassFields(t.getCompilerOptions())){var d=e.isComputedPropertyName(l)?l.expression:e.isIdentifier(l)?u.createStringLiteral(e.unescapeLeadingUnderscores(l.escapedText)):l;a=u.createObjectDefinePropertyCall(n,d,u.createPropertyDescriptor({value:c,enumerable:!1,writable:!0,configurable:!0}))}else{var p=e.createMemberAccessForPropertyName(u,n,l,r.name);a=u.createAssignment(p,c)}e.setEmitFlags(c,1536),e.setSourceMapRange(c,s);var m=e.setTextRange(u.createExpressionStatement(a),r);return e.setOriginalNode(m,r),e.setCommentRange(m,o),e.setEmitFlags(m,48),m}function $(t,n,r){var i=u.createExpressionStatement(q(t,n,r,!1));return e.setEmitFlags(i,1536),e.setSourceMapRange(i,e.getSourceMapRange(n.firstAccessor)),i}function q(t,n,r,i){var a=n.firstAccessor,o=n.getAccessor,s=n.setAccessor,c=e.setParent(e.setTextRange(u.cloneNode(t),t),t.parent);e.setEmitFlags(c,1568),e.setSourceMapRange(c,a.name);var l=e.visitNode(a.name,C,e.isPropertyName);if(e.isPrivateIdentifier(l))return e.Debug.failBadSyntaxKind(l,"Encountered unhandled private identifier while transforming ES2015.");var d=e.createExpressionForPropertyName(u,l);e.setEmitFlags(d,1552),e.setSourceMapRange(d,a.name);var p=[];if(o){var m=z(o,void 0,void 0,r);e.setSourceMapRange(m,e.getSourceMapRange(o)),e.setEmitFlags(m,512);var f=u.createPropertyAssignment("get",m);e.setCommentRange(f,e.getCommentRange(o)),p.push(f)}if(s){var _=z(s,void 0,void 0,r);e.setSourceMapRange(_,e.getSourceMapRange(s)),e.setEmitFlags(_,512);var h=u.createPropertyAssignment("set",_);e.setCommentRange(h,e.getCommentRange(s)),p.push(h)}p.push(u.createPropertyAssignment("enumerable",o||s?u.createFalse():u.createTrue()),u.createPropertyAssignment("configurable",u.createTrue()));var g=u.createCallExpression(u.createPropertyAccessExpression(u.createIdentifier("Object"),"defineProperty"),void 0,[c,d,u.createObjectLiteralExpression(p,!0)]);return i&&e.startOnNewLine(g),g}function z(n,r,i,o){var c=s;s=void 0;var l=o&&e.isClassLike(o)&&!e.isStatic(n)?E(32670,73):E(32670,65),d=e.visitParameterList(n.parameters,C,t),p=J(n);return 32768&a&&!i&&(259===n.kind||215===n.kind)&&(i=u.getGeneratedNameForNode(n)),x(l,98304,0),s=c,e.setOriginalNode(e.setTextRange(u.createFunctionExpression(void 0,n.asteriskToken,i,void 0,d,void 0,p),r),n)}function J(t){var n,i,a,o=!1,s=!1,c=[],l=[],d=t.body;if(m(),e.isBlock(d)&&(a=u.copyStandardPrologue(d.statements,c,0,!1),a=u.copyCustomPrologue(d.statements,l,a,C,e.isHoistedFunction),a=u.copyCustomPrologue(d.statements,l,a,C,e.isHoistedVariableStatement)),o=F(l,t)||o,o=U(l,t,!1)||o,e.isBlock(d))a=u.copyCustomPrologue(d.statements,l,a,C),n=d.statements,e.addRange(l,e.visitNodes(d.statements,C,e.isStatement,a)),!o&&d.multiLine&&(o=!0);else{e.Debug.assert(216===t.kind),n=e.moveRangeEnd(d,-1);var p=t.equalsGreaterThanToken;e.nodeIsSynthesized(p)||e.nodeIsSynthesized(d)||(e.rangeEndIsOnSameLineAsRangeStart(p,d,r)?s=!0:o=!0);var _=e.visitNode(d,C,e.isExpression),h=u.createReturnStatement(_);e.setTextRange(h,d),e.moveSyntheticComments(h,d),e.setEmitFlags(h,1440),l.push(h),i=d}if(u.mergeLexicalEnvironment(c,f()),j(c,t),V(c,t),e.some(c)&&(o=!0),l.unshift.apply(l,c),e.isBlock(d)&&e.arrayIsEqualTo(l,d.statements))return d;var g=u.createBlock(e.setTextRange(u.createNodeArray(l),n),o);return e.setTextRange(g,t.body),!o&&s&&e.setEmitFlags(g,1),i&&e.setTokenSourceMapRange(g,19,i),e.setOriginalNode(g,t.body),g}function X(n,r){return e.isDestructuringAssignment(n)?e.flattenDestructuringAssignment(n,C,t,0,!r):27===n.operatorToken.kind?u.updateBinaryExpression(n,e.visitNode(n.left,D,e.isExpression),n.operatorToken,e.visitNode(n.right,r?D:C,e.isExpression)):e.visitEachChild(n,C,t)}function Y(n){var r=n.name;return e.isBindingPattern(r)?Q(n):!n.initializer&&function(e){var t=g.getNodeCheckFlags(e),n=262144&t,r=524288&t;return!(64&a||n&&r&&512&a)&&!(4096&a)&&(!g.isDeclarationWithCollidingName(e)||r&&!n&&!(6144&a))}(n)?u.updateVariableDeclaration(n,n.name,void 0,void 0,u.createVoidZero()):e.visitEachChild(n,C,t)}function Q(n){var r,i=E(32,0);return r=e.isBindingPattern(n.name)?e.flattenDestructuringBinding(n,C,t,0,void 0,!!(32&i)):e.visitEachChild(n,C,t),x(i,0,0),r}function Z(t){s.labels.set(e.idText(t.label),!0)}function ee(t){s.labels.set(e.idText(t.label),!1)}function te(n,r,i,o,c){var l=E(n,r),d=function(n,r,i,o){if(!fe(n)){var c=void 0;s&&(c=s.allowedNonLabeledJumps,s.allowedNonLabeledJumps=6);var l=o?o(n,r,void 0,i):u.restoreEnclosingLabel(e.isForStatement(n)?function(t){return u.updateForStatement(t,e.visitNode(t.initializer,D,e.isForInitializer),e.visitNode(t.condition,C,e.isExpression),e.visitNode(t.incrementor,D,e.isExpression),e.visitNode(t.statement,C,e.isStatement,u.liftToBlock))}(n):e.visitEachChild(n,C,t),r,s&&ee);return s&&(s.allowedNonLabeledJumps=c),l}var d=function(t){var n;switch(t.kind){case 245:case 246:case 247:var r=t.initializer;r&&258===r.kind&&(n=r)}var i=[],a=[];if(n&&3&e.getCombinedNodeFlags(n))for(var o=de(t)||pe(t)||me(t),c=0,l=n.declarations;c=81&&n<=116)return e.setTextRange(i.createStringLiteralFromNode(t),t)}}}(c||(c={})),function(e){var t,r,i,a,o;!function(e){e[e.Nop=0]="Nop",e[e.Statement=1]="Statement",e[e.Assign=2]="Assign",e[e.Break=3]="Break",e[e.BreakWhenTrue=4]="BreakWhenTrue",e[e.BreakWhenFalse=5]="BreakWhenFalse",e[e.Yield=6]="Yield",e[e.YieldStar=7]="YieldStar",e[e.Return=8]="Return",e[e.Throw=9]="Throw",e[e.Endfinally=10]="Endfinally"}(t||(t={})),function(e){e[e.Open=0]="Open",e[e.Close=1]="Close"}(r||(r={})),function(e){e[e.Exception=0]="Exception",e[e.With=1]="With",e[e.Switch=2]="Switch",e[e.Loop=3]="Loop",e[e.Labeled=4]="Labeled"}(i||(i={})),function(e){e[e.Try=0]="Try",e[e.Catch=1]="Catch",e[e.Finally=2]="Finally",e[e.Done=3]="Done"}(a||(a={})),function(e){e[e.Next=0]="Next",e[e.Throw=1]="Throw",e[e.Return=2]="Return",e[e.Break=3]="Break",e[e.Yield=4]="Yield",e[e.YieldStar=5]="YieldStar",e[e.Catch=6]="Catch",e[e.Endfinally=7]="Endfinally"}(o||(o={})),e.transformGenerators=function(t){var r,i,a,o,s,c,l,u,d,p,m=t.factory,f=t.getEmitHelperFactory,_=t.resumeLexicalEnvironment,h=t.endLexicalEnvironment,g=t.hoistFunctionDeclaration,y=t.hoistVariableDeclaration,v=t.getCompilerOptions(),b=e.getEmitScriptTarget(v),E=t.getEmitResolver(),x=t.onSubstituteNode;t.onSubstituteNode=function(t,n){return n=x(t,n),1===t?function(t){return e.isIdentifier(t)?function(t){if(!e.isGeneratedIdentifier(t)&&r&&r.has(e.idText(t))){var n=e.getOriginalNode(t);if(e.isIdentifier(n)&&n.parent){var a=E.getReferencedValueDeclaration(n);if(a){var o=i[e.getOriginalNodeId(a)];if(o){var s=e.setParent(e.setTextRange(m.cloneNode(o),o),o.parent);return e.setSourceMapRange(s,t),e.setCommentRange(s,t),s}}}}return t}(t):t}(n):n};var S,T,C,D,L,A,N,k,I,P,w,O,R=1,M=0,F=0;return e.chainBundle(t,function(n){if(n.isDeclarationFile||!(2048&n.transformFlags))return n;var r=e.visitEachChild(n,G,t);return e.addEmitHelpers(r,t.readEmitHelpers()),r});function G(n){var r=n.transformFlags;return o?function(n){switch(n.kind){case 243:case 244:return function(n){return o?(oe(),n=e.visitEachChild(n,G,t),ce(),n):e.visitEachChild(n,G,t)}(n);case 252:return function(n){return o&&ne({kind:2,isScript:!0,breakLabel:-1}),n=e.visitEachChild(n,G,t),o&&le(),n}(n);case 253:return function(n){return o&&ne({kind:4,isScript:!0,labelText:e.idText(n.label),breakLabel:-1}),n=e.visitEachChild(n,G,t),o&&ue(),n}(n);default:return B(n)}}(n):a?B(n):e.isFunctionLikeDeclaration(n)&&n.asteriskToken?function(t){switch(t.kind){case 259:return U(t);case 215:return V(t);default:return e.Debug.failBadSyntaxKind(t)}}(n):2048&r?e.visitEachChild(n,G,t):n}function B(n){switch(n.kind){case 259:return U(n);case 215:return V(n);case 174:case 175:return function(n){var r=a,i=o;return a=!1,o=!1,n=e.visitEachChild(n,G,t),a=r,o=i,n}(n);case 240:return function(t){if(1048576&t.transformFlags)z(t.declarationList);else{if(1048576&e.getEmitFlags(t))return t;for(var n=0,r=t.declarationList.declarations;n0?m.inlineExpressions(e.map(c,J)):void 0,e.visitNode(n.condition,G,e.isExpression),e.visitNode(n.incrementor,G,e.isExpression),e.visitIterationBody(n.statement,G,t))}else n=e.visitEachChild(n,G,t);return o&&ce(),n}(n);case 246:return function(n){o&&oe();var r=n.initializer;if(e.isVariableDeclarationList(r)){for(var i=0,a=r.declarations;i0)return ve(r,n)}return e.visitEachChild(n,G,t)}(n);case 248:return function(n){if(o){var r=he(n.label&&e.idText(n.label));if(r>0)return ve(r,n)}return e.visitEachChild(n,G,t)}(n);case 250:return function(t){return n=e.visitNode(t.expression,G,e.isExpression),r=t,e.setTextRange(m.createReturnStatement(m.createArrayLiteralExpression(n?[ye(2),n]:[ye(2)])),r);var n,r}(n);default:return 1048576&n.transformFlags?function(n){switch(n.kind){case 223:return function(n){var r=e.getExpressionAssociativity(n);switch(r){case 0:return function(n){return X(n.right)?e.isLogicalOperator(n.operatorToken.kind)?function(t){var n=ee(),r=Z();return xe(r,e.visitNode(t.left,G,e.isExpression),t.left),55===t.operatorToken.kind?Ce(n,r,t.left):Te(n,r,t.left),xe(r,e.visitNode(t.right,G,e.isExpression),t.right),te(n),r}(n):27===n.operatorToken.kind?j(n):m.updateBinaryExpression(n,Q(e.visitNode(n.left,G,e.isExpression)),n.operatorToken,e.visitNode(n.right,G,e.isExpression)):e.visitEachChild(n,G,t)}(n);case 1:return function(n){var r=n.left,i=n.right;if(X(i)){var a=void 0;switch(r.kind){case 208:a=m.updatePropertyAccessExpression(r,Q(e.visitNode(r.expression,G,e.isLeftHandSideExpression)),r.name);break;case 209:a=m.updateElementAccessExpression(r,Q(e.visitNode(r.expression,G,e.isLeftHandSideExpression)),Q(e.visitNode(r.argumentExpression,G,e.isExpression)));break;default:a=e.visitNode(r,G,e.isExpression)}var o=n.operatorToken.kind;return e.isCompoundAssignment(o)?e.setTextRange(m.createAssignment(a,e.setTextRange(m.createBinaryExpression(Q(a),e.getNonAssignmentOperatorForCompoundAssignment(o),e.visitNode(i,G,e.isExpression)),n)),n):m.updateBinaryExpression(n,a,n.operatorToken,e.visitNode(i,G,e.isExpression))}return e.visitEachChild(n,G,t)}(n);default:return e.Debug.assertNever(r)}}(n);case 354:return function(t){for(var n=[],r=0,i=t.elements;r0&&(De(1,[m.createExpressionStatement(m.inlineExpressions(n))]),n=[]),n.push(e.visitNode(a,G,e.isExpression)))}return m.inlineExpressions(n)}(n);case 224:return function(n){if(X(n.whenTrue)||X(n.whenFalse)){var r=ee(),i=ee(),a=Z();return Ce(r,e.visitNode(n.condition,G,e.isExpression),n.condition),xe(a,e.visitNode(n.whenTrue,G,e.isExpression),n.whenTrue),Se(i),te(r),xe(a,e.visitNode(n.whenFalse,G,e.isExpression),n.whenFalse),te(i),a}return e.visitEachChild(n,G,t)}(n);case 226:return function(t){var n,r=ee(),i=e.visitNode(t.expression,G,e.isExpression);return t.asteriskToken?function(e,t){De(7,[e],t)}(8388608&e.getEmitFlags(t.expression)?i:e.setTextRange(f().createValuesHelper(i),t),t):function(e,t){De(6,[e],t)}(i,t),te(r),n=t,e.setTextRange(m.createCallExpression(m.createPropertyAccessExpression(D,"sent"),void 0,[]),n)}(n);case 206:return function(e){return H(e.elements,void 0,void 0,e.multiLine)}(n);case 207:return function(t){var n=t.properties,r=t.multiLine,i=Y(n),a=Z();xe(a,m.createObjectLiteralExpression(e.visitNodes(n,G,e.isObjectLiteralElementLike,0,i),r));var o=e.reduceLeft(n,function(n,i){X(i)&&n.length>0&&(Ee(m.createExpressionStatement(m.inlineExpressions(n))),n=[]);var o=e.createExpressionForObjectLiteralElementLike(m,t,i,a),s=e.visitNode(o,G,e.isExpression);return s&&(r&&e.startOnNewLine(s),n.push(s)),n},[],i);return o.push(r?e.startOnNewLine(e.setParent(e.setTextRange(m.cloneNode(a),a),a.parent)):a),m.inlineExpressions(o)}(n);case 209:return function(n){return X(n.argumentExpression)?m.updateElementAccessExpression(n,Q(e.visitNode(n.expression,G,e.isLeftHandSideExpression)),e.visitNode(n.argumentExpression,G,e.isExpression)):e.visitEachChild(n,G,t)}(n);case 210:return function(n){if(!e.isImportCall(n)&&e.forEach(n.arguments,X)){var r=m.createCallBinding(n.expression,y,b,!0),i=r.target,a=r.thisArg;return e.setOriginalNode(e.setTextRange(m.createFunctionApplyCall(Q(e.visitNode(i,G,e.isLeftHandSideExpression)),a,H(n.arguments)),n),n)}return e.visitEachChild(n,G,t)}(n);case 211:return function(n){if(e.forEach(n.arguments,X)){var r=m.createCallBinding(m.createPropertyAccessExpression(n.expression,"bind"),y),i=r.target,a=r.thisArg;return e.setOriginalNode(e.setTextRange(m.createNewExpression(m.createFunctionApplyCall(Q(e.visitNode(i,G,e.isExpression)),a,H(n.arguments,m.createVoidZero())),void 0,[]),n),n)}return e.visitEachChild(n,G,t)}(n);default:return e.visitEachChild(n,G,t)}}(n):4196352&n.transformFlags?e.visitEachChild(n,G,t):n}}function U(n){if(n.asteriskToken)n=e.setOriginalNode(e.setTextRange(m.createFunctionDeclaration(n.modifiers,void 0,n.name,void 0,e.visitParameterList(n.parameters,G,t),void 0,K(n.body)),n),n);else{var r=a,i=o;a=!1,o=!1,n=e.visitEachChild(n,G,t),a=r,o=i}return a?void g(n):n}function V(n){if(n.asteriskToken)n=e.setOriginalNode(e.setTextRange(m.createFunctionExpression(void 0,void 0,n.name,void 0,e.visitParameterList(n.parameters,G,t),void 0,K(n.body)),n),n);else{var r=a,i=o;a=!1,o=!1,n=e.visitEachChild(n,G,t),a=r,o=i}return n}function K(t){var n=[],r=a,i=o,f=s,g=c,y=l,v=u,b=d,E=p,x=R,L=S,A=T,N=C,k=D;a=!0,o=!1,s=void 0,c=void 0,l=void 0,u=void 0,d=void 0,p=void 0,R=1,S=void 0,T=void 0,C=void 0,D=m.createTempVariable(void 0),_();var I=m.copyPrologue(t.statements,n,!1,G);W(t.statements,I);var P=Le();return e.insertStatementsAfterStandardPrologue(n,h()),n.push(m.createReturnStatement(P)),a=r,o=i,s=f,c=g,l=y,u=v,d=b,p=E,R=x,S=L,T=A,C=N,D=k,e.setTextRange(m.createBlock(n,t.multiLine),t)}function j(t){var n=[];return r(t.left),r(t.right),m.inlineExpressions(n);function r(t){e.isBinaryExpression(t)&&27===t.operatorToken.kind?(r(t.left),r(t.right)):(X(t)&&n.length>0&&(De(1,[m.createExpressionStatement(m.inlineExpressions(n))]),n=[]),n.push(e.visitNode(t,G,e.isExpression)))}}function H(t,r,i,a){var o,s=Y(t);if(s>0){o=Z();var c=e.visitNodes(t,G,e.isExpression,0,s);xe(o,m.createArrayLiteralExpression(r?n([r],c,!0):c)),r=void 0}var l=e.reduceLeft(t,function(t,i){if(X(i)&&t.length>0){var s=void 0!==o;o||(o=Z()),xe(o,s?m.createArrayConcatCall(o,[m.createArrayLiteralExpression(t,a)]):m.createArrayLiteralExpression(r?n([r],t,!0):t,a)),r=void 0,t=[]}return t.push(e.visitNode(i,G,e.isExpression)),t},[],s);return o?m.createArrayConcatCall(o,[m.createArrayLiteralExpression(l,a)]):e.setTextRange(m.createArrayLiteralExpression(r?n([r],l,!0):l,a),i)}function W(e,t){void 0===t&&(t=0);for(var n=e.length,r=t;r0?Se(n,t):Ee(t)}(n);case 249:return function(t){var n=_e(t.label?e.idText(t.label):void 0);n>0?Se(n,t):Ee(t)}(n);case 250:return function(t){De(8,[e.visitNode(t.expression,G,e.isExpression)],t)}(n);case 251:return function(t){var n,r,i;X(t)?(n=Q(e.visitNode(t.expression,G,e.isExpression)),r=ee(),i=ee(),te(r),ne({kind:1,expression:n,startLabel:r,endLabel:i}),$(t.statement),e.Debug.assert(1===ae()),te(re().endLabel)):Ee(e.visitNode(t,G,e.isStatement))}(n);case 252:return function(t){if(X(t.caseBlock)){for(var n=t.caseBlock,r=n.clauses.length,i=(ne({kind:2,isScript:!1,breakLabel:f=ee()}),f),a=Q(e.visitNode(t.expression,G,e.isExpression)),o=[],s=-1,c=0;c0)break;d.push(m.createCaseClause(e.visitNode(l.expression,G,e.isExpression),[ve(o[c],l.expression)]))}else p++;d.length&&(Ee(m.createSwitchStatement(a,m.createCaseBlock(d))),u+=d.length,d=[]),p>0&&(u+=p,p=0)}for(Se(s>=0?o[s]:i),c=0;c0);u++)l.push(J(i));l.length&&(Ee(m.createExpressionStatement(m.inlineExpressions(l))),c+=l.length,l=[])}}function J(t){return e.setSourceMapRange(m.createAssignment(e.setSourceMapRange(m.cloneNode(t.name),t.name),e.visitNode(t.initializer,G,e.isExpression)),t)}function X(e){return!!e&&!!(1048576&e.transformFlags)}function Y(e){for(var t=e.length,n=0;n=0;n--){var r=u[n];if(!pe(r))break;if(r.labelText===e)return!0}return!1}function _e(e){if(u)if(e)for(var t=u.length-1;t>=0;t--){if(pe(n=u[t])&&n.labelText===e)return n.breakLabel;if(de(n)&&fe(e,t-1))return n.breakLabel}else for(t=u.length-1;t>=0;t--){var n;if(de(n=u[t]))return n.breakLabel}return 0}function he(e){if(u)if(e){for(var t=u.length-1;t>=0;t--)if(me(n=u[t])&&fe(e,t-1))return n.continueLabel}else for(t=u.length-1;t>=0;t--){var n;if(me(n=u[t]))return n.continueLabel}return 0}function ge(e){if(void 0!==e&&e>0){void 0===p&&(p=[]);var t=m.createNumericLiteral(-1);return void 0===p[e]?p[e]=[t]:p[e].push(t),t}return m.createOmittedExpression()}function ye(t){var n=m.createNumericLiteral(t);return e.addSyntheticTrailingComment(n,3,function(e){switch(e){case 2:return"return";case 3:return"break";case 4:return"yield";case 5:return"yield*";case 7:return"endfinally";default:return}}(t)),n}function ve(t,n){return e.Debug.assertLessThan(0,t,"Invalid label"),e.setTextRange(m.createReturnStatement(m.createArrayLiteralExpression([ye(3),ge(t)])),n)}function be(){De(0)}function Ee(e){e?De(1,[e]):be()}function xe(e,t,n){De(2,[e,t],n)}function Se(e,t){De(3,[e],t)}function Te(e,t,n){De(4,[e,t],n)}function Ce(e,t,n){De(5,[e,t],n)}function De(e,t,n){void 0===S&&(S=[],T=[],C=[]),void 0===d&&te(ee());var r=S.length;S[r]=e,T[r]=t,C[r]=n}function Le(){M=0,F=0,L=void 0,A=!1,N=!1,k=void 0,I=void 0,P=void 0,w=void 0,O=void 0;var t=function(){if(S){for(var t=0;t0)),524288))}function Ae(){I&&(ke(!A),A=!1,N=!1,F++)}function Ne(e){(function(e){if(!N)return!0;if(!d||!p)return!1;for(var t=0;t=0;t--){var n=O[t];I=[m.createWithStatement(n.expression,m.createBlock(I))]}if(w){var r=w.startLabel,i=w.catchLabel,a=w.finallyLabel,o=w.endLabel;I.unshift(m.createExpressionStatement(m.createCallExpression(m.createPropertyAccessExpression(m.createPropertyAccessExpression(D,"trys"),"push"),void 0,[m.createArrayLiteralExpression([ge(r),ge(i),ge(a),ge(o)])]))),w=void 0}e&&I.push(m.createExpressionStatement(m.createAssignment(m.createPropertyAccessExpression(D,"label"),m.createNumericLiteral(F+1))))}k.push(m.createCaseClause(m.createNumericLiteral(F),I||[])),I=void 0}function Ie(e){if(d)for(var t=0;t=2?2:0)),t),t))}else r&&e.isDefaultImport(t)&&(n=e.append(n,i.createVariableStatement(void 0,i.createVariableDeclarationList([e.setOriginalNode(e.setTextRange(i.createVariableDeclaration(i.cloneNode(r.name),void 0,void 0,i.getGeneratedNameForNode(t)),t),t)],p>=2?2:0))));if(V(t)){var o=e.getOriginalNodeId(t);b[o]=K(b[o],t)}else n=K(n,t);return e.singleOrMany(n)}(t);case 268:return function(t){var n;if(e.Debug.assert(e.isExternalModuleImportEqualsDeclaration(t),"import= for internal module references should be handled in an earlier transformer."),m!==e.ModuleKind.AMD?n=e.hasSyntacticModifier(t,1)?e.append(n,e.setOriginalNode(e.setTextRange(i.createExpressionStatement(X(t.name,G(t))),t),t)):e.append(n,e.setOriginalNode(e.setTextRange(i.createVariableStatement(void 0,i.createVariableDeclarationList([i.createVariableDeclaration(i.cloneNode(t.name),void 0,void 0,G(t))],p>=2?2:0)),t),t)):e.hasSyntacticModifier(t,1)&&(n=e.append(n,e.setOriginalNode(e.setTextRange(i.createExpressionStatement(X(i.getExportName(t),i.getLocalName(t))),t),t))),V(t)){var r=e.getOriginalNodeId(t);b[r]=j(b[r],t)}else n=j(n,t);return e.singleOrMany(n)}(t);case 275:return function(t){if(t.moduleSpecifier){var n=i.getGeneratedNameForNode(t);if(t.exportClause&&e.isNamedExports(t.exportClause)){var r=[];m!==e.ModuleKind.AMD&&r.push(e.setOriginalNode(e.setTextRange(i.createVariableStatement(void 0,i.createVariableDeclarationList([i.createVariableDeclaration(n,void 0,void 0,G(t))])),t),t));for(var o=0,s=t.exportClause.elements;o(e.isExportName(t)?1:0);return!1}function R(t,n){var r,o=i.createUniqueName("resolve"),s=i.createUniqueName("reject"),c=[i.createParameterDeclaration(void 0,void 0,o),i.createParameterDeclaration(void 0,void 0,s)],u=i.createBlock([i.createExpressionStatement(i.createCallExpression(i.createIdentifier("require"),void 0,[i.createArrayLiteralExpression([t||i.createOmittedExpression()]),o,s]))]);p>=2?r=i.createArrowFunction(void 0,void 0,c,void 0,void 0,u):(r=i.createFunctionExpression(void 0,void 0,void 0,void 0,c,void 0,u),n&&e.setEmitFlags(r,8));var d=i.createNewExpression(i.createIdentifier("Promise"),void 0,[r]);return e.getESModuleInterop(l)?i.createCallExpression(i.createPropertyAccessExpression(d,i.createIdentifier("then")),void 0,[a().createImportStarCallbackHelper()]):d}function M(t,n){var r,o=!t||e.isSimpleInlineableExpression(t)||n?void 0:i.createTempVariable(c),s=i.createCallExpression(i.createPropertyAccessExpression(i.createIdentifier("Promise"),"resolve"),void 0,[]),u=i.createCallExpression(i.createIdentifier("require"),void 0,o?[o]:t?[t]:[]);e.getESModuleInterop(l)&&(u=a().createImportStarHelper(u)),r=p>=2?i.createArrowFunction(void 0,void 0,[],void 0,void 0,u):i.createFunctionExpression(void 0,void 0,void 0,void 0,[],void 0,i.createBlock([i.createReturnStatement(u)]));var d=i.createCallExpression(i.createPropertyAccessExpression(s,"then"),void 0,[r]);return void 0===o?d:i.createCommaListExpression([i.createAssignment(o,t),d])}function F(t,n){return!e.getESModuleInterop(l)||67108864&e.getEmitFlags(t)?n:e.getImportNeedsImportStarHelper(t)?a().createImportStarHelper(n):e.getImportNeedsImportDefaultHelper(t)?a().createImportDefaultHelper(n):n}function G(t){var n=e.getExternalModuleNameLiteral(i,t,h,d,u,l),r=[];return n&&r.push(n),i.createCallExpression(i.createIdentifier("require"),void 0,r)}function B(t,n,r){var a=Z(t);if(a){for(var o=e.isExportName(t)?n:i.createAssignment(t,n),s=0,c=a;s=e.ModuleKind.Node16?function(t){var n;return e.Debug.assert(e.isExternalModuleImportEqualsDeclaration(t),"import= for internal module references should be handled in an earlier transformer."),n=function(t,n){return e.hasSyntacticModifier(n,1)&&(t=e.append(t,o.createExportDeclaration(void 0,n.isTypeOnly,o.createNamedExports([o.createExportSpecifier(!1,void 0,e.idText(n.name))])))),t}(n=e.append(n,e.setOriginalNode(e.setTextRange(o.createVariableStatement(void 0,o.createVariableDeclarationList([o.createVariableDeclaration(o.cloneNode(t.name),void 0,void 0,_(t))],d>=2?2:0)),t),t)),t),e.singleOrMany(n)}(t):void 0;case 274:return function(e){return e.isExportEquals?void 0:e}(t);case 275:return function(t){if(void 0!==u.module&&u.module>e.ModuleKind.ES2015)return t;if(!t.exportClause||!e.isNamespaceExport(t.exportClause)||!t.moduleSpecifier)return t;var n=t.exportClause.name,r=o.getGeneratedNameForNode(n),i=o.createImportDeclaration(void 0,o.createImportClause(!1,void 0,o.createNamespaceImport(r)),t.moduleSpecifier,t.assertClause);e.setOriginalNode(i,t.exportClause);var a=e.isExportNamespaceAsDefaultDeclaration(t)?o.createExportDefault(r):o.createExportDeclaration(void 0,!1,o.createNamedExports([o.createExportSpecifier(!1,r,n)]));return e.setOriginalNode(a,t),[i,a]}(t)}return t}function _(t){var n=e.getExternalModuleNameLiteral(o,t,e.Debug.checkDefined(i),c,l,u),r=[];if(n&&r.push(n),!a){var s=o.createUniqueName("_createRequire",48),p=o.createImportDeclaration(void 0,o.createImportClause(!1,void 0,o.createNamedImports([o.createImportSpecifier(!1,o.createIdentifier("createRequire"),s)])),o.createStringLiteral("module")),m=o.createUniqueName("__require",48),f=o.createVariableStatement(void 0,o.createVariableDeclarationList([o.createVariableDeclaration(m,void 0,void 0,o.createCallExpression(o.cloneNode(s),void 0,[o.createPropertyAccessExpression(o.createMetaProperty(100,o.createIdentifier("meta")),o.createIdentifier("url"))]))],d>=2?2:0));a=[p,f]}var _=a[1].declarationList.declarations[0].name;return e.Debug.assertNode(_,e.isIdentifier),o.createCallExpression(o.cloneNode(_),void 0,r)}}}(c||(c={})),function(e){e.transformNodeModule=function(t){var n=t.onSubstituteNode,r=t.onEmitNode,i=e.transformECMAScriptModule(t),a=t.onSubstituteNode,o=t.onEmitNode;t.onSubstituteNode=n,t.onEmitNode=r;var s,c=e.transformModule(t),l=t.onSubstituteNode,u=t.onEmitNode;return t.onSubstituteNode=function(t,r){return e.isSourceFile(r)?(s=r,n(t,r)):s?s.impliedNodeFormat===e.ModuleKind.ESNext?a(t,r):l(t,r):n(t,r)},t.onEmitNode=function(t,n,i){return e.isSourceFile(n)&&(s=n),s?s.impliedNodeFormat===e.ModuleKind.ESNext?o(t,n,i):u(t,n,i):r(t,n,i)},t.enableSubstitution(308),t.enableEmitNotification(308),function(n){return 308===n.kind?d(n):function(n){return t.factory.createBundle(e.map(n.sourceFiles,d),n.prepends)}(n)};function d(t){if(t.isDeclarationFile)return t;s=t;var n=(t.impliedNodeFormat===e.ModuleKind.ESNext?i:c)(t);return s=void 0,e.Debug.assert(e.isSourceFile(n)),n}}}(c||(c={})),function(e){function t(t){return e.isVariableDeclaration(t)||e.isPropertyDeclaration(t)||e.isPropertySignature(t)||e.isPropertyAccessExpression(t)||e.isBindingElement(t)||e.isConstructorDeclaration(t)?n:e.isSetAccessor(t)||e.isGetAccessor(t)?function(n){return{diagnosticMessage:175===t.kind?e.isStatic(t)?n.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:n.errorModuleName?e.Diagnostics.Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1:e.isStatic(t)?n.errorModuleName?2===n.accessibility?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:n.errorModuleName?2===n.accessibility?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,errorNode:t.name,typeName:t.name}}:e.isConstructSignatureDeclaration(t)||e.isCallSignatureDeclaration(t)||e.isMethodDeclaration(t)||e.isMethodSignature(t)||e.isFunctionDeclaration(t)||e.isIndexSignatureDeclaration(t)?function(n){var r;switch(t.kind){case 177:r=n.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 176:r=n.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 178:r=n.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 171:case 170:r=e.isStatic(t)?n.errorModuleName?2===n.accessibility?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:260===t.parent.kind?n.errorModuleName?2===n.accessibility?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:n.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 259:r=n.errorModuleName?2===n.accessibility?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: "+t.kind)}return{diagnosticMessage:r,errorNode:t.name||t}}:e.isParameter(t)?e.isParameterPropertyDeclaration(t,t.parent)&&e.hasSyntacticModifier(t.parent,8)?n:function(n){var r=function(n){switch(t.parent.kind){case 173:return n.errorModuleName?2===n.accessibility?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 177:case 182:return n.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 176:return n.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 178:return n.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 171:case 170:return e.isStatic(t.parent)?n.errorModuleName?2===n.accessibility?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:260===t.parent.parent.kind?n.errorModuleName?2===n.accessibility?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:n.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 259:case 181:return n.errorModuleName?2===n.accessibility?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 175:case 174:return n.errorModuleName?2===n.accessibility?e.Diagnostics.Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:e.Diagnostics.Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2:e.Diagnostics.Parameter_0_of_accessor_has_or_is_using_private_name_1;default:return e.Debug.fail("Unknown parent for parameter: ".concat(e.Debug.formatSyntaxKind(t.parent.kind)))}}(n);return void 0!==r?{diagnosticMessage:r,errorNode:t,typeName:t.name}:void 0}:e.isTypeParameterDeclaration(t)?function(){var n;switch(t.parent.kind){case 260:n=e.Diagnostics.Type_parameter_0_of_exported_class_has_or_is_using_private_name_1;break;case 261:n=e.Diagnostics.Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1;break;case 197:n=e.Diagnostics.Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1;break;case 182:case 177:n=e.Diagnostics.Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 176:n=e.Diagnostics.Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 171:case 170:n=e.isStatic(t.parent)?e.Diagnostics.Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:260===t.parent.parent.kind?e.Diagnostics.Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:e.Diagnostics.Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1;break;case 181:case 259:n=e.Diagnostics.Type_parameter_0_of_exported_function_has_or_is_using_private_name_1;break;case 262:n=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: "+t.parent.kind)}return{diagnosticMessage:n,errorNode:t,typeName:t.name}}:e.isExpressionWithTypeArguments(t)?function(){return{diagnosticMessage:e.isClassDeclaration(t.parent.parent)?e.isHeritageClause(t.parent)&&117===t.parent.token?e.Diagnostics.Implements_clause_of_exported_class_0_has_or_is_using_private_name_1:t.parent.parent.name?e.Diagnostics.extends_clause_of_exported_class_0_has_or_is_using_private_name_1:e.Diagnostics.extends_clause_of_exported_class_has_or_is_using_private_name_0:e.Diagnostics.extends_clause_of_exported_interface_0_has_or_is_using_private_name_1,errorNode:t,typeName:e.getNameOfDeclaration(t.parent.parent)}}:e.isImportEqualsDeclaration(t)?function(){return{diagnosticMessage:e.Diagnostics.Import_declaration_0_is_using_private_name_1,errorNode:t,typeName:t.name}}:e.isTypeAliasDeclaration(t)||e.isJSDocTypeAlias(t)?function(n){return{diagnosticMessage:n.errorModuleName?e.Diagnostics.Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2:e.Diagnostics.Exported_type_alias_0_has_or_is_using_private_name_1,errorNode:e.isJSDocTypeAlias(t)?e.Debug.checkDefined(t.typeExpression):t.type,typeName:e.isJSDocTypeAlias(t)?e.getNameOfDeclaration(t):t.name}}:e.Debug.assertNever(t,"Attempted to set a declaration diagnostic context for unhandled node kind: ".concat(e.Debug.formatSyntaxKind(t.kind)));function n(n){var r=function(n){return 257===t.kind||205===t.kind?n.errorModuleName?2===n.accessibility?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:169===t.kind||208===t.kind||168===t.kind||166===t.kind&&e.hasSyntacticModifier(t.parent,8)?e.isStatic(t)?n.errorModuleName?2===n.accessibility?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:260===t.parent.kind||166===t.kind?n.errorModuleName?2===n.accessibility?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:n.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:void 0}(n);return void 0!==r?{diagnosticMessage:r,errorNode:t,typeName:t.name}:void 0}}e.canProduceDiagnostics=function(t){return e.isVariableDeclaration(t)||e.isPropertyDeclaration(t)||e.isPropertySignature(t)||e.isBindingElement(t)||e.isSetAccessor(t)||e.isGetAccessor(t)||e.isConstructSignatureDeclaration(t)||e.isCallSignatureDeclaration(t)||e.isMethodDeclaration(t)||e.isMethodSignature(t)||e.isFunctionDeclaration(t)||e.isParameter(t)||e.isTypeParameterDeclaration(t)||e.isExpressionWithTypeArguments(t)||e.isImportEqualsDeclaration(t)||e.isTypeAliasDeclaration(t)||e.isConstructorDeclaration(t)||e.isIndexSignatureDeclaration(t)||e.isPropertyAccessExpression(t)||e.isJSDocTypeAlias(t)},e.createGetSymbolAccessibilityDiagnosticForNodeName=function(n){return e.isSetAccessor(n)||e.isGetAccessor(n)?function(t){var r=function(t){return e.isStatic(n)?t.errorModuleName?2===t.accessibility?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:260===n.parent.kind?t.errorModuleName?2===t.accessibility?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:t.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}(t);return void 0!==r?{diagnosticMessage:r,errorNode:n,typeName:n.name}:void 0}:e.isMethodSignature(n)||e.isMethodDeclaration(n)?function(t){var r=function(t){return e.isStatic(n)?t.errorModuleName?2===t.accessibility?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:260===n.parent.kind?t.errorModuleName?2===t.accessibility?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:t.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}(t);return void 0!==r?{diagnosticMessage:r,errorNode:n,typeName:n.name}:void 0}:t(n)},e.createGetSymbolAccessibilityDiagnosticForNode=t}(c||(c={})),function(e){function t(t,n){var r=n.text.substring(t.pos,t.end);return e.stringContains(r,"@internal")}function i(n,r){var i=e.getParseTreeNode(n);if(i&&166===i.kind){var a=i.parent.parameters.indexOf(i),o=a>0?i.parent.parameters[a-1]:void 0,s=r.text,c=o?e.concatenate(e.getTrailingCommentRanges(s,e.skipTrivia(s,o.end+1,!1,!0)),e.getLeadingCommentRanges(s,n.pos)):e.getTrailingCommentRanges(s,e.skipTrivia(s,n.pos,!1,!0));return c&&c.length&&t(e.last(c),r)}var l=i&&e.getLeadingCommentRangesOfNode(i,r);return!!e.forEach(l,function(e){return t(e,r)})}e.getDeclarationDiagnostics=function(t,n,r){var i=t.getCompilerOptions();return e.transformNodes(n,t,e.factory,i,r?[r]:e.filter(t.getSourceFiles(),e.isSourceFileNotJson),[o],!1).diagnostics},e.isInternalDeclaration=i;var a=531469;function o(t){var o,l,u,d,p,m,f,_,h,g,y,v,b=function(){return e.Debug.fail("Diagnostic emitted without context")},E=b,x=!0,S=!1,T=!1,C=!1,D=!1,L=t.factory,A=t.getEmitHost(),N={trackSymbol:function(e,t,n){if(262144&e.flags)return!1;var r=R(k.isSymbolAccessible(e,t,n,!0));return O(k.getTypeReferenceDirectivesForSymbol(e,n)),r},reportInaccessibleThisError:function(){(f||_)&&t.addDiagnostic(e.createDiagnosticForNode(f||_,e.Diagnostics.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,M(),"this"))},reportInaccessibleUniqueSymbolError:function(){(f||_)&&t.addDiagnostic(e.createDiagnosticForNode(f||_,e.Diagnostics.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,M(),"unique symbol"))},reportCyclicStructureError:function(){(f||_)&&t.addDiagnostic(e.createDiagnosticForNode(f||_,e.Diagnostics.The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialized_A_type_annotation_is_necessary,M()))},reportPrivateInBaseOfClassExpression:function(n){(f||_)&&t.addDiagnostic(e.createDiagnosticForNode(f||_,e.Diagnostics.Property_0_of_exported_class_expression_may_not_be_private_or_protected,n))},reportLikelyUnsafeImportRequiredError:function(n){(f||_)&&t.addDiagnostic(e.createDiagnosticForNode(f||_,e.Diagnostics.The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_annotation_is_necessary,M(),n))},reportTruncationError:function(){(f||_)&&t.addDiagnostic(e.createDiagnosticForNode(f||_,e.Diagnostics.The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_type_annotation_is_needed))},moduleResolverHost:A,trackReferencedAmbientModule:function(t,n){var r=k.getTypeReferenceDirectivesForSymbol(n,67108863);if(e.length(r))return O(r);var i=e.getSourceFileOfNode(t);g.set(e.getOriginalNodeId(i),i)},trackExternalModuleSymbolOfImportTypeNode:function(e){S||(m||(m=[])).push(e)},reportNonlocalAugmentation:function(n,r,i){var a,o=null===(a=r.declarations)||void 0===a?void 0:a.find(function(t){return e.getSourceFileOfNode(t)===n}),s=e.filter(i.declarations,function(t){return e.getSourceFileOfNode(t)!==n});if(o&&s)for(var c=0,l=s;c0?e.parameters[0].type:void 0}e.transformDeclarations=o}(c||(c={})),function(e){var t,r;function i(t,n,r){if(r)return e.emptyArray;var i=e.getEmitScriptTarget(t),a=e.getEmitModuleKind(t),o=[];return e.addRange(o,n&&e.map(n.before,s)),o.push(e.transformTypeScript),o.push(e.transformLegacyDecorators),o.push(e.transformClassFields),e.getJSXTransformEnabled(t)&&o.push(e.transformJsx),i<99&&o.push(e.transformESNext),i<8&&o.push(e.transformES2021),i<7&&o.push(e.transformES2020),i<6&&o.push(e.transformES2019),i<5&&o.push(e.transformES2018),i<4&&o.push(e.transformES2017),i<3&&o.push(e.transformES2016),i<2&&(o.push(e.transformES2015),o.push(e.transformGenerators)),o.push(function(t){switch(t){case e.ModuleKind.ESNext:case e.ModuleKind.ES2022:case e.ModuleKind.ES2020:case e.ModuleKind.ES2015:return e.transformECMAScriptModule;case e.ModuleKind.System:return e.transformSystemModule;case e.ModuleKind.Node16:case e.ModuleKind.NodeNext:return e.transformNodeModule;default:return e.transformModule}}(a)),i<1&&o.push(e.transformES5),e.addRange(o,n&&e.map(n.after,s)),o}function a(t){var n=[];return n.push(e.transformDeclarations),e.addRange(n,t&&e.map(t.afterDeclarations,c)),n}function o(t,n){return function(r){var i=t(r);return"function"==typeof i?n(r,i):function(t){return function(n){return e.isBundle(n)?t.transformBundle(n):t.transformSourceFile(n)}}(i)}}function s(t){return o(t,e.chainBundle)}function c(e){return o(e,function(e,t){return t})}function l(e,t){return t}function u(e,t,n){n(e,t)}!function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initialized=1]="Initialized",e[e.Completed=2]="Completed",e[e.Disposed=3]="Disposed"}(t||(t={})),function(e){e[e.Substitution=1]="Substitution",e[e.EmitNotifications=2]="EmitNotifications"}(r||(r={})),e.noTransformers={scriptTransformers:e.emptyArray,declarationTransformers:e.emptyArray},e.getTransformers=function(e,t,n){return{scriptTransformers:i(e,t,n),declarationTransformers:a(t)}},e.noEmitSubstitution=l,e.noEmitNotification=u,e.transformNodes=function(t,r,i,a,o,s,c){for(var d,p,m,f,_,h=new Array(358),g=0,y=[],v=[],b=[],E=[],x=0,S=!1,T=[],C=0,D=l,L=u,A=0,N=[],k={factory:i,getCompilerOptions:function(){return a},getEmitResolver:function(){return t},getEmitHost:function(){return r},getEmitHelperFactory:e.memoize(function(){return e.createEmitHelperFactory(k)}),startLexicalEnvironment:function(){e.Debug.assert(A>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(A<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(!S,"Lexical environment is suspended."),y[x]=d,v[x]=p,b[x]=m,E[x]=g,x++,d=void 0,p=void 0,m=void 0,g=0},suspendLexicalEnvironment:function(){e.Debug.assert(A>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(A<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(!S,"Lexical environment is already suspended."),S=!0},resumeLexicalEnvironment:function(){e.Debug.assert(A>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(A<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(S,"Lexical environment is not suspended."),S=!1},endLexicalEnvironment:function(){var t;if(e.Debug.assert(A>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(A<2,"Cannot modify the lexical environment after transformation has completed."),e.Debug.assert(!S,"Lexical environment is suspended."),d||p||m){if(p&&(t=n([],p,!0)),d){var r=i.createVariableStatement(void 0,i.createVariableDeclarationList(d));e.setEmitFlags(r,1048576),t?t.push(r):t=[r]}m&&(t=n(t?n([],t,!0):[],m,!0))}return x--,d=y[x],p=v[x],m=b[x],g=E[x],0===x&&(y=[],v=[],b=[],E=[]),t},setLexicalEnvironmentFlags:function(e,t){g=t?g|e:g&~e},getLexicalEnvironmentFlags:function(){return g},hoistVariableDeclaration:function(t){e.Debug.assert(A>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(A<2,"Cannot modify the lexical environment after transformation has completed.");var n=e.setEmitFlags(i.createVariableDeclaration(t),64);d?d.push(n):d=[n],1&g&&(g|=2)},hoistFunctionDeclaration:function(t){e.Debug.assert(A>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(A<2,"Cannot modify the lexical environment after transformation has completed."),e.setEmitFlags(t,1048576),p?p.push(t):p=[t]},addInitializationStatement:function(t){e.Debug.assert(A>0,"Cannot modify the lexical environment during initialization."),e.Debug.assert(A<2,"Cannot modify the lexical environment after transformation has completed."),e.setEmitFlags(t,1048576),m?m.push(t):m=[t]},startBlockScope:function(){e.Debug.assert(A>0,"Cannot start a block scope during initialization."),e.Debug.assert(A<2,"Cannot start a block scope after transformation has completed."),T[C]=f,C++,f=void 0},endBlockScope:function(){e.Debug.assert(A>0,"Cannot end a block scope during initialization."),e.Debug.assert(A<2,"Cannot end a block scope after transformation has completed.");var t=e.some(f)?[i.createVariableStatement(void 0,i.createVariableDeclarationList(f.map(function(e){return i.createVariableDeclaration(e)}),1))]:void 0;return C--,f=T[C],0===C&&(T=[]),t},addBlockScopedVariable:function(t){e.Debug.assert(C>0,"Cannot add a block scoped variable outside of an iteration body."),(f||(f=[])).push(t)},requestEmitHelper:function t(n){if(e.Debug.assert(A>0,"Cannot modify the transformation context during initialization."),e.Debug.assert(A<2,"Cannot modify the transformation context after transformation has completed."),e.Debug.assert(!n.scoped,"Cannot request a scoped emit helper."),n.dependencies)for(var r=0,i=n.dependencies;r0,"Cannot modify the transformation context during initialization."),e.Debug.assert(A<2,"Cannot modify the transformation context after transformation has completed.");var t=_;return _=void 0,t},enableSubstitution:function(t){e.Debug.assert(A<2,"Cannot modify the transformation context after transformation has completed."),h[t]|=1},enableEmitNotification:function(t){e.Debug.assert(A<2,"Cannot modify the transformation context after transformation has completed."),h[t]|=2},isSubstitutionEnabled:U,isEmitNotificationEnabled:V,get onSubstituteNode(){return D},set onSubstituteNode(t){e.Debug.assert(A<1,"Cannot modify transformation hooks after initialization has completed."),e.Debug.assert(void 0!==t,"Value must not be 'undefined'"),D=t},get onEmitNode(){return L},set onEmitNode(t){e.Debug.assert(A<1,"Cannot modify transformation hooks after initialization has completed."),e.Debug.assert(void 0!==t,"Value must not be 'undefined'"),L=t},addDiagnostic:function(e){N.push(e)}},I=0,P=o;I"],e[8192]=["[","]"],e}();function a(t,n,r,i,a,s){void 0===i&&(i=!1);var l=e.isArray(r)?r:e.getSourceFilesToEmit(t,r,i),u=t.getCompilerOptions();if(e.outFile(u)){var d=t.getPrependNodes();if(l.length||d.length){var p=e.factory.createBundle(l,d);if(_=n(c(p,t,i),p))return _}}else{if(!a)for(var m=0,f=l;m0){var n=t.preserveSourceNewlinesStack[t.stackIndex],r=t.containerPosStack[t.stackIndex],i=t.containerEndStack[t.stackIndex],a=t.declarationListContainerEndStack[t.stackIndex],o=t.shouldEmitCommentsStack[t.stackIndex],s=t.shouldEmitSourceMapsStack[t.stackIndex];Me(n),s&&pr(e),o&&Hn(e,r,i,a),null==F||F(e),t.stackIndex--}},void 0);function t(t,n,r){var i="left"===r?ue.getParenthesizeLeftSideOfBinaryForOperator(n.operatorToken.kind):ue.getParenthesizeRightSideOfBinaryForOperator(n.operatorToken.kind),a=Ue(0,1,t);if(a===We&&(e.Debug.assertIsDefined(A),a=Ve(1,1,t=i(e.cast(A,e.isExpression))),A=void 0),(a===Kn||a===ur||a===je)&&e.isBinaryExpression(t))return t;N=i,a(1,t)}}();return Ne(),{printNode:function(t,n,r){switch(t){case 0:e.Debug.assert(e.isSourceFile(n),"Expected a SourceFile node.");break;case 2:e.Debug.assert(e.isIdentifier(n),"Expected an Identifier node.");break;case 1:e.Debug.assert(e.isExpression(n),"Expected an Expression node.")}switch(n.kind){case 308:return fe(n);case 309:return me(n);case 310:return i=n,a=Te(),o=g,Ae(a,void 0),De(4,i,void 0),Ne(),g=o,Ce()}var i,a,o;return _e(t,n,r,Te()),Ce()},printList:function(e,t,n){return he(e,t,n,Te()),Ce()},printFile:fe,printBundle:me,writeNode:_e,writeList:he,writeFile:Se,writeBundle:xe,bundleFileInfo:z};function me(e){return xe(e,Te(),void 0),Ce()}function fe(e){return Se(e,Te(),void 0),Ce()}function _e(e,t,n,r){var i=g;Ae(r,void 0),De(e,t,n),Ne(),g=i}function he(e,t,n,r){var i=g;Ae(r,void 0),n&&Le(n),jt(void 0,t,e),Ne(),g=i}function ge(){return g.getTextPosWithWriteLine?g.getTextPosWithWriteLine():g.getTextPos()}function ye(t,n,r){var i=e.lastOrUndefined(z.sections);i&&i.kind===r?i.end=n:z.sections.push({pos:t,end:n,kind:r})}function ve(t){if(X&&z&&r&&(e.isDeclaration(t)||e.isVariableStatement(t))&&e.isInternalDeclaration(t,r)&&"internal"!==Q){var n=Q;return Ee(g.getTextPos()),Y=ge(),Q="internal",n}}function be(e){e&&(Ee(g.getTextPos()),Y=ge(),Q=e)}function Ee(e){return Y"),tn(),Ie(e.type),An(e)}(n);case 182:return function(e){Ln(e),Pt(e,e.modifiers),Yt("new"),tn(),Bt(e,e.typeParameters),Ut(e,e.parameters),tn(),Jt("=>"),tn(),Ie(e.type),An(e)}(n);case 183:return function(e){Yt("typeof"),tn(),Ie(e.exprName),Gt(e,e.typeArguments)}(n);case 184:return function(t){Jt("{");var n=1&e.getEmitFlags(t)?768:32897;jt(t,t.members,524288|n),Jt("}")}(n);case 185:return function(e){Ie(e.elementType,ue.parenthesizeNonArrayTypeOfPostfixType),Jt("["),Jt("]")}(n);case 186:return function(t){it(22,t.pos,Jt,t);var n=1&e.getEmitFlags(t)?528:657;jt(t,t.elements,524288|n,ue.parenthesizeElementTypeOfTupleType),it(23,t.elements.end,Jt,t)}(n);case 187:return function(e){Ie(e.type,ue.parenthesizeTypeOfOptionalType),Jt("?")}(n);case 189:return function(e){jt(e,e.types,516,ue.parenthesizeConstituentTypeOfUnionType)}(n);case 190:return function(e){jt(e,e.types,520,ue.parenthesizeConstituentTypeOfIntersectionType)}(n);case 191:return function(e){Ie(e.checkType,ue.parenthesizeCheckTypeOfConditionalType),tn(),Yt("extends"),tn(),Ie(e.extendsType,ue.parenthesizeExtendsTypeOfConditionalType),tn(),Jt("?"),tn(),Ie(e.trueType),tn(),Jt(":"),tn(),Ie(e.falseType)}(n);case 192:return function(e){Yt("infer"),tn(),Ie(e.typeParameter)}(n);case 193:return function(e){Jt("("),Ie(e.type),Jt(")")}(n);case 230:return Ze(n);case 194:return void Yt("this");case 195:return function(e){un(e.operator,Yt),tn();var t=146===e.operator?ue.parenthesizeOperandOfReadonlyTypeOperator:ue.parenthesizeOperandOfTypeOperator;Ie(e.type,t)}(n);case 196:return function(e){Ie(e.objectType,ue.parenthesizeNonArrayTypeOfPostfixType),Jt("["),Ie(e.indexType),Jt("]")}(n);case 197:return function(t){var n=e.getEmitFlags(t);Jt("{"),1&n?tn():(an(),on()),t.readonlyToken&&(Ie(t.readonlyToken),146!==t.readonlyToken.kind&&Yt("readonly"),tn()),Jt("["),Fe(3,t.typeParameter),t.nameType&&(tn(),Yt("as"),tn(),Ie(t.nameType)),Jt("]"),t.questionToken&&(Ie(t.questionToken),57!==t.questionToken.kind&&Jt("?")),Jt(":"),tn(),Ie(t.type),Xt(),1&n?tn():(an(),sn()),jt(t,t.members,2),Jt("}")}(n);case 198:return function(e){we(e.literal)}(n);case 199:return function(e){Ie(e.dotDotDotToken),Ie(e.name),Ie(e.questionToken),it(58,e.name.end,Jt,e),tn(),Ie(e.type)}(n);case 200:return function(e){Ie(e.head),jt(e,e.templateSpans,262144)}(n);case 201:return function(e){Ie(e.type),Ie(e.literal)}(n);case 202:return function(e){if(e.isTypeOf&&(Yt("typeof"),tn()),Yt("import"),Jt("("),Ie(e.argument),e.assertions){Jt(","),tn(),Jt("{"),tn(),Yt("assert"),Jt(":"),tn();var t=e.assertions.assertClause.elements;jt(e.assertions.assertClause,t,526226),tn(),Jt("}")}Jt(")"),e.qualifier&&(Jt("."),Ie(e.qualifier)),Gt(e,e.typeArguments)}(n);case 203:return function(e){Jt("{"),jt(e,e.elements,525136),Jt("}")}(n);case 204:return function(e){Jt("["),jt(e,e.elements,524880),Jt("]")}(n);case 205:return function(e){Ie(e.dotDotDotToken),e.propertyName&&(Ie(e.propertyName),Jt(":"),tn()),Ie(e.name),Ot(e.initializer,e.name.end,e,ue.parenthesizeExpressionForDisallowedComma)}(n);case 236:return function(e){we(e.expression),Ie(e.literal)}(n);case 237:return void Xt();case 238:return function(e){et(e,!e.multiLine&&Sn(e))}(n);case 240:return function(e){Pt(e,e.modifiers),Ie(e.declarationList),Xt()}(n);case 239:return tt(!1);case 241:return function(t){we(t.expression,ue.parenthesizeExpressionOfExpressionStatement),r&&e.isJsonSourceFile(r)&&!e.nodeIsSynthesized(t.expression)||Xt()}(n);case 242:return function(e){var t=it(99,e.pos,Yt,e);tn(),it(20,t,Jt,e),we(e.expression),it(21,e.expression.end,Jt,e),Ft(e,e.thenStatement),e.elseStatement&&(dn(e,e.thenStatement,e.elseStatement),it(91,e.thenStatement.end,Yt,e),242===e.elseStatement.kind?(tn(),Ie(e.elseStatement)):Ft(e,e.elseStatement))}(n);case 243:return function(t){it(90,t.pos,Yt,t),Ft(t,t.statement),e.isBlock(t.statement)&&!$?tn():dn(t,t.statement,t.expression),nt(t,t.statement.end),Xt()}(n);case 244:return function(e){nt(e,e.pos),Ft(e,e.statement)}(n);case 245:return function(e){var t=it(97,e.pos,Yt,e);tn();var n=it(20,t,Jt,e);rt(e.initializer),n=it(26,e.initializer?e.initializer.end:n,Jt,e),Mt(e.condition),n=it(26,e.condition?e.condition.end:n,Jt,e),Mt(e.incrementor),it(21,e.incrementor?e.incrementor.end:n,Jt,e),Ft(e,e.statement)}(n);case 246:return function(e){var t=it(97,e.pos,Yt,e);tn(),it(20,t,Jt,e),rt(e.initializer),tn(),it(101,e.initializer.end,Yt,e),tn(),we(e.expression),it(21,e.expression.end,Jt,e),Ft(e,e.statement)}(n);case 247:return function(e){var t=it(97,e.pos,Yt,e);tn(),function(e){e&&(Ie(e),tn())}(e.awaitModifier),it(20,t,Jt,e),rt(e.initializer),tn(),it(162,e.initializer.end,Yt,e),tn(),we(e.expression),it(21,e.expression.end,Jt,e),Ft(e,e.statement)}(n);case 248:return function(e){it(86,e.pos,Yt,e),Rt(e.label),Xt()}(n);case 249:return function(e){it(81,e.pos,Yt,e),Rt(e.label),Xt()}(n);case 250:return function(e){it(105,e.pos,Yt,e),Mt(e.expression&&st(e.expression),st),Xt()}(n);case 251:return function(e){var t=it(116,e.pos,Yt,e);tn(),it(20,t,Jt,e),we(e.expression),it(21,e.expression.end,Jt,e),Ft(e,e.statement)}(n);case 252:return function(e){var t=it(107,e.pos,Yt,e);tn(),it(20,t,Jt,e),we(e.expression),it(21,e.expression.end,Jt,e),tn(),Ie(e.caseBlock)}(n);case 253:return function(e){Ie(e.label),it(58,e.label.end,Jt,e),tn(),Ie(e.statement)}(n);case 254:return function(e){it(109,e.pos,Yt,e),Mt(st(e.expression),st),Xt()}(n);case 255:return function(e){it(111,e.pos,Yt,e),tn(),Ie(e.tryBlock),e.catchClause&&(dn(e,e.tryBlock,e.catchClause),Ie(e.catchClause)),e.finallyBlock&&(dn(e,e.catchClause||e.tryBlock,e.finallyBlock),it(96,(e.catchClause||e.tryBlock).end,Yt,e),tn(),Ie(e.finallyBlock))}(n);case 256:return function(e){cn(87,e.pos,Yt),Xt()}(n);case 257:return function(e){var t,n,r,i,a;Ie(e.name),Ie(e.exclamationToken),wt(e.type),Ot(e.initializer,null!==(a=null!==(n=null===(t=e.type)||void 0===t?void 0:t.end)&&void 0!==n?n:null===(i=null===(r=e.name.emitNode)||void 0===r?void 0:r.typeNode)||void 0===i?void 0:i.end)&&void 0!==a?a:e.name.end,e,ue.parenthesizeExpressionForDisallowedComma)}(n);case 258:return function(t){Yt(e.isLet(t)?"let":e.isVarConst(t)?"const":"var"),tn(),jt(t,t.declarations,528)}(n);case 259:return function(e){lt(e)}(n);case 260:return function(e){_t(e)}(n);case 261:return function(e){Pt(e,e.modifiers),Yt("interface"),tn(),Ie(e.name),Bt(e,e.typeParameters),jt(e,e.heritageClauses,512),tn(),Jt("{"),jt(e,e.members,129),Jt("}")}(n);case 262:return function(e){Pt(e,e.modifiers),Yt("type"),tn(),Ie(e.name),Bt(e,e.typeParameters),tn(),Jt("="),tn(),Ie(e.type),Xt()}(n);case 263:return function(e){Pt(e,e.modifiers),Yt("enum"),tn(),Ie(e.name),tn(),Jt("{"),jt(e,e.members,145),Jt("}")}(n);case 264:return function(t){Pt(t,t.modifiers),1024&~t.flags&&(Yt(16&t.flags?"namespace":"module"),tn()),Ie(t.name);var n=t.body;if(!n)return Xt();for(;n&&e.isModuleDeclaration(n);)Jt("."),Ie(n.name),n=n.body;tn(),Ie(n)}(n);case 265:return function(t){Ln(t),e.forEach(t.statements,kn),et(t,Sn(t)),An(t)}(n);case 266:return function(e){it(18,e.pos,Jt,e),jt(e,e.clauses,129),it(19,e.clauses.end,Jt,e,!0)}(n);case 267:return function(e){var t=it(93,e.pos,Yt,e);tn(),t=it(128,t,Yt,e),tn(),t=it(143,t,Yt,e),tn(),Ie(e.name),Xt()}(n);case 268:return function(e){Pt(e,e.modifiers),it(100,e.modifiers?e.modifiers.end:e.pos,Yt,e),tn(),e.isTypeOnly&&(it(154,e.pos,Yt,e),tn()),Ie(e.name),tn(),it(63,e.name.end,Jt,e),tn(),function(e){79===e.kind?we(e):Ie(e)}(e.moduleReference),Xt()}(n);case 269:return function(e){Pt(e,e.modifiers),it(100,e.modifiers?e.modifiers.end:e.pos,Yt,e),tn(),e.importClause&&(Ie(e.importClause),tn(),it(158,e.importClause.end,Yt,e),tn()),we(e.moduleSpecifier),e.assertClause&&Rt(e.assertClause),Xt()}(n);case 270:return function(e){e.isTypeOnly&&(it(154,e.pos,Yt,e),tn()),Ie(e.name),e.name&&e.namedBindings&&(it(27,e.name.end,Jt,e),tn()),Ie(e.namedBindings)}(n);case 271:return function(e){var t=it(41,e.pos,Jt,e);tn(),it(128,t,Yt,e),tn(),Ie(e.name)}(n);case 277:return function(e){var t=it(41,e.pos,Jt,e);tn(),it(128,t,Yt,e),tn(),Ie(e.name)}(n);case 272:case 276:return function(e){!function(e){Jt("{"),jt(e,e.elements,525136),Jt("}")}(e)}(n);case 273:case 278:return function(e){!function(e){e.isTypeOnly&&(Yt("type"),tn()),e.propertyName&&(Ie(e.propertyName),tn(),it(128,e.propertyName.end,Yt,e),tn()),Ie(e.name)}(e)}(n);case 274:return function(e){var t=it(93,e.pos,Yt,e);tn(),e.isExportEquals?it(63,t,Qt,e):it(88,t,Yt,e),tn(),we(e.expression,e.isExportEquals?ue.getParenthesizeRightSideOfBinaryForOperator(63):ue.parenthesizeExpressionOfExportDefault),Xt()}(n);case 275:return function(e){Pt(e,e.modifiers);var t=it(93,e.pos,Yt,e);tn(),e.isTypeOnly&&(t=it(154,t,Yt,e),tn()),e.exportClause?Ie(e.exportClause):t=it(41,t,Jt,e),e.moduleSpecifier&&(tn(),it(158,e.exportClause?e.exportClause.end:t,Yt,e),tn(),we(e.moduleSpecifier)),e.assertClause&&Rt(e.assertClause),Xt()}(n);case 296:return function(e){it(130,e.pos,Yt,e),tn(),jt(e,e.elements,526226)}(n);case 297:return function(t){Ie(t.name),Jt(":"),tn();var n=t.value;512&e.getEmitFlags(n)||rr(e.getCommentRange(n).pos),Ie(n)}(n);case 279:case 322:case 333:case 334:case 336:case 337:case 338:case 339:case 352:case 356:case 355:return;case 280:return function(e){Yt("require"),Jt("("),we(e.expression),Jt(")")}(n);case 11:return function(e){g.writeLiteral(e.text)}(n);case 283:case 286:return function(t){if(Jt("<"),e.isJsxOpeningElement(t)){var n=vn(t.tagName,t);ht(t.tagName),Gt(t,t.typeArguments),t.attributes.properties&&t.attributes.properties.length>0&&tn(),Ie(t.attributes),bn(t.attributes,t),fn(n)}Jt(">")}(n);case 284:case 287:return function(t){Jt("")}(n);case 288:return function(e){Ie(e.name),function(e,t,n,r){n&&(t("="),r(n))}(0,Jt,e.initializer,Oe)}(n);case 289:return function(e){jt(e,e.properties,262656)}(n);case 290:return function(e){Jt("{..."),we(e.expression),Jt("}")}(n);case 291:return function(t){var n,i;if(t.expression||!oe&&!e.nodeIsSynthesized(t)&&(function(t){var n=!1;return e.forEachTrailingCommentRange((null==r?void 0:r.text)||"",t+1,function(){return n=!0}),n}(i=t.pos)||function(t){var n=!1;return e.forEachLeadingCommentRange((null==r?void 0:r.text)||"",t+1,function(){return n=!0}),n}(i))){var a=r&&!e.nodeIsSynthesized(t)&&e.getLineAndCharacterOfPosition(r,t.pos).line!==e.getLineAndCharacterOfPosition(r,t.end).line;a&&g.increaseIndent();var o=it(18,t.pos,Jt,t);Ie(t.dotDotDotToken),we(t.expression),it(19,(null===(n=t.expression)||void 0===n?void 0:n.end)||o,Jt,t),a&&g.decreaseIndent()}}(n);case 292:return function(e){it(82,e.pos,Yt,e),tn(),we(e.expression,ue.parenthesizeExpressionForDisallowedComma),gt(e,e.statements,e.expression.end)}(n);case 293:return function(e){var t=it(88,e.pos,Yt,e);gt(e,e.statements,t)}(n);case 294:return function(e){tn(),un(e.token,Yt),tn(),jt(e,e.types,528)}(n);case 295:return function(e){var t=it(83,e.pos,Yt,e);tn(),e.variableDeclaration&&(it(20,t,Jt,e),Ie(e.variableDeclaration),it(21,e.variableDeclaration.end,Jt,e),tn()),Ie(e.block)}(n);case 299:return function(t){Ie(t.name),Jt(":"),tn();var n=t.initializer;512&e.getEmitFlags(n)||rr(e.getCommentRange(n).pos),we(n,ue.parenthesizeExpressionForDisallowedComma)}(n);case 300:return function(e){Ie(e.name),e.objectAssignmentInitializer&&(tn(),Jt("="),tn(),we(e.objectAssignmentInitializer,ue.parenthesizeExpressionForDisallowedComma))}(n);case 301:return function(e){e.expression&&(it(25,e.pos,Jt,e),we(e.expression,ue.parenthesizeExpressionForDisallowedComma))}(n);case 302:return function(e){Ie(e.name),Ot(e.initializer,e.name.end,e,ue.parenthesizeExpressionForDisallowedComma)}(n);case 303:return Je(n);case 310:case 304:return function(e){for(var t=0,n=e.texts;t=1&&!e.isJsonSourceFile(r)?64:0;jt(t,t.properties,526226|a|i),n&&sn()}(n);case 208:return function(t){we(t.expression,ue.parenthesizeLeftSideOfAccess);var n=t.questionDotToken||e.setTextRangePosEnd(e.factory.createToken(24),t.expression.end,t.name.pos),r=xn(t,t.expression,n),i=xn(t,n,t.name);mn(r,!1),28!==n.kind&&function(t){if(t=e.skipPartiallyEmittedExpressions(t),e.isNumericLiteral(t)){var n=Dn(t,!0,!1);return!t.numericLiteralFlags&&!e.stringContains(n,e.tokenToString(24))}if(e.isAccessExpression(t)){var r=e.getConstantValue(t);return"number"==typeof r&&isFinite(r)&&Math.floor(r)===r}}(t.expression)&&!g.hasTrailingComment()&&!g.hasTrailingWhitespace()&&Jt("."),t.questionDotToken?Ie(n):it(n.kind,t.expression.end,Jt,t),mn(i,!1),Ie(t.name),fn(r,i)}(n);case 209:return function(e){we(e.expression,ue.parenthesizeLeftSideOfAccess),Ie(e.questionDotToken),it(22,e.expression.end,Jt,e),we(e.argumentExpression),it(23,e.argumentExpression.end,Jt,e)}(n);case 210:return function(t){var n=536870912&e.getEmitFlags(t);n&&(Jt("("),qt("0"),Jt(","),tn()),we(t.expression,ue.parenthesizeLeftSideOfAccess),n&&Jt(")"),Ie(t.questionDotToken),Gt(t,t.typeArguments),Ht(t,t.arguments,2576,ue.parenthesizeExpressionForDisallowedComma)}(n);case 211:return function(e){it(103,e.pos,Yt,e),tn(),we(e.expression,ue.parenthesizeExpressionOfNew),Gt(e,e.typeArguments),Ht(e,e.arguments,18960,ue.parenthesizeExpressionForDisallowedComma)}(n);case 212:return function(t){var n=536870912&e.getEmitFlags(t);n&&(Jt("("),qt("0"),Jt(","),tn()),we(t.tag,ue.parenthesizeLeftSideOfAccess),n&&Jt(")"),Gt(t,t.typeArguments),tn(),we(t.template)}(n);case 213:return function(e){Jt("<"),Ie(e.type),Jt(">"),we(e.expression,ue.parenthesizeOperandOfPrefixUnary)}(n);case 214:return function(e){var t=it(20,e.pos,Jt,e),n=vn(e.expression,e);we(e.expression,void 0),bn(e.expression,e),fn(n),it(21,e.expression?e.expression.end:t,Jt,e)}(n);case 215:return function(e){Pn(e.name),lt(e)}(n);case 216:return function(e){Pt(e,e.modifiers),ut(e,Qe)}(n);case 217:return function(e){it(89,e.pos,Yt,e),tn(),we(e.expression,ue.parenthesizeOperandOfPrefixUnary)}(n);case 218:return function(e){it(112,e.pos,Yt,e),tn(),we(e.expression,ue.parenthesizeOperandOfPrefixUnary)}(n);case 219:return function(e){it(114,e.pos,Yt,e),tn(),we(e.expression,ue.parenthesizeOperandOfPrefixUnary)}(n);case 220:return function(e){it(133,e.pos,Yt,e),tn(),we(e.expression,ue.parenthesizeOperandOfPrefixUnary)}(n);case 221:return function(e){un(e.operator,Qt),function(e){var t=e.operand;return 221===t.kind&&(39===e.operator&&(39===t.operator||45===t.operator)||40===e.operator&&(40===t.operator||46===t.operator))}(e)&&tn(),we(e.operand,ue.parenthesizeOperandOfPrefixUnary)}(n);case 222:return function(e){we(e.operand,ue.parenthesizeOperandOfPostfixUnary),un(e.operator,Qt)}(n);case 223:return pe(n);case 224:return function(e){var t=xn(e,e.condition,e.questionToken),n=xn(e,e.questionToken,e.whenTrue),r=xn(e,e.whenTrue,e.colonToken),i=xn(e,e.colonToken,e.whenFalse);we(e.condition,ue.parenthesizeConditionOfConditionalExpression),mn(t,!0),Ie(e.questionToken),mn(n,!0),we(e.whenTrue,ue.parenthesizeBranchOfConditionalExpression),fn(t,n),mn(r,!0),Ie(e.colonToken),mn(i,!0),we(e.whenFalse,ue.parenthesizeBranchOfConditionalExpression),fn(r,i)}(n);case 225:return function(e){Ie(e.head),jt(e,e.templateSpans,262144)}(n);case 226:return function(e){it(125,e.pos,Yt,e),Ie(e.asteriskToken),Mt(e.expression&&st(e.expression),ct)}(n);case 227:return function(e){it(25,e.pos,Jt,e),we(e.expression,ue.parenthesizeExpressionForDisallowedComma)}(n);case 228:return function(e){Pn(e.name),_t(e)}(n);case 229:case 352:case 355:case 356:return;case 231:return function(e){we(e.expression,void 0),e.type&&(tn(),Yt("as"),tn(),Ie(e.type))}(n);case 232:return function(e){we(e.expression,ue.parenthesizeLeftSideOfAccess),Qt("!")}(n);case 230:return Ze(n);case 235:return function(e){we(e.expression,void 0),e.type&&(tn(),Yt("satisfies"),tn(),Ie(e.type))}(n);case 233:return function(e){cn(e.keywordToken,e.pos,Jt),Jt("."),Ie(e.name)}(n);case 234:return e.Debug.fail("SyntheticExpression should never be printed.");case 281:return function(e){Ie(e.openingElement),jt(e,e.children,262144),Ie(e.closingElement)}(n);case 282:return function(e){Jt("<"),ht(e.tagName),Gt(e,e.typeArguments),tn(),Ie(e.attributes),Jt("/>")}(n);case 285:return function(e){Ie(e.openingFragment),jt(e,e.children,262144),Ie(e.closingFragment)}(n);case 351:return e.Debug.fail("SyntaxList should not be printed");case 353:return function(t){var n=e.getEmitFlags(t);512&n||t.pos===t.expression.pos||rr(t.expression.pos),we(t.expression),1024&n||t.end===t.expression.end||tr(t.expression.end)}(n);case 354:return function(e){Ht(e,e.elements,528,void 0)}(n);case 357:return e.Debug.fail("SyntheticReferenceExpression should not be printed")}return e.isKeyword(n.kind)?ln(n,Yt):e.isTokenKind(n.kind)?ln(n,Jt):void e.Debug.fail("Unhandled SyntaxKind: ".concat(e.Debug.formatSyntaxKind(n.kind),"."))}function We(t,n){var r=Ve(1,t,n);e.Debug.assertIsDefined(A),n=A,A=void 0,r(t,n)}function $e(n){var i=!1,a=309===n.kind?n:void 0;if(!a||H!==e.ModuleKind.None){for(var o=a?a.prepends.length:0,s=a?a.sourceFiles.length+o:1,c=0;c0)return!1;n=o}return!0}(t)?mt:ft;Jn(t,t.statements,n),sn(),cn(19,t.statements.end,Jt,t),null==F||F(t)}function mt(e){ft(e,!0)}function ft(e,t){var n=Dt(e.statements),r=g.getTextPos();$e(e),0===n&&r===g.getTextPos()&&t?(sn(),jt(e,e.statements,768),on()):jt(e,e.statements,1,void 0,n)}function _t(t){e.forEach(t.members,In),It(t,t.modifiers),Yt("class"),t.name&&(tn(),Pe(t.name));var n=65536&e.getEmitFlags(t);n&&on(),Bt(t,t.typeParameters),jt(t,t.heritageClauses,0),tn(),Jt("{"),jt(t,t.members,129),Jt("}"),n&&sn()}function ht(e){79===e.kind?we(e):Ie(e)}function gt(t,n,i){var a=163969;1===n.length&&(!r||e.nodeIsSynthesized(t)||e.nodeIsSynthesized(n[0])||e.rangeStartPositionsAreOnSameLine(t,n[0],r))?(cn(58,i,Jt,t),tn(),a&=-130):it(58,i,Jt,t),jt(t,n,a)}function yt(t){jt(t,e.factory.createNodeArray(t.jsDocPropertyTags),33)}function vt(t){t.typeParameters&&jt(t,e.factory.createNodeArray(t.typeParameters),33),t.parameters&&jt(t,e.factory.createNodeArray(t.parameters),33),t.type&&(an(),tn(),Jt("*"),tn(),Ie(t.type))}function bt(e){Jt("@"),Ie(e)}function Et(t){var n=e.getTextOfJSDocComment(t);n&&(tn(),q(n))}function xt(e){e&&(tn(),Jt("{"),Ie(e.type),Jt("}"))}function St(t){an();var n=t.statements;0===n.length||!e.isPrologueDirective(n[0])||e.nodeIsSynthesized(n[0])?Jn(t,n,Ct):Ct(t)}function Tt(t,n,i,a){if(t){var o=g.getTextPos();en('/// '),z&&z.sections.push({pos:o,end:g.getTextPos(),kind:"no-default-lib"}),an()}if(r&&r.moduleName&&(en('/// ')),an()),r&&r.amdDependencies)for(var s=0,c=r.amdDependencies;s')):en('/// ')),an()}for(var u=0,d=n;u')),z&&z.sections.push({pos:o,end:g.getTextPos(),kind:"reference",data:p.fileName}),an()}for(var m=0,f=i;m")),z&&z.sections.push({pos:o,end:g.getTextPos(),kind:p.resolutionMode?p.resolutionMode===e.ModuleKind.ESNext?"type-import":"type-require":"type",data:p.fileName}),an()}for(var h=0,y=a;h')),z&&z.sections.push({pos:o,end:g.getTextPos(),kind:"lib",data:p.fileName}),an()}function Ct(t){var n=t.statements;Ln(t),e.forEach(t.statements,kn),$e(t);var r=e.findIndex(n,function(t){return!e.isPrologueDirective(t)});!function(e){e.isDeclarationFile&&Tt(e.hasNoDefaultLib,e.referencedFiles,e.typeReferenceDirectives,e.libReferenceDirectives)}(t),jt(t,n,1,void 0,-1===r?n.length:r),An(t)}function Dt(t,n,r,i){for(var a=!!n,o=0;o=a.length||0===l;if(u&&32768&o)return null==G||G(a),void(null==B||B(a));15360&o&&(Jt(function(e){return i[15360&e][0]}(o)),u&&a&&rr(a.pos,!0)),null==G||G(a),u?!(1&o)||$&&(!n||r&&e.rangeIsOnSingleLine(n,r))?256&o&&!(524288&o)&&tn():an():$t(t,n,a,o,s,c,l,a.hasTrailingComma,a),null==B||B(a),15360&o&&(u&&a&&tr(a.end),Jt(function(e){return i[15360&e][1]}(o)))}}function $t(t,n,r,i,a,o,s,c,l){var u=!(262144&i),d=u,p=_n(n,r[o],i);p?(an(p),d=!1):256&i&&tn(),128&i&&on();for(var m,f,_=function(e,t){return 1===e.length?S:"object"==typeof t?T:C}(t,a),g=!1,y=0;y0?(131&i||(on(),g=!0),an(b),d=!1):m&&512&i&&tn()}f=ve(v),d?rr(e.getCommentRange(v).pos):d=u,h=v.pos,_(v,t,a,y),g&&(sn(),g=!1),m=v}var E=m?e.getEmitFlags(m):0,x=oe||!!(1024&E),D=c&&64&i&&16&i;D&&(m&&!x?it(27,m.end,Jt,m):Jt(",")),m&&(n?n.end:-1)!==m.end&&60&i&&!x&&tr(D&&(null==l?void 0:l.end)?l.end:m.end),128&i&&sn(),be(f);var L=gn(n,r[o+s-1],i,l);L?an(L):2097408&i&&tn()}function qt(e){g.writeLiteral(e)}function zt(e,t){g.writeSymbol(e,t)}function Jt(e){g.writePunctuation(e)}function Xt(){g.writeTrailingSemicolon(";")}function Yt(e){g.writeKeyword(e)}function Qt(e){g.writeOperator(e)}function Zt(e){g.writeParameter(e)}function en(e){g.writeComment(e)}function tn(){g.writeSpace(" ")}function nn(e){g.writeProperty(e)}function rn(e){g.nonEscapingWrite?g.nonEscapingWrite(e):g.write(e)}function an(e){void 0===e&&(e=1);for(var t=0;t0)}function on(){g.increaseIndent()}function sn(){g.decreaseIndent()}function cn(t,n,r,i){return Z?un(t,r,n):function(t,n,r,i,a){if(Z||t&&e.isInJsonFile(t))return a(n,r,i);var o=t&&t.emitNode,s=o&&o.flags||0,c=o&&o.tokenSourceMapRanges&&o.tokenSourceMapRanges[n],l=c&&c.source||E;return i=mr(l,c?c.pos:i),!(128&s)&&i>=0&&_r(l,i),i=a(n,r,i),c&&(i=c.end),!(256&s)&&i>=0&&_r(l,i),i}(i,t,r,n,un)}function ln(t,n){U&&U(t),n(e.tokenToString(t.kind)),V&&V(t)}function un(t,n,r){var i=e.tokenToString(t);return n(i),r<0?r:r+i.length}function dn(t,n,r){if(1&e.getEmitFlags(t))tn();else if($){var i=xn(t,n,r);i?an(i):tn()}else an()}function pn(t){for(var n=t.split(/\r\n?|\n/g),r=e.guessIndentation(n),i=0,a=n;i-1&&i.indexOf(n)===a+1}(t,n)?yn(function(i){return e.getLinesBetweenRangeEndAndRangeStart(t,n,r,i)}):!$&&(a=t,o=n,(a=e.getOriginalNode(a)).parent&&a.parent===e.getOriginalNode(o).parent)?e.rangeEndIsOnSameLineAsRangeStart(t,n,r)?0:1:65536&i?1:0;if(En(t,i)||En(n,i))return 1}else if(e.getStartsOnNewLine(n))return 1;var a,o;return 1&i?1:0}function gn(t,n,i,a){if(2&i||$){if(65536&i)return 1;if(void 0===n)return!t||r&&e.rangeIsOnSingleLine(t,r)?0:1;if(r&&t&&!e.positionIsSynthesized(t.pos)&&!e.nodeIsSynthesized(n)&&(!n.parent||n.parent===t)){if($){var o=a&&!e.positionIsSynthesized(a.end)?a.end:n.end;return yn(function(n){return e.getLinesBetweenPositionAndNextNonWhitespaceCharacter(o,t.end,r,n)})}return e.rangeEndPositionsAreOnSameLine(t,n,r)?0:1}if(En(n,i))return 1}return 1&i&&!(131072&i)?1:0}function yn(t){e.Debug.assert(!!$);var n=t(!0);return 0===n?t(!1):n}function vn(e,t){var n=$&&_n(t,e,0);return n&&mn(n,!1),!!n}function bn(e,t){var n=$&&gn(t,e,0,void 0);n&&an(n)}function En(t,n){if(e.nodeIsSynthesized(t)){var r=e.getStartsOnNewLine(t);return void 0===r?!!(65536&n):r}return!!(65536&n)}function xn(t,n,i){return 131072&e.getEmitFlags(t)?0:(t=Tn(t),n=Tn(n),i=Tn(i),e.getStartsOnNewLine(i)?1:!r||e.nodeIsSynthesized(t)||e.nodeIsSynthesized(n)||e.nodeIsSynthesized(i)?0:$?yn(function(t){return e.getLinesBetweenRangeEndAndRangeStart(n,i,r,t)}):e.rangeEndIsOnSameLineAsRangeStart(n,i,r)?0:1)}function Sn(t){return 0===t.statements.length&&(!r||e.rangeEndIsOnSameLineAsRangeStart(t,t,r))}function Tn(t){for(;214===t.kind&&e.nodeIsSynthesized(t);)t=t.expression;return t}function Cn(t,n){if(e.isGeneratedIdentifier(t)||e.isGeneratedPrivateIdentifier(t))return wn(t);if(e.isStringLiteral(t)&&t.textSourceNode)return Cn(t.textSourceNode,n);var i=r,a=!!i&&!!t.parent&&!e.nodeIsSynthesized(t);if(e.isMemberName(t)){if(!a||e.getSourceFileOfNode(t)!==e.getOriginalNode(i))return e.idText(t)}else if(e.Debug.assertNode(t,e.isLiteralExpression),!a)return t.text;return e.getSourceTextOfNodeFromSourceFile(i,t,n)}function Dn(n,i,a){if(10===n.kind&&n.textSourceNode){var o=n.textSourceNode;if(e.isIdentifier(o)||e.isPrivateIdentifier(o)||e.isNumericLiteral(o)){var s=e.isNumericLiteral(o)?o.text:Cn(o);return a?'"'.concat(e.escapeJsxAttributeString(s),'"'):i||16777216&e.getEmitFlags(n)?'"'.concat(e.escapeString(s),'"'):'"'.concat(e.escapeNonAsciiString(s),'"')}return Dn(o,i,a)}var c=(i?1:0)|(a?2:0)|(t.terminateUnterminatedLiterals?4:0)|(t.target&&99===t.target?8:0);return e.getLiteralText(n,r,c)}function Ln(t){t&&524288&e.getEmitFlags(t)||(p.push(m),m=0,u.push(d),d=0,c.push(l),l=void 0,f.push(_))}function An(t){t&&524288&e.getEmitFlags(t)||(m=p.pop(),d=u.pop(),l=c.pop(),_=f.pop())}function Nn(t){_&&_!==e.lastOrUndefined(f)||(_=new e.Set),_.add(t)}function kn(t){if(t)switch(t.kind){case 238:case 292:case 293:e.forEach(t.statements,kn);break;case 253:case 251:case 243:case 244:kn(t.statement);break;case 242:kn(t.thenStatement),kn(t.elseStatement);break;case 245:case 247:case 246:kn(t.initializer),kn(t.statement);break;case 252:kn(t.caseBlock);break;case 266:e.forEach(t.clauses,kn);break;case 255:kn(t.tryBlock),kn(t.catchClause),kn(t.finallyBlock);break;case 295:kn(t.variableDeclaration),kn(t.block);break;case 240:kn(t.declarationList);break;case 258:e.forEach(t.declarations,kn);break;case 257:case 166:case 205:case 260:case 271:case 277:Pn(t.name);break;case 259:Pn(t.name),524288&e.getEmitFlags(t)&&(e.forEach(t.parameters,kn),kn(t.body));break;case 203:case 204:case 272:e.forEach(t.elements,kn);break;case 269:kn(t.importClause);break;case 270:Pn(t.name),kn(t.namedBindings);break;case 273:Pn(t.propertyName||t.name)}}function In(e){if(e)switch(e.kind){case 299:case 300:case 169:case 171:case 174:case 175:Pn(e.name)}}function Pn(t){t&&(e.isGeneratedIdentifier(t)||e.isGeneratedPrivateIdentifier(t)?wn(t):e.isBindingPattern(t)&&kn(t))}function wn(t){if(4==(7&t.autoGenerateFlags))return On(e.getNodeForGeneratedName(t),e.isPrivateIdentifier(t),t.autoGenerateFlags,t.autoGeneratePrefix,t.autoGenerateSuffix);var n=t.autoGenerateId;return o[n]||(o[n]=function(t){var n=e.formatGeneratedNamePart(t.autoGeneratePrefix,wn),r=e.formatGeneratedNamePart(t.autoGenerateSuffix);switch(7&t.autoGenerateFlags){case 1:return Bn(0,!!(8&t.autoGenerateFlags),e.isPrivateIdentifier(t),n,r);case 2:return e.Debug.assertNode(t,e.isIdentifier),Bn(268435456,!!(8&t.autoGenerateFlags),!1,n,r);case 3:return Un(e.idText(t),32&t.autoGenerateFlags?Mn:Rn,!!(16&t.autoGenerateFlags),!!(8&t.autoGenerateFlags),e.isPrivateIdentifier(t),n,r)}return e.Debug.fail("Unsupported GeneratedIdentifierKind: ".concat(e.Debug.formatEnum(7&t.autoGenerateFlags,e.GeneratedIdentifierFlags,!0),"."))}(t))}function On(t,n,r,i,o){var s=e.getNodeId(t);return a[s]||(a[s]=function(t,n,r,i,a){switch(t.kind){case 79:case 80:return Un(Cn(t),Rn,!!(16&r),!!(8&r),n,i,a);case 264:case 263:return e.Debug.assert(!i&&!a&&!n),function(t){var n=Cn(t.name);return function(t,n){for(var r=n;e.isNodeDescendantOf(r,n);r=r.nextContainer)if(r.locals){var i=r.locals.get(e.escapeLeadingUnderscores(t));if(i&&3257279&i.flags)return!1}return!0}(n,t)?n:Un(n,Rn,!1,!1,!1,"","")}(t);case 269:case 275:return e.Debug.assert(!i&&!a&&!n),function(t){var n=e.getExternalModuleName(t);return Un(e.isStringLiteral(n)?e.makeIdentifierFromModuleName(n.text):"module",Rn,!1,!1,!1,"","")}(t);case 259:case 260:case 274:return e.Debug.assert(!i&&!a&&!n),Un("default",Rn,!1,!1,!1,"","");case 228:return e.Debug.assert(!i&&!a&&!n),Un("class",Rn,!1,!1,!1,"","");case 171:case 174:case 175:return function(t,n,r,i){return e.isIdentifier(t.name)?On(t.name,n):Bn(0,!1,n,r,i)}(t,n,i,a);case 164:return Bn(0,!0,n,i,a);default:return Bn(0,!1,n,i,a)}}(t,n,null!=r?r:0,e.formatGeneratedNamePart(i,wn),e.formatGeneratedNamePart(o)))}function Rn(e){return Mn(e)&&!s.has(e)&&!(_&&_.has(e))}function Mn(t){return!r||e.isFileLevelUniqueName(r,t,k)}function Fn(e){var t;switch(e){case"":return m;case"#":return d;default:return null!==(t=null==l?void 0:l.get(e))&&void 0!==t?t:0}}function Gn(t,n){switch(t){case"":m=n;break;case"#":d=n;break;default:null!=l||(l=new e.Map),l.set(t,n)}}function Bn(t,n,r,i,a){i.length>0&&35===i.charCodeAt(0)&&(i=i.slice(1));var o=e.formatGeneratedName(r,i,"",a),s=Fn(o);if(t&&!(s&t)){var c=268435456===t?"_i":"_n";if(Rn(l=e.formatGeneratedName(r,i,c,a)))return s|=t,n&&Nn(l),Gn(o,s),l}for(;;){var l,u=268435455&s;if(s++,8!==u&&13!==u)if(c=u<26?"_"+String.fromCharCode(97+u):"_"+(u-26),Rn(l=e.formatGeneratedName(r,i,c,a)))return n&&Nn(l),Gn(o,s),l}}function Un(t,n,r,i,a,o,c){if(void 0===n&&(n=Rn),t.length>0&&35===t.charCodeAt(0)&&(t=t.slice(1)),o.length>0&&35===o.charCodeAt(0)&&(o=o.slice(1)),r&&n(u=e.formatGeneratedName(a,o,t,c)))return i?Nn(u):s.add(u),u;95!==t.charCodeAt(t.length-1)&&(t+="_");for(var l=1;;){var u;if(n(u=e.formatGeneratedName(a,o,t+l,c)))return i?Nn(u):s.add(u),u;l++}}function Vn(e){return Un(e,Mn,!0,!1,!1,"","")}function Kn(e,t){var n=Ve(2,e,t),r=ne,i=re,a=ie;jn(t),n(e,t),Hn(t,r,i,a)}function jn(t){var n=e.getEmitFlags(t),r=e.getCommentRange(t);!function(t,n,r,i){ce(),ae=!1;var a=r<0||!!(512&n)||11===t.kind,o=i<0||!!(1024&n)||11===t.kind;(r>0||i>0)&&r!==i&&(a||Xn(r,352!==t.kind),(!a||r>=0&&512&n)&&(ne=r),(!o||i>=0&&1024&n)&&(re=i,258===t.kind&&(ie=i))),e.forEach(e.getSyntheticLeadingComments(t),$n),le()}(t,n,r.pos,r.end),2048&n&&(oe=!0)}function Hn(t,n,r,i){var a=e.getEmitFlags(t),o=e.getCommentRange(t);2048&a&&(oe=!1),Wn(t,a,o.pos,o.end,n,r,i);var s=e.getTypeNode(t);s&&Wn(t,a,s.pos,s.end,n,r,i)}function Wn(t,n,r,i,a,o,s){ce();var c=i<0||!!(1024&n)||11===t.kind;e.forEach(e.getSyntheticTrailingComments(t),qn),(r>0||i>0)&&r!==i&&(ne=a,re=o,ie=s,c||352===t.kind||function(e){sr(e,nr)}(i)),le()}function $n(e){(e.hasLeadingNewline||2===e.kind)&&g.writeLine(),zn(e),e.hasTrailingNewLine||2===e.kind?g.writeLine():g.writeSpace(" ")}function qn(e){g.isAtStartOfLine()||g.writeSpace(" "),zn(e),e.hasTrailingNewLine&&g.writeLine()}function zn(t){var n=function(e){return 3===e.kind?"/*".concat(e.text,"*/"):"//".concat(e.text)}(t),r=3===t.kind?e.computeLineStarts(n):void 0;e.writeCommentRange(n,r,g,0,n.length,j)}function Jn(t,n,i){ce();var a,o,s=n.pos,c=n.end,l=e.getEmitFlags(t),u=oe||c<0||!!(1024&l);s<0||!!(512&l)||(a=n,(o=r&&e.emitDetachedComments(r.text,ke(),g,cr,a,j,oe))&&(L?L.push(o):L=[o])),le(),2048&l&&!oe?(oe=!0,i(t),oe=!1):i(t),ce(),u||(Xn(n.end,!0),ae&&!g.isAtStartOfLine()&&g.writeLine()),le()}function Xn(e,t){ae=!1,t?0===e&&(null==r?void 0:r.isDeclarationFile)?or(e,Qn):or(e,er):0===e&&or(e,Yn)}function Yn(e,t,n,r,i){lr(e,t)&&er(e,t,n,r,i)}function Qn(e,t,n,r,i){lr(e,t)||er(e,t,n,r,i)}function Zn(n,r){return!t.onlyPrintJsDocStyle||e.isJSDocLikeText(n,r)||e.isPinnedComment(n,r)}function er(t,n,i,a,o){r&&Zn(r.text,t)&&(ae||(e.emitNewLineBeforeLeadingCommentOfPosition(ke(),g,o,t),ae=!0),fr(t),e.writeCommentRange(r.text,ke(),g,t,n,j),fr(n),a?g.writeLine():3===i&&g.writeSpace(" "))}function tr(e){oe||-1===e||Xn(e,!0)}function nr(t,n,i,a){r&&Zn(r.text,t)&&(g.isAtStartOfLine()||g.writeSpace(" "),fr(t),e.writeCommentRange(r.text,ke(),g,t,n,j),fr(n),a&&g.writeLine())}function rr(e,t,n){oe||(ce(),sr(e,t?nr:n?ir:ar),le())}function ir(t,n,i){r&&(fr(t),e.writeCommentRange(r.text,ke(),g,t,n,j),fr(n),2===i&&g.writeLine())}function ar(t,n,i,a){r&&(fr(t),e.writeCommentRange(r.text,ke(),g,t,n,j),fr(n),a?g.writeLine():g.writeSpace(" "))}function or(t,n){!r||-1!==ne&&t===ne||(function(t){return void 0!==L&&e.last(L).nodePos===t}(t)?function(t){if(r){var n=e.last(L).detachedCommentEndPos;L.length-1?L.pop():L=void 0,e.forEachLeadingCommentRange(r.text,n,t,n)}}(n):e.forEachLeadingCommentRange(r.text,t,n,t))}function sr(t,n){r&&(-1===re||t!==re&&t!==ie)&&e.forEachTrailingCommentRange(r.text,t,n)}function cr(t,n,i,a,o,s){r&&Zn(r.text,a)&&(fr(a),e.writeCommentRange(t,n,i,a,o,s),fr(o))}function lr(t,n){return!!r&&e.isRecognizedTripleSlashComment(r.text,t,n)}function ur(e,t){var n=Ve(3,e,t);dr(t),n(e,t),pr(t)}function dr(t){var n=e.getEmitFlags(t),r=e.getSourceMapRange(t);if(e.isUnparsedNode(t)){e.Debug.assertIsDefined(t.parent,"UnparsedNodes must have parent pointers");var i=function(t){return void 0===t.parsedSourceMap&&void 0!==t.sourceMapText&&(t.parsedSourceMap=e.tryParseRawSourceMap(t.sourceMapText)||!1),t.parsedSourceMap||void 0}(t.parent);i&&b&&b.appendSourceMap(g.getLine(),g.getColumn(),i,t.parent.sourceMapPath,t.parent.getLineAndCharacterOfPosition(t.pos),t.parent.getLineAndCharacterOfPosition(t.end))}else{var a=r.source||E;352!==t.kind&&!(16&n)&&r.pos>=0&&_r(r.source||E,mr(a,r.pos)),64&n&&(Z=!0)}}function pr(t){var n=e.getEmitFlags(t),r=e.getSourceMapRange(t);e.isUnparsedNode(t)||(64&n&&(Z=!1),352!==t.kind&&!(32&n)&&r.end>=0&&_r(r.source||E,r.end))}function mr(t,n){return t.skipTrivia?t.skipTrivia(n):e.skipTrivia(t.text,n)}function fr(t){if(!(Z||e.positionIsSynthesized(t)||gr(E))){var n=e.getLineAndCharacterOfPosition(E,t),r=n.line,i=n.character;b.addMapping(g.getLine(),g.getColumn(),ee,r,i,void 0)}}function _r(e,t){if(e!==E){var n=E,r=ee;hr(e),fr(t),function(e,t){E=e,ee=t}(n,r)}else fr(t)}function hr(e){Z||(E=e,e!==x?gr(e)||(ee=b.addSource(e.fileName),t.inlineSources&&b.setSourceContent(ee,e.text),x=e,te=ee):ee=te)}function gr(t){return e.fileExtensionIs(t.fileName,".json")}}function S(e,t,n,r){t(e)}function T(e,t,n,r){t(e,n.select(r))}function C(e,t,n,r){t(e,n)}e.isBuildInfoFile=function(t){return e.fileExtensionIs(t,".tsbuildinfo")},e.forEachEmittedFile=a,e.getTsBuildInfoEmitOutputFilePath=o,e.getOutputPathsForBundle=s,e.getOutputPathsFor=c,e.getOutputExtension=u,e.getOutputDeclarationFileName=p,e.getCommonSourceDirectory=g,e.getCommonSourceDirectoryOfConfig=y,e.getAllProjectOutputs=function(t,n){var r=f(),i=r.addOutput,a=r.getOutputs;if(e.outFile(t.options))_(t,i);else{for(var s=e.memoize(function(){return y(t,n)}),c=0,l=t.fileNames;c=0}function p(e){return t.realpath?t.realpath(e):e}function m(t,n,r){var i=t.sortedAndCanonicalizedFiles,o=a(n);if(r)e.insertSorted(i,o,e.compareStringsCaseSensitive)&&t.files.push(n);else{var s=e.binarySearch(i,o,e.identity,e.compareStringsCaseSensitive);if(s>=0){i.splice(s,1);var c=t.files.findIndex(function(e){return a(e)===o});t.files.splice(c,1)}}}function f(){i.clear()}},(t=e.ConfigFileProgramReloadLevel||(e.ConfigFileProgramReloadLevel={}))[t.None=0]="None",t[t.Partial=1]="Partial",t[t.Full=2]="Full",e.updateSharedExtendedConfigFileWatcher=function(t,n,r,i,a){var o,s=e.arrayToMap((null===(o=null==n?void 0:n.configFile)||void 0===o?void 0:o.extendedSourceFiles)||e.emptyArray,a);r.forEach(function(e,n){s.has(n)||(e.projects.delete(t),e.close())}),s.forEach(function(n,a){var o=r.get(a);o?o.projects.add(t):r.set(a,{projects:new e.Set([t]),watcher:i(n,a),close:function(){var e=r.get(a);e&&0===e.projects.size&&(e.watcher.close(),r.delete(a))}})})},e.clearSharedExtendedConfigFileWatcher=function(e,t){t.forEach(function(t){t.projects.delete(e)&&t.close()})},e.cleanExtendedConfigCache=function e(t,n,r){t.delete(n)&&t.forEach(function(i,a){var o;(null===(o=i.extendedResult.extendedSourceFiles)||void 0===o?void 0:o.some(function(e){return r(e)===n}))&&e(t,a,r)})},e.updatePackageJsonWatch=function(t,n,r){var i=new e.Map(t);e.mutateMap(n,i,{createNewValue:r,onDeleteValue:e.closeFileWatcher})},e.updateMissingFilePathsWatch=function(t,n,r){var i=t.getMissingFilePaths(),a=e.arrayToMap(i,e.identity,e.returnTrue);e.mutateMap(n,a,{createNewValue:r,onDeleteValue:e.closeFileWatcher})},e.updateWatchingWildcardDirectories=function(t,n,r){function a(e,t){return{watcher:r(e,t),flags:t}}e.mutateMap(t,n,{createNewValue:a,onDeleteValue:i,onExistingValue:function(e,n,r){e.flags!==n&&(e.watcher.close(),t.set(r,a(r,n)))}})},e.isIgnoredFileFromWildCardWatching=function(t){var n=t.watchedDirPath,r=t.fileOrDirectory,i=t.fileOrDirectoryPath,a=t.configFileName,o=t.options,s=t.program,c=t.extraFileExtensions,l=t.currentDirectory,u=t.useCaseSensitiveFileNames,d=t.writeLog,p=t.toPath,m=e.removeIgnoredPath(i);if(!m)return d("Project: ".concat(a," Detected ignored path: ").concat(r)),!0;if((i=m)===n)return!1;if(e.hasExtension(i)&&!e.isSupportedSourceFileName(r,o,c))return d("Project: ".concat(a," Detected file add/remove of non supported extension: ").concat(r)),!0;if(e.isExcludedFile(r,o.configFile.configFileSpecs,e.getNormalizedAbsolutePath(e.getDirectoryPath(a),l),u,l))return d("Project: ".concat(a," Detected excluded file: ").concat(r)),!0;if(!s)return!1;if(e.outFile(o)||o.outDir)return!1;if(e.isDeclarationFileName(i)){if(o.declarationDir)return!1}else if(!e.fileExtensionIsOneOf(i,e.supportedJSExtensionsFlat))return!1;var f=e.removeFileExtension(i),_=e.isArray(s)?void 0:function(e){return!!e.getState}(s)?s.getProgramOrUndefined():s,h=_||e.isArray(s)?void 0:s;return!(!g(f+".ts")&&!g(f+".tsx")||(d("Project: ".concat(a," Detected output file: ").concat(r)),0));function g(t){return _?!!_.getSourceFileByPath(t):h?h.getState().fileInfos.has(t):!!e.find(s,function(e){return p(e)===t})}},e.isEmittedFileOfProgram=function(e,t){return!!e&&e.isEmittedFile(t)},function(e){e[e.None=0]="None",e[e.TriggerOnly=1]="TriggerOnly",e[e.Verbose=2]="Verbose"}(r=e.WatchLogLevel||(e.WatchLogLevel={})),e.getWatchFactory=function(t,i,a,o){e.setSysLog(i===r.Verbose?a:e.noop);var s={watchFile:function(e,n,r,i){return t.watchFile(e,n,r,i)},watchDirectory:function(e,n,r,i){return t.watchDirectory(e,n,!!(1&r),i)}},c=i!==r.None?{watchFile:p("watchFile"),watchDirectory:p("watchDirectory")}:void 0,l=i===r.Verbose?{watchFile:function(e,t,n,r,i,s){a("FileWatcher:: Added:: ".concat(m(e,n,r,i,s,o)));var l=c.watchFile(e,t,n,r,i,s);return{close:function(){a("FileWatcher:: Close:: ".concat(m(e,n,r,i,s,o))),l.close()}}},watchDirectory:function(t,n,r,i,s,l){var u="DirectoryWatcher:: Added:: ".concat(m(t,r,i,s,l,o));a(u);var d=e.timestamp(),p=c.watchDirectory(t,n,r,i,s,l),f=e.timestamp()-d;return a("Elapsed:: ".concat(f,"ms ").concat(u)),{close:function(){var n="DirectoryWatcher:: Close:: ".concat(m(t,r,i,s,l,o));a(n);var c=e.timestamp();p.close();var u=e.timestamp()-c;a("Elapsed:: ".concat(u,"ms ").concat(n))}}}}:c||s,u=i===r.Verbose?function(e,t,n,r,i){return a("ExcludeWatcher:: Added:: ".concat(m(e,t,n,r,i,o))),{close:function(){return a("ExcludeWatcher:: Close:: ".concat(m(e,t,n,r,i,o)))}}}:e.returnNoopFileWatcher;return{watchFile:d("watchFile"),watchDirectory:d("watchDirectory")};function d(n){return function(r,i,a,o,s,c){var d;return e.matchesExclude(r,"watchFile"===n?null==o?void 0:o.excludeFiles:null==o?void 0:o.excludeDirectories,"boolean"==typeof t.useCaseSensitiveFileNames?t.useCaseSensitiveFileNames:t.useCaseSensitiveFileNames(),(null===(d=t.getCurrentDirectory)||void 0===d?void 0:d.call(t))||"")?u(r,a,o,s,c):l[n].call(void 0,r,i,a,o,s,c)}}function p(t){return function(r,i,c,l,u,d){return s[t].call(void 0,r,function(){for(var s=[],p=0;p=4,y=(f+1+"").length;g&&(y=Math.max(3,y));for(var v="",b=u;b<=f;b++){v+=o.getNewLine(),g&&u+11})&&on(e.Diagnostics.Cannot_find_the_common_subdirectory_path_for_the_input_files,"outDir")}if(U.useDefineForClassFields&&0===p&&on(e.Diagnostics.Option_0_cannot_be_specified_when_option_target_is_ES3,"useDefineForClassFields"),U.checkJs&&!e.getAllowJSCompilerOption(U)&&le.add(e.createCompilerDiagnostic(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"checkJs","allowJs")),U.emitDeclarationOnly&&(e.getEmitDeclarations(U)||on(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"emitDeclarationOnly","declaration","composite"),U.noEmit&&on(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"emitDeclarationOnly","noEmit")),U.emitDecoratorMetadata&&!U.experimentalDecorators&&on(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"emitDecoratorMetadata","experimentalDecorators"),U.jsxFactory?(U.reactNamespace&&on(e.Diagnostics.Option_0_cannot_be_specified_with_option_1,"reactNamespace","jsxFactory"),4!==U.jsx&&5!==U.jsx||on(e.Diagnostics.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxFactory",e.inverseJsxOptionMap.get(""+U.jsx)),e.parseIsolatedEntityName(U.jsxFactory,p)||sn("jsxFactory",e.Diagnostics.Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name,U.jsxFactory)):U.reactNamespace&&!e.isIdentifierText(U.reactNamespace,p)&&sn("reactNamespace",e.Diagnostics.Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier,U.reactNamespace),U.jsxFragmentFactory&&(U.jsxFactory||on(e.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1,"jsxFragmentFactory","jsxFactory"),4!==U.jsx&&5!==U.jsx||on(e.Diagnostics.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxFragmentFactory",e.inverseJsxOptionMap.get(""+U.jsx)),e.parseIsolatedEntityName(U.jsxFragmentFactory,p)||sn("jsxFragmentFactory",e.Diagnostics.Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name,U.jsxFragmentFactory)),U.reactNamespace&&(4!==U.jsx&&5!==U.jsx||on(e.Diagnostics.Option_0_cannot_be_specified_when_option_jsx_is_1,"reactNamespace",e.inverseJsxOptionMap.get(""+U.jsx))),U.jsxImportSource&&2===U.jsx&&on(e.Diagnostics.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxImportSource",e.inverseJsxOptionMap.get(""+U.jsx)),U.preserveValueImports&&e.getEmitModuleKind(U)=e.length(null==o?void 0:o.imports)+e.length(null==o?void 0:o.moduleAugmentations))return!1;var r=e.getResolvedModule(o,t,o&&y(o,n)),i=r&&j.getSourceFile(r.resolvedFileName);if(r&&i)return!1;var a=H.get(t);return!!a&&(e.isTraceEnabled(U,ie)&&e.trace(ie,e.Diagnostics.Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified,t,a),!0)}}function tt(t){return{getPrependNodes:it,getCanonicalFileName:zt,getCommonSourceDirectory:We.getCommonSourceDirectory,getCompilerOptions:We.getCompilerOptions,getCurrentDirectory:function(){return ue},getNewLine:function(){return ie.getNewLine()},getSourceFile:We.getSourceFile,getSourceFileByPath:We.getSourceFileByPath,getSourceFiles:We.getSourceFiles,getLibFileFromReference:We.getLibFileFromReference,isSourceFileFromExternalLibrary:at,getResolvedProjectReferenceToRedirect:Gt,getProjectReferenceRedirect:Rt,isSourceOfProjectReferenceRedirect:Vt,getSymlinkCache:fn,writeFile:t||nt,isEmitBlocked:st,readFile:function(e){return ie.readFile(e)},fileExists:function(t){var n=Qe(t);return!!lt(n)||!e.contains(ge,n)&&ie.fileExists(t)},useCaseSensitiveFileNames:function(){return ie.useCaseSensitiveFileNames()},getProgramBuildInfo:function(){return We.getProgramBuildInfo&&We.getProgramBuildInfo()},getSourceFileFromReference:function(e,t){return We.getSourceFileFromReference(e,t)},redirectTargetsMap:Te,getFileIncludeReasons:We.getFileIncludeReasons,createHash:e.maybeBind(ie,ie.createHash)}}function nt(e,t,n,r,i,a){ie.writeFile(e,t,n,r,i,a)}function rt(){return ye}function it(){return I(K,function(e,t){var n;return null===(n=ye[t])||void 0===n?void 0:n.commandLine},function(e){var t=Qe(e),n=lt(t);return n?n.text:De.has(t)?void 0:ie.readFile(t)})}function at(e){return!!Q.get(e.path)}function ot(){return R||(R=e.createTypeChecker(We))}function st(e){return me.has(Qe(e))}function ct(e){return lt(Qe(e))}function lt(e){return De.get(e)||void 0}function ut(t,n,r){return t?n(t,r):e.sortAndDeduplicateDiagnostics(e.flatMap(We.getSourceFiles(),function(e){return r&&r.throwIfCancellationRequested(),n(e,r)}))}function dt(t){var n;if(e.skipTypeChecking(t,U,We))return e.emptyArray;var r=le.getDiagnostics(t.fileName);return(null===(n=t.commentDirectives)||void 0===n?void 0:n.length)?gt(t,t.commentDirectives,r).diagnostics:r}function pt(t){return e.isSourceFileJS(t)?(t.additionalSyntacticDiagnostics||(t.additionalSyntacticDiagnostics=function(t){return mt(function(){var n=[];return r(t,t),e.forEachChildRecursively(t,r,function(t,r){switch(e.canHaveModifiers(r)&&r.modifiers===t&&e.some(t,e.isDecorator)&&!U.experimentalDecorators&&n.push(a(r,e.Diagnostics.Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_the_experimentalDecorators_option_in_your_tsconfig_or_jsconfig_to_remove_this_warning)),r.kind){case 260:case 228:case 171:case 173:case 174:case 175:case 215:case 259:case 216:if(t===r.typeParameters)return n.push(i(t,e.Diagnostics.Type_parameter_declarations_can_only_be_used_in_TypeScript_files)),"skip";case 240:if(t===r.modifiers)return function(t,r){for(var i=0,o=t;i=0;){if(n.markUsed(o))return o;var s=r.text.slice(a[o],a[o+1]).trim();if(""!==s&&!/^(\s*)\/\/(.*)$/.test(s))return-1;o--}return-1}(t,i)});return{diagnostics:a,directives:i}}function yt(e,t){return bt(e,t,q,vt)}function vt(t,n){return mt(function(){var r=ot().getEmitResolver(t,n);return e.getDeclarationDiagnostics(tt(e.noop),r,t)||e.emptyArray})}function bt(t,n,r,i){var a,o=t?null===(a=r.perFile)||void 0===a?void 0:a.get(t.path):r.allDiagnostics;if(o)return o;var s=i(t,n);return t?(r.perFile||(r.perFile=new e.Map)).set(t.path,s):r.allDiagnostics=s,s}function Et(e,t){return e.isDeclarationFile?[]:yt(e,t)}function xt(t,n,r,i){At(e.normalizePath(t),n,r,void 0,i)}function St(e,t){return e.fileName===t.fileName}function Tt(e,t){return 79===e.kind?79===t.kind&&e.escapedText===t.escapedText:10===t.kind&&e.text===t.text}function Ct(t,n){var r=e.factory.createStringLiteral(t),i=e.factory.createImportDeclaration(void 0,void 0,r,void 0);return e.addEmitFlags(i,67108864),e.setParent(r,i),e.setParent(i,n),r.flags&=-9,i.flags&=-9,r}function Dt(t){if(!t.imports){var n,r,i,a=e.isSourceFileJS(t),o=e.isExternalModule(t);if((U.isolatedModules||o)&&!t.isDeclarationFile){U.importHelpers&&(n=[Ct(e.externalHelpersModuleNameText,t)]);var s=e.getJSXRuntimeImport(e.getJSXImplicitImportBase(U,t),U);s&&(n||(n=[])).push(Ct(s,t))}for(var c=0,l=t.statements;c=1&&e.isStringLiteralLike(i.arguments[0])?(e.setParentRecursive(i,!1),n=e.append(n,i.arguments[0])):e.isLiteralImportTypeNode(i)&&(e.setParentRecursive(i,!1),n=e.append(n,i.argument.literal))}}(t),t.imports=n||e.emptyArray,t.moduleAugmentations=r||e.emptyArray,void(t.ambientModuleNames=i||e.emptyArray)}function u(a,s){if(e.isAnyImportOrReExport(a)){var c=e.getExternalModuleName(a);!(c&&e.isStringLiteral(c)&&c.text)||s&&e.isExternalModuleNameRelative(c.text)||(e.setParentRecursive(a,!1),n=e.append(n,c),Ce||0!==X||t.isDeclarationFile||(Ce=e.startsWith(c.text,"node:")))}else if(e.isModuleDeclaration(a)&&e.isAmbientModule(a)&&(s||e.hasSyntacticModifier(a,2)||t.isDeclarationFile)){a.name.parent=a;var l=e.getTextOfIdentifierOrLiteral(a.name);if(o||s&&!e.isExternalModuleNameRelative(l))(r||(r=[])).push(a.name);else if(!s){t.isDeclarationFile&&(i||(i=[])).push(l);var d=a.body;if(d)for(var p=0,m=d.statements;p0),Object.defineProperties(c,{id:{get:function(){return this.redirectInfo.redirectTarget.id},set:function(e){this.redirectInfo.redirectTarget.id=e}},symbol:{get:function(){return this.redirectInfo.redirectTarget.symbol},set:function(e){this.redirectInfo.redirectTarget.symbol=e}}}),c}(S,E,t,c,Qe(t),m,b);return Te.add(S.path,t),Ot(C,c,p),wt(C,i),Se.set(c,e.packageIdToPackageName(a)),_.push(C),C}E&&(xe.set(x,E),Se.set(c,e.packageIdToPackageName(a)))}if(Ot(E,c,p),E){if(Q.set(c,X>0),E.fileName=t,E.path=c,E.resolvedPath=Qe(t),E.originalFileName=m,E.packageJsonLocations=(null===(s=b.packageJsonLocations)||void 0===s?void 0:s.length)?b.packageJsonLocations:void 0,E.packageJsonScope=b.packageJsonScope,wt(E,i),ie.useCaseSensitiveFileNames()){var D=e.toFileNameLowerCase(c),L=Le.get(D);L?kt(t,L,i):Le.set(D,E)}oe=oe||E.hasNoDefaultLib&&!r,U.noResolve||(jt(E,n),Ht(E)),U.noLib||qt(E),Jt(E),n?f.push(E):_.push(E)}return E}(t,n,r,i,a);return null===e.tracing||void 0===e.tracing||e.tracing.pop(),o}function Pt(t,n,i,a){var o=L(e.getNormalizedAbsolutePath(t,ue),null==n?void 0:n.getPackageJsonInfoCache(),i,a),s=e.getEmitScriptTarget(a),c=e.getSetExternalModuleIndicator(a);return"object"==typeof o?r(r({},o),{languageVersion:s,setExternalModuleIndicator:c}):{languageVersion:s,impliedNodeFormat:o,setExternalModuleIndicator:c}}function wt(e,t){e&&W.add(e.path,t)}function Ot(e,t,n){n?(De.set(n,e),De.set(t,e||!1)):De.set(t,e)}function Rt(e){var t=Mt(e);return t&&Ft(t,e)}function Mt(t){if(ye&&ye.length&&!e.isDeclarationFileName(t)&&!e.fileExtensionIs(t,".json"))return Gt(t)}function Ft(t,n){var r=e.outFile(t.commandLine.options);return r?e.changeExtension(r,".d.ts"):e.getOutputDeclarationFileName(n,t.commandLine,!ie.useCaseSensitiveFileNames())}function Gt(t){void 0===be&&(be=new e.Map,Bt(function(e){Qe(U.configFilePath)!==e.sourceFile.path&&e.commandLine.fileNames.forEach(function(t){return be.set(Qe(t),e.sourceFile.path)})}));var n=be.get(Qe(t));return n&&Kt(n)}function Bt(t){return e.forEachResolvedProjectReference(ye,t)}function Ut(t){if(e.isDeclarationFileName(t))return void 0===Ee&&(Ee=new e.Map,Bt(function(t){var n=e.outFile(t.commandLine.options);if(n){var r=e.changeExtension(n,".d.ts");Ee.set(Qe(r),!0)}else{var i=e.memoize(function(){return e.getCommonSourceDirectoryOfConfig(t.commandLine,!ie.useCaseSensitiveFileNames())});e.forEach(t.commandLine.fileNames,function(n){if(!e.isDeclarationFileName(n)&&!e.fileExtensionIs(n,".json")){var r=e.getOutputDeclarationFileName(n,t.commandLine,!ie.useCaseSensitiveFileNames(),i);Ee.set(Qe(r),n)}})}})),Ee.get(t)}function Vt(e){return Ae&&!!Gt(e)}function Kt(e){if(ve)return ve.get(e)||void 0}function jt(n,r){e.forEach(n.referencedFiles,function(i,a){At(t(i.fileName,n.fileName),r,!1,void 0,{kind:e.FileIncludeKind.ReferenceFile,file:n.path,index:a})})}function Ht(t){var n=t.typeReferenceDirectives;if(n)for(var r=ze(n,t),i=0;iJ,m=d&&!w(a,s)&&!a.noResolve&&of?e.createDiagnosticForNodeInSourceFile(m,_.elements[f],t.kind===e.FileIncludeKind.OutputFromProjectReference?e.Diagnostics.File_is_output_from_referenced_project_specified_here:e.Diagnostics.File_is_source_from_referenced_project_specified_here):void 0;case e.FileIncludeKind.AutomaticTypeDirectiveFile:if(!U.types)return;i=an("types",t.typeReference),a=e.Diagnostics.File_is_entry_point_of_type_library_specified_here;break;case e.FileIncludeKind.LibFile:if(void 0!==t.index){i=an("lib",U.lib[t.index]),a=e.Diagnostics.File_is_library_specified_here;break}var h=e.forEachEntry(e.targetOptionDeclaration.type,function(t,n){return t===e.getEmitScriptTarget(U)?n:void 0});i=h?(o=h,(s=nn("target"))&&e.firstDefined(s,function(t){return e.isStringLiteral(t.initializer)&&t.initializer.text===o?t.initializer:void 0})):void 0,a=e.Diagnostics.File_is_default_library_for_target_specified_here;break;default:e.Debug.assertNever(t)}return i&&e.createDiagnosticForNodeInSourceFile(U.configFile,i,a)}}(t))),t===r&&(r=void 0)}}function Qt(e,t,n,r){(F||(F=[])).push({kind:1,file:e&&e.path,fileProcessingReason:t,diagnostic:n,args:r})}function Zt(e,t,n){le.add(Yt(e,void 0,t,n))}function en(t,n,r,i,a,o){for(var s=!0,c=0,l=rn();cn&&(le.add(e.createDiagnosticForNodeInSourceFile(U.configFile,m.elements[n],r,i,a,o)),s=!1)}}s&&le.add(e.createCompilerDiagnostic(r,i,a,o))}function tn(t,n,r,i){for(var a=!0,o=0,s=rn();on?le.add(e.createDiagnosticForNodeInSourceFile(t||U.configFile,o.elements[n],r,i,a)):le.add(e.createCompilerDiagnostic(r,i,a))}function ln(t,n,r,i,a,o,s){var c=un();(!c||!dn(c,t,n,r,i,a,o,s))&&le.add(e.createCompilerDiagnostic(i,a,o,s))}function un(){if(void 0===Z){Z=!1;var t=e.getTsConfigObjectLiteralExpression(U.configFile);if(t)for(var n=0,r=e.getPropertyAssignment(t,"compilerOptions");n0)for(var s=t.getTypeChecker(),c=0,l=n.imports;c0)for(var p=0,m=n.referencedFiles;p1&&x(E)}return i;function x(t){if(t.declarations)for(var r=0,i=t.declarations;r0;){var d=l.pop();if(!c.has(d)){var p=n.getSourceFileByPath(d);c.set(d,p),p&&u(t,n,p,i,a,o)&&l.push.apply(l,m(t,p.resolvedPath))}}return e.arrayFrom(e.mapDefinedIterator(c.values(),function(e){return e}))}t.createManyToManyPathMap=n,t.canReuseOldState=c,t.create=function(t,r,i,a){var o,l,u,d=new e.Map,p=t.getCompilerOptions().module!==e.ModuleKind.None?n():void 0,m=p?n():void 0,_=c(p,i);t.getTypeChecker();for(var h=0,g=t.getSourceFiles();h0;){var d=l.pop();if(!c.has(d)){if(c.set(d,!0),m(t,d,r,i,a,o))return;if(u(t,d,r,i,a,o),p(t,d)){var _=e.Debug.checkDefined(t.program).getSourceFileByPath(d);l.push.apply(l,e.BuilderState.getReferencedByPaths(t,_.resolvedPath))}}}}var h=new e.Set;null===(s=t.exportedModulesMap.getKeys(n.resolvedPath))||void 0===s||s.forEach(function(n){if(m(t,n,r,i,a,o))return!0;var s=t.referencedMap.getKeys(n);return s&&e.forEachKey(s,function(e){return f(t,e,h,r,i,a,o)})})}}(t,n,r,i,a,o)}function u(t,n,r,i,a,o){if(d(t,n),!t.changedFilesSet.has(n)){var s=e.Debug.checkDefined(t.program),c=s.getSourceFileByPath(n);c&&(e.BuilderState.updateShapeSignature(t,s,c,r,i,a,!o.disableUseFileVersionAsSignature),e.getEmitDeclarations(t.compilerOptions)&&D(t,n,0))}}function d(e,t){return!e.semanticDiagnosticsFromOldState||(e.semanticDiagnosticsFromOldState.delete(t),e.semanticDiagnosticsPerFile.delete(t),!e.semanticDiagnosticsFromOldState.size)}function p(t,n){var r=e.Debug.checkDefined(t.oldSignatures).get(n)||void 0;return e.Debug.checkDefined(t.fileInfos.get(n)).signature!==r}function m(t,n,r,i,a,o){var s;return!!(null===(s=t.fileInfos.get(n))||void 0===s?void 0:s.affectsGlobalScope)&&(e.BuilderState.getAllFilesExcludingDefaultLibraryFile(t,t.program,void 0).forEach(function(e){return u(t,e.resolvedPath,r,i,a,o)}),c(t),!0)}function f(t,n,r,i,a,o,s){var c,l;if(e.tryAddToSet(r,n)){if(m(t,n,i,a,o,s))return!0;u(t,n,i,a,o,s),null===(c=t.exportedModulesMap.getKeys(n))||void 0===c||c.forEach(function(e){return f(t,e,r,i,a,o,s)}),null===(l=t.referencedMap.getKeys(n))||void 0===l||l.forEach(function(e){return!r.has(e)&&u(t,e,i,a,o,s)})}}function _(t,n,r,i,a){a?t.buildInfoEmitPending=!1:n===t.program?(t.changedFilesSet.clear(),t.programEmitComplete=!0):(t.seenAffectedFiles.add(n.resolvedPath),t.buildInfoEmitPending=!0,void 0!==r&&(t.seenEmittedFiles||(t.seenEmittedFiles=new e.Map)).set(n.resolvedPath,r),i?t.affectedFilesPendingEmitIndex++:t.affectedFilesIndex++)}function h(e,t,n){return _(e,n),{result:t,affected:n}}function g(e,t,n,r,i,a){return _(e,n,r,i,a),{result:t,affected:n}}function y(t,n,r){return e.concatenate(function(t,n,r){var i=n.resolvedPath;if(t.semanticDiagnosticsPerFile){var a=t.semanticDiagnosticsPerFile.get(i);if(a)return e.filterSemanticDiagnostics(a,t.compilerOptions)}var o=e.Debug.checkDefined(t.program).getBindAndCheckDiagnostics(n,r);return t.semanticDiagnosticsPerFile&&t.semanticDiagnosticsPerFile.set(i,o),e.filterSemanticDiagnostics(o,t.compilerOptions)}(t,n,r),e.Debug.checkDefined(t.program).getProgramDiagnostics(n))}function v(t){return!!e.outFile(t.options||{})}function b(e,t,n){if(e)if("list"===e.type){var r=t;if(e.element.isFilePath&&r.length)return r.map(n)}else if(e.isFilePath)return n(t);return t}function E(t,n){return e.Debug.assert(!!t.length),t.map(function(e){var t=x(e,n);t.reportsUnnecessary=e.reportsUnnecessary,t.reportDeprecated=e.reportsDeprecated,t.source=e.source,t.skippedOn=e.skippedOn;var r=e.relatedInformation;return t.relatedInformation=r?r.length?r.map(function(e){return x(e,n)}):[]:void 0,t})}function x(e,t){var n=e.file;return r(r({},e),{file:n?t(n.resolvedPath):void 0})}function S(e,t){return void 0!==(null==t?void 0:t.sourceMapUrlPos)?e.substring(0,t.sourceMapUrlPos):e}function T(t,n,r,i,a){var o,s;return n=S(n,a),(null===(o=null==a?void 0:a.diagnostics)||void 0===o?void 0:o.length)&&(n+=a.diagnostics.map(function(n){return"".concat(function(n){return n.file.resolvedPath===t.resolvedPath?"(".concat(n.start,",").concat(n.length,")"):(void 0===s&&(s=e.getDirectoryPath(t.resolvedPath)),"".concat(e.ensurePathIsNonModuleName(e.getRelativePathFromDirectory(s,n.file.resolvedPath,i)),"(").concat(n.start,",").concat(n.length,")"))}(n)).concat(e.DiagnosticCategory[n.category]).concat(n.code,": ").concat(c(n.messageText))}).join("\n")),(null!=r?r:e.generateDjb2Hash)(n);function c(t){return e.isString(t)?t:void 0===t?"":t.next?t.messageText+t.next.map(c).join("\n"):t.messageText}}function C(t,n,r){return(null!=n?n:e.generateDjb2Hash)(S(t,r))}function D(t,n,r){t.affectedFilesPendingEmit||(t.affectedFilesPendingEmit=[]),t.affectedFilesPendingEmitKind||(t.affectedFilesPendingEmitKind=new e.Map);var i=t.affectedFilesPendingEmitKind.get(n);t.affectedFilesPendingEmit.push(n),t.affectedFilesPendingEmitKind.set(n,i||r),void 0===t.affectedFilesPendingEmitIndex&&(t.affectedFilesPendingEmitIndex=0)}function L(t){return e.isString(t)?{version:t,signature:t,affectsGlobalScope:void 0,impliedFormat:void 0}:e.isString(t.signature)?t:{version:t.version,signature:!1===t.signature?void 0:t.version,affectsGlobalScope:t.affectsGlobalScope,impliedFormat:t.impliedFormat}}function A(t,n){return{getState:e.notImplemented,saveEmitState:e.noop,restoreEmitState:e.noop,getProgram:r,getProgramOrUndefined:function(){return t().program},releaseProgram:function(){return t().program=void 0},getCompilerOptions:function(){return t().compilerOptions},getSourceFile:function(e){return r().getSourceFile(e)},getSourceFiles:function(){return r().getSourceFiles()},getOptionsDiagnostics:function(e){return r().getOptionsDiagnostics(e)},getGlobalDiagnostics:function(e){return r().getGlobalDiagnostics(e)},getConfigFileParsingDiagnostics:function(){return n},getSyntacticDiagnostics:function(e,t){return r().getSyntacticDiagnostics(e,t)},getDeclarationDiagnostics:function(e,t){return r().getDeclarationDiagnostics(e,t)},getSemanticDiagnostics:function(e,t){return r().getSemanticDiagnostics(e,t)},emit:function(e,t,n,i,a){return r().emit(e,t,n,i,a)},emitBuildInfo:function(e,t){return r().emitBuildInfo(e,t)},getAllDependencies:e.notImplemented,getCurrentDirectory:function(){return r().getCurrentDirectory()},close:e.noop};function r(){return e.Debug.checkDefined(t().program)}}(t=e.BuilderFileEmit||(e.BuilderFileEmit={}))[t.DtsOnly=0]="DtsOnly",t[t.Full=1]="Full",e.isProgramBundleEmitBuildInfo=v,function(e){e[e.SemanticDiagnosticsBuilderProgram=0]="SemanticDiagnosticsBuilderProgram",e[e.EmitAndSemanticDiagnosticsBuilderProgram=1]="EmitAndSemanticDiagnosticsBuilderProgram"}(n=e.BuilderProgramKind||(e.BuilderProgramKind={})),e.getBuilderCreationParameters=function(t,n,r,i,a,o){var s,c,l;return void 0===t?(e.Debug.assert(void 0===n),s=r,l=i,e.Debug.assert(!!l),c=l.getProgram()):e.isArray(t)?(l=i,c=e.createProgram({rootNames:t,options:n,host:r,oldProgram:l&&l.getProgramOrUndefined(),configFileParsingDiagnostics:a,projectReferences:o}),s=r):(c=t,s=n,l=r,a=i),{host:s,newProgram:c,oldProgram:l,configFileParsingDiagnostics:a||e.emptyArray}},e.computeSignatureWithDiagnostics=T,e.computeSignature=C,e.createBuilderProgram=function(t,r){var c=r.newProgram,l=r.host,u=r.oldProgram,d=r.configFileParsingDiagnostics,p=u&&u.getState();if(p&&c===p.program&&d===c.getConfigFileParsingDiagnostics())return c=void 0,p=void 0,u;var m=e.createGetCanonicalFileName(l.useCaseSensitiveFileNames()),f=e.maybeBind(l,l.createHash),v=function(t,n,r,a){var o,s,c=e.BuilderState.create(t,n,r,a);c.program=t;var l=t.getCompilerOptions();c.compilerOptions=l;var u=e.outFile(l);u?l.composite&&(null==r?void 0:r.outSignature)&&u===e.outFile(null==r?void 0:r.compilerOptions)&&(c.outSignature=null==r?void 0:r.outSignature):c.semanticDiagnosticsPerFile=new e.Map,c.changedFilesSet=new e.Set,c.latestChangedDtsFile=l.composite?null==r?void 0:r.latestChangedDtsFile:void 0;var d=e.BuilderState.canReuseOldState(c.referencedMap,r),p=d?r.compilerOptions:void 0,m=d&&r.semanticDiagnosticsPerFile&&!!c.semanticDiagnosticsPerFile&&!e.compilerOptionsAffectSemanticDiagnostics(l,p),f=l.composite&&(null==r?void 0:r.emitSignatures)&&!u&&!e.compilerOptionsAffectDeclarationPath(l,r.compilerOptions);d&&(null===(o=r.changedFilesSet)||void 0===o||o.forEach(function(e){return c.changedFilesSet.add(e)}),!u&&r.affectedFilesPendingEmit&&(c.affectedFilesPendingEmit=r.affectedFilesPendingEmit.slice(),c.affectedFilesPendingEmitKind=r.affectedFilesPendingEmitKind&&new e.Map(r.affectedFilesPendingEmitKind),c.affectedFilesPendingEmitIndex=r.affectedFilesPendingEmitIndex,c.seenAffectedFiles=new e.Set));var _=c.referencedMap,h=d?r.referencedMap:void 0,g=m&&!l.skipLibCheck==!p.skipLibCheck,y=g&&!l.skipDefaultLibCheck==!p.skipDefaultLibCheck;return c.fileInfos.forEach(function(a,o){var s,l,u,p;if(!d||!(s=r.fileInfos.get(o))||s.version!==a.version||s.impliedFormat!==a.impliedFormat||(u=l=_&&_.getValues(o))!==(p=h&&h.getValues(o))&&(void 0===u||void 0===p||u.size!==p.size||e.forEachKey(u,function(e){return!p.has(e)}))||l&&e.forEachKey(l,function(e){return!c.fileInfos.has(e)&&r.fileInfos.has(e)}))c.changedFilesSet.add(o);else if(m){var v=t.getSourceFileByPath(o);if(v.isDeclarationFile&&!g)return;if(v.hasNoDefaultLib&&!y)return;var b=r.semanticDiagnosticsPerFile.get(o);b&&(c.semanticDiagnosticsPerFile.set(o,r.hasReusableDiagnostic?function(t,n,r){if(!t.length)return e.emptyArray;var a=e.getDirectoryPath(e.getNormalizedAbsolutePath(e.getTsBuildInfoEmitOutputFilePath(n.getCompilerOptions()),n.getCurrentDirectory()));return t.map(function(e){var t=i(e,n,o);t.reportsUnnecessary=e.reportsUnnecessary,t.reportsDeprecated=e.reportDeprecated,t.source=e.source,t.skippedOn=e.skippedOn;var r=e.relatedInformation;return t.relatedInformation=r?r.length?r.map(function(e){return i(e,n,o)}):[]:void 0,t});function o(t){return e.toPath(t,a,r)}}(b,t,n):b),c.semanticDiagnosticsFromOldState||(c.semanticDiagnosticsFromOldState=new e.Set),c.semanticDiagnosticsFromOldState.add(o))}if(f){var E=r.emitSignatures.get(o);E&&(c.emitSignatures||(c.emitSignatures=new e.Map)).set(o,E)}}),d&&e.forEachEntry(r.fileInfos,function(e,t){return e.affectsGlobalScope&&!c.fileInfos.has(t)})?e.BuilderState.getAllFilesExcludingDefaultLibraryFile(c,t,void 0).forEach(function(e){return c.changedFilesSet.add(e.resolvedPath)}):p&&!u&&e.compilerOptionsAffectEmit(l,p)&&(t.getSourceFiles().forEach(function(e){return D(c,e.resolvedPath,1)}),e.Debug.assert(!c.seenAffectedFiles||!c.seenAffectedFiles.size),c.seenAffectedFiles=c.seenAffectedFiles||new e.Set),c.buildInfoEmitPending=!d||c.changedFilesSet.size!==((null===(s=r.changedFilesSet)||void 0===s?void 0:s.size)||0),c}(c,m,p,l.disableUseFileVersionAsSignature);c.getProgramBuildInfo=function(){return function(t,n){var r=e.outFile(t.compilerOptions);if(!r||t.compilerOptions.composite){var i=e.Debug.checkDefined(t.program).getCurrentDirectory(),a=e.getDirectoryPath(e.getNormalizedAbsolutePath(e.getTsBuildInfoEmitOutputFilePath(t.compilerOptions),i)),o=t.latestChangedDtsFile?P(t.latestChangedDtsFile):void 0;if(r){var s=[],c=[];return t.program.getRootFileNames().forEach(function(e){var n=t.program.getSourceFile(e);n&&(s.push(w(n.resolvedPath)),c.push(n.version))}),{fileNames:s,fileInfos:c,options:M(t.compilerOptions,"affectsBundleEmitBuildInfo"),outSignature:t.outSignature,latestChangedDtsFile:o}}var l,u,d,p,m,f,_,h,g=[],y=new e.Map,v=e.arrayFrom(t.fileInfos.entries(),function(n){var r,i,a=n[0],o=n[1],s=O(a);e.Debug.assert(g[s-1]===w(a));var c=null===(r=t.oldSignatures)||void 0===r?void 0:r.get(a),l=void 0!==c?c||void 0:o.signature;if(t.compilerOptions.composite){var u=t.program.getSourceFileByPath(a);if(!e.isJsonSourceFile(u)&&e.sourceFileMayBeEmitted(u,t.program)){var p=null===(i=t.emitSignatures)||void 0===i?void 0:i.get(a);p!==l&&(d||(d=[])).push(void 0===p?s:[s,p])}}return o.version===l?o.affectsGlobalScope||o.impliedFormat?{version:o.version,signature:void 0,affectsGlobalScope:o.affectsGlobalScope,impliedFormat:o.impliedFormat}:o.version:void 0!==l?void 0===c?o:{version:o.version,signature:l,affectsGlobalScope:o.affectsGlobalScope,impliedFormat:o.impliedFormat}:{version:o.version,signature:!1,affectsGlobalScope:o.affectsGlobalScope,impliedFormat:o.impliedFormat}});if(t.referencedMap&&(p=e.arrayFrom(t.referencedMap.keys()).sort(e.compareStringsCaseSensitive).map(function(e){return[O(e),R(t.referencedMap.getValues(e))]})),t.exportedModulesMap&&(m=e.mapDefined(e.arrayFrom(t.exportedModulesMap.keys()).sort(e.compareStringsCaseSensitive),function(e){var n,r=null===(n=t.oldExportedModulesMap)||void 0===n?void 0:n.get(e);return void 0===r?[O(e),R(t.exportedModulesMap.getValues(e))]:r?[O(e),R(r)]:void 0})),t.semanticDiagnosticsPerFile)for(var x=0,S=e.arrayFrom(t.semanticDiagnosticsPerFile.keys()).sort(e.compareStringsCaseSensitive);x1||47!==t.charCodeAt(0);if(a&&0!==t.search(/[a-zA-Z]:/)&&0===i.search(/[a-zA-Z]\$\//)){if(-1===(r=t.indexOf(e.directorySeparator,r+1)))return!1;i=t.substring(n+i.length,r+1)}if(a&&0!==i.search(/users\//i))return!0;for(var o=r+1,s=2;s>0;s--)if(0===(o=t.indexOf(e.directorySeparator,o)+1))return!1;return!0}function r(e){var t,n;return!(!(null===(t=e.resolvedModule)||void 0===t?void 0:t.originalPath)&&!(null===(n=e.resolvedTypeReferenceDirective)||void 0===n?void 0:n.originalPath))}e.removeIgnoredPath=t,e.canWatchDirectoryOrFile=n,e.createResolutionCache=function(i,a,o){var s,c,l,u,d,p,m,f,_=e.createMultiMap(),h=[],g=[],y=e.createMultiMap(),v=new e.Map,b=!1,E=e.memoize(function(){return i.getCurrentDirectory()}),x=i.getCachedDirectoryStructureHost(),S=new e.Map,T=e.createCacheWithRedirects(),C=e.createCacheWithRedirects(),D=e.createModuleResolutionCache(E(),i.getCanonicalFileName,void 0,T,C),L=new e.Map,A=e.createCacheWithRedirects(),N=e.createTypeReferenceDirectiveResolutionCache(E(),i.getCanonicalFileName,void 0,D.getPackageJsonInfoCache(),A),k=[".ts",".tsx",".js",".jsx",".json"],I=new e.Map,P=new e.Map,w=new e.Map,O=a&&e.removeTrailingDirectorySeparator(e.getNormalizedAbsolutePath(a,E())),R=O&&i.toPath(O),M=void 0!==R?R.split(e.directorySeparator).length:0,F=new e.Map;return{getModuleResolutionCache:function(){return D},startRecordingFilesWithChangedResolutions:function(){s=[]},finishRecordingFilesWithChangedResolutions:function(){var e=s;return s=void 0,e},startCachingPerDirectoryResolution:function(){D.clearAllExceptPackageJsonInfoCache(),N.clearAllExceptPackageJsonInfoCache(),_.forEach(Z),_.clear()},finishCachingPerDirectoryResolution:function(t,n){l=void 0,_.forEach(Z),_.clear(),t!==n&&(null==t||t.getSourceFiles().forEach(function(t){for(var n,r,i,a=e.isExternalOrCommonJsModule(t)&&null!==(r=null===(n=t.packageJsonLocations)||void 0===n?void 0:n.length)&&void 0!==r?r:0,o=null!==(i=v.get(t.path))&&void 0!==i?i:e.emptyArray,s=o.length;sa)for(s=a;sM+1?{dir:i.slice(0,M+1).join(e.directorySeparator),dirPath:r.slice(0,M+1).join(e.directorySeparator)}:{dir:O,dirPath:R,nonRecursive:!1}}return q(e.getDirectoryPath(e.getNormalizedAbsolutePath(t,E())),e.getDirectoryPath(n))}function q(t,r){for(;e.pathContainsNodeModules(r);)t=e.getDirectoryPath(t),r=e.getDirectoryPath(r);if(e.isNodeModulesDirectory(r))return n(e.getDirectoryPath(r))?{dir:t,dirPath:r}:void 0;var i,a,o=!0;if(void 0!==R)for(;!U(r,R);){var s=e.getDirectoryPath(r);if(s===r)break;o=!1,i=r,a=t,r=s,t=e.getDirectoryPath(t)}return n(r)?{dir:a||t,dirPath:i||r,nonRecursive:o}:void 0}function z(t){return e.fileExtensionIsOneOf(t,k)}function J(t,n,r,a){if(n.refCount)n.refCount++,e.Debug.assertIsDefined(n.files);else{n.refCount=1,e.Debug.assert(0===e.length(n.files)),e.isExternalModuleNameRelative(t)?X(n):_.add(t,n);var o=a(n);o&&o.resolvedFileName&&y.add(i.toPath(o.resolvedFileName),n)}(n.files||(n.files=[])).push(r)}function X(t){e.Debug.assert(!!t.refCount);var n=t.failedLookupLocations,r=t.affectingLocations;if(n.length||r.length){n.length&&h.push(t);for(var a=!1,o=0,s=n;o1),I.set(p,_-1))),f===R?c=!0:ne(f)}}c&&ne(R)}else s.length&&e.unorderedRemoveItem(g,t);for(var v=0,b=s;v1&&n.sort(_),s.push.apply(s,n));var i=e.getDirectoryPath(t);if(i===t)return o=t,"break";o=t=i},l=e.getDirectoryPath(t);0!==a.size;){var u=c(l);if(l=o,"break"===u)break}if(a.size){var d=e.arrayFrom(a.values());d.length>1&&d.sort(_),s.push.apply(s,d)}return s}function b(t,n,r){if(e.getEmitModuleResolutionKind(n)>=e.ModuleResolutionKind.Node16&&r===e.ModuleKind.ESNext)return[2];switch(t){case 2:return[2,0,1];case 1:return[1,0,2];case 0:return[0,1,2];default:e.Debug.assertNever(t)}}function E(t,n,r,i,a){for(var o in n)for(var s=function(n){var i=e.normalizePath(n),s=i.indexOf("*"),c=r.map(function(e){return{ending:e,value:C(t,e,a)}});if(e.tryGetExtensionFromPath(i)&&c.push({ending:void 0,value:t}),-1!==s)for(var l=i.substring(0,s),u=i.substring(s+1),p=0,m=c;p=l.length+u.length&&e.startsWith(h,l)&&e.endsWith(h,u)&&d({ending:_,value:h})){var g=h.substring(l.length,h.length-u.length);return{value:o.replace("*",g)}}}else if(e.some(c,function(e){return 0!==e.ending&&i===e.value})||e.some(c,function(e){return 0===e.ending&&i===e.value&&d(e)}))return{value:o}},c=0,l=n[o];c=0||e.isApplicableVersionedTypesKey(o,g)){var y=a[g],v=x(t,n,r,i,y,o);if(v)return v}}}}}function S(t,n,i,a,o,c,l,u){var d=t.path,p=t.isRedirect,m=n.getCanonicalFileName,f=n.sourceDirectory;if(a.fileExists&&a.readFile){var _=e.getNodeModulePathParts(d);if(_){var h=s(a,c,o,i),g=d,y=!1;if(!l)for(var v=_.packageRootIndex,S=void 0;;){var T=R(v),D=T.moduleFileToTry,A=T.packageRootPath,N=T.blockedByExports,k=T.verbatimFromExports;if(e.getEmitModuleResolutionKind(o)!==e.ModuleResolutionKind.Classic){if(N)return;if(k)return D}if(A){g=A,y=!0;break}if(S||(S=D),-1===(v=d.indexOf(e.directorySeparator,v+1))){g=C(S,h.ending,o,a);break}}if(!p||y){var I=a.getGlobalTypingsCacheLocation&&a.getGlobalTypingsCacheLocation(),P=m(g.substring(0,_.topLevelNodeModulesIndex));if(e.startsWith(f,P)||I&&e.startsWith(m(I),P)){var w=g.substring(_.topLevelPackageNameIndex+1),O=e.getPackageNameFromTypesPackageName(w);return e.getEmitModuleResolutionKind(o)===e.ModuleResolutionKind.Classic&&O===w?void 0:O}}}}function R(t){var n,s,c=d.substring(0,t),l=e.combinePaths(c,"package.json"),p=d,f=!1,g=null===(s=null===(n=a.getPackageJsonInfoCache)||void 0===n?void 0:n.call(a))||void 0===s?void 0:s.getPackageJsonInfo(l);if("object"==typeof g||void 0===g&&a.fileExists(l)){var y=(null==g?void 0:g.contents.packageJsonContent)||JSON.parse(a.readFile(l)),v=u||i.impliedNodeFormat;if(e.getEmitModuleResolutionKind(o)===e.ModuleResolutionKind.Node16||e.getEmitModuleResolutionKind(o)===e.ModuleResolutionKind.NodeNext){var S=["node",v===e.ModuleKind.ESNext?"import":"require","types"],T=y.exports&&"string"==typeof y.name?x(o,d,c,e.getPackageNameFromTypesPackageName(y.name),y.exports,S):void 0;if(T){var C=e.hasTSFileExtension(T.moduleFileToTry)?{moduleFileToTry:e.removeFileExtension(T.moduleFileToTry)+L(T.moduleFileToTry,o)}:T;return r(r({},C),{verbatimFromExports:!0})}if(y.exports)return{moduleFileToTry:d,blockedByExports:!0}}var D=y.typesVersions?e.getPackageJsonTypesVersionsPaths(y.typesVersions):void 0;if(D){var A=E(d.slice(c.length+1),D.paths,b(h.ending,o,v),a,o);void 0===A?f=!0:p=e.combinePaths(c,A)}var N=y.typings||y.types||y.main||"index.js";if(e.isString(N)&&(!f||!e.matchPatternOrExact(e.tryParsePatterns(D.paths),N))){var k=e.toPath(N,c,m);if(e.removeFileExtension(k)===e.removeFileExtension(m(p)))return{packageRootPath:c,moduleFileToTry:p}}}else{var I=m(p.substring(_.packageRootIndex+1));if("index.d.ts"===I||"index.js"===I||"index.ts"===I||"index.tsx"===I)return{moduleFileToTry:p,packageRootPath:c}}return{moduleFileToTry:p}}}function T(t,n,r){return e.mapDefined(n,function(e){var n=A(t,e,r);return void 0!==n&&N(n)?void 0:n})}function C(t,n,r,i){if(e.fileExtensionIsOneOf(t,[".json",".mjs",".cjs"]))return t;var a=e.removeFileExtension(t);if(t===a)return t;if(e.fileExtensionIsOneOf(t,[".d.mts",".mts",".d.cts",".cts"]))return a+D(t,r);switch(n){case 0:var o=e.removeSuffix(a,"/index");return i&&o!==a&&function(t,n){if(t.fileExists)for(var r=0,i=e.flatten(e.getSupportedExtensions({allowJs:!0},[{extension:"node",isMixedContent:!1},{extension:"json",isMixedContent:!1,scriptKind:6}]));r1?function(t,n){var r=t.filter(function(e,t,n){return t===n.findIndex(function(t){return(null==t?void 0:t.fileName)===(null==e?void 0:e.fileName)})});if(0===r.length)return"";var i=function(e){return Math.log(e)*Math.LOG10E+1},a=r.map(function(n){return[n,e.countWhere(t,function(e){return e.fileName===n.fileName})]}),o=a.reduce(function(e,t){return Math.max(e,t[1]||0)},0),s=e.Diagnostics.Errors_Files.message,c=s.split(" ")[0].length,l=Math.max(c,i(o)),d=Math.max(i(o)-c,0),p="";return p+=" ".repeat(d)+s+"\n",a.forEach(function(e){var t=e[0],r=e[1],i=Math.log(r)*Math.LOG10E+1|0,a=i0?e.ExitStatus.DiagnosticsPresent_OutputsSkipped:d.length>0?e.ExitStatus.DiagnosticsPresent_OutputsGenerated:e.ExitStatus.Success}function x(t,n){return void 0===t&&(t=e.sys),{onWatchStatusChange:n||o(t),watchFile:e.maybeBind(t,t.watchFile)||e.returnNoopFileWatcher,watchDirectory:e.maybeBind(t,t.watchDirectory)||e.returnNoopFileWatcher,setTimeout:e.maybeBind(t,t.setTimeout)||e.noop,clearTimeout:e.maybeBind(t,t.clearTimeout)||e.noop}}function S(t,n){var r=e.memoize(function(){return e.getDirectoryPath(e.normalizePath(t.getExecutingFilePath()))});return{useCaseSensitiveFileNames:function(){return t.useCaseSensitiveFileNames},getNewLine:function(){return t.newLine},getCurrentDirectory:e.memoize(function(){return t.getCurrentDirectory()}),getDefaultLibLocation:r,getDefaultLibFileName:function(t){return e.combinePaths(r(),e.getDefaultLibFileName(t))},fileExists:function(e){return t.fileExists(e)},readFile:function(e,n){return t.readFile(e,n)},directoryExists:function(e){return t.directoryExists(e)},getDirectories:function(e){return t.getDirectories(e)},readDirectory:function(e,n,r,i,a){return t.readDirectory(e,n,r,i,a)},realpath:e.maybeBind(t,t.realpath),getEnvironmentVariable:e.maybeBind(t,t.getEnvironmentVariable),trace:function(e){return t.write(e+t.newLine)},createDirectory:function(e){return t.createDirectory(e)},writeFile:function(e,n,r){return t.writeFile(e,n,r)},createHash:e.maybeBind(t,t.createHash),createProgram:n||e.createEmitAndSemanticDiagnosticsBuilderProgram,disableUseFileVersionAsSignature:t.disableUseFileVersionAsSignature,storeFilesChangingSignatureDuringEmit:t.storeFilesChangingSignatureDuringEmit,now:e.maybeBind(t,t.now)}}function T(t,n,r,i){void 0===t&&(t=e.sys);var a=function(e){return t.write(e+t.newLine)},o=S(t,n);return e.copyProperties(o,x(t,i)),o.afterProgramCreate=function(n){var i=n.getCompilerOptions(),s=e.getNewLineCharacter(i,function(){return t.newLine});b(n,r,a,function(t){return o.onWatchStatusChange(e.createCompilerDiagnostic(l(t),t),s,i,t)})},o}function C(t,n,r){n(r),t.exit(e.ExitStatus.DiagnosticsPresent_OutputsSkipped)}e.createDiagnosticReporter=r,e.screenStartingMessageCodes=[e.Diagnostics.Starting_compilation_in_watch_mode.code,e.Diagnostics.File_change_detected_Starting_incremental_compilation.code],e.getLocaleTimeString=a,e.createWatchStatusReporter=o,e.parseConfigFileWithSystem=function(t,n,r,i,a,o){var s=a;s.onUnRecoverableConfigFileDiagnostic=function(e){return C(a,o,e)};var c=e.getParsedCommandLineOfConfigFile(t,n,s,r,i);return s.onUnRecoverableConfigFileDiagnostic=void 0,c},e.getErrorCountForSummary=s,e.getFilesInErrorForSummary=c,e.getWatchErrorSummaryDiagnosticMessage=l,e.getErrorSummaryText=d,e.isBuilderProgram=p,e.listFiles=m,e.explainFiles=f,e.explainIfFileIsRedirectAndImpliedFormat=_,e.getMatchedFileSpec=h,e.getMatchedIncludeSpec=g,e.fileIncludeReasonToDiagnostics=y,e.emitFilesAndReportErrors=b,e.emitFilesAndReportErrorsAndGetExitStatus=E,e.noopFileWatcher={close:e.noop},e.returnNoopFileWatcher=function(){return e.noopFileWatcher},e.createWatchHost=x,e.WatchType={ConfigFile:"Config file",ExtendedConfigFile:"Extended config file",SourceFile:"Source file",MissingFile:"Missing file",WildcardDirectory:"Wild card directory",FailedLookupLocations:"Failed Lookup Locations",AffectingFileLocation:"File location affecting resolution",TypeRoots:"Type roots",ConfigFileOfReferencedProject:"Config file of referened project",ExtendedConfigOfReferencedProject:"Extended config file of referenced project",WildcardDirectoryOfReferencedProject:"Wild card directory of referenced project",PackageJson:"package.json file",ClosedScriptInfo:"Closed Script info",ConfigFileForInferredRoot:"Config file for the inferred project root",NodeModules:"node_modules for closed script infos and package.jsons affecting module specifier cache",MissingSourceMapFile:"Missing source map file",NoopConfigFileForInferredRoot:"Noop Config file for the inferred project root",MissingGeneratedFile:"Missing generated file",NodeModulesForModuleSpecifierCache:"node_modules for module specifier cache invalidation"},e.createWatchFactory=function(t,n){var r=t.trace?n.extendedDiagnostics?e.WatchLogLevel.Verbose:n.diagnostics?e.WatchLogLevel.TriggerOnly:e.WatchLogLevel.None:e.WatchLogLevel.None,i=r!==e.WatchLogLevel.None?function(e){return t.trace(e)}:e.noop,a=e.getWatchFactory(t,r,i);return a.writeLog=i,a},e.createCompilerHostFromProgramHost=function(t,n,r){void 0===r&&(r=t);var i=t.useCaseSensitiveFileNames(),a=e.memoize(function(){return t.getNewLine()}),o={getSourceFile:function(r,i,a){var s;try{e.performance.mark("beforeIORead");var c=n().charset;s=c?t.readFile(r,c):o.readFile(r),e.performance.mark("afterIORead"),e.performance.measure("I/O Read","beforeIORead","afterIORead")}catch(e){a&&a(e.message),s=""}return void 0!==s?e.createSourceFile(r,s,i):void 0},getDefaultLibLocation:e.maybeBind(t,t.getDefaultLibLocation),getDefaultLibFileName:function(e){return t.getDefaultLibFileName(e)},writeFile:function(n,r,i,a){try{e.performance.mark("beforeIOWrite"),e.writeFileEnsuringDirectories(n,r,i,function(e,n,r){return t.writeFile(e,n,r)},function(e){return t.createDirectory(e)},function(e){return t.directoryExists(e)}),e.performance.mark("afterIOWrite"),e.performance.measure("I/O Write","beforeIOWrite","afterIOWrite")}catch(e){a&&a(e.message)}},getCurrentDirectory:e.memoize(function(){return t.getCurrentDirectory()}),useCaseSensitiveFileNames:function(){return i},getCanonicalFileName:e.createGetCanonicalFileName(i),getNewLine:function(){return e.getNewLineCharacter(n(),a)},fileExists:function(e){return t.fileExists(e)},readFile:function(e){return t.readFile(e)},trace:e.maybeBind(t,t.trace),directoryExists:e.maybeBind(r,r.directoryExists),getDirectories:e.maybeBind(r,r.getDirectories),realpath:e.maybeBind(t,t.realpath),getEnvironmentVariable:e.maybeBind(t,t.getEnvironmentVariable)||function(){return""},createHash:e.maybeBind(t,t.createHash),readDirectory:e.maybeBind(t,t.readDirectory),disableUseFileVersionAsSignature:t.disableUseFileVersionAsSignature,storeFilesChangingSignatureDuringEmit:t.storeFilesChangingSignatureDuringEmit};return o},e.setGetSourceFileAsHashVersioned=function(t){var r=t.getSourceFile,i=e.maybeBind(t,t.createHash)||e.generateDjb2Hash;t.getSourceFile=function(){for(var e=[],a=0;ac)}}}function N(t,n,r){var i=t.options;return!(n.type===e.UpToDateStatusType.OutOfDateWithPrepend&&!i.force&&0!==r.fileNames.length&&!e.getConfigFileParsingDiagnostics(r).length&&e.isIncrementalCompilation(r.options))}function k(t,n,i){if(t.projectPendingBuild.size&&!l(n))for(var a=t.options,o=t.projectPendingBuild,s=0;sN&&(A=w,N=O)}if(!T)for(var U=e.getAllProjectOutputs(n,!S.useCaseSensitiveFileNames()),$=B(t,r),z=0,J=U;z=0},t.findArgument=function(t){var n=e.sys.args.indexOf(t);return n>=0&&n214)return 2;if(46===e.charCodeAt(0))return 3;if(95===e.charCodeAt(0))return 4;if(t){var n=/^@([^/]+)\/([^/]+)$/.exec(e);if(n){var r=s(n[1],!1);if(0!==r)return{name:n[1],isScopeName:!0,result:r};var i=s(n[2],!1);return 0!==i?{name:n[2],isScopeName:!1,result:i}:0}}return encodeURIComponent(e)!==e?5:0}function c(t,n,r,i){var a=i?"Scope":"Package";switch(n){case 1:return"'".concat(t,"':: ").concat(a," name '").concat(r,"' cannot be empty");case 2:return"'".concat(t,"':: ").concat(a," name '").concat(r,"' should be less than ").concat(214," characters");case 3:return"'".concat(t,"':: ").concat(a," name '").concat(r,"' cannot start with '.'");case 4:return"'".concat(t,"':: ").concat(a," name '").concat(r,"' cannot start with '_'");case 5:return"'".concat(t,"':: ").concat(a," name '").concat(r,"' contains non URI safe characters");case 0:return e.Debug.fail();default:throw e.Debug.assertNever(n)}}t.prefixedNodeCoreModuleList=a.map(function(e){return"node:".concat(e)}),t.nodeCoreModuleList=n(n([],a,!0),t.prefixedNodeCoreModuleList,!0),t.nodeCoreModules=new e.Set(t.nodeCoreModuleList),t.nonRelativeModuleNameForTypingCache=o,t.loadSafeList=function(t,n){var r=e.readConfigFile(n,function(e){return t.readFile(e)});return new e.Map(e.getEntries(r.config))},t.loadTypesMap=function(t,n){var r=e.readConfigFile(n,function(e){return t.readFile(e)});if(r.config)return new e.Map(e.getEntries(r.config.simpleMap))},t.discoverTypings=function(t,n,i,a,s,c,l,u,d,p){if(!l||!l.enable)return{cachedTypingPaths:[],newTypingNames:[],filesToWatch:[]};var m=new e.Map;i=e.mapDefined(i,function(t){var n=e.normalizePath(t);if(e.hasJSFileExtension(n))return n});var f=[];l.include&&T(l.include,"Explicitly included types");var _=l.exclude||[];if(!p.types){var h=new e.Set(i.map(e.getDirectoryPath));h.add(a),h.forEach(function(e){C(e,"bower.json","bower_components",f),C(e,"package.json","node_modules",f)})}l.disableFilenameBasedTypeAcquisition||function(t){var r=e.mapDefined(t,function(t){if(e.hasJSFileExtension(t)){var n=e.removeFileExtension(e.getBaseFileName(t.toLowerCase())),r=e.removeMinAndVersionNumbers(n);return s.get(r)}});r.length&&T(r,"Inferred typings from file names"),e.some(t,function(t){return e.fileExtensionIs(t,".jsx")})&&(n&&n("Inferred 'react' typings due to presence of '.jsx' extension"),S("react"))}(i),u&&T(e.deduplicate(u.map(o),e.equateStringsCaseSensitive,e.compareStringsCaseSensitive),"Inferred typings from unresolved imports"),c.forEach(function(e,t){var n=d.get(t);m.has(t)&&void 0===m.get(t)&&void 0!==n&&r(e,n)&&m.set(t,e.typingLocation)});for(var g=0,y=_;g=n.end}function b(e,t,n,r){return Math.max(e,n)n?1:u(a[e],c,s)?a[e-1]&&u(a[e-1])?1:0:i&&c===n&&a[e-1]&&a[e-1].getEnd()===n&&u(a[e-1])?1:-1});return o?{value:o}:c>=0&&a[c]?(s=a[c],"continue-outer"):{value:s}};;){var l=c();if("object"==typeof l)return l.value}function u(e,s,c){if(null!=c||(c=e.getEnd()),cn)return!1;if(nt.end||e.pos===t.end)&&q(e,r)?n(e):void 0})}(n)}function F(t,n,r,i){var a=function a(o){if(G(o)&&1!==o.kind)return o;var s=o.getChildren(n),c=e.binarySearchKey(s,t,function(e,t){return t},function(e,n){return t=s[e-1].end?0:1:-1});if(c>=0&&s[c]){var l=s[c];if(t=t||!q(l,n)||V(l)){var u=U(s,c,n,o.kind);return u&&B(u,n)}return a(l)}}e.Debug.assert(void 0!==r||308===o.kind||1===o.kind||e.isJSDocCommentContainingNode(o));var d=U(s,s.length,n,o.kind);return d&&B(d,n)}(r||n);return e.Debug.assert(!(a&&V(a))),a}function G(t){return e.isToken(t)&&!V(t)}function B(e,t){if(G(e))return e;var n=e.getChildren(t);if(0===n.length)return e;var r=U(n,n.length,t,e.kind);return r&&B(r,t)}function U(t,n,r,i){for(var a=n-1;a>=0;a--)if(V(t[a]))0!==a||11!==i&&282!==i||e.Debug.fail("`JsxText` tokens should not be the first child of `JsxElement | JsxSelfClosingElement`");else if(q(t[a],r))return t[a]}function V(t){return e.isJsxText(t)&&t.containsOnlyTriviaWhiteSpaces}function K(t,n,r){var i=e.tokenToString(t.kind),a=e.tokenToString(n),o=t.getFullStart(),s=r.text.lastIndexOf(a,o);if(-1!==s){if(r.text.lastIndexOf(i,o-1)=n})}function W(t,n){if(-1!==n.text.lastIndexOf("<",t?t.pos:n.text.length))for(var r=t,i=0,a=0;r;){switch(r.kind){case 29:if((r=F(r.getFullStart(),n))&&28===r.kind&&(r=F(r.getFullStart(),n)),!r||!e.isIdentifier(r))return;if(!i)return e.isDeclarationName(r)?void 0:{called:r,nTypeArguments:a};i--;break;case 49:i=3;break;case 48:i=2;break;case 31:i++;break;case 19:if(!(r=K(r,18,n)))return;break;case 21:if(!(r=K(r,20,n)))return;break;case 23:if(!(r=K(r,22,n)))return;break;case 27:a++;break;case 38:case 79:case 10:case 8:case 9:case 110:case 95:case 112:case 94:case 141:case 24:case 51:case 57:case 58:break;default:if(e.isTypeNode(r))break;return}r=F(r.getFullStart(),n)}}function $(t,n,r){return e.formatting.getRangeOfEnclosingComment(t,n,void 0,r)}function q(e,t){return 1===e.kind?!!e.jsDoc:0!==e.getWidth(t)}function z(e,t,n){var r=$(e,t,void 0);return!!r&&n===h.test(e.text.substring(r.pos,r.end))}function J(t,n,r){return e.createTextSpanFromBounds(t.getStart(n),(r||t).getEnd())}function X(t){if(!t.isUnterminated)return e.createTextSpanFromBounds(t.getStart()+1,t.getEnd()-1)}function Y(e,t){return{span:e,newText:t}}function Q(e){return 154===e.kind}function Z(t,n){return{fileExists:function(e){return t.fileExists(e)},getCurrentDirectory:function(){return n.getCurrentDirectory()},readFile:e.maybeBind(n,n.readFile),useCaseSensitiveFileNames:e.maybeBind(n,n.useCaseSensitiveFileNames),getSymlinkCache:e.maybeBind(n,n.getSymlinkCache)||t.getSymlinkCache,getModuleSpecifierCache:e.maybeBind(n,n.getModuleSpecifierCache),getPackageJsonInfoCache:function(){var e;return null===(e=t.getModuleResolutionCache())||void 0===e?void 0:e.getPackageJsonInfoCache()},getGlobalTypingsCacheLocation:e.maybeBind(n,n.getGlobalTypingsCacheLocation),redirectTargetsMap:t.redirectTargetsMap,getProjectReferenceRedirect:function(e){return t.getProjectReferenceRedirect(e)},isSourceOfProjectReferenceRedirect:function(e){return t.isSourceOfProjectReferenceRedirect(e)},getNearestAncestorDirectoryWithPackageJson:e.maybeBind(n,n.getNearestAncestorDirectoryWithPackageJson),getFileIncludeReasons:function(){return t.getFileIncludeReasons()}}}function ee(e,t){return r(r({},Z(e,t)),{getCommonSourceDirectory:function(){return e.getCommonSourceDirectory()}})}function te(t,n,r,i,a){return e.factory.createImportDeclaration(void 0,t||n?e.factory.createImportClause(!!a,t,n&&n.length?e.factory.createNamedImports(n):void 0):void 0,"string"==typeof r?ne(r,i):r,void 0)}function ne(t,n){return e.factory.createStringLiteral(t,0===n)}function re(t,n){return e.isStringDoubleQuoted(t,n)?1:0}function ie(t,n){if(n.quotePreference&&"auto"!==n.quotePreference)return"single"===n.quotePreference?0:1;var r=t.imports&&e.find(t.imports,function(t){return e.isStringLiteral(t)&&!e.nodeIsSynthesized(t.parent)});return r?re(r,t):1}function ae(t){return"default"!==t.escapedName?t.escapedName:e.firstDefined(t.declarations,function(t){var n=e.getNameOfDeclaration(t);return n&&79===n.kind?n.escapedText:void 0})}function oe(t,n,r){return e.textSpanContainsPosition(t,n.getStart(r))&&n.getEnd()<=e.textSpanEnd(t)}function se(e,t){return!!e&&!!t&&e.start===t.start&&e.length===t.length}function ce(t,n,r){var i=n.tryGetSourcePosition(t);return i&&(!r||r(e.normalizePath(i.fileName))?i:void 0)}function le(e,t,n){var r=e.contextSpan&&ce({fileName:e.fileName,pos:e.contextSpan.start},t,n),i=e.contextSpan&&ce({fileName:e.fileName,pos:e.contextSpan.start+e.contextSpan.length},t,n);return r&&i?{start:r.pos,length:i.pos-r.pos}:void 0}function ue(t){var n=t.declarations?e.firstOrUndefined(t.declarations):void 0;return!!e.findAncestor(n,function(t){return!!e.isParameter(t)||!(e.isBindingElement(t)||e.isObjectBindingPattern(t)||e.isArrayBindingPattern(t))&&"quit"})}e.getLineStartPositionForPosition=function(t,n){return e.getLineStarts(n)[n.getLineAndCharacterOfPosition(t).line]},e.rangeContainsRange=g,e.rangeContainsRangeExclusive=function(e,t){return y(e,t.pos)&&y(e,t.end)},e.rangeContainsPosition=function(e,t){return e.pos<=t&&t<=e.end},e.rangeContainsPositionExclusive=y,e.startEndContainsRange=v,e.rangeContainsStartEnd=function(e,t,n){return e.pos<=t&&e.end>=n},e.rangeOverlapsWithStartEnd=function(e,t,n){return b(e.pos,e.end,t,n)},e.nodeOverlapsWithStartEnd=function(e,t,n,r){return b(e.getStart(t),e.end,n,r)},e.startEndOverlapsWithStartEnd=b,e.positionBelongsToNode=function(t,n,r){return e.Debug.assert(t.pos<=n),nr.getStart(t)&&nr.getStart(t)},e.isInJSXText=function(t,n){var r=O(t,n);return!!e.isJsxText(r)||!(18!==r.kind||!e.isJsxExpression(r.parent)||!e.isJsxElement(r.parent.parent))||!(29!==r.kind||!e.isJsxOpeningLikeElement(r.parent)||!e.isJsxElement(r.parent.parent))},e.isInsideJsxElement=function(e,t){return function(n){for(;n;)if(n.kind>=282&&n.kind<=291||11===n.kind||29===n.kind||31===n.kind||79===n.kind||19===n.kind||18===n.kind||43===n.kind)n=n.parent;else{if(281!==n.kind)return!1;if(t>n.getStart(e))return!0;n=n.parent}return!1}(O(e,t))},e.findPrecedingMatchingToken=K,e.removeOptionality=j,e.isPossiblyTypeArgumentPosition=function t(n,r,i){var a=W(n,r);return void 0!==a&&(e.isPartOfTypeNode(a.called)||0!==H(a.called,a.nTypeArguments,i).length||t(a.called,r,i))},e.getPossibleGenericSignatures=H,e.getPossibleTypeArgumentsInfo=W,e.isInComment=$,e.hasDocComment=function(t,n){var r=O(t,n);return!!e.findAncestor(r,e.isJSDoc)},e.getNodeModifiers=function(t,n){void 0===n&&(n=0);var r=[],i=e.isDeclaration(t)?e.getCombinedNodeFlagsAlwaysIncludeJSDoc(t)&~n:0;return 8&i&&r.push("private"),16&i&&r.push("protected"),4&i&&r.push("public"),(32&i||e.isClassStaticBlockDeclaration(t))&&r.push("static"),256&i&&r.push("abstract"),1&i&&r.push("export"),8192&i&&r.push("deprecated"),16777216&t.flags&&r.push("declare"),274===t.kind&&r.push("export"),r.length>0?r.join(","):""},e.getTypeArgumentOrTypeParameterList=function(t){return 180===t.kind||210===t.kind?t.typeArguments:e.isFunctionLike(t)||260===t.kind||261===t.kind?t.typeParameters:void 0},e.isComment=function(e){return 2===e||3===e},e.isStringOrRegularExpressionOrTemplateLiteral=function(t){return!(10!==t&&13!==t&&!e.isTemplateLiteralKind(t))},e.isPunctuation=function(e){return 18<=e&&e<=78},e.isInsideTemplateLiteral=function(t,n,r){return e.isTemplateLiteralKind(t.kind)&&t.getStart(r)=2||!!t.noEmit},e.createModuleSpecifierResolutionHost=Z,e.getModuleSpecifierResolverHost=ee,e.moduleResolutionRespectsExports=function(t){return t>=e.ModuleResolutionKind.Node16&&t<=e.ModuleResolutionKind.NodeNext},e.moduleResolutionUsesNodeModules=function(t){return t===e.ModuleResolutionKind.NodeJs||t>=e.ModuleResolutionKind.Node16&&t<=e.ModuleResolutionKind.NodeNext},e.makeImportIfNecessary=function(e,t,n,r){return e||t&&t.length?te(e,t,n,r):void 0},e.makeImport=te,e.makeStringLiteral=ne,(_=e.QuotePreference||(e.QuotePreference={}))[_.Single=0]="Single",_[_.Double=1]="Double",e.quotePreferenceFromString=re,e.getQuotePreference=ie,e.getQuoteFromPreference=function(t){switch(t){case 0:return"'";case 1:return'"';default:return e.Debug.assertNever(t)}},e.symbolNameNoDefault=function(t){var n=ae(t);return void 0===n?void 0:e.unescapeLeadingUnderscores(n)},e.symbolEscapedNameNoDefault=ae,e.isModuleSpecifierLike=function(t){return e.isStringLiteralLike(t)&&(e.isExternalModuleReference(t.parent)||e.isImportDeclaration(t.parent)||e.isRequireCall(t.parent,!1)&&t.parent.arguments[0]===t||e.isImportCall(t.parent)&&t.parent.arguments[0]===t)},e.isObjectBindingElementWithoutPropertyName=function(t){return e.isBindingElement(t)&&e.isObjectBindingPattern(t.parent)&&e.isIdentifier(t.name)&&!t.propertyName},e.getPropertySymbolFromBindingElement=function(e,t){var n=e.getTypeAtLocation(t.parent);return n&&e.getPropertyOfType(n,t.name.text)},e.getParentNodeInSpan=function(t,n,r){if(t)for(;t.parent;){if(e.isSourceFile(t.parent)||!oe(r,t.parent,n))return t;t=t.parent}},e.findModifier=function(t,n){return e.canHaveModifiers(t)?e.find(t.modifiers,function(e){return e.kind===n}):void 0},e.insertImports=function(t,n,r,i){var a=240===(e.isArray(r)?r[0]:r).kind?e.isRequireVariableStatement:e.isAnyImportSyntax,o=e.filter(n.statements,a),s=e.isArray(r)?e.stableSort(r,e.OrganizeImports.compareImportsOrRequireStatements):[r];if(o.length)if(o&&e.OrganizeImports.importsAreSorted(o))for(var c=0,l=s;ca&&n&&"..."!==n&&(e.isWhiteSpaceLike(n.charCodeAt(n.length-1))||t.push(me(" ",e.SymbolDisplayPartKind.space)),t.push(me("...",e.SymbolDisplayPartKind.punctuation))),t},writeKeyword:function(t){return c(t,e.SymbolDisplayPartKind.keyword)},writeOperator:function(t){return c(t,e.SymbolDisplayPartKind.operator)},writePunctuation:function(t){return c(t,e.SymbolDisplayPartKind.punctuation)},writeTrailingSemicolon:function(t){return c(t,e.SymbolDisplayPartKind.punctuation)},writeSpace:function(t){return c(t,e.SymbolDisplayPartKind.space)},writeStringLiteral:function(t){return c(t,e.SymbolDisplayPartKind.stringLiteral)},writeParameter:function(t){return c(t,e.SymbolDisplayPartKind.parameterName)},writeProperty:function(t){return c(t,e.SymbolDisplayPartKind.propertyName)},writeLiteral:function(t){return c(t,e.SymbolDisplayPartKind.stringLiteral)},writeSymbol:function(e,n){i>a||(s(),i+=e.length,t.push(pe(e,n)))},writeLine:function(){i>a||(i+=1,t.push(ve()),n=!0)},write:o,writeComment:o,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 r},increaseIndent:function(){r++},decreaseIndent:function(){r--},clear:l,trackSymbol:function(){return!1},reportInaccessibleThisError:e.noop,reportInaccessibleUniqueSymbolError:e.noop,reportPrivateInBaseOfClassExpression:e.noop};function s(){if(!(i>a)&&n){var o=e.getIndentString(r);o&&(i+=o.length,t.push(me(o,e.SymbolDisplayPartKind.space))),n=!1}}function c(e,n){i>a||(s(),i+=e.length,t.push(me(e,n)))}function l(){t=[],n=!0,r=0,i=0}}();function pe(t,n){return me(t,function(t){var n=t.flags;return 3&n?ue(t)?e.SymbolDisplayPartKind.parameterName:e.SymbolDisplayPartKind.localName:4&n||32768&n||65536&n?e.SymbolDisplayPartKind.propertyName:8&n?e.SymbolDisplayPartKind.enumMemberName:16&n?e.SymbolDisplayPartKind.functionName:32&n?e.SymbolDisplayPartKind.className:64&n?e.SymbolDisplayPartKind.interfaceName:384&n?e.SymbolDisplayPartKind.enumName:1536&n?e.SymbolDisplayPartKind.moduleName:8192&n?e.SymbolDisplayPartKind.methodName:262144&n?e.SymbolDisplayPartKind.typeParameterName:524288&n||2097152&n?e.SymbolDisplayPartKind.aliasName:e.SymbolDisplayPartKind.text}(n))}function me(t,n){return{text:t,kind:e.SymbolDisplayPartKind[n]}}function fe(t){return me(e.tokenToString(t),e.SymbolDisplayPartKind.keyword)}function _e(t){return me(t,e.SymbolDisplayPartKind.text)}function he(t){return me(t,e.SymbolDisplayPartKind.linkText)}function ge(t,n){return{text:t,kind:e.SymbolDisplayPartKind[e.SymbolDisplayPartKind.linkName],target:{fileName:e.getSourceFileOfNode(n).fileName,textSpan:J(n)}}}function ye(t){return me(t,e.SymbolDisplayPartKind.link)}function ve(){return me("\n",e.SymbolDisplayPartKind.lineBreak)}function be(e){try{return e(de),de.displayParts()}finally{de.clear()}}function Ee(e){return!!(33554432&e.flags)}function xe(e){return!!(2097152&e.flags)}function Se(e,t){void 0===t&&(t=!0);var n=e&&Ce(e);return n&&!t&&Ae(n),n}function Te(t,n,r){var i=r(t);return i?e.setOriginalNode(i,t):i=Ce(t,r),i&&!n&&Ae(i),i}function Ce(t,n){var r=n?function(e){return Te(e,!0,n)}:Se,i=n?function(e){return e&&Le(e,!0,n)}:function(e){return e&&De(e)},a=e.visitEachChild(t,r,e.nullTransformationContext,i,r);if(a===t){var o=e.isStringLiteral(t)?e.setOriginalNode(e.factory.createStringLiteralFromNode(t),t):e.isNumericLiteral(t)?e.setOriginalNode(e.factory.createNumericLiteral(t.text,t.numericLiteralFlags),t):e.factory.cloneNode(t);return e.setTextRange(o,t)}return a.parent=void 0,a}function De(t,n){return void 0===n&&(n=!0),t&&e.factory.createNodeArray(t.map(function(e){return Se(e,n)}),t.hasTrailingComma)}function Le(t,n,r){return e.factory.createNodeArray(t.map(function(e){return Te(e,n,r)}),t.hasTrailingComma)}function Ae(e){Ne(e),ke(e)}function Ne(e){Ie(e,512,Pe)}function ke(t){Ie(t,1024,e.getLastChild)}function Ie(t,n,r){e.addEmitFlags(t,n);var i=r(t);i&&Ie(i,n,r)}function Pe(e){return e.forEachChild(function(e){return e})}function we(t,n,r,i,a){e.forEachLeadingCommentRange(r.text,t.pos,Me(n,r,i,a,e.addSyntheticLeadingComment))}function Oe(t,n,r,i,a){e.forEachTrailingCommentRange(r.text,t.end,Me(n,r,i,a,e.addSyntheticTrailingComment))}function Re(t,n,r,i,a){e.forEachTrailingCommentRange(r.text,t.pos,Me(n,r,i,a,e.addSyntheticLeadingComment))}function Me(e,t,n,r,i){return function(a,o,s,c){3===s?(a+=2,o-=2):a+=2,i(e,n||s,t.text.slice(a,o),void 0!==r?r:c)}}function Fe(t,n){if(e.startsWith(t,n))return 0;var r=t.indexOf(" "+n);return-1===r&&(r=t.indexOf("."+n)),-1===r&&(r=t.indexOf('"'+n)),-1===r?-1:r+1}function Ge(e,t){var n=e.parent;switch(n.kind){case 211:return t.getContextualType(n);case 223:var r=n,i=r.left,a=r.operatorToken,o=r.right;return Be(a.kind)?t.getTypeAtLocation(e===o?i:o):t.getContextualType(e);case 292:return n.expression===e?Ue(n,t):void 0;default:return t.getContextualType(e)}}function Be(e){switch(e){case 36:case 34:case 37:case 35:return!0;default:return!1}}function Ue(e,t){return t.getTypeAtLocation(e.parent.parent.expression)}function Ve(e){return 176===e||177===e||178===e||168===e||170===e}function Ke(e){return 259===e||173===e||171===e||174===e||175===e}function je(e){return 264===e}function He(e){return 240===e||241===e||243===e||248===e||249===e||250===e||254===e||256===e||169===e||262===e||269===e||268===e||275===e||267===e||274===e}function We(t){var n=0,r=0;return e.forEachChild(t,function i(a){if(He(a.kind))26===(null==(o=a.getLastToken(t))?void 0:o.kind)?n++:r++;else if(Ve(a.kind)){var o;26===(null==(o=a.getLastToken(t))?void 0:o.kind)?n++:o&&27!==o.kind&&e.getLineAndCharacterOfPosition(t,o.getStart(t)).line!==e.getLineAndCharacterOfPosition(t,e.getSpanOfTokenAtPosition(t,o.end).start).line&&r++}return n+r>=5||e.forEachChild(a,i)}),0===n&&r<=1||n/r>.2}function $e(e,t){return ze(e,e.fileExists,t)}function qe(e){try{return e()}catch(e){return}}function ze(e,t){for(var n=[],r=2;r"===e[n]&&t--,n++,!t)return n;return 0}(t.text),c=e.getTextOfNode(t.name)+t.text.slice(0,s),l=function(e){var t=0;if(124===e.charCodeAt(t++)){for(;t-1&&e.isWhiteSpaceSingleLine(t.charCodeAt(n));)n-=1;return n+1},e.getSynthesizedDeepClone=Se,e.getSynthesizedDeepCloneWithReplacements=Te,e.getSynthesizedDeepClones=De,e.getSynthesizedDeepClonesWithReplacements=Le,e.suppressLeadingAndTrailingTrivia=Ae,e.suppressLeadingTrivia=Ne,e.suppressTrailingTrivia=ke,e.copyComments=function(e,t){var n=e.getSourceFile();!function(e,t){for(var n=e.getFullStart(),r=e.getStart(),i=n;i=0),o},e.copyLeadingComments=we,e.copyTrailingComments=Oe,e.copyTrailingAsLeadingComments=Re,e.needsParentheses=function(t){return e.isBinaryExpression(t)&&27===t.operatorToken.kind||e.isObjectLiteralExpression(t)||e.isAsExpression(t)&&e.isObjectLiteralExpression(t.expression)},e.getContextualTypeFromParent=Ge,e.quote=function(t,n,r){var i=ie(t,n),a=JSON.stringify(r);return 0===i?"'".concat(e.stripQuotes(a).replace(/'/g,"\\'").replace(/\\"/g,'"'),"'"):a},e.isEqualityOperatorKind=Be,e.isStringLiteralOrTemplate=function(e){switch(e.kind){case 10:case 14:case 225:case 212:return!0;default:return!1}},e.hasIndexSignature=function(e){return!!e.getStringIndexType()||!!e.getNumberIndexType()},e.getSwitchedType=Ue,e.ANONYMOUS="anonymous function",e.getTypeNodeIfAccessible=function(e,t,n,r){var i=n.getTypeChecker(),a=!0,o=function(){return a=!1},s=i.typeToTypeNode(e,t,1,{trackSymbol:function(e,t,n){return!(a=a&&0===i.isSymbolAccessible(e,t,n,!1).accessibility)},reportInaccessibleThisError:o,reportPrivateInBaseOfClassExpression:o,reportInaccessibleUniqueSymbolError:o,moduleResolverHost:ee(n,r)});return a?s:void 0},e.syntaxRequiresTrailingSemicolonOrASI=He,e.syntaxMayBeASICandidate=e.or(Ve,Ke,je,He),e.positionIsASICandidate=function(t,n,r){var i=e.findAncestor(n,function(n){return n.end!==t?"quit":e.syntaxMayBeASICandidate(n.kind)});return!!i&&function(t,n){var r=t.getLastToken(n);if(r&&26===r.kind)return!1;if(Ve(t.kind)){if(r&&27===r.kind)return!1}else if(je(t.kind)){if((i=e.last(t.getChildren(n)))&&e.isModuleBlock(i))return!1}else if(Ke(t.kind)){var i;if((i=e.last(t.getChildren(n)))&&e.isFunctionBlock(i))return!1}else if(!He(t.kind))return!1;if(243===t.kind)return!0;var a=e.findAncestor(t,function(e){return!e.parent}),o=M(t,a,n);return!o||19===o.kind||n.getLineAndCharacterOfPosition(t.getEnd()).line!==n.getLineAndCharacterOfPosition(o.getStart(n)).line}(i,r)},e.probablyUsesSemicolons=We,e.tryGetDirectories=function(e,t){return ze(e,e.getDirectories,t)||[]},e.tryReadDirectory=function(t,n,r,i,a){return ze(t,t.readDirectory,n,r,i,a)||e.emptyArray},e.tryFileExists=$e,e.tryDirectoryExists=function(t,n){return qe(function(){return e.directoryProbablyExists(n,t)})||!1},e.tryAndIgnoreErrors=qe,e.tryIOAndConsumeErrors=ze,e.findPackageJsons=function(t,n,r){var i=[];return e.forEachAncestorDirectory(t,function(t){if(t===r)return!0;var a=e.combinePaths(t,"package.json");$e(n,a)&&i.push(a)}),i},e.findPackageJson=function(t,n){var r;return e.forEachAncestorDirectory(t,function(t){return"node_modules"===t||!!(r=e.findConfigFile(t,function(e){return $e(n,e)},"package.json"))||void 0}),r},e.getPackageJsonsVisibleToFile=Je,e.createPackageJsonInfo=Xe,e.createPackageJsonImportFilter=function(t,n,r){var i,a=(r.getPackageJsonsVisibleToFile&&r.getPackageJsonsVisibleToFile(t.fileName)||Je(t.fileName,r)).filter(function(e){return e.parseable});return{allowsImportingAmbientModule:function(t,n){if(!a.length||!t.valueDeclaration)return!0;var r=c(t.valueDeclaration.getSourceFile().fileName,n);if(void 0===r)return!0;var i=e.stripQuotes(t.getName());return!!s(i)||(o(r)||o(i))},allowsImportingSourceFile:function(e,t){if(!a.length)return!0;var n=c(e.fileName,t);return!n||o(n)},allowsImportingSpecifier:function(t){return!(a.length&&!s(t))||(!(!e.pathIsRelative(t)&&!e.isRootedDiskPath(t))||o(t))}};function o(t){for(var n=l(t),r=0,i=a;r=0){var a=n[i];return e.Debug.assertEqual(a.file,t.getSourceFile(),"Diagnostics proided to 'findDiagnosticForNode' must be from a single SourceFile"),e.cast(a,Qe)}},e.getDiagnosticsWithinSpan=function(t,n){var r,i=e.binarySearchKey(n,t.start,function(e){return e.start},e.compareValues);for(i<0&&(i=~i);(null===(r=n[i-1])||void 0===r?void 0:r.start)===t.start;)i--;for(var a=[],o=e.textSpanEnd(t);;){var s=e.tryCast(n[i],Qe);if(!s||s.start>o)break;e.textSpanContainsTextSpan(t,s)&&a.push(s),i++}return a},e.getRefactorContextSpan=function(t){var n=t.startPosition,r=t.endPosition;return e.createTextSpanFromBounds(n,void 0===r?n:r)},e.getFixableErrorSpanExpression=function(t,n){var r=O(t,n.start);return e.findAncestor(r,function(r){return r.getStart(t)e.textSpanEnd(n)?"quit":e.isExpression(r)&&se(n,J(r,t))})},e.mapOneOrMany=function(t,n,r){return void 0===r&&(r=e.identity),t?e.isArray(t)?r(e.map(t,n)):n(t,0):void 0},e.firstOrOnly=function(t){return e.isArray(t)?e.first(t):t},e.getNamesForExportedSymbol=function(t,n){if(Ze(t)){var r=et(t);if(r)return r;var i=e.codefix.moduleSymbolToValidIdentifier(tt(t),n,!1),a=e.codefix.moduleSymbolToValidIdentifier(tt(t),n,!0);return i===a?i:[i,a]}return t.name},e.getNameForExportedSymbol=function(t,n,r){return Ze(t)?et(t)||e.codefix.moduleSymbolToValidIdentifier(tt(t),n,!!r):t.name},e.stringContainsAt=function(e,t,n){var r=t.length;if(r+n>e.length)return!1;for(var i=0;ib.indexOf(e.nodeModulesPathPart)&&o.set(_,E):o.set(_,E)}}}var x=1===p&&e.getLocalSymbolForExportDefault(c)||c,S=0===p||e.isExternalModuleSymbol(x)?e.unescapeLeadingUnderscores(l):e.getNamesForExportedSymbol(x,void 0),T="string"==typeof S?S:S[0],C="string"==typeof S?void 0:S[1],D=e.stripQuotes(u.name),L=r++,A=e.skipAlias(c,f),N=33554432&c.flags?void 0:c,k=33554432&u.flags?void 0:u;N&&k||a.set(L,[c,u]),i.add(function(t,n,r,i){var a=r||"";return"".concat(t,"|").concat(e.getSymbolId(e.skipAlias(n,i)),"|").concat(a)}(T,c,e.isExternalModuleNameRelative(D)?void 0:D,f),{id:L,symbolTableKey:l,symbolName:T,capitalizedSymbolName:C,moduleName:D,moduleFile:d,moduleFileName:null==d?void 0:d.fileName,packageName:_,exportKind:p,targetFlags:A.flags,isFromPackageJson:m,symbol:N,moduleSymbol:k})},get:function(e,t){if(e===n){var r=i.get(t);return null==r?void 0:r.map(c)}},search:function(r,a,s,l){if(r===n)return e.forEachEntry(i,function(n,r){var i=function(e){var t=e.substring(0,e.indexOf("|")),n=e.substring(e.lastIndexOf("|")+1);return{symbolName:t,ambientModuleName:""===n?void 0:n}}(r),u=i.symbolName,d=i.ambientModuleName,p=a&&n[0].capitalizedSymbolName||u;if(s(p,n[0].targetFlags)){var m=n.map(c).filter(function(r,i){return function(n,r){if(!r||!n.moduleFileName)return!0;var i=t.getGlobalTypingsCacheLocation();if(i&&e.startsWith(n.moduleFileName,i))return!0;var a=o.get(r);return!a||e.startsWith(n.moduleFileName,a)}(r,n[i].packageName)});if(m.length){var f=l(m,p,!!d,r);if(void 0!==f)return f}}})},releaseSymbols:function(){a.clear()},onFileChanged:function(t,r,i){return!(l(t)&&l(r)||(n&&n!==r.path||i&&e.consumesNodeCoreModules(t)!==e.consumesNodeCoreModules(r)||!e.arrayIsEqualTo(t.moduleAugmentations,r.moduleAugmentations)||!function(t,n){if(!e.arrayIsEqualTo(t.ambientModuleNames,n.ambientModuleNames))return!1;for(var r=-1,i=-1,a=function(a){var o=function(t){return e.isNonGlobalAmbientModule(t)&&t.name.text===a};if(r=e.findIndex(t.statements,o,r+1),i=e.findIndex(n.statements,o,i+1),t.statements[r]!==n.statements[i])return{value:!1}},o=0,s=n.ambientModuleNames;o=i.length){var b=n(o,l,e.lastOrUndefined(d));void 0!==b&&(h=b)}}while(1!==l);function E(){switch(l){case 43:case 68:t[u]||13!==o.reScanSlashToken()||(l=13);break;case 29:79===u&&y++;break;case 31:y>0&&y--;break;case 131:case 152:case 148:case 134:case 153:y>0&&!c&&(l=79);break;case 15:d.push(l);break;case 18:d.length>0&&d.push(l);break;case 19:if(d.length>0){var n=e.lastOrUndefined(d);15===n?17===(l=o.reScanTemplateToken(!1))?d.pop():e.Debug.assertEqual(l,16,"Should have been a template middle."):(e.Debug.assertEqual(n,18,"Should have been an open brace"),d.pop())}break;default:if(!e.isKeyword(l))break;(24===u||e.isKeyword(u)&&e.isKeyword(l)&&!function(t,n){if(!e.isAccessibilityModifier(t))return!0;switch(n){case 137:case 151:case 135:case 124:case 127:return!0;default:return!1}}(u,l))&&(l=79)}}return{endOfLineState:h,spans:g}}return{getClassificationsForLine:function(t,n,r){return function(t,n){for(var r=[],a=t.spans,o=0,s=0;s=0){var d=c-o;d>0&&r.push({length:d,classification:e.TokenClass.Whitespace})}r.push({length:l,classification:i(u)}),o=c+l}var p=n.length-o;return p>0&&r.push({length:p,classification:e.TokenClass.Whitespace}),{entries:r,finalLexState:t.endOfLineState}}(s(t,n,r),t)},getEncodedLexicalClassifications:s}};var t=e.arrayToNumericMap([79,10,8,9,13,108,45,46,21,23,19,110,95],function(e){return e},function(){return!0});function n(t,n,r){switch(n){case 10:if(!t.isUnterminated())return;for(var i=t.getTokenText(),a=i.length-1,o=0;92===i.charCodeAt(a-o);)o++;if(!(1&o))return;return 34===i.charCodeAt(0)?3:2;case 3:return t.isUnterminated()?1:void 0;default:if(e.isTemplateLiteralKind(n)){if(!t.isUnterminated())return;switch(n){case 17:return 5;case 14:return 4;default:return e.Debug.fail("Only 'NoSubstitutionTemplateLiteral's and 'TemplateTail's can be unterminated; got SyntaxKind #"+n)}}return 15===r?6:void 0}}function r(e,t,n,r,i){if(8!==r){0===e&&n>0&&(e+=n);var a=t-e;a>0&&i.push(e-n,a,r)}}function i(t){switch(t){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 a(t){if(e.isKeyword(t))return 3;if(function(e){switch(e){case 41:case 43:case 44:case 39:case 40:case 47:case 48:case 49:case 29:case 31:case 32:case 33:case 102:case 101:case 128:case 150:case 34:case 35:case 36:case 37:case 50:case 52:case 51:case 55:case 56:case 74:case 73:case 78:case 70:case 71:case 72:case 64:case 65:case 66:case 68:case 69:case 63:case 27:case 60:case 75:case 76:case 77:return!0;default:return!1}}(t)||function(e){switch(e){case 39:case 40:case 54:case 53:case 45:case 46:return!0;default:return!1}}(t))return 5;if(t>=18&&t<=78)return 10;switch(t){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;default:return e.isTemplateLiteralKind(t)?6:2}}function o(e,t){switch(t){case 264:case 260:case 261:case 259:case 228:case 215:case 216:e.throwIfCancellationRequested()}}function s(t,n,r,i,a){var s=[];return r.forEachChild(function l(u){if(u&&e.textSpanIntersectsWith(a,u.pos,u.getFullWidth())){if(o(n,u.kind),e.isIdentifier(u)&&!e.nodeIsMissing(u)&&i.has(u.escapedText)){var d=t.getSymbolAtLocation(u),p=d&&c(d,e.getMeaningFromLocation(u),t);p&&function(t,n,r){var i=n-t;e.Debug.assert(i>0,"Classification had non-positive length of ".concat(i)),s.push(t),s.push(i),s.push(r)}(u.getStart(r),u.getEnd(),p)}u.forEachChild(l)}}),{spans:s,endOfLineState:0}}function c(t,n,r){var i=t.getFlags();return 2885600&i?32&i?11:384&i?12:524288&i?16:1536&i?4&n||1&n&&function(t){return e.some(t.declarations,function(t){return e.isModuleDeclaration(t)&&1===e.getModuleInstanceState(t)})}(t)?14:void 0:2097152&i?c(r.getAliasedSymbol(t),n,r):2&n?64&i?13:262144&i?15:void 0:void 0:void 0}function l(e){switch(e){case 1:return"comment";case 2:return"identifier";case 3:return"keyword";case 4:return"number";case 25:return"bigint";case 5:return"operator";case 6:return"string";case 8:return"whitespace";case 9:return"text";case 10:return"punctuation";case 11:return"class name";case 12:return"enum name";case 13:return"interface name";case 14:return"module name";case 15:return"type parameter name";case 16:return"type alias name";case 17:return"parameter name";case 18:return"doc comment tag name";case 19:return"jsx open tag name";case 20:return"jsx close tag name";case 21:return"jsx self closing tag name";case 22:return"jsx attribute";case 23:return"jsx text";case 24:return"jsx attribute string literal value";default:return}}function u(t){e.Debug.assert(t.spans.length%3==0);for(var n=t.spans,r=[],i=0;i])*)(\/>)?)?/im.exec(a);if(!o)return!1;if(!o[3]||!(o[3]in e.commentPragmas))return!1;var s=t;p(s,o[1].length),u(s+=o[1].length,o[2].length,10),u(s+=o[2].length,o[3].length,21),s+=o[3].length;for(var c=o[4],l=s;;){var d=i.exec(c);if(!d)break;var m=s+d.index+d[1].length;m>l&&(p(l,m-l),l=m),u(l,d[2].length,22),l+=d[2].length,d[3].length&&(p(l,d[3].length),l+=d[3].length),u(l,d[4].length,5),l+=d[4].length,d[5].length&&(p(l,d[5].length),l+=d[5].length),u(l,d[6].length,24),l+=d[6].length}(s+=o[4].length)>l&&p(l,s-l),o[5]&&(u(s,o[5].length,10),s+=o[5].length);var f=t+r;return s=0),a>0){var o=r||g(t.kind,t);o&&u(i,a,o)}return!0}function g(t,n){if(e.isKeyword(t))return 3;if((29===t||31===t)&&n&&e.getTypeArgumentOrTypeParameterList(n.parent))return 10;if(e.isPunctuation(t)){if(n){var r=n.parent;if(63===t&&(257===r.kind||169===r.kind||166===r.kind||288===r.kind))return 5;if(223===r.kind||221===r.kind||222===r.kind||224===r.kind)return 5}return 10}if(8===t)return 4;if(9===t)return 25;if(10===t)return n&&288===n.parent.kind?24:6;if(13===t)return 6;if(e.isTemplateLiteralKind(t))return 6;if(11===t)return 23;if(79===t){if(n){switch(n.parent.kind){case 260:return n.parent.name===n?11:void 0;case 165:return n.parent.name===n?15:void 0;case 261:return n.parent.name===n?13:void 0;case 263:return n.parent.name===n?12:void 0;case 264:return n.parent.name===n?14:void 0;case 166:return n.parent.name===n?e.isThisIdentifier(n)?3:17:void 0}if(e.isConstTypeReference(n.parent))return 3}return 2}}function y(r){if(r&&e.decodedTextSpanIntersectsWith(i,a,r.pos,r.getFullWidth())){o(t,r.kind);for(var s=0,c=r.getChildren(n);s0}))return 0;if(a(function(e){return e.getCallSignatures().length>0})&&!a(function(e){return e.getProperties().length>0})||function(t){for(;s(t);)t=t.parent;return e.isCallExpression(t.parent)&&t.parent.expression===t}(n))return 9===r?11:10}}return r}(l,p,_);var g=f.valueDeclaration;if(g){var y=e.getCombinedModifierFlags(g),v=e.getCombinedNodeFlags(g);32&y&&(h|=2),512&y&&(h|=4),0!==_&&2!==_&&(64&y||2&v||8&f.getFlags())&&(h|=8),7!==_&&10!==_||!function(t,n){return e.isBindingElement(t)&&(t=o(t)),e.isVariableDeclaration(t)?(!e.isSourceFile(t.parent.parent.parent)||e.isCatchClause(t.parent))&&t.getSourceFile()===n:!!e.isFunctionDeclaration(t)&&!e.isSourceFile(t.parent)&&t.getSourceFile()===n}(g,n)||(h|=32),t.isSourceFileDefaultLibrary(g.getSourceFile())&&(h|=16)}else f.declarations&&f.declarations.some(function(e){return t.isSourceFileDefaultLibrary(e.getSourceFile())})&&(h|=16);i(p,_,h)}}}e.forEachChild(p,d),u=m}}(n)}(t,n,r,function(e,t,r){a.push(e.getStart(n),e.getWidth(n),(t+1<<8)+r)},i),a}function o(t){for(;;){if(!e.isBindingElement(t.parent.parent))return t.parent.parent;t=t.parent.parent}}function s(t){return e.isQualifiedName(t.parent)&&t.parent.right===t||e.isPropertyAccessExpression(t.parent)&&t.parent.name===t}(n=t.TokenEncodingConsts||(t.TokenEncodingConsts={}))[n.typeOffset=8]="typeOffset",n[n.modifierMask=255]="modifierMask",function(e){e[e.class=0]="class",e[e.enum=1]="enum",e[e.interface=2]="interface",e[e.namespace=3]="namespace",e[e.typeParameter=4]="typeParameter",e[e.type=5]="type",e[e.parameter=6]="parameter",e[e.variable=7]="variable",e[e.enumMember=8]="enumMember",e[e.property=9]="property",e[e.function=10]="function",e[e.member=11]="member"}(t.TokenType||(t.TokenType={})),(r=t.TokenModifier||(t.TokenModifier={}))[r.declaration=0]="declaration",r[r.static=1]="static",r[r.async=2]="async",r[r.readonly=3]="readonly",r[r.defaultLibrary=4]="defaultLibrary",r[r.local=5]="local",t.getSemanticClassifications=function(t,n,r,a){var o=i(t,n,r,a);e.Debug.assert(o.spans.length%3==0);for(var s=o.spans,c=[],l=0;ln.parameters.length)){var s=n.getTypeParameterAtPosition(r.argumentIndex);if(e.isJsxOpeningLikeElement(t)){var l=i.getTypeOfPropertyOfType(s,c.name.text);l&&(s=l)}return a=a||!!(4&s.flags),h(s,o)}});return e.length(l)?{kind:2,types:l,isNewIdentifier:a}:void 0}(D.invocation,r,D,a)||L()}case 269:case 275:case 280:return{kind:0,paths:b(n,r,o,s,a,c)};default:return L()}function L(){return{kind:2,types:h(e.getContextualTypeFromParent(r,a)),isNewIdentifier:!1}}}function f(t){switch(t.kind){case 193:return e.walkUpParenthesizedTypes(t);case 214:return e.walkUpParenthesizedExpressions(t);default:return t}}function _(t){return t&&{kind:1,symbols:e.filter(t.getApparentProperties(),function(t){return!(t.valueDeclaration&&e.isPrivateIdentifierClassElementDeclaration(t.valueDeclaration))}),hasIndexSignature:e.hasIndexSignature(t)}}function h(t,n){return void 0===n&&(n=new e.Map),t?(t=e.skipConstraint(t)).isUnion()?e.flatMap(t.types,function(e){return h(e,n)}):!t.isStringLiteral()||1024&t.flags||!e.addToSeen(n,t.value)?e.emptyArray:[t]:e.emptyArray}function g(e,t,n){return{name:e,kind:t,extension:n}}function y(e){return g(e,"directory",void 0)}function v(t,n,r){var i=function(t,n){var r=Math.max(t.lastIndexOf(e.directorySeparator),t.lastIndexOf(e.altDirectorySeparator)),i=-1!==r?r+1:0,a=t.length-i;return 0===a||e.isIdentifierText(t.substr(i,a),99)?void 0:e.createTextSpan(n+i,a)}(t,n),a=0===t.length?void 0:e.createTextSpan(n,t.length);return r.map(function(t){var n=t.name,r=t.kind,o=t.extension;return-1!==Math.max(n.indexOf(e.directorySeparator),n.indexOf(e.altDirectorySeparator))?{name:n,kind:r,extension:o,span:a}:{name:n,kind:r,extension:o,span:i}})}function b(t,r,i,a,o,s){return v(r.text,r.getStart(t)+1,function(t,r,i,a,o,s){var c=e.normalizeSlashes(r.text),l=e.isStringLiteralLike(r)?e.getModeForUsageLocation(t,r):void 0,d=t.path,p=e.getDirectoryPath(d);return function(e){if(e&&e.length>=2&&46===e.charCodeAt(0)){var t=e.length>=3&&46===e.charCodeAt(1)?2:1,n=e.charCodeAt(t);return 47===n||92===n}return!1}(c)||!i.baseUrl&&(e.isRootedDiskPath(c)||e.isUrl(c))?function(t,r,i,a,o,s){var c=E(i,s);return i.rootDirs?function(t,r,i,a,o,s,c){var l=function(t,r,i,a){t=t.map(function(t){return e.normalizePath(e.isRootedDiskPath(t)?t:e.combinePaths(r,t))});var o=e.firstDefined(t,function(t){return e.containsPath(t,i,r,a)?i.substr(t.length):void 0});return e.deduplicate(n(n([],t.map(function(t){return e.combinePaths(t,o)}),!0),[i],!1),e.equateStringsCaseSensitive,e.compareStringsCaseSensitive)}(t,o.project||s.getCurrentDirectory(),i,!(s.useCaseSensitiveFileNames&&s.useCaseSensitiveFileNames()));return e.flatMap(l,function(t){return e.arrayFrom(T(r,t,a,s,c).values())})}(i.rootDirs,t,r,c,i,a,o):e.arrayFrom(T(t,r,c,a,o).values())}(c,p,i,a,d,m()):function(t,n,r,i,a,o,s){var c=i.baseUrl,l=i.paths,d=u(),p=E(i,o);if(c){var m=i.project||a.getCurrentDirectory(),f=e.normalizePath(e.combinePaths(m,c));T(t,f,p,a,void 0,d),l&&D(d,t,f,p,a,l)}for(var _=N(t),h=0,y=function(t,n,r){var i=r.getAmbientModules().map(function(t){return e.stripQuotes(t.name)}).filter(function(n){return e.startsWith(n,t)});if(void 0!==n){var a=e.ensureTrailingDirectorySeparator(n);return i.map(function(t){return e.removePrefix(t,a)})}return i}(t,_,s);h-1||e.isApplicableVersionedTypesKey(n,r))return A(t[r],n)}function N(t){return M(t)?e.hasTrailingDirectorySeparator(t)?t:e.getDirectoryPath(t):void 0}function k(t,n,i,a,s,c){if(!e.endsWith(t,"*"))return e.stringContains(t,"*")?e.emptyArray:d(t,"script");var l=t.slice(0,t.length-1),u=e.tryRemovePrefix(i,l);return void 0===u?"/"===t[t.length-2]?d(l,"directory"):e.flatMap(n,function(e){var t;return null===(t=I("",a,e,s,c))||void 0===t?void 0:t.map(function(e){var t=e.name,n=o(e,["name"]);return r({name:l+t},n)})}):e.flatMap(n,function(e){return I(u,a,e,s,c)});function d(t,n){return e.startsWith(t,i)?[{name:e.removeTrailingDirectorySeparator(t),kind:n,extension:void 0}]:e.emptyArray}}function I(t,r,i,a,o){if(o.readDirectory){var s=e.tryParsePattern(i);if(void 0!==s&&!e.isString(s)){var c=e.resolvePath(s.prefix),l=e.hasTrailingDirectorySeparator(s.prefix)?c:e.getDirectoryPath(c),u=e.hasTrailingDirectorySeparator(s.prefix)?"":e.getBaseFileName(c),d=M(t),p=d?e.hasTrailingDirectorySeparator(t)?t:e.getDirectoryPath(t):void 0,m=d?e.combinePaths(l,u+p):l,f=e.normalizePath(s.suffix),_=e.normalizePath(e.combinePaths(r,m)),h=d?_:e.ensureTrailingDirectorySeparator(_)+u,v=f?"**/*"+f:"./*",b=e.mapDefined(e.tryReadDirectory(o,_,a.extensions,void 0,[v]),function(t){var n=function(t){var n=function(t,n,r){return e.startsWith(t,n)&&e.endsWith(t,r)?t.slice(n.length,t.length-r.length):void 0}(e.normalizePath(t),h,f);return void 0===n?void 0:P(n)}(t);if(n){if(M(n))return y(e.getPathComponents(P(n))[1]);var r=C(n,o.getCompilationSettings(),a.includeExtensionsOption);return g(r.name,"script",r.extension)}}),E=f?e.emptyArray:e.mapDefined(e.tryGetDirectories(o,_),function(e){return"node_modules"===e?void 0:y(e)});return n(n([],b,!0),E,!0)}}}function P(t){return t[0]===e.directorySeparator?t.slice(1):t}function w(t,n,r,i,a,o){void 0===o&&(o=u());for(var s=new e.Map,c=0,l=e.tryAndIgnoreErrors(function(){return e.getEffectiveTypeRoots(n,t)})||e.emptyArray;c=e.pos&&n<=e.end});if(s){var c=t.text.slice(s.pos,n),l=O.exec(c);if(l){var u=l[1],d=l[2],p=l[3],m=e.getDirectoryPath(t.path),f="path"===d?T(p,m,E(r,1),i,t.path):"types"===d?w(i,r,m,N(p),E(r)):e.Debug.fail();return v(p,s.pos+u.length,e.arrayFrom(f.values()))}}}(n,r,a,o);return u&&d(u)}if(e.isInString(n,r,i)){if(!i||!e.isStringLiteralLike(i))return;return function(n,r,i,a,o,s,c,l){if(void 0!==n){var u=e.createTextSpanFromStringLiteralLikeContent(r);switch(n.kind){case 0:return d(n.paths);case 1:var p=e.createSortedArray();return t.getCompletionEntriesFromSymbols(n.symbols,p,r,r,i,i,a,o,99,s,4,l,c,void 0),{isGlobalCompletion:!1,isMemberCompletion:!0,isNewIdentifierLocation:n.hasIndexSignature,optionalReplacementSpan:u,entries:p};case 2:return p=n.types.map(function(n){return{name:n.value,kindModifiers:"",kind:"string",sortText:t.SortText.LocationPriority,replacementSpan:e.getReplacementSpanForContextToken(r)}}),{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:n.isNewIdentifier,optionalReplacementSpan:u,entries:p};default:return e.Debug.assertNever(n)}}}(u=m(n,i,r,s.getTypeChecker(),a,o,l),i,n,o,s,c,a,l)}},i.getStringLiteralCompletionDetails=function(n,r,i,a,o,s,c,l,u){if(a&&e.isStringLiteralLike(a)){var d=m(r,a,i,o,s,c,u);return d&&function(n,r,i,a,o,s){switch(i.kind){case 0:var c=e.find(i.paths,function(e){return e.name===n});return c&&t.createCompletionDetails(n,p(c.extension),c.kind,[e.textPart(n)]);case 1:return c=e.find(i.symbols,function(e){return e.name===n}),c&&t.createCompletionDetailsForSymbol(c,o,a,r,s);case 2:return e.find(i.types,function(e){return e.value===n})?t.createCompletionDetails(n,"","type",[e.textPart(n)]):void 0;default:return e.Debug.assertNever(i)}}(n,a,d,r,o,l)}},function(e){e[e.Paths=0]="Paths",e[e.Properties=1]="Properties",e[e.Types=2]="Types"}(s||(s={})),function(e){e[e.Exclude=0]="Exclude",e[e.Include=1]="Include",e[e.ModuleSpecifierCompletion=2]="ModuleSpecifierCompletion"}(c||(c={}));var O=/^(\/\/\/\s*0},resolvedBeyondLimit:function(){return y>t.moduleSpecifierResolutionLimit}}),x=b?" (".concat((v/b*100).toFixed(1),"% hit rate)"):"";return null===(d=r.log)||void 0===d||d.call(r,"".concat(n,": resolved ").concat(y," module specifiers, plus ").concat(g," ambient and ").concat(v," from cache").concat(x)),null===(p=r.log)||void 0===p||p.call(r,"".concat(n,": response is ").concat(h?"incomplete":"complete")),null===(m=r.log)||void 0===m||m.call(r,"".concat(n,": ").concat(e.timestamp()-f)),E}function _(t,n){var r,i,a=e.compareStringsCaseSensitiveUI(t.sortText,n.sortText);return 0===a&&(a=e.compareStringsCaseSensitiveUI(t.name,n.name)),0===a&&(null===(r=t.data)||void 0===r?void 0:r.moduleSpecifier)&&(null===(i=n.data)||void 0===i?void 0:i.moduleSpecifier)&&(a=e.compareNumberOfDirectorySeparators(t.data.moduleSpecifier,n.data.moduleSpecifier)),0===a?-1:a}function h(e){return!!(null==e?void 0:e.moduleSpecifier)}function g(e){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!1,entries:e}}function y(e,t,n){return{kind:4,keywordCompletions:H(e,t),isNewIdentifierLocation:n}}function v(t){return 79===(null==t?void 0:t.kind)?e.createTextSpanFromNode(t):void 0}function b(t,n){return!e.isSourceFileJS(t)||!!e.isCheckJsEnabledForFile(t,n)}function E(e){switch(e){case 0:case 3:case 2:return!0;default:return!1}}function x(t,n,r){return"object"==typeof r?e.pseudoBigIntToString(r)+"n":e.isString(r)?e.quote(t,n,r):JSON.stringify(r)}function S(e,n,r){return{name:x(e,n,r),kind:"string",kindModifiers:"",sortText:t.SortText.LocationPriority}}function T(r,i,a,o,s,c,p,f,_,h,g,y,v,b,E,x,S,T,D,A,P,w){var O,R,M,F,G,B,U,V,K=e.getReplacementSpanForContextToken(a),j=I(g),H=f.getTypeChecker(),W=g&&function(e){return!!(16&e.kind)}(g),$=g&&function(e){return!!(2&e.kind)}(g)||h;if(g&&function(e){return!!(1&e.kind)}(g))M=h?"this".concat(W?"?.":"","[").concat(N(c,T,_),"]"):"this".concat(W?"?.":".").concat(_);else if(($||W)&&v){M=$?"[".concat(h?N(c,T,_):_,"]"):_,(W||v.questionDotToken)&&(M="?.".concat(M));var q=e.findChildOfKind(v,24,c)||e.findChildOfKind(v,28,c);if(!q)return;var z=e.startsWith(_,v.name.text)?v.name.end:q.end;K=e.createTextSpanFromBounds(q.getStart(c),z)}if(b&&(void 0===M&&(M=_),M="{".concat(M,"}"),"boolean"!=typeof b&&(K=e.createTextSpanFromNode(b,c))),g&&function(e){return!!(8&e.kind)}(g)&&v){void 0===M&&(M=_);var J=e.findPrecedingToken(v.pos,c),X="";J&&e.positionIsASICandidate(J.end,J.parent,c)&&(X=";"),X+="(await ".concat(v.expression.getText(),")"),M=h?"".concat(X).concat(M):"".concat(X).concat(W?"?.":".").concat(M),K=e.createTextSpanFromBounds(v.getStart(c),v.end)}if(u(g)&&(B=[e.textPart(g.moduleSpecifier)],E&&(O=function(t,n,r,i,a,o,s){var c=n.replacementSpan,l=e.quote(a,s,r.moduleSpecifier),u=r.isDefaultExport?1:"export="===r.exportName?2:0,d=s.includeCompletionsWithSnippetText?"$1":"",p=e.codefix.getImportKind(a,u,o,!0),m=n.couldBeTypeOnlyImportSpecifier,f=n.isTopLevelTypeOnly?" ".concat(e.tokenToString(154)," "):" ",_=m?"".concat(e.tokenToString(154)," "):"",h=i?";":"";switch(p){case 3:return{replacementSpan:c,insertText:"import".concat(f).concat(e.escapeSnippetText(t)).concat(d," = require(").concat(l,")").concat(h)};case 1:return{replacementSpan:c,insertText:"import".concat(f).concat(e.escapeSnippetText(t)).concat(d," from ").concat(l).concat(h)};case 2:return{replacementSpan:c,insertText:"import".concat(f,"* as ").concat(e.escapeSnippetText(t)," from ").concat(l).concat(h)};case 0:return{replacementSpan:c,insertText:"import".concat(f,"{ ").concat(_).concat(e.escapeSnippetText(t)).concat(d," } from ").concat(l).concat(h)}}}(_,E,g,x,c,S,T),M=O.insertText,K=O.replacementSpan,G=!!T.includeCompletionsWithSnippetText||void 0)),64===(null==g?void 0:g.kind)&&(U=!0),T.includeCompletionsWithClassMemberSnippets&&T.includeCompletionsWithInsertText&&3===D&&function(t,n,r){if(e.isInJSFile(n))return!1;return!!(106500&t.flags)&&(e.isClassLike(n)||n.parent&&n.parent.parent&&e.isClassElement(n.parent)&&n===n.parent.name&&n.parent.getLastToken(r)===n.parent.name&&e.isClassLike(n.parent.parent)||n.parent&&e.isSyntaxList(n)&&e.isClassLike(n.parent))}(r,s,c)){var Y=void 0;M=(R=C(p,f,S,T,_,r,s,o,A)).insertText,G=R.isSnippet,Y=R.importAdder,K=R.replacementSpan,i=t.SortText.ClassMemberSnippets,(null==Y?void 0:Y.hasFixes())&&(U=!0,j=n.ClassMemberSnippet)}if(g&&m(g)&&(M=g.insertText,G=g.isSnippet,V=g.labelDetails,T.useLabelDetailsInCompletionEntries||(_+=V.detail,V=void 0),j=n.ObjectLiteralMethodSnippet,i=t.SortText.SortBelow(i)),P&&!w&&T.includeCompletionsWithSnippetText&&T.jsxAttributeCompletionStyle&&"none"!==T.jsxAttributeCompletionStyle){var Q="braces"===T.jsxAttributeCompletionStyle,Z=H.getTypeOfSymbolAtLocation(r,s);"auto"!==T.jsxAttributeCompletionStyle||528&Z.flags||1048576&Z.flags&&e.find(Z.types,function(e){return!!(528&e.flags)})||(402653316&Z.flags||1048576&Z.flags&&e.every(Z.types,function(e){return!!(402686084&e.flags)})?(M="".concat(e.escapeSnippetText(_),"=").concat(e.quote(c,T,"$1")),G=!0):Q=!0),Q&&(M="".concat(e.escapeSnippetText(_),"={$1}"),G=!0)}if(void 0===M||T.includeCompletionsWithInsertText)return(l(g)||u(g))&&(F=L(g),U=!E),{name:_,kind:e.SymbolDisplay.getSymbolKind(H,r,s),kindModifiers:e.SymbolDisplay.getSymbolModifiers(H,r),sortText:i,source:j,hasAction:!!U||void 0,isRecommended:k(r,y,H)||void 0,insertText:M,replacementSpan:K,sourceDisplay:B,labelDetails:V,isSnippet:G,isPackageJsonImport:d(g)||void 0,isImportStatementCompletion:!!E||void 0,data:F}}function C(t,n,r,i,a,o,s,c,l){var u,d,p=e.findAncestor(s,e.isClassLike);if(!p)return{insertText:a};var m,f=a,_=n.getTypeChecker(),h=s.getSourceFile(),g=D({removeComments:!0,module:r.module,target:r.target,omitTrailingSemicolon:!1,newLine:e.getNewLineKind(e.getNewLineCharacter(r,e.maybeBind(t,t.getNewLine)))}),y=e.codefix.createImportAdder(h,n,i,t);if(i.includeCompletionsWithSnippetText){u=!0;var v=e.factory.createEmptyStatement();m=e.factory.createBlock([v],!0),e.setSnippetElement(v,{kind:0,order:0})}else m=e.factory.createBlock([],!0);var b=0,E=function(t){if(!t)return{modifiers:0};var n,r,i,a=0;return i=t,(r=e.isModifier(i)?i.kind:e.isIdentifier(i)&&i.originalKeywordKind&&e.isModifierKind(i.originalKeywordKind)?i.originalKeywordKind:void 0)&&(a|=e.modifierToFlag(r),n=e.createTextSpanFromNode(t)),e.isPropertyDeclaration(t.parent)&&(a|=126975&e.modifiersToFlags(t.parent.modifiers),n=e.createTextSpanFromNode(t.parent)),{modifiers:a,span:n}}(c),x=E.modifiers,S=E.span,T=!!(256&x),C=[];if(e.codefix.addNewNodeForMemberSymbol(o,p,h,{program:n,host:t},i,y,function(t){var n=0;T&&(n|=256),e.isClassElement(t)&&1===_.getMemberOverrideModifierStatus(p,t)&&(n|=16384),C.length||(b=t.modifierFlagsCache|n|x),t=e.factory.updateModifiers(t,b),C.push(t)},m,2,T),C.length){var L=131073;d=S,f=l?g.printAndFormatSnippetList(L,e.factory.createNodeArray(C),h,l):g.printSnippetList(L,e.factory.createNodeArray(C),h)}return{insertText:f,isSnippet:u,importAdder:y,replacementSpan:d}}function D(t){var n,i=e.textChanges.createWriter(e.getNewLineCharacter(t)),a=e.createPrinter(t,i),o=r(r({},i),{write:function(e){return s(e,function(){return i.write(e)})},nonEscapingWrite:i.write,writeLiteral:function(e){return s(e,function(){return i.writeLiteral(e)})},writeStringLiteral:function(e){return s(e,function(){return i.writeStringLiteral(e)})},writeSymbol:function(e,t){return s(e,function(){return i.writeSymbol(e,t)})},writeParameter:function(e){return s(e,function(){return i.writeParameter(e)})},writeComment:function(e){return s(e,function(){return i.writeComment(e)})},writeProperty:function(e){return s(e,function(){return i.writeProperty(e)})}});return{printSnippetList:function(t,r,i){var a=c(t,r,i);return n?e.textChanges.applyChanges(a,n):a},printAndFormatSnippetList:function(t,i,a,o){var s={text:c(t,i,a),getLineAndCharacterOfPosition:function(t){return e.getLineAndCharacterOfPosition(this,t)}},l=e.getFormatCodeSettingsForWriting(o,a),u=e.flatMap(i,function(t){var n=e.textChanges.assignPositionsToNode(t);return e.formatting.formatNodeGivenIndentation(n,s,a.languageVariant,0,0,r(r({},o),{options:l}))}),d=n?e.stableSort(e.concatenate(u,n),function(t,n){return e.compareTextSpans(t.span,n.span)}):u;return e.textChanges.applyChanges(s.text,d)}};function s(t,r){var a=e.escapeSnippetText(t);if(a!==t){var o=i.getTextPos();r();var s=i.getTextPos();n=e.append(n||(n=[]),{newText:a,span:{start:o,length:s-o}})}else r()}function c(e,t,r){return n=void 0,o.clear(),a.writeList(e,t,r,o),o.getText()}}function L(t){var n=t.fileName?void 0:e.stripQuotes(t.moduleSymbol.name),r=!!t.isFromPackageJson||void 0;return u(t)?{exportName:t.exportName,moduleSpecifier:t.moduleSpecifier,ambientModuleName:n,fileName:t.fileName,isPackageJsonImport:r}:{exportName:t.exportName,exportMapKey:t.exportMapKey,fileName:t.fileName,ambientModuleName:t.fileName?void 0:e.stripQuotes(t.moduleSymbol.name),isPackageJsonImport:!!t.isFromPackageJson||void 0}}function A(e,t,n){var r="default"===e.exportName,i=!!e.isPackageJsonImport;return h(e)?{kind:32,exportName:e.exportName,moduleSpecifier:e.moduleSpecifier,symbolName:t,fileName:e.fileName,moduleSymbol:n,isDefaultExport:r,isFromPackageJson:i}:{kind:4,exportName:e.exportName,exportMapKey:e.exportMapKey,symbolName:t,fileName:e.fileName,moduleSymbol:n,isDefaultExport:r,isFromPackageJson:i}}function N(t,n,r){return/^\d+$/.test(r)?r:e.quote(t,n,r)}function k(e,t,n){return e===t||!!(1048576&e.flags)&&n.getExportSymbolOfSymbol(e)===t}function I(t){return l(t)?e.stripQuotes(t.moduleSymbol.name):u(t)?t.moduleSpecifier:1===(null==t?void 0:t.kind)?n.ThisProperty:64===(null==t?void 0:t.kind)?n.TypeOnlyAlias:void 0}function P(n,r,i,a,o,s,c,l,u,d,f,h,g,y,v,b,E,x,S,C,D,L,A,N){for(var k,I=e.timestamp(),P=function(t){return e.findAncestor(t,function(t){return e.isFunctionBlock(t)||function(t){return t.parent&&e.isArrowFunction(t.parent)&&t.parent.body===t}(t)||e.isBindingPattern(t)?"quit":e.isVariableDeclaration(t)})}(o),w=e.probablyUsesSemicolons(s),O=l.getTypeChecker(),R=new e.Map,M=0;M=t.pos;case 24:case 22:return 204===r;case 58:return 205===r;case 20:return 295===r||Pe(r);case 18:return 263===r;case 29:return 260===r||228===r||261===r||262===r||e.isFunctionLikeKind(r);case 124:return 169===r&&!e.isClassLike(n.parent);case 25:return 166===r||!!n.parent&&204===n.parent.kind;case 123:case 121:case 122:return 166===r&&!e.isConstructorDeclaration(n.parent);case 128:return 273===r||278===r||271===r;case 137:case 151:return!ee(t);case 79:if(273===r&&t===n.name&&"type"===t.text)return!1;break;case 84:case 92:case 118:case 98:case 113:case 100:case 119:case 85:case 138:return!0;case 154:return 273!==r;case 41:return e.isFunctionLike(t.parent)&&!e.isMethodDeclaration(t.parent)}if(q(J(t))&&ee(t))return!1;if(ke(t)&&(!e.isIdentifier(t)||e.isParameterPropertyModifier(J(t))||Me(t)))return!1;switch(J(t)){case 126:case 84:case 85:case 136:case 92:case 98:case 118:case 119:case 121:case 122:case 123:case 124:case 113:return!0;case 132:return e.isPropertyDeclaration(t.parent)}if(e.findAncestor(t.parent,e.isClassLike)&&t===N&&Ie(t,s))return!1;var i=e.getAncestor(t.parent,169);if(i&&t!==N&&e.isClassLike(N.parent.parent)&&s<=N.end){if(Ie(t,N.end))return!1;if(63!==t.kind&&(e.isInitializedProperty(i)||e.hasType(i)))return!0}return e.isDeclarationName(t)&&!e.isShorthandPropertyAssignment(t.parent)&&!e.isJsxAttribute(t.parent)&&!(e.isClassLike(t.parent)&&(t!==N||s>N.end))}(t)||function(e){if(8===e.kind){var t=e.getFullText();return"."===t.charAt(t.length-1)}return!1}(t)||function(e){if(11===e.kind)return!0;if(31===e.kind&&e.parent){if(H===e.parent&&(283===H.kind||282===H.kind))return!1;if(283===e.parent.kind)return 283!==H.parent.kind;if(284===e.parent.kind||282===e.parent.kind)return!!e.parent.parent&&281===e.parent.parent.kind}return!1}(t)||e.isBigIntLiteral(t);return i("getCompletionsAtPosition: isCompletionListBlocker: "+(e.timestamp()-n)),r}(k))return i("Returning an empty list because completion was requested in an invalid position."),W?y(W,L,Ne()):void 0;var ie=k.parent;if(24===k.kind||28===k.kind)switch(R=24===k.kind,M=28===k.kind,ie.kind){case 208:O=(I=ie).expression;var ae=e.getLeftmostAccessExpression(I);if(e.nodeIsMissing(ae)||(e.isCallExpression(O)||e.isFunctionLike(O))&&O.end===k.pos&&O.getChildCount(a)&&21!==e.last(O.getChildren(a)).kind)return;break;case 163:O=ie.left;break;case 264:O=ie.name;break;case 202:O=ie;break;case 233:O=ie.getFirstToken(a),e.Debug.assert(100===O.kind||103===O.kind);break;default:return}else if(!P){if(ie&&208===ie.kind&&(k=ie,ie=ie.parent),g.parent===H)switch(g.kind){case 31:281!==g.parent.kind&&283!==g.parent.kind||(H=g);break;case 43:282===g.parent.kind&&(H=g)}switch(ie.kind){case 284:43===k.kind&&(U=!0,H=k);break;case 223:if(!te(ie))break;case 282:case 281:case 283:j=!0,29===k.kind&&(G=!0,H=k);break;case 291:case 290:19===N.kind&&31===g.kind&&(j=!0);break;case 288:if(ie.initializer===N&&N.end0){var x=function(t,n){if(0===n.length)return t;for(var r=new e.Set,i=new e.Set,a=0,o=n;a0});if(1!==f.length)return;m=f[0]}if(1!==c.getSignaturesOfType(m,0).length)return;var _=c.typeToTypeNode(m,n,p,e.codefix.getNoopSymbolTrackerWithResolver({program:i,host:a}));if(!_||!e.isFunctionTypeNode(_))return;var h=void 0;if(o.includeCompletionsWithSnippetText){var g=e.factory.createEmptyStatement();h=e.factory.createBlock([g],!0),e.setSnippetElement(g,{kind:0,order:0})}else h=e.factory.createBlock([],!0);var y=_.parameters.map(function(t){return e.factory.createParameterDeclaration(void 0,t.dotDotDotToken,t.name,void 0,void 0,t.initializer)});return e.factory.createMethodDeclaration(void 0,void 0,u,void 0,void 0,y,void 0,h);default:return}}}(t,r,d,i,a,s);if(p){var m=D({removeComments:!0,module:o.module,target:o.target,omitTrailingSemicolon:!1,newLine:e.getNewLineKind(e.getNewLineCharacter(o,e.maybeBind(a,a.getNewLine)))});u=c?m.printAndFormatSnippetList(80,e.factory.createNodeArray([p],!0),d,c):m.printSnippetList(80,e.factory.createNodeArray([p],!0),d);var f=e.createPrinter({removeComments:!0,module:o.module,target:o.target,omitTrailingSemicolon:!0}),_=e.factory.createMethodSignature(void 0,"",p.questionToken,p.typeParameters,p.parameters,p.type);return{isSnippet:l,insertText:u,labelDetails:{detail:f.printNode(4,_,d)}}}}(t,i.name,l,n,u,o,c,d);if(a){var s=r({kind:128},a);Y|=32,fe[me.length]=s,me.push(t)}}}}))}return 1}()||(P?(z=!0,Ae(),1):0)||function(){if(!k)return 0;var t=18===k.kind||27===k.kind?e.tryCast(k.parent,e.isNamedImportsOrExports):e.isTypeKeywordTokenOrIdentifier(k)?e.tryCast(k.parent.parent,e.isNamedImportsOrExports):void 0;if(!t)return 0;e.isTypeKeywordTokenOrIdentifier(k)||(W=8);var n=(272===t.kind?t.parent.parent:t.parent).moduleSpecifier;if(!n)return z=!0,272===t.kind?2:0;var r=m.getSymbolAtLocation(n);if(!r)return z=!0,2;le=3,z=!1;var i=m.getExportsAndPropertiesOfModule(r),a=new e.Set(t.elements.filter(function(e){return!Me(e)}).map(function(e){return(e.propertyName||e.name).escapedText})),o=i.filter(function(e){return"default"!==e.escapedName&&!a.has(e.escapedName)});return me=e.concatenate(me,o),o.length||(W=0),1}()||function(){var n,r=!k||18!==k.kind&&27!==k.kind?void 0:e.tryCast(k.parent,e.isNamedExports);if(!r)return 0;var i=e.findAncestor(r,e.or(e.isSourceFile,e.isModuleDeclaration));return le=5,z=!1,null===(n=i.locals)||void 0===n||n.forEach(function(n,r){var a,o;me.push(n),(null===(o=null===(a=i.symbol)||void 0===a?void 0:a.exports)||void 0===o?void 0:o.has(r))&&(_e[e.getSymbolId(n)]=t.SortText.OptionalMember)}),1}()||(function(t){if(t){var n=t.parent;switch(t.kind){case 20:case 27:return e.isConstructorDeclaration(t.parent)?t.parent:void 0;default:if(ke(t))return n.parent}}}(k)?(le=5,z=!0,W=4,1):0)||function(){var t=function(t,n,r,i){switch(r.kind){case 351:return e.tryCast(r.parent,e.isObjectTypeDeclaration);case 1:var a=e.tryCast(e.lastOrUndefined(e.cast(r.parent,e.isSourceFile).statements),e.isObjectTypeDeclaration);if(a&&!e.findChildOfKind(a,19,t))return a;break;case 79:var o=r.originalKeywordKind;if(o&&e.isKeyword(o))return;if(e.isPropertyDeclaration(r.parent)&&r.parent.initializer===r)return;if(ee(r))return e.findAncestor(r,e.isObjectTypeDeclaration)}if(n){if(135===r.kind||e.isIdentifier(n)&&e.isPropertyDeclaration(n.parent)&&e.isClassLike(r))return e.findAncestor(n,e.isClassLike);switch(n.kind){case 63:return;case 26:case 19:return ee(r)&&r.parent.name===r?r.parent.parent:e.tryCast(r,e.isObjectTypeDeclaration);case 18:case 27:return e.tryCast(n.parent,e.isObjectTypeDeclaration);default:if(!ee(n))return e.getLineAndCharacterOfPosition(t,n.getEnd()).line!==e.getLineAndCharacterOfPosition(t,i).line&&e.isObjectTypeDeclaration(r)?r:void 0;var s=e.isClassLike(n.parent.parent)?q:$;return s(n.kind)||41===n.kind||e.isIdentifier(n)&&s(e.stringToToken(n.text))?n.parent.parent:void 0}}}(a,k,H,s);if(!t)return 0;if(le=3,z=!0,W=41===k.kind?0:e.isClassLike(t)?2:3,!e.isClassLike(t))return 1;var n=26===k.kind?k.parent.parent:k.parent,r=e.isClassElement(n)?e.getEffectiveModifierFlags(n):0;if(79===k.kind&&!Me(k))switch(k.getText()){case"private":r|=8;break;case"static":r|=32;break;case"override":r|=16384}if(e.isClassStaticBlockDeclaration(n)&&(r|=32),!(8&r)){var i=e.isClassLike(t)&&16384&r?e.singleElementArray(e.getEffectiveBaseTypeNode(t)):e.getAllSuperTypeNodes(t),o=e.flatMap(i,function(e){var n=m.getTypeAtLocation(e);return 32&r?(null==n?void 0:n.symbol)&&m.getPropertiesOfType(m.getTypeOfSymbolAtLocation(n.symbol,t)):n&&m.getPropertiesOfType(n)});me=e.concatenate(me,function(t,n,r){for(var i=new e.Set,a=0,o=n;a90))&&(!!l||ue(t,o))},function(r,i,a,o){var s,c,u,d;if(!l||e.some(r,function(t){return l.source===e.stripQuotes(t.moduleSymbol.name)})){var p=e.find(r,g);if(p){var m=n.tryResolve(r,i,a)||{};if("failed"!==m){var f,_=p;"skipped"!==m&&(_=void 0===(s=m.exportInfo)?p:s,f=m.moduleSpecifier);var h=1===_.exportKind;c=h&&e.getLocalSymbolForExportDefault(_.symbol)||_.symbol,u={kind:f?32:4,moduleSpecifier:f,symbolName:i,exportMapKey:o,exportName:2===_.exportKind?"export=":_.symbol.name,fileName:_.moduleFileName,isDefaultExport:h,moduleSymbol:_.moduleSymbol,isFromPackageJson:_.isFromPackageJson},d=e.getSymbolId(c),_e[d]!==t.SortText.GlobalsOrKeywords&&(fe[me.length]=u,_e[d]=P?t.SortText.LocationPriority:t.SortText.AutoImportSuggestions,me.push(c))}}}}),pe=n.skippedAny(),Y|=n.resolvedAny()?8:0,Y|=n.resolvedBeyondLimit()?16:0})}function g(t){var r=e.tryCast(t.moduleSymbol.valueDeclaration,e.isSourceFile);if(!r){var i=e.stripQuotes(t.moduleSymbol.name);return(!e.JsTyping.nodeCoreModules.has(i)||e.startsWith(i,"node:")===e.shouldUseUriStyleNodeCoreModules(a,n))&&(!h||h.allowsImportingAmbientModule(t.moduleSymbol,ye(t.isFromPackageJson)))}return e.isImportableFile(t.isFromPackageJson?_:n,a,r,c,h,ye(t.isFromPackageJson),d)}}function Ne(){if(k){var e=k.parent.kind,t=J(k);switch(t){case 27:return 210===e||173===e||211===e||206===e||223===e||181===e||207===e;case 20:return 210===e||173===e||211===e||214===e||193===e;case 22:return 206===e||178===e||164===e;case 142:case 143:case 100:return!0;case 24:return 264===e;case 18:return 260===e||207===e;case 63:return 257===e||223===e;case 15:return 225===e;case 16:return 236===e;case 132:return 171===e||300===e;case 41:return 171===e}if(q(t))return!0}return!1}function ke(t){return!!t.parent&&e.isParameter(t.parent)&&e.isConstructorDeclaration(t.parent.parent)&&(e.isParameterPropertyModifier(t.kind)||e.isDeclarationName(t))}function Ie(t,n){return 63!==t.kind&&(26===t.kind||!e.positionsAreOnSameLine(t.end,n,a))}function Pe(t){return e.isFunctionLikeKind(t)&&173!==t}function we(e,t){var n=e.expression,r=m.getSymbolAtLocation(n),i=r&&m.getTypeOfSymbolAtLocation(r,n),a=i&&i.properties;a&&a.forEach(function(e){t.add(e.name)})}function Oe(){me.forEach(function(n){var r;if(16777216&n.flags){var i=e.getSymbolId(n);_e[i]=null!==(r=_e[i])&&void 0!==r?r:t.SortText.OptionalMember}})}function Re(n,r){if(0!==n.size)for(var i=0,a=r;i");return{isGlobalCompletion:!1,isMemberCompletion:!0,isNewIdentifierLocation:!1,optionalReplacementSpan:e.createTextSpanFromNode(i.tagName),entries:[{name:o,kind:"class",kindModifiers:void 0,sortText:t.SortText.LocationPriority}]}}}(g,n);if(M)return M}var F=e.createSortedArray(),G=b(n,a);if(!G||h||d&&0!==d.length||0!==x){var B=P(d,F,void 0,p,g,n,r,i,e.getEmitScriptTarget(a),o,m,c,a,l,A,y,N,L,I,D,C,O,N,k);if(0!==x)for(var U=0,V=H(x,!w&&e.isSourceFileJS(n));U=0&&!l(n,r[i],115);i--);return e.forEach(a(t.statement),function(e){s(t,e)&&l(n,e.getFirstToken(),81,86)}),n}function d(e){var t=c(e);if(t)switch(t.kind){case 245:case 246:case 247:case 243:case 244:return u(t);case 252:return p(t)}}function p(t){var n=[];return l(n,t.getFirstToken(),107),e.forEach(t.caseBlock.clauses,function(r){l(n,r.getFirstToken(),82,88),e.forEach(a(r),function(e){s(t,e)&&l(n,e.getFirstToken(),81)})}),n}function m(t,n){var r=[];return l(r,t.getFirstToken(),111),t.catchClause&&l(r,t.catchClause.getFirstToken(),83),t.finallyBlock&&l(r,e.findChildOfKind(t,96,n),96),r}function f(t,n){var r=function(t){for(var n=t;n.parent;){var r=n.parent;if(e.isFunctionBlock(r)||308===r.kind)return r;if(e.isTryStatement(r)&&r.tryBlock===n&&r.catchClause)return n;n=r}}(t);if(r){var a=[];return e.forEach(i(r),function(t){a.push(e.findChildOfKind(t,109,n))}),e.isFunctionBlock(r)&&e.forEachReturnStatement(r,function(t){a.push(e.findChildOfKind(t,105,n))}),a}}function _(t,n){var r=e.getContainingFunction(t);if(r){var a=[];return e.forEachReturnStatement(e.cast(r.body,e.isBlock),function(t){a.push(e.findChildOfKind(t,105,n))}),e.forEach(i(r.body),function(t){a.push(e.findChildOfKind(t,109,n))}),a}}function h(t){var n=e.getContainingFunction(t);if(n){var r=[];return n.modifiers&&n.modifiers.forEach(function(e){l(r,e,132)}),e.forEachChild(n,function(t){g(t,function(t){e.isAwaitExpression(t)&&l(r,t.getFirstToken(),133)})}),r}}function g(t,n){n(t),e.isFunctionLike(t)||e.isClassLike(t)||e.isInterfaceDeclaration(t)||e.isModuleDeclaration(t)||e.isTypeAliasDeclaration(t)||e.isTypeNode(t)||e.forEachChild(t,function(e){return g(e,n)})}t.getDocumentHighlights=function(t,i,a,o,s){var c=e.getTouchingPropertyName(a,o);if(c.parent&&(e.isJsxOpeningElement(c.parent)&&c.parent.tagName===c||e.isJsxClosingElement(c.parent))){var y=c.parent.parent,v=[y.openingElement,y.closingElement].map(function(e){return r(e.tagName,a)});return[{fileName:a.fileName,highlightSpans:v}]}return function(t,n,r,i,a){var o=new e.Set(a.map(function(e){return e.fileName})),s=e.FindAllReferences.getReferenceEntriesForNode(t,n,r,a,i,void 0,o);if(s){var c=e.arrayToMultiMap(s.map(e.FindAllReferences.toHighlightSpan),function(e){return e.fileName},function(e){return e.span}),l=e.createGetCanonicalFileName(r.useCaseSensitiveFileNames());return e.mapDefined(e.arrayFrom(c.entries()),function(t){var n=t[0],i=t[1];if(!o.has(n)){if(!r.redirectTargetsMap.has(e.toPath(n,r.getCurrentDirectory(),l)))return;var s=r.getSourceFile(n);n=e.find(a,function(e){return!!e.redirectInfo&&e.redirectInfo.redirectTarget===s}).fileName,e.Debug.assert(o.has(n))}return{fileName:n,highlightSpans:i}})}}(o,c,t,i,s)||function(t,i){var a=function(t,i){switch(t.kind){case 99:case 91:return e.isIfStatement(t.parent)?function(t,n){for(var i=function(t,n){for(var r=[];e.isIfStatement(t.parent)&&t.parent.elseStatement===t;)t=t.parent;for(;;){var i=t.getChildren(n);l(r,i[0],99);for(var a=i.length-1;a>=0&&!l(r,i[a],91);a--);if(!t.elseStatement||!e.isIfStatement(t.elseStatement))break;t=t.elseStatement}return r}(t,n),a=[],o=0;o=s.end;d--)if(!e.isWhiteSpaceSingleLine(n.text.charCodeAt(d))){u=!1;break}if(u){a.push({fileName:n.fileName,textSpan:e.createTextSpanFromBounds(s.getStart(),c.end),kind:"reference"}),o++;continue}}a.push(r(i[o],n))}return a}(t.parent,i):void 0;case 105:return o(t.parent,e.isReturnStatement,_);case 109:return o(t.parent,e.isThrowStatement,f);case 111:case 83:case 96:return o(83===t.kind?t.parent.parent:t.parent,e.isTryStatement,m);case 107:return o(t.parent,e.isSwitchStatement,p);case 82:case 88:return e.isDefaultClause(t.parent)||e.isCaseClause(t.parent)?o(t.parent.parent.parent,e.isSwitchStatement,p):void 0;case 81:case 86:return o(t.parent,e.isBreakOrContinueStatement,d);case 97:case 115:case 90:return o(t.parent,function(t){return e.isIterationStatement(t,!0)},u);case 135:return a(e.isConstructorDeclaration,[135]);case 137:case 151:return a(e.isAccessor,[137,151]);case 133:return o(t.parent,e.isAwaitExpression,h);case 132:return s(h(t));case 125:return s(function(t){var n=e.getContainingFunction(t);if(n){var r=[];return e.forEachChild(n,function(t){g(t,function(t){e.isYieldExpression(t)&&l(r,t.getFirstToken(),125)})}),r}}(t));case 101:return;default:return e.isModifierKind(t.kind)&&(e.isDeclaration(t.parent)||e.isVariableStatement(t.parent))?s(function(t,r){return e.mapDefined(function(t,r){var i=t.parent;switch(i.kind){case 265:case 308:case 238:case 292:case 293:return 256&r&&e.isClassDeclaration(t)?n(n([],t.members,!0),[t],!1):i.statements;case 173:case 171:case 259:return n(n([],i.parameters,!0),e.isClassLike(i.parent)?i.parent.members:[],!0);case 260:case 228:case 261:case 184:var a=i.members;if(92&r){var o=e.find(i.members,e.isConstructorDeclaration);if(o)return n(n([],a,!0),o.parameters,!0)}else if(256&r)return n(n([],a,!0),[i],!1);return a;case 207:return;default:e.Debug.assertNever(i,"Invalid container kind.")}}(r,e.modifierToFlag(t)),function(n){return e.findModifier(n,t)})}(t.kind,t.parent)):void 0}function a(n,r){return o(t.parent,n,function(t){return e.mapDefined(t.symbol.declarations,function(t){return n(t)?e.find(t.getChildren(i),function(t){return e.contains(r,t.kind)}):void 0})})}function o(e,t,n){return t(e)?s(n(e,i)):void 0}function s(e){return e&&e.map(function(e){return r(e,i)})}}(t,i);return a&&[{fileName:i.fileName,highlightSpans:a}]}(c,a)}}(e.DocumentHighlights||(e.DocumentHighlights={}))}(c||(c={})),function(e){function t(e){return!!e.sourceFile}function n(n,r,o){void 0===r&&(r="");var s=new e.Map,c=e.createGetCanonicalFileName(!!n);function l(e){return"function"==typeof e.getCompilationSettings?e.getCompilationSettings():e}function u(e,t,n,r,i,a,o,s){return m(e,t,n,r,i,a,!0,o,s)}function d(e,t,n,r,i,a,o,s){return m(e,t,l(n),r,i,a,!1,o,s)}function p(n,r){var i=t(n)?n:n.get(e.Debug.checkDefined(r,"If there are more than one scriptKind's for same document the scriptKind should be provided"));return e.Debug.assert(void 0===r||!i||i.sourceFile.scriptKind===r,"Script kind should match provided ScriptKind:".concat(r," and sourceFile.scriptKind: ").concat(null==i?void 0:i.sourceFile.scriptKind,", !entry: ").concat(!i)),i}function m(n,r,i,c,u,d,m,f,_){var h,g,y,v;f=e.ensureScriptKind(n,f);var b=l(i),E=i===b?void 0:i,x=6===f?100:e.getEmitScriptTarget(b),S="object"==typeof _?_:{languageVersion:x,impliedNodeFormat:E&&e.getImpliedNodeFormatForFile(r,null===(v=null===(y=null===(g=null===(h=E.getCompilerHost)||void 0===h?void 0:h.call(E))||void 0===g?void 0:g.getModuleResolutionCache)||void 0===y?void 0:y.call(g))||void 0===v?void 0:v.getPackageJsonInfoCache(),E,b),setExternalModuleIndicator:e.getSetExternalModuleIndicator(b)};S.languageVersion=x;var T=s.size,C=a(c,S.impliedNodeFormat),D=e.getOrUpdate(s,C,function(){return new e.Map});if(e.tracing){s.size>T&&e.tracing.instant("session","createdDocumentRegistryBucket",{configFilePath:b.configFilePath,key:C});var L=!e.isDeclarationFileName(r)&&e.forEachEntry(s,function(e,t){return t!==C&&e.has(r)&&t});L&&e.tracing.instant("session","documentRegistryBucketOverlap",{path:r,key1:L,key2:C})}var A=D.get(r),N=A&&p(A,f);if(!N&&o&&(k=o.getDocument(C,r))&&(e.Debug.assert(m),N={sourceFile:k,languageServiceRefCount:0},I()),N)N.sourceFile.version!==d&&(N.sourceFile=e.updateLanguageServiceSourceFile(N.sourceFile,u,d,u.getChangeRange(N.sourceFile.scriptSnapshot)),o&&o.setDocument(C,r,N.sourceFile)),m&&N.languageServiceRefCount++;else{var k=e.createLanguageServiceSourceFile(n,u,S,d,!1,f);o&&o.setDocument(C,r,k),N={sourceFile:k,languageServiceRefCount:1},I()}return e.Debug.assert(0!==N.languageServiceRefCount),N.sourceFile;function I(){if(A)if(t(A)){var n=new e.Map;n.set(A.sourceFile.scriptKind,A),n.set(f,N),D.set(r,n)}else A.set(f,N);else D.set(r,N)}}function f(n,r,i,o){var c=e.Debug.checkDefined(s.get(a(r,o))),l=c.get(n),u=p(l,i);u.languageServiceRefCount--,e.Debug.assert(u.languageServiceRefCount>=0),0===u.languageServiceRefCount&&(t(l)?c.delete(n):(l.delete(i),1===l.size&&c.set(n,e.firstDefinedIterator(l.values(),e.identity))))}return{acquireDocument:function(t,n,a,o,s,d){return u(t,e.toPath(t,r,c),n,i(l(n)),a,o,s,d)},acquireDocumentWithKey:u,updateDocument:function(t,n,a,o,s,u){return d(t,e.toPath(t,r,c),n,i(l(n)),a,o,s,u)},updateDocumentWithKey:d,releaseDocument:function(t,n,a,o){return f(e.toPath(t,r,c),i(n),a,o)},releaseDocumentWithKey:f,getLanguageServiceRefCounts:function(t,n){return e.arrayFrom(s.entries(),function(e){var r=e[0],i=e[1].get(t),a=i&&p(i,n);return[r,a&&a.languageServiceRefCount]})},reportStats:function(){var n=e.arrayFrom(s.keys()).filter(function(e){return e&&"_"===e.charAt(0)}).map(function(e){var n=s.get(e),r=[];return n.forEach(function(e,n){t(e)?r.push({name:n,scriptKind:e.sourceFile.scriptKind,refCount:e.languageServiceRefCount}):e.forEach(function(e,t){return r.push({name:n,scriptKind:t,refCount:e.languageServiceRefCount})})}),r.sort(function(e,t){return t.refCount-e.refCount}),{bucket:e,sourceFiles:r}});return JSON.stringify(n,void 0,2)},getKeyForCompilationSettings:i}}function r(t){var n;if(null===t||"object"!=typeof t)return""+t;if(e.isArray(t))return"[".concat(null===(n=e.map(t,function(e){return r(e)}))||void 0===n?void 0:n.join(","),"]");var i="{";for(var a in t)e.hasProperty(t,a)&&(i+="".concat(a,": ").concat(r(t[a])));return i+"}"}function i(t){return e.sourceFileAffectingCompilerOptions.map(function(n){return r(e.getCompilerOptionValue(t,n))}).join("|")+(t.pathsBasePath?"|".concat(t.pathsBasePath):void 0)}function a(e,t){return t?"".concat(e,"|").concat(t):e}e.createDocumentRegistry=function(e,t){return n(e,t)},e.createDocumentRegistryInternal=n}(c||(c={})),function(e){!function(t){var n,i;function a(t,n){return e.forEach(308===t.kind?t.statements:t.body.statements,function(t){return n(t)||u(t)&&e.forEach(t.body&&t.body.statements,n)})}function o(t,n){if(t.externalModuleIndicator||void 0!==t.imports)for(var r=0,i=t.imports;r2&&(e.Debug.assert(void 0===r),i+=1,a-=1),e.createTextSpanFromBounds(i,a)}function E(e){return 0===e.kind?e.textSpan:b(e.node,e.node.getSourceFile())}function x(t){var n=e.getDeclarationFromName(t);return!!n&&function(t){if(16777216&t.flags)return!0;switch(t.kind){case 223:case 205:case 260:case 228:case 88:case 263:case 302:case 278:case 270:case 268:case 273:case 261:case 341:case 348:case 288:case 264:case 267:case 271:case 277:case 166:case 300:case 262:case 165:return!0;case 299:return!e.isArrayLiteralOrObjectLiteralDestructuringPattern(t.parent);case 259:case 215:case 173:case 171:case 174:case 175:return!!t.body;case 257:case 169:return!!t.initializer||e.isCatchClause(t.parent);case 170:case 168:case 350:case 343:return!1;default:return e.Debug.failBadSyntaxKind(t)}}(n)||88===t.kind||e.isWriteAccess(t)}function S(t,n){var r;if(!n)return!1;var i=e.getDeclarationFromName(t)||(88===t.kind?t.parent:e.isLiteralComputedPropertyDeclarationName(t)||135===t.kind&&e.isConstructorDeclaration(t.parent)?t.parent.parent:void 0),a=i&&e.isBinaryExpression(i)?i.left:void 0;return!(!i||!(null===(r=n.declarations)||void 0===r?void 0:r.some(function(e){return e===i||e===a})))}(i=t.DefinitionKind||(t.DefinitionKind={}))[i.Symbol=0]="Symbol",i[i.Label=1]="Label",i[i.Keyword=2]="Keyword",i[i.This=3]="This",i[i.String=4]="String",i[i.TripleSlashReference=5]="TripleSlashReference",(a=t.EntryKind||(t.EntryKind={}))[a.Span=0]="Span",a[a.Node=1]="Node",a[a.StringLiteral=2]="StringLiteral",a[a.SearchedLocalFoundProperty=3]="SearchedLocalFoundProperty",a[a.SearchedPropertyFoundLocal=4]="SearchedPropertyFoundLocal",t.nodeEntry=c,t.isContextWithStartAndEndNode=l,t.getContextNode=d,t.toContextSpan=p,(o=t.FindReferencesUse||(t.FindReferencesUse={}))[o.Other=0]="Other",o[o.References=1]="References",o[o.Rename=2]="Rename",t.findReferencedSymbols=function(t,n,i,a,o){var c=e.getTouchingPropertyName(a,o),l={use:1},u=s.getReferencedSymbolsForNode(o,c,t,i,n,l),m=t.getTypeChecker(),f=s.getAdjustedNode(c,l),_=function(t){return 88===t.kind||!!e.getDeclarationFromName(t)||e.isLiteralComputedPropertyDeclarationName(t)||135===t.kind&&e.isConstructorDeclaration(t.parent)}(f)?m.getSymbolAtLocation(f):void 0;return u&&u.length?e.mapDefined(u,function(t){var i=t.definition,a=t.references;return i&&{definition:m.runWithCancellationToken(n,function(t){return function(t,n,i){var a=function(){switch(t.type){case 0:var a=g(m=t.symbol,n,i),o=a.displayParts,s=a.kind,c=o.map(function(e){return e.text}).join(""),l=m.declarations&&e.firstOrUndefined(m.declarations),u=l?e.getNameOfDeclaration(l)||l:i;return r(r({},h(u)),{name:c,kind:s,displayParts:o,context:d(l)});case 1:return u=t.node,r(r({},h(u)),{name:u.text,kind:"label",displayParts:[e.displayPart(u.text,e.SymbolDisplayPartKind.text)]});case 2:u=t.node;var p=e.tokenToString(u.kind);return r(r({},h(u)),{name:p,kind:"keyword",displayParts:[{text:p,kind:"keyword"}]});case 3:u=t.node;var m,f=(m=n.getSymbolAtLocation(u))&&e.SymbolDisplay.getSymbolDisplayPartsDocumentationAndSymbolKind(n,m,u.getSourceFile(),e.getContainerNode(u),u).displayParts||[e.textPart("this")];return r(r({},h(u)),{name:"this",kind:"var",displayParts:f});case 4:return u=t.node,r(r({},h(u)),{name:u.text,kind:"var",displayParts:[e.displayPart(e.getTextOfNode(u),e.SymbolDisplayPartKind.stringLiteral)]});case 5:return{textSpan:e.createTextSpanFromRange(t.reference),sourceFile:t.file,name:t.reference.fileName,kind:"string",displayParts:[e.displayPart('"'.concat(t.reference.fileName,'"'),e.SymbolDisplayPartKind.stringLiteral)]};default:return e.Debug.assertNever(t)}}(),o=a.sourceFile,s=a.textSpan,c=a.name,l=a.kind,u=a.displayParts,m=a.context;return r({containerKind:"",containerName:"",fileName:o.fileName,kind:l,name:c,textSpan:s,displayParts:u},p(s,o,m))}(i,t,c)}),references:a.map(function(e){return function(e,t){var n=y(e);return t?r(r({},n),{isDefinition:0!==e.kind&&S(e.node,t)}):n}(e,_)})}}):void 0},t.getImplementationsAtPosition=function(t,i,a,o,s){var c,l=e.getTouchingPropertyName(o,s),u=m(t,i,a,l,s);if(208===l.parent.kind||205===l.parent.kind||209===l.parent.kind||106===l.kind)c=u&&n([],u,!0);else if(u)for(var d=e.createQueue(u),p=new e.Map;!d.isEmpty();){var f=d.dequeue();if(e.addToSeen(p,e.getNodeId(f.node))){c=e.append(c,f);var _=m(t,i,a,f.node,f.node.pos);_&&d.enqueue.apply(d,_)}}var h=t.getTypeChecker();return e.map(c,function(t){return function(t,n){var i=v(t);if(0!==t.kind){var a=t.node;return r(r({},i),function(t,n){var r=n.getSymbolAtLocation(e.isDeclaration(t)&&t.name?t.name:t);return r?g(r,n,t):207===t.kind?{kind:"interface",displayParts:[e.punctuationPart(20),e.textPart("object literal"),e.punctuationPart(21)]}:228===t.kind?{kind:"local class",displayParts:[e.punctuationPart(20),e.textPart("anonymous local class"),e.punctuationPart(21)]}:{kind:e.getNodeKind(t),displayParts:[]}}(a,n))}return r(r({},i),{kind:"",displayParts:[]})}(t,h)})},t.findReferenceOrRenameEntries=function(t,n,r,i,a,o,c){return e.map(_(s.getReferencedSymbolsForNode(a,i,t,r,n,o)),function(e){return c(e,i,t.getTypeChecker())})},t.getReferenceEntriesForNode=f,t.toRenameLocation=function(t,n,i,a){return r(r({},v(t)),a&&function(t,n,r){if(0!==t.kind&&e.isIdentifier(n)){var i=t.node,a=t.kind,o=i.parent,s=n.text,c=e.isShorthandPropertyAssignment(o);if(c||e.isObjectBindingElementWithoutPropertyName(o)&&o.name===i&&void 0===o.dotDotDotToken){var l={prefixText:s+": "},u={suffixText:": "+s};if(3===a)return l;if(4===a)return u;if(c){var d=o.parent;return e.isObjectLiteralExpression(d)&&e.isBinaryExpression(d.parent)&&e.isModuleExportsAccessExpression(d.parent.left)?l:u}return l}if(e.isImportSpecifier(o)&&!o.propertyName){var p=e.isExportSpecifier(n.parent)?r.getExportSpecifierLocalTargetSymbol(n.parent):r.getSymbolAtLocation(n);return e.contains(p.declarations,o)?{prefixText:s+" as "}:e.emptyOptions}if(e.isExportSpecifier(o)&&!o.propertyName)return n===t.node||r.getSymbolAtLocation(n)===r.getSymbolAtLocation(t.node)?{prefixText:s+" as "}:{suffixText:" as "+s}}return e.emptyOptions}(t,n,i))},t.toReferenceEntry=y,t.toHighlightSpan=function(e){var t=v(e);if(0===e.kind)return{fileName:t.fileName,span:{textSpan:t.textSpan,kind:"reference"}};var n=x(e.node),i=r({textSpan:t.textSpan,kind:n?"writtenReference":"reference",isInString:2===e.kind||void 0},t.contextSpan&&{contextSpan:t.contextSpan});return{fileName:t.fileName,span:i}},t.getTextSpanOfEntry=E,t.isDeclarationOfSymbol=S,function(n){function r(t,n){return 1===n.use?t=e.getAdjustedReferenceLocation(t):2===n.use&&(t=e.getAdjustedRenameLocation(t)),t}function i(t,n,r){for(var i,a=0,o=n.get(t.path)||e.emptyArray;a=0&&!(c>r.end);){var l=c+s;0!==c&&e.isIdentifierPart(a.charCodeAt(c-1),99)||l!==o&&e.isIdentifierPart(a.charCodeAt(l),99)||i.push(c),c=a.indexOf(n,c+s+1)}return i}function T(t,n){var r=t.getSourceFile(),i=n.text,a=e.mapDefined(x(r,i,t),function(t){return t===n||e.isJumpStatementTarget(t)&&e.getTargetLabel(t,i)===n?c(t):void 0});return[{definition:{type:1,node:n},references:a}]}function C(e,t,n,r){return void 0===r&&(r=!0),n.cancellationToken.throwIfCancellationRequested(),D(e,e,t,n,r)}function D(e,t,n,r,i){if(r.markSearchedSymbols(t,n.allSearchSymbols))for(var a=0,o=S(t,n.text,e);a0;o--)x(t,i=r[o]);return[r.length-1,r[0]]}function x(e,t){var n=y(e,t);_(o,n),l.push(o),u.push(s),s=void 0,o=n}function S(){o.children&&(A(o.children,o),O(o.children)),o=l.pop(),s=u.pop()}function T(e,t,n){x(e,n),L(t),S()}function C(t){t.initializer&&function(e){switch(e.kind){case 216:case 215:case 228:return!0;default:return!1}}(t.initializer)?(x(t),e.forEachChild(t.initializer,L),S()):T(t,t.initializer)}function D(t){return!e.hasDynamicName(t)||223!==t.kind&&e.isPropertyAccessExpression(t.name.expression)&&e.isIdentifier(t.name.expression.expression)&&"Symbol"===e.idText(t.name.expression.expression)}function L(t){var n;if(i.throwIfCancellationRequested(),t&&!e.isToken(t))switch(t.kind){case 173:var r=t;T(r,r.body);for(var a=0,o=r.parameters;a0&&(x(U,M),e.forEachChild(U.right,L),S()):e.isFunctionExpression(U.right)||e.isArrowFunction(U.right)?T(t,U.right,M):(x(U,M),T(t,U.right,w.name),S()),void b(R);case 7:case 9:var F=t,G=(M=7===P?F.arguments[0]:F.arguments[0].expression,F.arguments[1]),B=E(t,M);return R=B[0],x(t,B[1]),x(t,e.setTextRange(e.factory.createIdentifier(G.text),G)),L(t.arguments[2]),S(),S(),void b(R);case 5:var U,V=(w=(U=t).left).expression;if(e.isIdentifier(V)&&"prototype"!==e.getElementOrPropertyAccessName(w)&&s&&s.has(V.text))return void(e.isFunctionExpression(U.right)||e.isArrowFunction(U.right)?T(t,U.right,V):e.isBindableStaticAccessExpression(w)&&(x(U,V),T(U.left,U.right,e.getNameOrArgument(w)),S()));break;case 4:case 0:case 8:break;default:e.Debug.assertNever(P)}default:e.hasJSDocNodes(t)&&e.forEach(t.jsDoc,function(t){e.forEach(t.tags,function(t){e.isJSDocTypeAlias(t)&&g(t)})}),e.forEachChild(t,L)}}function A(t,n){var r=new e.Map;e.filterMutate(t,function(t,i){var a=t.name||e.getNameOfDeclaration(t.node),o=a&&m(a);if(!o)return!0;var s=r.get(o);if(!s)return r.set(o,t),!0;if(s instanceof Array){for(var c=0,l=s;c0)return J(r)}switch(t.kind){case 308:var i=t;return e.isExternalModule(i)?'"'.concat(e.escapeString(e.getBaseFileName(e.removeFileExtension(e.normalizePath(i.fileName)))),'"'):"";case 274:return e.isExportAssignment(t)&&t.isExportEquals?"export=":"default";case 216:case 259:case 215:case 260:case 228:return 1024&e.getSyntacticModifierFlags(t)?"default":q(t);case 173:return"constructor";case 177:return"new()";case 176:return"()";case 178:return"[]";default:return""}}function G(t){return{text:F(t.node,t.name),kind:e.getNodeKind(t.node),kindModifiers:$(t.node),spans:U(t),nameSpan:t.name&&W(t.name),childItems:e.map(t.children,G)}}function B(t){return{text:F(t.node,t.name),kind:e.getNodeKind(t.node),kindModifiers:$(t.node),spans:U(t),childItems:e.map(t.children,function(t){return{text:F(t.node,t.name),kind:e.getNodeKind(t.node),kindModifiers:e.getNodeModifiers(t.node),spans:U(t),childItems:d,indent:0,bolded:!1,grayed:!1}})||d,indent:t.indent,bolded:!1,grayed:!1}}function U(e){var t=[W(e.node)];if(e.additionalNodes)for(var n=0,r=e.additionalNodes;n0)return J(e.declarationNameToString(t.name));if(e.isVariableDeclaration(n))return J(e.declarationNameToString(n.name));if(e.isBinaryExpression(n)&&63===n.operatorToken.kind)return m(n.left).replace(c,"");if(e.isPropertyAssignment(n))return m(n.name);if(1024&e.getSyntacticModifierFlags(t))return"default";if(e.isClassLike(t))return"";if(e.isCallExpression(n)){var r=z(n.expression);if(void 0!==r){if((r=J(r)).length>150)return"".concat(r," callback");var i=J(e.mapDefined(n.arguments,function(t){return e.isStringLiteralLike(t)?t.getText(a):void 0}).join(", "));return"".concat(r,"(").concat(i,") callback")}}return""}function z(t){if(e.isIdentifier(t))return t.text;if(e.isPropertyAccessExpression(t)){var n=z(t.expression),r=t.name.text;return void 0===n?r:"".concat(n,".").concat(r)}}function J(e){return(e=e.length>150?e.substring(0,150)+"...":e).replace(/\\?(\r?\n|\r|\u2028|\u2029)/g,"")}}(e.NavigationBar||(e.NavigationBar={}))}(c||(c={})),function(e){!function(t){function n(t,n){for(var i=e.createScanner(t.languageVersion,!1,t.languageVariant),a=[],o=0,s=0,c=n;s=2)return!0;return!1}function i(t,n,r){for(var i=r.getTypeChecker(),o=r.getCompilerOptions(),s=i.getJsxNamespace(n),c=i.getJsxFragmentFactory(n),u=!!(2&n.transformFlags),d=[],p=0,m=t;p0?_[0]:y[0],A=0===D.length?x?void 0:e.factory.createNamedImports(e.emptyArray):0===y.length?e.factory.createNamedImports(D):e.factory.updateNamedImports(y[0].importClause.namedBindings,D);f&&x&&A?(s.push(l(L,x,void 0)),s.push(l(null!==(n=y[0])&&void 0!==n?n:L,void 0,A))):s.push(l(L,x,A))}}else{var N=_[0];s.push(l(N,N.importClause.name,h[0].importClause.namedBindings))}}return s}function c(t){if(0===t.length)return t;var n=function(e){for(var t,n=[],r=[],i=0,a=e;i...")}(t);case 285:return function(t){var r=e.createTextSpanFromBounds(t.openingFragment.getStart(n),t.closingFragment.getEnd());return l(r,"code",r,!1,"<>...")}(t);case 282:case 283:return function(e){if(0!==e.properties.length)return s(e.getStart(n),e.getEnd(),"code")}(t.attributes);case 225:case 14:return function(e){if(14!==e.kind||0!==e.text.length)return s(e.getStart(n),e.getEnd(),"code")}(t);case 204:return u(t,!1,!e.isBindingElement(t.parent),22);case 216:return function(t){if(!(e.isBlock(t.body)||e.isParenthesizedExpression(t.body)||e.positionsAreOnSameLine(t.body.getFullStart(),t.body.getEnd(),n)))return l(e.createTextSpanFromBounds(t.body.getFullStart(),t.body.getEnd()),"code",e.createTextSpanFromNode(t))}(t);case 210:return function(t){if(t.arguments.length){var r=e.findChildOfKind(t,20,n),i=e.findChildOfKind(t,21,n);if(r&&i&&!e.positionsAreOnSameLine(r.pos,i.pos,n))return c(r,i,t,n,!1,!0)}}(t);case 214:return function(t){if(!e.positionsAreOnSameLine(t.getStart(),t.getEnd(),n))return l(e.createTextSpanFromBounds(t.getStart(),t.getEnd()),"code",e.createTextSpanFromNode(t))}(t)}var a;function o(t,n){return void 0===n&&(n=18),u(t,!1,!e.isArrayLiteralExpression(t.parent)&&!e.isCallExpression(t.parent),n)}function u(r,i,a,o,s){void 0===i&&(i=!1),void 0===a&&(a=!0),void 0===o&&(o=18),void 0===s&&(s=18===o?19:23);var l=e.findChildOfKind(t,o,n),u=e.findChildOfKind(t,s,n);return l&&u&&c(l,u,r,n,i,a)}}(n,t);p&&i.push(p),u--,e.isCallExpression(n)?(u++,h(n.expression),u--,n.arguments.forEach(h),null===(d=n.typeArguments)||void 0===d||d.forEach(h)):e.isIfStatement(n)&&n.elseStatement&&e.isIfStatement(n.elseStatement)?(h(n.expression),h(n.thenStatement),u++,h(n.elseStatement),u--):n.forEachChild(h),u++}}}(t,r,u),function(t,n){for(var r=[],a=0,o=t.getLineStarts();a1&&a.push(s(c,l,"comment"))}}function o(t,n,r,i){e.isJsxText(t)||a(t.pos,n,r,i)}function s(t,n,r){return l(e.createTextSpanFromBounds(t,n),r)}function c(t,n,r,i,a,o){return void 0===a&&(a=!1),void 0===o&&(o=!0),l(e.createTextSpanFromBounds(o?t.getFullStart():t.getStart(i),n.getEnd()),"code",e.createTextSpanFromNode(r,i),a)}function l(e,t,n,r,i){return void 0===n&&(n=e),void 0===r&&(r=!1),void 0===i&&(i="..."),{textSpan:e,kind:t,hintSpan:n,bannerText:i,autoCollapse:r}}}(e.OutliningElementsCollector||(e.OutliningElementsCollector={}))}(c||(c={})),function(e){var t;function n(e,t){return{kind:e,isCaseSensitive:t}}function r(e,t){var n=t.get(e);return n||t.set(e,n=y(e)),n}function i(i,a,o){var s=function(e,t){for(var n=e.length-t.length,r=function(n){if(C(t,function(t,r){return p(e.charCodeAt(r+n))===t}))return{value:n}},i=0;i<=n;i++){var a=r(i);if("object"==typeof a)return a.value}return-1}(i,a.textLowerCase);if(0===s)return n(a.text.length===i.length?t.exact:t.prefix,e.startsWith(i,a.text));if(a.isLowerCase){if(-1===s)return;for(var d=0,m=r(i,o);d0)return n(t.substring,!0);if(a.characterSpans.length>0){var _=r(i,o),h=!!l(i,_,a,!1)||!l(i,_,a,!0)&&void 0;if(void 0!==h)return n(t.camelCase,h)}}}function a(e,t,n){if(C(t.totalTextChunk.text,function(e){return 32!==e&&42!==e})){var r=i(e,t.totalTextChunk,n);if(r)return r}for(var a,s=0,c=t.subWordTextChunks;s=65&&t<=90)return!0;if(t<127||!e.isUnicodeIdentifierStart(t,99))return!1;var n=String.fromCharCode(t);return n===n.toUpperCase()}function d(t){if(t>=97&&t<=122)return!0;if(t<127||!e.isUnicodeIdentifierStart(t,99))return!1;var n=String.fromCharCode(t);return n===n.toLowerCase()}function p(e){return e>=65&&e<=90?e-65+97:e<127?e:String.fromCharCode(e).toLowerCase().charCodeAt(0)}function m(e){return e>=48&&e<=57}function f(e){return u(e)||d(e)||m(e)||95===e||36===e}function _(e){for(var t=[],n=0,r=0,i=0;i0&&(t.push(h(e.substr(n,r))),r=0);return r>0&&t.push(h(e.substr(n,r))),t}function h(e){var t=e.toLowerCase();return{text:e,textLowerCase:t,isLowerCase:e===t,characterSpans:g(e)}}function g(e){return v(e,!1)}function y(e){return v(e,!0)}function v(t,n){for(var r=[],i=0,a=1;at.length)){for(var c=r.length-2,l=t.length-1;c>=0;c-=1,l-=1)s=o(s,a(t[l],r[c],i));return s}}(t,i,r,n)},getMatchForLastSegmentOfPattern:function(t){return a(t,e.last(r),n)},patternContainsDots:r.length>1}},e.breakIntoCharacterSpans=g,e.breakIntoWordSpans=y}(c||(c={})),function(e){e.preProcessFile=function(t,n,r){void 0===n&&(n=!0),void 0===r&&(r=!1);var i,a,o,s={languageVersion:1,pragmas:void 0,checkJsDirective:void 0,referencedFiles:[],typeReferenceDirectives:[],libReferenceDirectives:[],amdDependencies:[],hasNoDefaultLib:void 0,moduleName:void 0},c=[],l=0,u=!1;function d(){return a=o,18===(o=e.scanner.scan())?l++:19===o&&l--,o}function p(){var t=e.scanner.getTokenValue(),n=e.scanner.getTokenPos();return{fileName:t,pos:n,end:n+t.length}}function m(){c.push(p()),f()}function f(){0===l&&(u=!0)}function _(){var t=e.scanner.getToken();return 136===t&&(142===(t=d())&&10===(t=d())&&(i||(i=[]),i.push({ref:p(),depth:l})),!0)}function h(){if(24===a)return!1;var t=e.scanner.getToken();if(100===t){if(20===(t=d())){if(10===(t=d())||14===t)return m(),!0}else{if(10===t)return m(),!0;if(154===t){var n=e.scanner.lookAhead(function(){var t=e.scanner.scan();return 158!==t&&(41===t||18===t||79===t||e.isKeyword(t))});n&&(t=d())}if(79===t||e.isKeyword(t))if(158===(t=d())){if(10===(t=d()))return m(),!0}else if(63===t){if(y(!0))return!0}else{if(27!==t)return!0;t=d()}if(18===t){for(t=d();19!==t&&1!==t;)t=d();19===t&&158===(t=d())&&10===(t=d())&&m()}else 41===t&&128===(t=d())&&(79===(t=d())||e.isKeyword(t))&&158===(t=d())&&10===(t=d())&&m()}return!0}return!1}function g(){var t=e.scanner.getToken();if(93===t){if(f(),154===(t=d())){var n=e.scanner.lookAhead(function(){var t=e.scanner.scan();return 41===t||18===t});n&&(t=d())}if(18===t){for(t=d();19!==t&&1!==t;)t=d();19===t&&158===(t=d())&&10===(t=d())&&m()}else if(41===t)158===(t=d())&&10===(t=d())&&m();else if(100===t&&(154===(t=d())&&(n=e.scanner.lookAhead(function(){var t=e.scanner.scan();return 79===t||e.isKeyword(t)}),n&&(t=d())),(79===t||e.isKeyword(t))&&63===(t=d())&&y(!0)))return!0;return!0}return!1}function y(t,n){void 0===n&&(n=!1);var r=t?d():e.scanner.getToken();return 147===r&&(20===(r=d())&&(10===(r=d())||n&&14===r)&&m(),!0)}function v(){var t=e.scanner.getToken();if(79===t&&"define"===e.scanner.getTokenValue()){if(20!==(t=d()))return!0;if(10===(t=d())||14===t){if(27!==(t=d()))return!0;t=d()}if(22!==t)return!0;for(t=d();23!==t&&1!==t;)10!==t&&14!==t||m(),t=d();return!0}return!1}if(n&&function(){for(e.scanner.setText(t),d();1!==e.scanner.getToken();){if(15===e.scanner.getToken()){var n=[e.scanner.getToken()];e:for(;e.length(n);){var i=e.scanner.scan();switch(i){case 1:break e;case 100:h();break;case 15:n.push(i);break;case 18:e.length(n)&&n.push(i);break;case 19:e.length(n)&&(15===e.lastOrUndefined(n)?17===e.scanner.reScanTemplateToken(!1)&&n.pop():n.pop())}}d()}_()||h()||g()||r&&(y(!1,!0)||v())||d()}e.scanner.setText(void 0)}(),e.processCommentPragmas(s,t),e.processPragmasIntoFields(s,e.noop),u){if(i)for(var b=0,E=i;bt)break e;var y=e.singleOrUndefined(e.getTrailingCommentRanges(i.text,h.end));if(y&&2===y.kind&&T(y.pos,y.end),n(i,t,h)){if(e.isFunctionBody(h)&&e.isFunctionLikeDeclaration(p)&&!e.positionsAreOnSameLine(h.getStart(i),h.getEnd(),i)&&S(h.getStart(i),h.getEnd()),e.isBlock(h)||e.isTemplateSpan(h)||e.isTemplateHead(h)||e.isTemplateTail(h)||_&&e.isTemplateHead(_)||e.isVariableDeclarationList(h)&&e.isVariableStatement(p)||e.isSyntaxList(h)&&e.isVariableDeclarationList(p)||e.isVariableDeclaration(h)&&e.isSyntaxList(p)&&1===m.length||e.isJSDocTypeExpression(h)||e.isJSDocSignature(h)||e.isJSDocTypeLiteral(h)){p=h;break}e.isTemplateSpan(p)&&g&&e.isTemplateMiddleOrTemplateTail(g)&&S(h.getFullStart()-2,g.getStart()+1);var v=e.isSyntaxList(h)&&l(_)&&u(g)&&!e.positionsAreOnSameLine(_.getStart(),g.getStart(),i),b=v?_.getEnd():h.getStart(),E=v?g.getStart():d(i,h);if(e.hasJSDocNodes(h)&&(null===(o=h.jsDoc)||void 0===o?void 0:o.length)&&S(e.first(h.jsDoc).getStart(),E),e.isSyntaxList(h)){var x=h.getChildren()[0];x&&e.hasJSDocNodes(x)&&(null===(s=x.jsDoc)||void 0===s?void 0:s.length)&&x.getStart()!==h.pos&&(b=Math.min(b,e.first(x.jsDoc).getStart()))}S(b,E),(e.isStringLiteral(h)||e.isTemplateLiteral(h))&&S(b+1,E-1),p=h;break}if(f===m.length-1)break e}}return c;function S(n,i){if(n!==i){var a=e.createTextSpanFromBounds(n,i);(!c||!e.textSpansEqual(a,c.textSpan)&&e.textSpanIntersectsWithPosition(a,t))&&(c=r({textSpan:a},c&&{parent:c}))}}function T(e,t){S(e,t);for(var n=e;47===i.text.charCodeAt(n);)n++;S(n,t)}};var i=e.or(e.isImportDeclaration,e.isImportEqualsDeclaration);function a(t){var n;if(e.isSourceFile(t))return o(t.getChildAt(0).getChildren(),i);if(e.isMappedTypeNode(t)){var r=t.getChildren(),a=r[0],l=r.slice(1),u=e.Debug.checkDefined(l.pop());e.Debug.assertEqual(a.kind,18),e.Debug.assertEqual(u.kind,19);var d=o(l,function(e){return e===t.readonlyToken||146===e.kind||e===t.questionToken||57===e.kind}),p=o(d,function(e){var t=e.kind;return 22===t||165===t||23===t});return[a,c(s(p,function(e){return 58===e.kind})),u]}if(e.isPropertySignature(t)){var m=323===(null===(n=(l=o(t.getChildren(),function(n){return n===t.name||e.contains(t.modifiers,n)}))[0])||void 0===n?void 0:n.kind)?l[0]:void 0,f=s(m?l.slice(1):l,function(e){return 58===e.kind});return m?[m,c(f)]:f}if(e.isParameter(t)){var _=o(t.getChildren(),function(e){return e===t.dotDotDotToken||e===t.name});return s(o(_,function(e){return e===_[0]||e===t.questionToken}),function(e){return 63===e.kind})}return e.isBindingElement(t)?s(t.getChildren(),function(e){return 63===e.kind}):t.getChildren()}function o(e,t){for(var n,r=[],i=0,a=e;i0&&27===e.last(r).kind&&i++,i}(a,e.isInString(r,n,t));0!==o&&e.Debug.assertLessThan(o,s);var c=function(t,n){var r=t.getFullStart(),i=e.skipTrivia(n.text,t.getEnd(),!1);return e.createTextSpan(r,i-r)}(a,r);return{list:a,argumentIndex:o,argumentCount:s,argumentsSpan:c}}}function s(t,n,r){var i=t.parent;if(e.isCallOrNewExpression(i)){var a=i,s=o(t,n,r);if(!s)return;var c=s.list,l=s.argumentIndex,u=s.argumentCount,d=s.argumentsSpan;return{isTypeParameterList:!!i.typeArguments&&i.typeArguments.pos===c.pos,invocation:{kind:0,node:a},argumentsSpan:d,argumentIndex:l,argumentCount:u}}if(e.isNoSubstitutionTemplateLiteral(t)&&e.isTaggedTemplateExpression(i))return e.isInsideTemplateLiteral(t,n,r)?p(i,0,r):void 0;if(e.isTemplateHead(t)&&212===i.parent.kind){var m=i,f=m.parent;return e.Debug.assert(225===m.kind),p(f,l=e.isInsideTemplateLiteral(t,n,r)?0:1,r)}if(e.isTemplateSpan(i)&&e.isTaggedTemplateExpression(i.parent.parent)){var _=i;if(f=i.parent.parent,e.isTemplateTail(t)&&!e.isInsideTemplateLiteral(t,n,r))return;return l=function(t,n,r,i){return e.Debug.assert(r>=n.getStart(),"Assumed 'position' could not occur before node."),e.isTemplateLiteralToken(n)?e.isInsideTemplateLiteral(n,r,i)?0:t+2:t+1}(_.parent.templateSpans.indexOf(_),t,n,r),p(f,l,r)}if(e.isJsxOpeningLikeElement(i)){var h=i.attributes.pos,g=e.skipTrivia(r.text,i.attributes.end,!1);return{isTypeParameterList:!1,invocation:{kind:0,node:i},argumentsSpan:e.createTextSpan(h,g-h),argumentIndex:0,argumentCount:1}}var y=e.getPossibleTypeArgumentsInfo(t,r);if(y){var v=y.called,b=y.nTypeArguments;return{isTypeParameterList:!0,invocation:a={kind:1,called:v},argumentsSpan:d=e.createTextSpanFromBounds(v.getStart(r),t.end),argumentIndex:b,argumentCount:b+1}}}function c(t){return e.isBinaryExpression(t.parent)?c(t.parent):t}function l(t){return e.isBinaryExpression(t.left)?l(t.left)+1:2}function u(t){return"__type"===t.name&&e.firstDefined(t.declarations,function(t){return e.isFunctionTypeNode(t)?t.parent.symbol:void 0})||t}function d(e,t){for(var n=0,r=0,i=e.getChildren();r=0&&i.length>a+1),i[a+1]}function _(t){return 0===t.kind?e.getInvokedExpression(t.node):t.called}function h(e){return 0===e.kind?e.node:1===e.kind?e.called:e.node}!function(e){e[e.Call=0]="Call",e[e.TypeArgs=1]="TypeArgs",e[e.Contextual=2]="Contextual"}(r||(r={})),t.getSignatureHelpItems=function(t,n,r,i,d){var p=t.getTypeChecker(),m=e.findTokenOnLeftOfPosition(n,r);if(m){var f=!!i&&"characterTyped"===i.kind;if(!f||!e.isInString(n,r,m)&&!e.isInComment(n,r)){var g=!!i&&"invoked"===i.kind,b=function(t,n,r,i,a){for(var d=function(t){e.Debug.assert(e.rangeContainsRange(t.parent,t),"Not a subspan",function(){return"Child: ".concat(e.Debug.formatSyntaxKind(t.kind),", parent: ").concat(e.Debug.formatSyntaxKind(t.parent.kind))});var a=function(t,n,r,i){return function(t,n,r,i){var a=function(t,n,r,i){if(20===t.kind||27===t.kind){var a=t.parent;switch(a.kind){case 214:case 171:case 215:case 216:var s=o(t,r,n);if(!s)return;var u=s.argumentIndex,d=s.argumentCount,p=s.argumentsSpan,m=e.isMethodDeclaration(a)?i.getContextualTypeForObjectLiteralElement(a):i.getContextualType(a);return m&&{contextualType:m,argumentIndex:u,argumentCount:d,argumentsSpan:p};case 223:var f=c(a),_=i.getContextualType(f),h=20===t.kind?0:l(a)-1,g=l(f);return _&&{contextualType:_,argumentIndex:h,argumentCount:g,argumentsSpan:e.createTextSpanFromNode(a)};default:return}}}(t,r,n,i);if(a){var s=a.contextualType,d=a.argumentIndex,p=a.argumentCount,m=a.argumentsSpan,f=s.getNonNullableType(),_=f.symbol;if(void 0!==_){var h=e.lastOrUndefined(f.getCallSignatures());if(void 0!==h)return{isTypeParameterList:!1,invocation:{kind:2,signature:h,node:t,symbol:u(_)},argumentsSpan:m,argumentIndex:d,argumentCount:p}}}}(t,n,r,i)||s(t,n,r)}(t,n,r,i);if(a)return{value:a}},p=t;!e.isSourceFile(p)&&(a||!e.isBlock(p));p=p.parent){var m=d(p);if("object"==typeof m)return m.value}}(m,r,n,p,g);if(b){d.throwIfCancellationRequested();var E=function(t,n,r,i,o){var s=t.invocation,c=t.argumentCount;switch(s.kind){case 0:if(o&&!function(t,n,r){if(!e.isCallOrNewExpression(n))return!1;var i=n.getChildren(r);switch(t.kind){case 20:return e.contains(i,t);case 27:var o=e.findContainingList(t);return!!o&&e.contains(i,o);case 29:return a(t,r,n.expression);default:return!1}}(i,s.node,r))return;var l=[],u=n.getResolvedSignatureForSignatureHelp(s.node,l,c);return 0===l.length?void 0:{kind:0,candidates:l,resolvedSignature:u};case 1:var d=s.called;if(o&&!a(i,r,e.isIdentifier(d)?d.parent:d))return;if(0!==(l=e.getPossibleGenericSignatures(d,c,n)).length)return{kind:0,candidates:l,resolvedSignature:e.first(l)};var p=n.getSymbolAtLocation(d);return p&&{kind:1,symbol:p};case 2:return{kind:0,candidates:[s.signature],resolvedSignature:s.signature};default:return e.Debug.assertNever(s)}}(b,p,n,m,f);return d.throwIfCancellationRequested(),E?p.runWithCancellationToken(d,function(e){return 0===E.kind?y(E.candidates,E.resolvedSignature,b,n,e):function(e,t,n,r){var i=t.argumentCount,a=t.argumentsSpan,o=t.invocation,s=t.argumentIndex,c=r.getLocalTypeParametersOfClassOrInterfaceOrTypeAlias(e);if(c)return{items:[v(e,c,r,h(o),n)],applicableSpan:a,selectedItemIndex:0,argumentIndex:s,argumentCount:i}}(E.symbol,b,n,e)}):e.isSourceFileJS(n)?function(t,n,r){if(2!==t.invocation.kind){var i=_(t.invocation),a=e.isPropertyAccessExpression(i)?i.name.text:void 0,o=n.getTypeChecker();return void 0===a?void 0:e.firstDefined(n.getSourceFiles(),function(n){return e.firstDefined(n.getNamedDeclarations().get(a),function(e){var i=e.symbol&&o.getTypeOfSymbolAtLocation(e.symbol,e),a=i&&i.getCallSignatures();if(a&&a.length)return o.runWithCancellationToken(r,function(e){return y(a,a[0],t,n,e,!0)})})})}}(b,t,d):void 0}}}},function(e){e[e.Candidate=0]="Candidate",e[e.Type=1]="Type"}(i||(i={})),t.getArgumentInfoForCompletions=function(e,t,n){var r=s(e,t,n);return!r||r.isTypeParameterList||0!==r.invocation.kind?void 0:{invocation:r.invocation.node,argumentCount:r.argumentCount,argumentIndex:r.argumentIndex}};var g=70246400;function y(t,r,i,a,o,s){var c,l=i.isTypeParameterList,u=i.argumentCount,d=i.argumentsSpan,p=i.invocation,m=i.argumentIndex,f=h(p),g=2===p.kind?p.symbol:o.getSymbolAtLocation(_(p))||s&&(null===(c=r.declaration)||void 0===c?void 0:c.symbol),y=g?e.symbolToDisplayParts(o,g,s?a:void 0,void 0):e.emptyArray,v=e.map(t,function(t){return function(t,r,i,a,o,s){var c=(i?E:x)(t,a,o,s);return e.map(c,function(i){var s=i.isVariadic,c=i.parameters,l=i.prefix,u=i.suffix,d=n(n([],r,!0),l,!0),p=n(n([],u,!0),function(t,n,r){return e.mapToDisplayParts(function(e){e.writePunctuation(":"),e.writeSpace(" ");var i=r.getTypePredicateOfSignature(t);i?r.writeTypePredicate(i,n,void 0,e):r.writeType(r.getReturnTypeOfSignature(t),n,void 0,e)})}(t,o,a),!0),m=t.getDocumentationComment(a),f=t.getJsDocTags();return{isVariadic:s,prefixDisplayParts:d,suffixDisplayParts:p,separatorDisplayParts:b,parameters:c,documentation:m,tags:f}})}(t,y,l,o,f,a)});0!==m&&e.Debug.assertLessThan(m,u);for(var S=0,T=0,C=0;C1))for(var L=0,A=0,N=D;A=u){S=T+L;break}L++}T+=D.length}e.Debug.assert(-1!==S);var I={items:e.flatMapToMutable(v,e.identity),applicableSpan:d,selectedItemIndex:S,argumentIndex:m,argumentCount:u},P=I.items[S];if(P.isVariadic){var w=e.findIndex(P.parameters,function(e){return!!e.isRest});-1t?e.substr(0,t-3)+"...":e}function b(t){var n=e.createPrinter({removeComments:!0});return e.usingSingleLineStringWriter(function(i){var a=u.typeToTypeNode(t,void 0,71286784,i);e.Debug.assertIsDefined(a,"should always get typenode"),n.writeNode(4,a,r,i)})}function E(t){if((e.isParameterDeclaration(t)||e.isVariableDeclaration(t)&&e.isVarConst(t))&&t.initializer){var n=e.skipParentheses(t.initializer);return!(g(n)||e.isNewExpression(n)||e.isObjectLiteralExpression(n)||e.isAssertionExpression(n))}return!0}}}(e.InlayHints||(e.InlayHints={}))}(c||(c={})),function(e){var t=/^data:(?:application\/json(?:;charset=[uU][tT][fF]-8);base64,([A-Za-z0-9+\/=]+)$)?/;function n(t,n,r){var i=e.tryParseRawSourceMap(n);if(i&&i.sources&&i.file&&i.mappings&&(!i.sourcesContent||!i.sourcesContent.some(e.isString)))return e.createDocumentPositionMapper(t,i,r)}e.getSourceMapper=function(t){var n=e.createGetCanonicalFileName(t.useCaseSensitiveFileNames()),r=t.getCurrentDirectory(),i=new e.Map,a=new e.Map;return{tryGetSourcePosition:function t(n){if(e.isDeclarationFileName(n.fileName)&&c(n.fileName)){var r=s(n.fileName).getSourcePosition(n);return r&&r!==n?t(r)||r:void 0}},tryGetGeneratedPosition:function(i){if(!e.isDeclarationFileName(i.fileName)){var a=c(i.fileName);if(a){var o=t.getProgram();if(!o.isSourceOfProjectReferenceRedirect(a.fileName)){var l=o.getCompilerOptions(),u=e.outFile(l),d=u?e.removeFileExtension(u)+".d.ts":e.getDeclarationEmitOutputFilePathWorker(i.fileName,o.getCompilerOptions(),r,o.getCommonSourceDirectory(),n);if(void 0!==d){var p=s(d,i.fileName).getGeneratedPosition(i);return p===i?void 0:p}}}}},toLineColumnOffset:function(e,t){return l(e).getLineAndCharacterOfPosition(t)},clearCache:function(){i.clear(),a.clear()}};function o(t){return e.toPath(t,r,n)}function s(r,i){var s,c=o(r),u=a.get(c);if(u)return u;if(t.getDocumentPositionMapper)s=t.getDocumentPositionMapper(r,i);else if(t.readFile){var d=l(r);s=d&&e.getDocumentPositionMapper({getSourceFileLike:l,getCanonicalFileName:n,log:function(e){return t.log(e)}},r,e.getLineInfo(d.text,e.getLineStarts(d)),function(e){return!t.fileExists||t.fileExists(e)?t.readFile(e):void 0})}return a.set(c,s||e.identitySourceMapConsumer),s||e.identitySourceMapConsumer}function c(e){var n=t.getProgram();if(n){var r=o(e),i=n.getSourceFileByPath(r);return i&&i.resolvedPath===r?i:void 0}}function l(n){return t.getSourceFileLike?t.getSourceFileLike(n):c(n)||function(n){var r=o(n),a=i.get(r);if(void 0!==a)return a||void 0;if(t.readFile&&(!t.fileExists||t.fileExists(r))){var s=t.readFile(r),c=!!s&&function(t){return{text:t,lineMap:void 0,getLineAndCharacterOfPosition:function(t){return e.computeLineAndCharacterOfPosition(e.getLineStarts(this),t)}}}(s);return i.set(r,c),c||void 0}i.set(r,!1)}(n)}},e.getDocumentPositionMapper=function(r,i,a,o){var s=e.tryGetSourceMappingURL(a);if(s){var c=t.exec(s);if(c){if(c[1]){var l=c[1];return n(r,e.base64decode(e.sys,l),i)}s=void 0}}var u=[];s&&u.push(s),u.push(i+".map");for(var d=s&&e.getNormalizedAbsolutePath(s,e.getDirectoryPath(i)),p=0,m=u;pr)&&(t.arguments.length0?e.arrayFrom(r.values()).join(","):""},t.getSymbolDisplayPartsDocumentationAndSymbolKind=function t(a,o,s,c,l,u,d){var p;void 0===u&&(u=e.getMeaningFromLocation(l));var m,f,_,h,g=[],y=[],v=[],b=e.getCombinedLocalAndExportSymbolFlags(o),E=1&u?i(a,o,l):"",x=!1,S=108===l.kind&&e.isInExpressionContext(l)||e.isThisInTypeQuery(l),T=!1;if(108===l.kind&&!S)return{displayParts:[e.keywordPart(108)],documentation:[],symbolKind:"primitive type",tags:void 0};if(""!==E||32&b||2097152&b){if("getter"===E||"setter"===E)if($=e.find(o.declarations,function(e){return e.name===l}))switch($.kind){case 174:E="getter";break;case 175:E="setter";break;case 169:E="accessor";break;default:e.Debug.assertNever($)}else E="property";var C=void 0;if(m=S?a.getTypeAtLocation(l):a.getTypeOfSymbolAtLocation(o,l),l.parent&&208===l.parent.kind){var D=l.parent.name;(D===l||D&&0===D.getFullWidth())&&(l=l.parent)}var L=void 0;if(e.isCallOrNewExpression(l)?L=l:(e.isCallExpressionTarget(l)||e.isNewExpressionTarget(l)||l.parent&&(e.isJsxOpeningLikeElement(l.parent)||e.isTaggedTemplateExpression(l.parent))&&e.isFunctionLike(o.valueDeclaration))&&(L=l.parent),L){C=a.getResolvedSignature(L);var A=211===L.kind||e.isCallExpression(L)&&106===L.expression.kind,N=A?m.getConstructSignatures():m.getCallSignatures();if(!C||e.contains(N,C.target)||e.contains(N,C)||(C=N.length?N[0]:void 0),C){switch(A&&32&b?(E="constructor",te(m.symbol,E)):2097152&b?(ne(E="alias"),g.push(e.spacePart()),A&&(4&C.flags&&(g.push(e.keywordPart(126)),g.push(e.spacePart())),g.push(e.keywordPart(103)),g.push(e.spacePart())),ee(o)):te(o,E),E){case"JSX attribute":case"property":case"var":case"const":case"let":case"parameter":case"local var":g.push(e.punctuationPart(58)),g.push(e.spacePart()),16&e.getObjectFlags(m)||!m.symbol||(e.addRange(g,e.symbolToDisplayParts(a,m.symbol,c,void 0,5)),g.push(e.lineBreakPart())),A&&(4&C.flags&&(g.push(e.keywordPart(126)),g.push(e.spacePart())),g.push(e.keywordPart(103)),g.push(e.spacePart())),re(C,N,262144);break;default:re(C,N)}x=!0,T=N.length>1}}else if(e.isNameOfFunctionDeclaration(l)&&!(98304&b)||135===l.kind&&173===l.parent.kind){var k=l.parent,I=o.declarations&&e.find(o.declarations,function(e){return e===(135===l.kind?k.parent:k)});I&&(N=173===k.kind?m.getNonNullableType().getConstructSignatures():m.getNonNullableType().getCallSignatures(),C=a.isImplementationOfOverload(k)?N[0]:a.getSignatureFromDeclaration(k),173===k.kind?(E="constructor",te(m.symbol,E)):te(176!==k.kind||2048&m.symbol.flags||4096&m.symbol.flags?o:m.symbol,E),C&&re(C,N),x=!0,T=N.length>1)}}if(32&b&&!x&&!S&&(Q(),e.getDeclarationOfKind(o,228)?ne("local class"):g.push(e.keywordPart(84)),g.push(e.spacePart()),ee(o),ie(o,s)),64&b&&2&u&&(Y(),g.push(e.keywordPart(118)),g.push(e.spacePart()),ee(o),ie(o,s)),524288&b&&2&u&&(Y(),g.push(e.keywordPart(154)),g.push(e.spacePart()),ee(o),ie(o,s),g.push(e.spacePart()),g.push(e.operatorPart(63)),g.push(e.spacePart()),e.addRange(g,e.typeToDisplayParts(a,e.isConstTypeReference(l.parent)?a.getTypeAtLocation(l.parent):a.getDeclaredTypeOfSymbol(o),c,8388608))),384&b&&(Y(),e.some(o.declarations,function(t){return e.isEnumDeclaration(t)&&e.isEnumConst(t)})&&(g.push(e.keywordPart(85)),g.push(e.spacePart())),g.push(e.keywordPart(92)),g.push(e.spacePart()),ee(o)),1536&b&&!S){Y();var P=($=e.getDeclarationOfKind(o,264))&&$.name&&79===$.name.kind;g.push(e.keywordPart(P?143:142)),g.push(e.spacePart()),ee(o)}if(262144&b&&2&u)if(Y(),g.push(e.punctuationPart(20)),g.push(e.textPart("type parameter")),g.push(e.punctuationPart(21)),g.push(e.spacePart()),ee(o),o.parent)Z(),ee(o.parent,c),ie(o.parent,c);else{var w=e.getDeclarationOfKind(o,165);if(void 0===w)return e.Debug.fail();($=w.parent)&&(e.isFunctionLikeKind($.kind)?(Z(),C=a.getSignatureFromDeclaration($),177===$.kind?(g.push(e.keywordPart(103)),g.push(e.spacePart())):176!==$.kind&&$.name&&ee($.symbol),e.addRange(g,e.signatureToDisplayParts(a,C,s,32))):262===$.kind&&(Z(),g.push(e.keywordPart(154)),g.push(e.spacePart()),ee($.symbol),ie($.symbol,s)))}if(8&b&&(E="enum member",te(o,"enum member"),302===(null==($=null===(p=o.declarations)||void 0===p?void 0:p[0])?void 0:$.kind))){var O=a.getConstantValue($);void 0!==O&&(g.push(e.spacePart()),g.push(e.operatorPart(63)),g.push(e.spacePart()),g.push(e.displayPart(e.getTextOfConstantValue(O),"number"==typeof O?e.SymbolDisplayPartKind.numericLiteral:e.SymbolDisplayPartKind.stringLiteral)))}if(2097152&o.flags){if(Y(),!x){var R=a.getAliasedSymbol(o);if(R!==o&&R.declarations&&R.declarations.length>0){var M=R.declarations[0],F=e.getNameOfDeclaration(M);if(F){var G=e.isModuleWithStringLiteralName(M)&&e.hasSyntacticModifier(M,2),B="default"!==o.name&&!G,U=t(a,R,e.getSourceFileOfNode(M),M,F,u,B?o:R);g.push.apply(g,U.displayParts),g.push(e.lineBreakPart()),_=U.documentation,h=U.tags}else _=R.getContextualDocumentationComment(M,a),h=R.getJsDocTags(a)}}if(o.declarations)switch(o.declarations[0].kind){case 267:g.push(e.keywordPart(93)),g.push(e.spacePart()),g.push(e.keywordPart(143));break;case 274:g.push(e.keywordPart(93)),g.push(e.spacePart()),g.push(e.keywordPart(o.declarations[0].isExportEquals?63:88));break;case 278:g.push(e.keywordPart(93));break;default:g.push(e.keywordPart(100))}g.push(e.spacePart()),ee(o),e.forEach(o.declarations,function(t){if(268===t.kind){var n=t;if(e.isExternalModuleImportEqualsDeclaration(n))g.push(e.spacePart()),g.push(e.operatorPart(63)),g.push(e.spacePart()),g.push(e.keywordPart(147)),g.push(e.punctuationPart(20)),g.push(e.displayPart(e.getTextOfNode(e.getExternalModuleImportEqualsDeclarationExpression(n)),e.SymbolDisplayPartKind.stringLiteral)),g.push(e.punctuationPart(21));else{var r=a.getSymbolAtLocation(n.moduleReference);r&&(g.push(e.spacePart()),g.push(e.operatorPart(63)),g.push(e.spacePart()),ee(r,c))}return!0}})}if(!x)if(""!==E){if(m)if(S?(Y(),g.push(e.keywordPart(108))):te(o,E),"property"===E||"accessor"===E||"getter"===E||"setter"===E||"JSX attribute"===E||3&b||"local var"===E||"index"===E||S){if(g.push(e.punctuationPart(58)),g.push(e.spacePart()),m.symbol&&262144&m.symbol.flags&&"index"!==E){var V=e.mapToDisplayParts(function(t){var r=a.typeParameterToDeclaration(m,c,n);X().writeNode(4,r,e.getSourceFileOfNode(e.getParseTreeNode(c)),t)});e.addRange(g,V)}else e.addRange(g,e.typeToDisplayParts(a,m,c));if(o.target&&o.target.tupleLabelDeclaration){var K=o.target.tupleLabelDeclaration;e.Debug.assertNode(K.name,e.isIdentifier),g.push(e.spacePart()),g.push(e.punctuationPart(20)),g.push(e.textPart(e.idText(K.name))),g.push(e.punctuationPart(21))}}else(16&b||8192&b||16384&b||131072&b||98304&b||"method"===E)&&(N=m.getNonNullableType().getCallSignatures()).length&&(re(N[0],N),T=N.length>1)}else E=r(a,o,l);if(0!==y.length||T||(y=o.getContextualDocumentationComment(c,a)),0===y.length&&4&b&&o.parent&&o.declarations&&e.forEach(o.parent.declarations,function(e){return 308===e.kind}))for(var j=0,H=o.declarations;j0))break}if(0===y.length&&e.isIdentifier(l)&&o.valueDeclaration&&e.isBindingElement(o.valueDeclaration)){var $,q=($=o.valueDeclaration).parent;if(e.isIdentifier($.name)&&e.isObjectBindingPattern(q)){var z=e.getTextOfIdentifierOrLiteral($.name),J=a.getTypeAtLocation(q);y=e.firstDefined(J.isUnion()?J.types:[J],function(e){var t=e.getProperty(z);return t?t.getDocumentationComment(a):void 0})||e.emptyArray}}return 0!==v.length||T||(v=o.getContextualJsDocTags(c,a)),0===y.length&&_&&(y=_),0===v.length&&h&&(v=h),{displayParts:g,documentation:y,symbolKind:E,tags:0===v.length?void 0:v};function X(){return f||(f=e.createPrinter({removeComments:!0})),f}function Y(){g.length&&g.push(e.lineBreakPart()),Q()}function Q(){d&&(ne("alias"),g.push(e.spacePart()))}function Z(){g.push(e.spacePart()),g.push(e.keywordPart(101)),g.push(e.spacePart())}function ee(t,n){var r;d&&t===o&&(t=d),"index"===E&&(r=a.getIndexInfosOfIndexSymbol(t));var i=[];131072&t.flags&&r?(t.parent&&(i=e.symbolToDisplayParts(a,t.parent)),i.push(e.punctuationPart(22)),r.forEach(function(t,n){i.push.apply(i,e.typeToDisplayParts(a,t.keyType)),n!==r.length-1&&(i.push(e.spacePart()),i.push(e.punctuationPart(51)),i.push(e.spacePart()))}),i.push(e.punctuationPart(23))):i=e.symbolToDisplayParts(a,t,n||s,void 0,7),e.addRange(g,i),16777216&o.flags&&g.push(e.punctuationPart(57))}function te(t,n){Y(),n&&(ne(n),t&&!e.some(t.declarations,function(t){return e.isArrowFunction(t)||(e.isFunctionExpression(t)||e.isClassExpression(t))&&!t.name})&&(g.push(e.spacePart()),ee(t)))}function ne(t){switch(t){case"var":case"function":case"let":case"const":case"constructor":return void g.push(e.textOrKeywordPart(t));default:return g.push(e.punctuationPart(20)),g.push(e.textOrKeywordPart(t)),void g.push(e.punctuationPart(21))}}function re(t,n,r){void 0===r&&(r=0),e.addRange(g,e.signatureToDisplayParts(a,t,c,32|r)),n.length>1&&(g.push(e.spacePart()),g.push(e.punctuationPart(20)),g.push(e.operatorPart(39)),g.push(e.displayPart((n.length-1).toString(),e.SymbolDisplayPartKind.numericLiteral)),g.push(e.spacePart()),g.push(e.textPart(2===n.length?"overload":"overloads")),g.push(e.punctuationPart(21))),y=t.getDocumentationComment(a),v=t.getJsDocTags(),n.length>1&&0===y.length&&0===v.length&&(y=n[0].getDocumentationComment(a),v=n[0].getJsDocTags().filter(function(e){return"deprecated"!==e.name}))}function ie(t,r){var i=e.mapToDisplayParts(function(i){var o=a.symbolToTypeParameterDeclarations(t,r,n);X().writeList(53776,o,e.getSourceFileOfNode(e.getParseTreeNode(r)),i)});e.addRange(g,i)}}}(e.SymbolDisplay||(e.SymbolDisplay={}))}(c||(c={})),function(e){function t(t,n){var i=[],a=n.compilerOptions?r(n.compilerOptions,i):{},o=e.getDefaultCompilerOptions();for(var s in o)e.hasProperty(o,s)&&void 0===a[s]&&(a[s]=o[s]);for(var c=0,l=e.transpileOptionValueCompilerOptions;c>=o;return n}(f,m),0,r),c[l]=(p=1+((u=f)>>(d=m)&s),e.Debug.assert((p&s)===p,"Adding more rules into the sub-bucket than allowed. Maximum allowed is 32 rules."),u&~(s<=n.pos?t.pos:a.end:t.pos}(o,n,r),n.end,function(s){return p(n,o,t.SmartIndenter.getIndentationForNode(o,n,r,i.options),function(e,n,r){for(var i,a=-1;e;){var o=r.getLineAndCharacterOfPosition(e.getStart(r)).line;if(-1!==a&&o!==a)break;if(t.SmartIndenter.shouldIndentChildNode(n,e,i,r))return n.indentSize;a=o,i=e,e=e.parent}return 0}(o,i.options,r),s,i,a,function(t,n){if(!t.length)return a;var r=t.filter(function(t){return e.rangeOverlapsWithStartEnd(n,t.start,t.start+t.length)}).sort(function(e,t){return e.start-t.start});if(!r.length)return a;var i=0;return function(t){for(;;){if(i>=r.length)return!1;var n=r[i];if(t.end<=n.start)return!1;if(e.startEndOverlapsWithStartEnd(t.pos,t.end,n.start,n.start+n.length))return!0;i++}};function a(){return!1}}(r.parseDiagnostics,n),r)})}function p(n,r,i,a,o,s,c,l,u){var d,p,f,_,h,g,y=s.options,v=s.getRules,b=s.host,E=new t.FormattingContext(u,c,y),x=-1,S=[];if(o.advance(),o.isOnToken()){var T=u.getLineAndCharacterOfPosition(r.getStart(u)).line,C=T;e.hasDecorators(r)&&(C=u.getLineAndCharacterOfPosition(e.getNonDecoratorTokenPosOfNode(r,u)).line),function r(i,a,s,c,d,m){if(e.rangeOverlapsWithStartEnd(n,i.getStart(u),i.getEnd())){var _=k(i,s,d,m),h=a;for(e.forEachChild(i,function(e){b(e,-1,i,_,s,c,!1)},function(r){!function(r,a,s,c){e.Debug.assert(e.isNodeArray(r)),e.Debug.assert(!e.nodeIsSynthesized(r));var l=function(e,t){switch(e.kind){case 173:case 259:case 215:case 171:case 170:case 216:case 176:case 177:case 181:case 182:case 174:case 175:if(e.typeParameters===t)return 29;if(e.parameters===t)return 20;break;case 210:case 211:if(e.typeArguments===t)return 29;if(e.arguments===t)return 20;break;case 260:case 228:case 261:case 262:if(e.typeParameters===t)return 29;break;case 180:case 212:case 183:case 230:case 202:if(e.typeArguments===t)return 29;break;case 184:return 18}return 0}(a,r),d=c,p=s;if(e.rangeOverlapsWithStartEnd(n,r.pos,r.end)){if(0!==l)for(;o.isOnToken()&&o.getStartPos()r.pos);)if(g.token.kind===l){p=u.getLineAndCharacterOfPosition(g.token.pos).line,E(g,a,c,a);var m=void 0;if(-1!==x)m=x;else{var f=e.getLineStartPositionForPosition(g.token.pos,u);m=t.SmartIndenter.findFirstNonWhitespaceColumn(f,g.token.pos,u,y)}d=k(a,s,m,y.indentSize)}else E(g,a,c,a);for(var _=-1,h=0;hMath.min(i.end,n.end))break;E(v,i,_,i)}}function b(a,s,c,l,d,p,m,f){if(e.Debug.assert(!e.nodeIsSynthesized(a)),e.nodeIsMissing(a))return s;var _=a.getStart(u),v=u.getLineAndCharacterOfPosition(_).line,b=v;e.hasDecorators(a)&&(b=u.getLineAndCharacterOfPosition(e.getNonDecoratorTokenPosOfNode(a,u)).line);var S=-1;if(m&&e.rangeContainsRange(n,c)&&(S=function(n,r,i,a,o){if(e.rangeOverlapsWithStartEnd(a,n,r)||e.rangeContainsStartEnd(a,n,r)){if(-1!==o)return o}else{var s=u.getLineAndCharacterOfPosition(n).line,c=e.getLineStartPositionForPosition(n,u),l=t.SmartIndenter.findFirstNonWhitespaceColumn(c,n,u,y);if(s!==i||n===l){var d=t.SmartIndenter.getBaseIndentation(y);return d>l?d:l}}return-1}(_,a.end,d,n,s),-1!==S&&(s=S)),!e.rangeOverlapsWithStartEnd(n,a.pos,a.end))return a.endn.end)return s;if(T.token.end>_){T.token.pos>_&&o.skipToStartOf(a);break}E(T,i,l,i)}if(!o.isOnToken()||o.getStartPos()>=n.end)return s;if(e.isToken(a)){var T=o.readTokenInfo(a);if(11!==a.kind)return e.Debug.assert(T.token.end===a.end,"Token end is child end"),E(T,i,l,a),s}var C=167===a.kind?v:p,D=function(e,n,r,i,a,o){var s=t.SmartIndenter.shouldIndentChildNode(y,e)?y.indentSize:0;return o===n?{indentation:n===g?x:a.getIndentation(),delta:Math.min(y.indentSize,a.getDelta(e)+s)}:-1===r?20===e.kind&&n===g?{indentation:x,delta:a.getDelta(e)}:t.SmartIndenter.childStartsOnTheSameLineWithElseInIfStatement(i,e,n,u)||t.SmartIndenter.childIsUnindentedBranchOfConditionalExpression(i,e,n,u)||t.SmartIndenter.argumentStartsOnSameLineAsPreviousArgument(i,e,n,u)?{indentation:a.getIndentation(),delta:s}:{indentation:a.getIndentation()+a.getDelta(e),delta:s}:{indentation:r,delta:s}}(a,v,S,i,l,C);return r(a,h,v,b,D.indentation,D.delta),h=i,f&&206===c.kind&&-1===s&&(s=D.indentation),s}function E(t,r,i,a,s){e.Debug.assert(e.rangeContainsRange(r,t.token));var c=o.lastTrailingTriviaWasNewLine(),d=!1;t.leadingTrivia&&P(t.leadingTrivia,r,h,i);var m=0,_=e.rangeContainsRange(n,t.token),y=u.getLineAndCharacterOfPosition(t.token.pos);if(_){var v=l(t.token),b=f;if(m=w(t.token,y,r,h,i),!v)if(0===m){var E=b&&u.getLineAndCharacterOfPosition(b.end).line;d=c&&y.line!==E}else d=1===m}if(t.trailingTrivia&&(p=e.last(t.trailingTrivia).end,P(t.trailingTrivia,r,h,i)),d){var S=_&&!l(t.token)?i.getIndentationForToken(y.line,t.token.kind,a,!!s):-1,T=!0;if(t.leadingTrivia){var C=i.getIndentationForComment(t.token.kind,S,a);T=I(t.leadingTrivia,C,T,function(e){return R(e.pos,C,!1)})}-1!==S&&T&&(R(t.token.pos,S,1===m),g=y.line,x=S)}o.advance(),h=r}}(r,r,T,C,i,a)}if(!o.isOnToken()){var D=t.SmartIndenter.nodeWillIndentChild(y,r,void 0,u,!1)?i+y.indentSize:i,L=o.getCurrentLeadingTrivia();L&&(I(L,D,!1,function(e){return w(e,u.getLineAndCharacterOfPosition(e.pos),r,r,void 0)}),!1!==y.trimTrailingWhitespace&&function(t){for(var r=f?f.end:n.pos,i=0,a=t;i=n.end){var A=o.isOnEOF()?o.readEOFTokenRange():o.isOnToken()?o.readTokenInfo(r).token:void 0;if(A&&A.pos===p){var N=(null===(d=e.findPrecedingToken(A.end,u,r))||void 0===d?void 0:d.parent)||_;O(A,u.getLineAndCharacterOfPosition(A.pos).line,N,f,h,_,N,void 0)}}return S;function k(n,r,i,a){return{getIndentationForComment:function(e,t,n){switch(e){case 19:case 23:case 21:return i+o(n)}return-1!==t?t:i},getIndentationForToken:function(t,a,s,c){return!c&&function(t,i,a){switch(i){case 18:case 19:case 21:case 91:case 115:case 59:return!1;case 43:case 31:switch(a.kind){case 283:case 284:case 282:return!1}break;case 22:case 23:if(197!==a.kind)return!1}return r!==t&&!(e.hasDecorators(n)&&i===function(t){if(e.canHaveModifiers(t)){var n=e.find(t.modifiers,e.isModifier,e.findIndex(t.modifiers,e.isDecorator));if(n)return n.kind}switch(t.kind){case 260:return 84;case 261:return 118;case 259:return 98;case 263:return 263;case 174:return 137;case 175:return 151;case 171:if(t.asteriskToken)return 41;case 169:case 166:var r=e.getNameOfDeclaration(t);if(r)return r.kind}}(n))}(t,a,s)?i+o(s):i},getIndentation:function(){return i},getDelta:o,recomputeIndentation:function(e,r){t.SmartIndenter.shouldIndentChildNode(y,r,n,u)&&(i+=e?y.indentSize:-y.indentSize,a=t.SmartIndenter.shouldIndentChildNode(y,n)?y.indentSize:0)}};function o(e){return t.SmartIndenter.nodeWillIndentChild(y,n,e,u,!0)?a:0}}function I(t,r,i,a){for(var o=0,s=t;o0){var S=m(x,y);V(b,E.character,S)}else U(b,E.character)}}}else i||R(n.pos,r,!1)}function F(t,n,r){for(var i=t;io)){var s=G(a,o);-1!==s&&(e.Debug.assert(s===a||!e.isWhiteSpaceSingleLine(u.text.charCodeAt(s-1))),U(s,o+1-s))}}}function G(t,n){for(var r=n;r>=t&&e.isWhiteSpaceSingleLine(u.text.charCodeAt(r));)r--;return r!==n?r+1:-1}function B(e,t,n){F(u.getLineAndCharacterOfPosition(e).line,u.getLineAndCharacterOfPosition(t).line+1,n)}function U(t,n){n&&S.push(e.createTextChangeFromStartLength(t,n,""))}function V(t,n,r){(n||r)&&S.push(e.createTextChangeFromStartLength(t,n,r))}}function m(t,n){if((!i||i.tabSize!==n.tabSize||i.indentSize!==n.indentSize)&&(i={tabSize:n.tabSize,indentSize:n.indentSize},a=o=void 0),n.convertTabsToSpaces){var r=void 0,s=Math.floor(t/n.indentSize),c=t%n.indentSize;return o||(o=[]),void 0===o[s]?(r=e.repeatString(" ",n.indentSize*s),o[s]=r):r=o[s],c?r+e.repeatString(" ",c):r}var l=Math.floor(t/n.tabSize),u=t-l*n.tabSize,d=void 0;return a||(a=[]),void 0===a[l]?a[l]=d=e.repeatString("\t",l):d=a[l],u?d+e.repeatString(" ",u):d}t.createTextRangeWithKind=function(t,n,r){var i={pos:t,end:n,kind:r};return e.Debug.isDebugging&&Object.defineProperty(i,"__debugKind",{get:function(){return e.Debug.formatSyntaxKind(r)}}),i},function(e){e[e.Unknown=-1]="Unknown"}(n||(n={})),t.formatOnEnter=function(t,n,r){var i=n.getLineAndCharacterOfPosition(t).line;if(0===i)return[];for(var a=e.getEndLinePosition(i,n);e.isWhiteSpaceSingleLine(n.text.charCodeAt(a));)a--;return e.isLineBreak(n.text.charCodeAt(a))&&a--,d({pos:e.getStartPositionOfLine(i-1,n),end:a+1},n,r,2)},t.formatOnSemicolon=function(e,t,n){return u(c(s(e,26,t)),t,n,3)},t.formatOnOpeningCurly=function(t,n,r){var i=s(t,18,n);if(!i)return[];var a=c(i.parent);return d({pos:e.getLineStartPositionForPosition(a.getStart(n),n),end:t},n,r,4)},t.formatOnClosingCurly=function(e,t,n){return u(c(s(e,19,t)),t,n,5)},t.formatDocument=function(e,t){return d({pos:0,end:e.text.length},e,t,0)},t.formatSelection=function(t,n,r,i){return d({pos:e.getLineStartPositionForPosition(t,r),end:n},r,i,1)},t.formatNodeGivenIndentation=function(e,n,r,i,a,o){var s={pos:e.pos,end:e.end};return t.getFormattingScanner(n.text,r,s.pos,s.end,function(t){return p(s,e,i,a,t,o,1,function(e){return!1},n)})},function(e){e[e.None=0]="None",e[e.LineAdded=1]="LineAdded",e[e.LineRemoved=2]="LineRemoved"}(r||(r={})),t.getRangeOfEnclosingComment=function(t,n,r,i){void 0===i&&(i=e.getTokenAtPosition(t,n));var a=e.findAncestor(i,e.isJSDoc);if(a&&(i=a.parent),!(i.getStart(t)<=n&&nn.end}var v=s(_,e,i),b=v.line===t.line||p(_,e,t.line,i);if(g){var E=null===(f=m(e,i))||void 0===f?void 0:f[0],S=h(e,i,l,!!E&&u(E,i).line>v.line);if(-1!==S)return S+r;if(-1!==(S=c(e,_,t,b,i,l)))return S+r}x(l,_,e,i,o)&&!b&&(r+=l.indentSize);var T=d(_,e,t.line,i);_=(e=_).parent,t=T?i.getLineAndCharacterOfPosition(e.getStart(i)):v}return r+a(l)}function s(e,t,n){var r=m(t,n),i=r?r.pos:e.getStart(n);return n.getLineAndCharacterOfPosition(i)}function c(t,n,r,i,a,o){return!e.isDeclaration(t)&&!e.isStatementButNotDeclaration(t)||308!==n.kind&&i?-1:y(r,a,o)}function l(t,n,r,i){var a=e.findNextToken(t,n,i);return a?18===a.kind?1:19===a.kind&&r===u(a,i).line?2:0:0}function u(e,t){return t.getLineAndCharacterOfPosition(e.getStart(t))}function d(t,n,r,i){if(!e.isCallExpression(t)||!e.contains(t.arguments,n))return!1;var a=t.expression.getEnd();return e.getLineAndCharacterOfPosition(i,a).line===r}function p(t,n,r,i){if(242===t.kind&&t.elseStatement===n){var a=e.findChildOfKind(t,91,i);return e.Debug.assert(void 0!==a),u(a,i).line===r}return!1}function m(e,t){return e.parent&&f(e.getStart(t),e.getEnd(),e.parent,t)}function f(t,n,r,i){switch(r.kind){case 180:return a(r.typeArguments);case 207:return a(r.properties);case 206:case 272:case 276:case 203:case 204:return a(r.elements);case 184:return a(r.members);case 259:case 215:case 216:case 171:case 170:case 176:case 173:case 182:case 177:return a(r.typeParameters)||a(r.parameters);case 174:return a(r.parameters);case 260:case 228:case 261:case 262:case 347:return a(r.typeParameters);case 211:case 210:return a(r.typeArguments)||a(r.arguments);case 258:return a(r.declarations)}function a(a){return a&&e.rangeContainsStartEnd(function(e,t,n){for(var r=e.getChildren(n),i=1;i=0&&n=0;o--)if(27!==t[o].kind){if(r.getLineAndCharacterOfPosition(t[o].end).line!==a.line)return y(a,r,i);a=u(t[o],r)}return-1}function y(e,t,n){var r=t.getPositionOfLineAndCharacter(e.line,0);return b(r,r+e.character,t,n)}function v(t,n,r,i){for(var a=0,o=0,s=t;sr.text.length)return a(i);if(i.indentStyle===e.IndentStyle.None)return 0;var c=e.findPrecedingToken(n,r,void 0,!0),d=t.getRangeOfEnclosingComment(r,n,c||null);if(d&&3===d.kind)return function(t,n,r,i){var a=e.getLineAndCharacterOfPosition(t,n).line-1,o=e.getLineAndCharacterOfPosition(t,i.pos).line;if(e.Debug.assert(o>=0),a<=o)return b(e.getStartPositionOfLine(o,t),n,t,r);var s=e.getStartPositionOfLine(a,t),c=v(s,n,t,r),l=c.column,u=c.character;return 0===l?l:42===t.text.charCodeAt(s+u)?l-1:l}(r,n,i,d);if(!c)return a(i);if(e.isStringOrRegularExpressionOrTemplateLiteral(c.kind)&&c.getStart(r)<=n&&n0;){var a=t.text.charCodeAt(i);if(!e.isWhiteSpaceLike(a))break;i--}return b(e.getLineStartPositionForPosition(i,t),i,t,r)}(r,n,i);if(27===c.kind&&223!==c.parent.kind){var E=function(t,n,r){var i=e.findListItemInfo(t);return i&&i.listItemIndex>0?g(i.list.getChildren(),i.listItemIndex-1,n,r):-1}(c,r,i);if(-1!==E)return E}var S=function(e,t,n){return t&&f(e,e,t,n)}(n,c.parent,r);if(S&&!e.rangeContainsRange(S,c)){var T=-1!==[215,216].indexOf(m.parent.kind)?0:i.indentSize;return _(S,r,i)+T}return function(t,n,r,i,s,c){for(var d,p=r;p;){if(e.positionBelongsToNode(p,n,t)&&x(c,p,d,t,!0)){var m=u(p,t),f=l(r,p,i,t);return o(p,m,void 0,0!==f?s&&2===f?c.indentSize:0:i!==m.line?c.indentSize:0,t,!0,c)}var _=h(p,t,c,!0);if(-1!==_)return _;d=p,p=p.parent}return a(c)}(r,n,c,p,s,i)},n.getIndentationForNode=function(e,t,n,r){var i=n.getLineAndCharacterOfPosition(e.getStart(n));return o(e,i,t,0,n,!1,r)},n.getBaseIndentation=a,function(e){e[e.Unknown=0]="Unknown",e[e.OpenBrace=1]="OpenBrace",e[e.CloseBrace=2]="CloseBrace"}(i||(i={})),n.isArgumentAndStartLineOverlapsExpressionBeingCalled=d,n.childStartsOnTheSameLineWithElseInIfStatement=p,n.childIsUnindentedBranchOfConditionalExpression=function(t,n,r,i){if(e.isConditionalExpression(t)&&(n===t.whenTrue||n===t.whenFalse)){var a=e.getLineAndCharacterOfPosition(i,t.condition.end).line;if(n===t.whenTrue)return r===a;var o=u(t.whenTrue,i).line,s=e.getLineAndCharacterOfPosition(i,t.whenTrue.end).line;return a===o&&s===r}return!1},n.argumentStartsOnSameLineAsPreviousArgument=function(t,n,r,i){if(e.isCallOrNewExpression(t)){if(!t.arguments)return!1;var a=e.find(t.arguments,function(e){return e.pos===n.pos});if(!a)return!1;var o=t.arguments.indexOf(a);if(0===o)return!1;var s=t.arguments[o-1];if(r===e.getLineAndCharacterOfPosition(i,s.getEnd()).line)return!0}return!1},n.getContainingList=m,n.findFirstNonWhitespaceCharacterAndColumn=v,n.findFirstNonWhitespaceColumn=b,n.nodeWillIndentChild=E,n.shouldIndentChildNode=x}((t=e.formatting||(e.formatting={})).SmartIndenter||(t.SmartIndenter={}))}(c||(c={})),function(e){!function(t){function i(t){var n=t.__pos;return e.Debug.assert("number"==typeof n),n}function a(t,n){e.Debug.assert("number"==typeof n),t.__pos=n}function o(t){var n=t.__end;return e.Debug.assert("number"==typeof n),n}function s(t,n){e.Debug.assert("number"==typeof n),t.__end=n}var c,l;function u(t,n){return e.skipTrivia(t,n,!1,!0)}!function(e){e[e.Exclude=0]="Exclude",e[e.IncludeAll=1]="IncludeAll",e[e.JSDoc=2]="JSDoc",e[e.StartLine=3]="StartLine"}(c=t.LeadingTriviaOption||(t.LeadingTriviaOption={})),function(e){e[e.Exclude=0]="Exclude",e[e.ExcludeWhitespace=1]="ExcludeWhitespace",e[e.Include=2]="Include"}(l=t.TrailingTriviaOption||(t.TrailingTriviaOption={}));var d,p={leadingTriviaOption:c.Exclude,trailingTriviaOption:l.Exclude};function m(e,t,n,r){return{pos:f(e,t,r),end:h(e,n,r)}}function f(t,n,r,i){var a,o;void 0===i&&(i=!1);var s=r.leadingTriviaOption;if(s===c.Exclude)return n.getStart(t);if(s===c.StartLine){var l=n.getStart(t),d=e.getLineStartPositionForPosition(l,t);return e.rangeContainsPosition(n,d)?d:l}if(s===c.JSDoc){var p=e.getJSDocCommentRanges(n,t.text);if(null==p?void 0:p.length)return e.getLineStartPositionForPosition(p[0].pos,t)}var m=n.getFullStart(),f=n.getStart(t);if(m===f)return f;var _=e.getLineStartPositionForPosition(m,t);if(e.getLineStartPositionForPosition(f,t)===_)return s===c.IncludeAll?m:f;if(i){var h=(null===(a=e.getLeadingCommentRanges(t.text,m))||void 0===a?void 0:a[0])||(null===(o=e.getTrailingCommentRanges(t.text,m))||void 0===o?void 0:o[0]);if(h)return e.skipTrivia(t.text,h.end,!0,!0)}var g=m>0?1:0,y=e.getStartPositionOfLine(e.getLineOfLocalPosition(t,_)+g,t);return y=u(t.text,y),e.getStartPositionOfLine(e.getLineOfLocalPosition(t,y),t)}function _(t,n,r){var i=n.end;if(r.trailingTriviaOption===l.Include){var a=e.getTrailingCommentRanges(t.text,i);if(a)for(var o=e.getLineOfLocalPosition(t,n.end),s=0,c=a;so)break;if(e.getLineOfLocalPosition(t,u.end)>o)return e.skipTrivia(t.text,u.end,!0,!0)}}}function h(t,n,r){var i,a=n.end,o=r.trailingTriviaOption;if(o===l.Exclude)return a;if(o===l.ExcludeWhitespace){var s=e.concatenate(e.getTrailingCommentRanges(t.text,a),e.getLeadingCommentRanges(t.text,a));return(null===(i=null==s?void 0:s[s.length-1])||void 0===i?void 0:i.end)||a}var c=_(t,n,r);if(c)return c;var u=e.skipTrivia(t.text,a,!0);return u===a||o!==l.Include&&!e.isLineBreak(t.text.charCodeAt(u-1))?a:u}function g(e,t){return!!t&&!!e.parent&&(27===t.kind||26===t.kind&&207===e.parent.kind)}!function(e){e[e.Remove=0]="Remove",e[e.ReplaceWithSingleNode=1]="ReplaceWithSingleNode",e[e.ReplaceWithMultipleNodes=2]="ReplaceWithMultipleNodes",e[e.Text=3]="Text"}(d||(d={})),t.isThisTypeAnnotatable=function(t){return e.isFunctionExpression(t)||e.isFunctionDeclaration(t)};var y,v=function(){function t(t,n){this.newLineCharacter=t,this.formatContext=n,this.changes=[],this.newFiles=[],this.classesWithNodesInsertedAtStart=new e.Map,this.deletedNodes=[]}return t.fromContext=function(n){return new t(e.getNewLineOrDefaultFromHost(n.host,n.formatContext.options),n.formatContext)},t.with=function(e,n){var r=t.fromContext(e);return n(r),r.getChanges()},t.prototype.pushRaw=function(t,n){e.Debug.assertEqual(t.fileName,n.fileName);for(var r=0,i=n.textChanges;r=t.getLineAndCharacterOfPosition(l.range.end).line+2)break}if(t.statements.length&&(void 0===u&&(u=t.getLineAndCharacterOfPosition(t.statements[0].getStart()).line),u",joiner:", "})},t.prototype.getOptionsForInsertNodeBefore=function(t,n,r){return e.isStatement(t)||e.isClassElement(t)?{suffix:r?this.newLineCharacter+this.newLineCharacter:this.newLineCharacter}:e.isVariableDeclaration(t)?{suffix:", "}:e.isParameter(t)?e.isParameter(n)?{suffix:", "}:{}:e.isStringLiteral(t)&&e.isImportDeclaration(t.parent)||e.isNamedImports(t)?{suffix:", "}:e.isImportSpecifier(t)?{suffix:","+(r?this.newLineCharacter:" ")}:e.Debug.failBadSyntaxKind(t)},t.prototype.insertNodeAtConstructorStart=function(t,r,i){var a=e.firstOrUndefined(r.body.statements);a&&r.body.multiLine?this.insertNodeBefore(t,a,i):this.replaceConstructorBody(t,r,n([i],r.body.statements,!0))},t.prototype.insertNodeAtConstructorStartAfterSuperCall=function(t,r,i){var a=e.find(r.body.statements,function(t){return e.isExpressionStatement(t)&&e.isSuperCall(t.expression)});a&&r.body.multiLine?this.insertNodeAfter(t,a,i):this.replaceConstructorBody(t,r,n(n([],r.body.statements,!0),[i],!1))},t.prototype.insertNodeAtConstructorEnd=function(t,r,i){var a=e.lastOrUndefined(r.body.statements);a&&r.body.multiLine?this.insertNodeAfter(t,a,i):this.replaceConstructorBody(t,r,n(n([],r.body.statements,!0),[i],!1))},t.prototype.replaceConstructorBody=function(t,n,r){this.replaceNode(t,n.body,e.factory.createBlock(r,!0))},t.prototype.insertNodeAtEndOfScope=function(t,n,r){var i=f(t,n.getLastToken(),{});this.insertNodeAt(t,i,r,{prefix:e.isLineBreak(t.text.charCodeAt(n.getLastToken().pos))?this.newLineCharacter:this.newLineCharacter+this.newLineCharacter,suffix:this.newLineCharacter})},t.prototype.insertMemberAtStart=function(e,t,n){this.insertNodeAtStartWorker(e,t,n)},t.prototype.insertNodeAtObjectStart=function(e,t,n){this.insertNodeAtStartWorker(e,t,n)},t.prototype.insertNodeAtStartWorker=function(e,t,n){var r,i=null!==(r=this.guessIndentationFromExistingMembers(e,t))&&void 0!==r?r:this.computeIndentationForNewMember(e,t);this.insertNodeAt(e,x(t).pos,n,this.getInsertNodeAtStartInsertOptions(e,t,i))},t.prototype.guessIndentationFromExistingMembers=function(t,n){for(var r,i=n,a=0,o=x(n);a=0;r--){var i=n[r],a=i.span,o=i.newText;t="".concat(t.substring(0,a.start)).concat(o).concat(t.substring(e.textSpanEnd(a)))}return t}t.ChangeTracker=v,t.getNewFileText=function(e,t,n,r){return y.newFileChangesWorker(void 0,t,e,n,r)},function(t){function n(t,n,r,a,o){var s=r.map(function(e){return 4===e?"":i(e,t,a).text}).join(a),c=e.createSourceFile("any file name",s,99,!0,n);return S(s,e.formatting.formatDocument(c,o))+a}function i(t,n,r){var i=A(r),a=e.getNewLineKind(r);return e.createPrinter({newLine:a,neverAsciiEscape:!0,preserveSourceNewlines:!0,terminateUnterminatedLiterals:!0},i).writeNode(4,t,n,i),{text:i.getText(),node:D(t)}}t.getTextChangesFromChanges=function(t,n,a,o){return e.mapDefined(e.group(t,function(e){return e.sourceFile.path}),function(t){for(var s=t[0].sourceFile,c=e.stableSort(t,function(e,t){return e.range.pos-t.range.pos||e.range.end-t.range.end}),l=function(t){e.Debug.assert(c[t].range.end<=c[t+1].range.pos,"Changes overlap",function(){return"".concat(JSON.stringify(c[t].range)," and ").concat(JSON.stringify(c[t+1].range))})},u=0;u0?{fileName:s.fileName,textChanges:p}:void 0})},t.newFileChanges=function(t,r,i,a,o){var s=n(t,e.getScriptKindFromFileName(r),i,a,o);return{fileName:r,textChanges:[e.createTextChange(e.createTextSpan(0,0),s)],isNewFile:!0}},t.newFileChangesWorker=n,t.getNonformattedText=i}(y||(y={})),t.applyChanges=S;var T,C=r(r({},e.nullTransformationContext),{factory:e.createNodeFactory(1|e.nullTransformationContext.factory.flags,e.nullTransformationContext.factory.baseFactory)});function D(t){var n=e.visitEachChild(t,D,C,L,D),r=e.nodeIsSynthesized(n)?n:Object.create(n);return e.setTextRangePosEnd(r,i(t),o(t)),r}function L(t,n,r,a,s){var c=e.visitNodes(t,n,r,a,s);if(!c)return c;var l=c===t?e.factory.createNodeArray(c.slice(0)):c;return e.setTextRangePosEnd(l,i(t),o(t)),l}function A(t){var n=0,r=e.createTextWriter(t);function i(t,i){if(i||!function(t){return e.skipTrivia(t,0)===t.length}(t)){n=r.getTextPos();for(var a=0;e.isWhiteSpaceLike(t.charCodeAt(t.length-a-1));)a++;n-=a}}return{onBeforeEmitNode:function(e){e&&a(e,n)},onAfterEmitNode:function(e){e&&s(e,n)},onBeforeEmitNodeArray:function(e){e&&a(e,n)},onAfterEmitNodeArray:function(e){e&&s(e,n)},onBeforeEmitToken:function(e){e&&a(e,n)},onAfterEmitToken:function(e){e&&s(e,n)},write:function(e){r.write(e),i(e,!1)},writeComment:function(e){r.writeComment(e)},writeKeyword:function(e){r.writeKeyword(e),i(e,!1)},writeOperator:function(e){r.writeOperator(e),i(e,!1)},writePunctuation:function(e){r.writePunctuation(e),i(e,!1)},writeTrailingSemicolon:function(e){r.writeTrailingSemicolon(e),i(e,!1)},writeParameter:function(e){r.writeParameter(e),i(e,!1)},writeProperty:function(e){r.writeProperty(e),i(e,!1)},writeSpace:function(e){r.writeSpace(e),i(e,!1)},writeStringLiteral:function(e){r.writeStringLiteral(e),i(e,!1)},writeSymbol:function(e,t){r.writeSymbol(e,t),i(e,!1)},writeLine:function(e){r.writeLine(e)},increaseIndent:function(){r.increaseIndent()},decreaseIndent:function(){r.decreaseIndent()},getText:function(){return r.getText()},rawWrite:function(e){r.rawWrite(e),i(e,!1)},writeLiteral:function(e){r.writeLiteral(e),i(e,!0)},getTextPos:function(){return r.getTextPos()},getLine:function(){return r.getLine()},getColumn:function(){return r.getColumn()},getIndent:function(){return r.getIndent()},isAtStartOfLine:function(){return r.isAtStartOfLine()},hasTrailingComment:function(){return r.hasTrailingComment()},hasTrailingWhitespace:function(){return r.hasTrailingWhitespace()},clear:function(){r.clear(),n=0}}}function N(t,n){return!(e.isInComment(t,n)||e.isInString(t,n)||e.isInTemplateString(t,n)||e.isInJSXText(t,n))}function k(e,t,n,r){void 0===r&&(r={leadingTriviaOption:c.IncludeAll});var i=f(t,n,r),a=h(t,n,r);e.deleteRange(t,{pos:i,end:a})}function I(t,n,r,i){var a=e.Debug.checkDefined(e.formatting.SmartIndenter.getContainingList(i,r)),o=e.indexOfNode(a,i);e.Debug.assert(-1!==o),1!==a.length?(e.Debug.assert(!n.has(i),"Deleting a node twice"),n.add(i),t.deleteRange(r,{pos:b(r,i),end:o===a.length-1?h(r,i,{}):E(r,i,a[o-1],a[o+1])})):k(t,r,i)}t.assignPositionsToNode=D,t.createWriter=A,t.isValidLocationToAddComment=N,function(t){function n(t,n,r){if(r.parent.name){var i=e.Debug.checkDefined(e.getTokenAtPosition(n,r.pos-1));t.deleteRange(n,{pos:i.getStart(n),end:r.end})}else k(t,n,e.getAncestor(r,269))}t.deleteDeclaration=function(t,r,i,a){switch(a.kind){case 166:var o=a.parent;e.isArrowFunction(o)&&1===o.parameters.length&&!e.findChildOfKind(o,20,i)?t.replaceNodeWithText(i,a,"()"):I(t,r,i,a);break;case 269:case 268:k(t,i,a,{leadingTriviaOption:i.imports.length&&a===e.first(i.imports).parent||a===e.find(i.statements,e.isAnyImportSyntax)?c.Exclude:e.hasJSDocNodes(a)?c.JSDoc:c.StartLine});break;case 205:var s=a.parent;204===s.kind&&a!==e.last(s.elements)?k(t,i,a):I(t,r,i,a);break;case 257:!function(t,n,r,i){var a=i.parent;if(295!==a.kind)if(1===a.declarations.length){var o=a.parent;switch(o.kind){case 247:case 246:t.replaceNode(r,i,e.factory.createObjectLiteralExpression());break;case 245:k(t,r,a);break;case 240:k(t,r,o,{leadingTriviaOption:e.hasJSDocNodes(o)?c.JSDoc:c.StartLine});break;default:e.Debug.assertNever(o)}}else I(t,n,r,i);else t.deleteNodeRange(r,e.findChildOfKind(a,20,r),e.findChildOfKind(a,21,r))}(t,r,i,a);break;case 165:I(t,r,i,a);break;case 273:var u=a.parent;1===u.elements.length?n(t,i,u):I(t,r,i,a);break;case 271:n(t,i,a);break;case 26:k(t,i,a,{trailingTriviaOption:l.Exclude});break;case 98:k(t,i,a,{leadingTriviaOption:c.Exclude});break;case 260:case 259:k(t,i,a,{leadingTriviaOption:e.hasJSDocNodes(a)?c.JSDoc:c.StartLine});break;default:a.parent?e.isImportClause(a.parent)&&a.parent.name===a?function(t,n,r){if(r.namedBindings){var i=r.name.getStart(n),a=e.getTokenAtPosition(n,r.name.end);if(a&&27===a.kind){var o=e.skipTrivia(n.text,a.end,!1,!0);t.deleteRange(n,{pos:i,end:o})}else k(t,n,r.name)}else k(t,n,r.parent)}(t,i,a.parent):e.isCallExpression(a.parent)&&e.contains(a.parent.arguments,a)?I(t,r,i,a):k(t,i,a):k(t,i,a)}}}(T||(T={})),t.deleteNode=k}(e.textChanges||(e.textChanges={}))}(c||(c={})),function(e){!function(t){var i=e.createMultiMap(),a=new e.Map;function s(e,t,n,r,i,a){return{fixName:e,description:t,changes:n,fixId:r,fixAllDescription:i,commands:a?[a]:void 0}}function c(e,t){return{changes:e,commands:t}}function l(t,n,r){for(var i=0,a=u(t);i1)break}var u=a<2;return function(e){var t=e.fixId,n=e.fixAllDescription,i=o(e,["fixId","fixAllDescription"]);return u?i:r(r({},i),{fixId:t,fixAllDescription:n})}}(i,n))})},t.getAllFixes=function(t){return a.get(e.cast(t.fixId,e.isString)).getAllCodeActions(t)},t.createCombinedCodeActions=c,t.createFileTextChanges=function(e,t){return{fileName:e,textChanges:t}},t.codeFixAll=function(t,n,r){var i=[],a=e.textChanges.ChangeTracker.with(t,function(e){return l(t,n,function(t){return r(e,t,i)})});return c(a,0===i.length?void 0:i)},t.eachDiagnostic=l}(e.codefix||(e.codefix={}))}(c||(c={})),function(e){var t,n;t=e.refactor||(e.refactor={}),n=new e.Map,t.registerRefactor=function(e,t){n.set(e,t)},t.getApplicableRefactors=function(r){return e.arrayFrom(e.flatMapIterator(n.values(),function(e){var n;return r.cancellationToken&&r.cancellationToken.isCancellationRequested()||!(null===(n=e.kinds)||void 0===n?void 0:n.some(function(e){return t.refactorKindBeginsWith(e,r.kind)}))?void 0:e.getAvailableActions(r)}))},t.getEditsForRefactor=function(e,t,r){var i=n.get(t);return i&&i.getEditsForAction(e,r)}}(c||(c={})),function(e){!function(t){var n="addConvertToUnknownForNonOverlappingTypes",r=[e.Diagnostics.Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the_other_If_this_was_intentional_convert_the_expression_to_unknown_first.code];function i(t,n,r){var i=e.isAsExpression(r)?e.factory.createAsExpression(r.expression,e.factory.createKeywordTypeNode(157)):e.factory.createTypeAssertion(e.factory.createKeywordTypeNode(157),r.expression);t.replaceNode(n,r.expression,i)}function a(t,n){if(!e.isInJSFile(t))return e.findAncestor(e.getTokenAtPosition(t,n),function(t){return e.isAsExpression(t)||e.isTypeAssertionExpression(t)})}t.registerCodeFix({errorCodes:r,getCodeActions:function(r){var o=a(r.sourceFile,r.span.start);if(void 0!==o){var s=e.textChanges.ChangeTracker.with(r,function(e){return i(e,r.sourceFile,o)});return[t.createCodeFixAction(n,s,e.Diagnostics.Add_unknown_conversion_for_non_overlapping_types,n,e.Diagnostics.Add_unknown_to_all_conversions_of_non_overlapping_types)]}},fixIds:[n],getAllCodeActions:function(e){return t.codeFixAll(e,r,function(e,t){var n=a(t.file,t.start);n&&i(e,t.file,n)})}})}(e.codefix||(e.codefix={}))}(c||(c={})),function(e){var t;(t=e.codefix||(e.codefix={})).registerCodeFix({errorCodes:[e.Diagnostics.await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module.code,e.Diagnostics.for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module.code],getCodeActions:function(n){var r=n.sourceFile,i=e.textChanges.ChangeTracker.with(n,function(t){var n=e.factory.createExportDeclaration(void 0,!1,e.factory.createNamedExports([]),void 0);t.insertNodeAtEndOfScope(r,r,n)});return[t.createCodeFixActionWithoutFixAll("addEmptyExportDeclaration",i,e.Diagnostics.Add_export_to_make_this_file_into_a_module)]}})}(c||(c={})),function(e){!function(t){var n="addMissingAsync",r=[e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,e.Diagnostics.Type_0_is_not_assignable_to_type_1.code,e.Diagnostics.Type_0_is_not_comparable_to_type_1.code];function i(r,i,a,o){var s=a(function(t){return function(t,n,r,i){if(!i||!i.has(e.getNodeId(r))){null==i||i.add(e.getNodeId(r));var a=e.factory.updateModifiers(e.getSynthesizedDeepClone(r,!0),e.factory.createNodeArray(e.factory.createModifiersFromModifierFlags(512|e.getSyntacticModifierFlags(r))));t.replaceNode(n,r,a)}}(t,r.sourceFile,i,o)});return t.createCodeFixAction(n,s,e.Diagnostics.Add_async_modifier_to_containing_function,n,e.Diagnostics.Add_all_missing_async_modifiers)}function a(t,n){if(n){var r=e.getTokenAtPosition(t,n.start);return e.findAncestor(r,function(r){return r.getStart(t)e.textSpanEnd(n)?"quit":(e.isArrowFunction(r)||e.isMethodDeclaration(r)||e.isFunctionExpression(r)||e.isFunctionDeclaration(r))&&e.textSpansEqual(n,e.createTextSpanFromNode(r,t))})}}t.registerCodeFix({fixIds:[n],errorCodes:r,getCodeActions:function(t){var n=t.sourceFile,r=t.errorCode,o=t.cancellationToken,s=t.program,c=t.span,l=e.find(s.getTypeChecker().getDiagnostics(n,o),function(t,n){return function(r){var i=r.start,a=r.length,o=r.relatedInformation,s=r.code;return e.isNumber(i)&&e.isNumber(a)&&e.textSpansEqual({start:i,length:a},t)&&s===n&&!!o&&e.some(o,function(t){return t.code===e.Diagnostics.Did_you_mean_to_mark_this_function_as_async.code})}}(c,r)),u=l&&l.relatedInformation&&e.find(l.relatedInformation,function(t){return t.code===e.Diagnostics.Did_you_mean_to_mark_this_function_as_async.code}),d=a(n,u);if(d)return[i(t,d,function(n){return e.textChanges.ChangeTracker.with(t,n)})]},getAllCodeActions:function(n){var o=n.sourceFile,s=new e.Set;return t.codeFixAll(n,r,function(t,r){var c=r.relatedInformation&&e.find(r.relatedInformation,function(t){return t.code===e.Diagnostics.Did_you_mean_to_mark_this_function_as_async.code}),l=a(o,c);if(l)return i(n,l,function(e){return e(t),[]},s)})}})}(e.codefix||(e.codefix={}))}(c||(c={})),function(e){!function(t){var r="addMissingAwait",i=e.Diagnostics.Property_0_does_not_exist_on_type_1.code,a=[e.Diagnostics.This_expression_is_not_callable.code,e.Diagnostics.This_expression_is_not_constructable.code],o=n([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_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap.code,e.Diagnostics.This_condition_will_always_return_true_since_this_0_is_always_defined.code,e.Diagnostics.Type_0_is_not_an_array_type.code,e.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type.code,e.Diagnostics.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher.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,i],a,!0);function s(t,n,r,i,a){var o=e.getFixableErrorSpanExpression(t,r);return o&&function(t,n,r,i,a){var o=a.getTypeChecker().getDiagnostics(t,i);return e.some(o,function(t){var i=t.start,a=t.length,o=t.relatedInformation,s=t.code;return e.isNumber(i)&&e.isNumber(a)&&e.textSpansEqual({start:i,length:a},r)&&s===n&&!!o&&e.some(o,function(t){return t.code===e.Diagnostics.Did_you_forget_to_use_await.code})})}(t,n,r,i,a)&&u(o)?o:void 0}function c(n,r,i,a,s,c){var l=n.sourceFile,p=n.program,m=n.cancellationToken,f=function(t,n,r,i,a){var s=function(t,n){if(e.isPropertyAccessExpression(t.parent)&&e.isIdentifier(t.parent.expression))return{identifiers:[t.parent.expression],isCompleteFix:!0};if(e.isIdentifier(t))return{identifiers:[t],isCompleteFix:!0};if(e.isBinaryExpression(t)){for(var r=void 0,i=!0,a=0,o=[t.left,t.right];a0)return[t.createCodeFixAction(n,a,e.Diagnostics.Add_const_to_unresolved_variable,n,e.Diagnostics.Add_const_to_all_unresolved_variables)]},fixIds:[n],getAllCodeActions:function(n){var a=new e.Set;return t.codeFixAll(n,r,function(e,t){return i(e,t.file,t.start,n.program,a)})}})}(e.codefix||(e.codefix={}))}(c||(c={})),function(e){!function(t){var n="addMissingDeclareProperty",r=[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];function i(t,n,r,i){var a=e.getTokenAtPosition(n,r);if(e.isIdentifier(a)){var o=a.parent;169!==o.kind||i&&!e.tryAddToSet(i,o)||t.insertModifierBefore(n,136,o)}}t.registerCodeFix({errorCodes:r,getCodeActions:function(r){var a=e.textChanges.ChangeTracker.with(r,function(e){return i(e,r.sourceFile,r.span.start)});if(a.length>0)return[t.createCodeFixAction(n,a,e.Diagnostics.Prefix_with_declare,n,e.Diagnostics.Prefix_all_incorrect_property_declarations_with_declare)]},fixIds:[n],getAllCodeActions:function(n){var a=new e.Set;return t.codeFixAll(n,r,function(e,t){return i(e,t.file,t.start,a)})}})}(e.codefix||(e.codefix={}))}(c||(c={})),function(e){!function(t){var n="addMissingInvocationForDecorator",r=[e.Diagnostics._0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0.code];function i(t,n,r){var i=e.getTokenAtPosition(n,r),a=e.findAncestor(i,e.isDecorator);e.Debug.assert(!!a,"Expected position to be owned by a decorator.");var o=e.factory.createCallExpression(a.expression,void 0,void 0);t.replaceNode(n,a.expression,o)}t.registerCodeFix({errorCodes:r,getCodeActions:function(r){var a=e.textChanges.ChangeTracker.with(r,function(e){return i(e,r.sourceFile,r.span.start)});return[t.createCodeFixAction(n,a,e.Diagnostics.Call_decorator_expression,n,e.Diagnostics.Add_to_all_uncalled_decorators)]},fixIds:[n],getAllCodeActions:function(e){return t.codeFixAll(e,r,function(e,t){return i(e,t.file,t.start)})}})}(e.codefix||(e.codefix={}))}(c||(c={})),function(e){!function(t){var n="addNameToNamelessParameter",r=[e.Diagnostics.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1.code];function i(t,n,r){var i=e.getTokenAtPosition(n,r),a=i.parent;if(!e.isParameter(a))return e.Debug.fail("Tried to add a parameter name to a non-parameter: "+e.Debug.formatSyntaxKind(i.kind));var o=a.parent.parameters.indexOf(a);e.Debug.assert(!a.type,"Tried to add a parameter name to a parameter that already had one."),e.Debug.assert(o>-1,"Parameter not found in parent parameter list.");var s=e.factory.createTypeReferenceNode(a.name,void 0),c=e.factory.createParameterDeclaration(a.modifiers,a.dotDotDotToken,"arg"+o,a.questionToken,a.dotDotDotToken?e.factory.createArrayTypeNode(s):s,a.initializer);t.replaceNode(n,a,c)}t.registerCodeFix({errorCodes:r,getCodeActions:function(r){var a=e.textChanges.ChangeTracker.with(r,function(e){return i(e,r.sourceFile,r.span.start)});return[t.createCodeFixAction(n,a,e.Diagnostics.Add_parameter_name,n,e.Diagnostics.Add_names_to_all_parameters_without_names)]},fixIds:[n],getAllCodeActions:function(e){return t.codeFixAll(e,r,function(e,t){return i(e,t.file,t.start)})}})}(e.codefix||(e.codefix={}))}(c||(c={})),function(e){!function(t){var r="addOptionalPropertyUndefined",i=[e.Diagnostics.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target.code,e.Diagnostics.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code,e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code];function a(t,n){var r;if(t){if(e.isBinaryExpression(t.parent)&&63===t.parent.operatorToken.kind)return{source:t.parent.right,target:t.parent.left};if(e.isVariableDeclaration(t.parent)&&t.parent.initializer)return{source:t.parent.initializer,target:t.parent.name};if(e.isCallExpression(t.parent)){var i=n.getSymbolAtLocation(t.parent.expression);if(!(null==i?void 0:i.valueDeclaration)||!e.isFunctionLikeKind(i.valueDeclaration.kind))return;if(!e.isExpression(t))return;var o=t.parent.arguments.indexOf(t);if(-1===o)return;var s=i.valueDeclaration.parameters[o].name;if(e.isIdentifier(s))return{source:t,target:s}}else if(e.isPropertyAssignment(t.parent)&&e.isIdentifier(t.parent.name)||e.isShorthandPropertyAssignment(t.parent)){var c=a(t.parent.parent,n);if(!c)return;var l=n.getPropertyOfType(n.getTypeAtLocation(c.target),t.parent.name.text),u=null===(r=null==l?void 0:l.declarations)||void 0===r?void 0:r[0];if(!u)return;return{source:e.isPropertyAssignment(t.parent)?t.parent.initializer:t.parent.name,target:u}}}}t.registerCodeFix({errorCodes:i,getCodeActions:function(i){var o=i.program.getTypeChecker(),s=function(t,n,r){var i,o,s=a(e.getFixableErrorSpanExpression(t,n),r);if(!s)return e.emptyArray;var c=s.source,l=s.target,u=function(t,n,r){return e.isPropertyAccessExpression(n)&&!!r.getExactOptionalProperties(r.getTypeAtLocation(n.expression)).length&&r.getTypeAtLocation(t)===r.getUndefinedType()}(c,l,r)?r.getTypeAtLocation(l.expression):r.getTypeAtLocation(l);return(null===(o=null===(i=u.symbol)||void 0===i?void 0:i.declarations)||void 0===o?void 0:o.some(function(t){return e.getSourceFileOfNode(t).fileName.match(/\.d\.ts$/)}))?e.emptyArray:r.getExactOptionalProperties(u)}(i.sourceFile,i.span,o);if(s.length){var c=e.textChanges.ChangeTracker.with(i,function(t){return function(t,r){for(var i=0,a=r;i1?(t.delete(n,u),t.insertNodeAfter(n,p,d)):t.replaceNode(n,p,d)}}function m(r){var i=[];return r.exports&&r.exports.forEach(function(t){if("prototype"===t.name&&t.declarations){var n=t.declarations[0];1===t.declarations.length&&e.isPropertyAccessExpression(n)&&e.isBinaryExpression(n.parent)&&63===n.parent.operatorToken.kind&&e.isObjectLiteralExpression(n.parent.right)&&l(n.parent.right.symbol,void 0,i)}else l(t,[e.factory.createToken(124)],i)}),r.members&&r.members.forEach(function(a,s){var c,u,d,p;if("constructor"===s&&a.valueDeclaration){var m=null===(p=null===(d=null===(u=null===(c=r.exports)||void 0===c?void 0:c.get("prototype"))||void 0===u?void 0:u.declarations)||void 0===d?void 0:d[0])||void 0===p?void 0:p.parent;m&&e.isBinaryExpression(m)&&e.isObjectLiteralExpression(m.right)&&e.some(m.right.properties,o)||t.delete(n,a.valueDeclaration.parent)}else l(a,void 0,i)}),i;function l(r,i,l){if(8192&r.flags||4096&r.flags){var u,d,p=r.valueDeclaration,m=p.parent,f=m.right;if(u=p,d=f,(e.isAccessExpression(u)?e.isPropertyAccessExpression(u)&&o(u)||e.isFunctionLike(d):e.every(u.properties,function(t){return!!(e.isMethodDeclaration(t)||e.isGetOrSetAccessorDeclaration(t)||e.isPropertyAssignment(t)&&e.isFunctionExpression(t.initializer)&&t.name||o(t))}))&&!e.some(l,function(t){var n=e.getNameOfDeclaration(t);return!(!n||!e.isIdentifier(n)||e.idText(n)!==e.symbolName(r))})){var _=m.parent&&241===m.parent.kind?m.parent:m;if(t.delete(n,_),f){if(e.isAccessExpression(p)&&(e.isFunctionExpression(f)||e.isArrowFunction(f))){var h=e.getQuotePreference(n,s),g=function(t,n,r){if(e.isPropertyAccessExpression(t))return t.name;var i=t.argumentExpression;return e.isNumericLiteral(i)?i:e.isStringLiteralLike(i)?e.isIdentifierText(i.text,e.getEmitScriptTarget(n))?e.factory.createIdentifier(i.text):e.isNoSubstitutionTemplateLiteral(i)?e.factory.createStringLiteral(i.text,0===r):i:void 0}(p,c,h);g&&v(l,f,g)}else if(e.isObjectLiteralExpression(f))e.forEach(f.properties,function(t){(e.isMethodDeclaration(t)||e.isGetOrSetAccessorDeclaration(t))&&l.push(t),e.isPropertyAssignment(t)&&e.isFunctionExpression(t.initializer)&&v(l,t.initializer,t.name),o(t)});else if(!e.isSourceFileJS(n)&&e.isPropertyAccessExpression(p)){var y=e.factory.createPropertyDeclaration(i,p.name,void 0,void 0,f);return e.copyLeadingComments(m.parent,y,n),void l.push(y)}}else l.push(e.factory.createPropertyDeclaration(i,r.name,void 0,void 0,void 0))}}function v(t,r,o){return e.isFunctionExpression(r)?function(t,r,o){var s=e.concatenate(i,a(r,132)),c=e.factory.createMethodDeclaration(s,void 0,o,void 0,void 0,r.parameters,void 0,r.body);return e.copyLeadingComments(m,c,n),void t.push(c)}(t,r,o):function(t,r,o){var s,c=r.body;s=238===c.kind?c:e.factory.createBlock([e.factory.createReturnStatement(c)]);var l=e.concatenate(i,a(r,132)),u=e.factory.createMethodDeclaration(l,void 0,o,void 0,void 0,r.parameters,void 0,s);e.copyLeadingComments(m,u,n),t.push(u)}(t,r,o)}}}}function a(t,n){return e.canHaveModifiers(t)?e.filter(t.modifiers,function(e){return e.kind===n}):void 0}function o(t){return!!t.name&&!(!e.isIdentifier(t.name)||"constructor"!==t.name.text)}t.registerCodeFix({errorCodes:r,getCodeActions:function(r){var a=e.textChanges.ChangeTracker.with(r,function(e){return i(e,r.sourceFile,r.span.start,r.program.getTypeChecker(),r.preferences,r.program.getCompilerOptions())});return[t.createCodeFixAction(n,a,e.Diagnostics.Convert_function_to_an_ES2015_class,n,e.Diagnostics.Convert_all_constructor_functions_to_classes)]},fixIds:[n],getAllCodeActions:function(e){return t.codeFixAll(e,r,function(t,n){return i(t,n.file,n.start,e.program.getTypeChecker(),e.preferences,e.program.getCompilerOptions())})}})}(e.codefix||(e.codefix={}))}(c||(c={})),function(e){!function(t){var r,i="convertToAsyncFunction",a=[e.Diagnostics.This_may_be_converted_to_an_async_function.code],o=!0;function s(t,n,r,i){var a,o=e.getTokenAtPosition(n,r);if(a=e.isIdentifier(o)&&e.isVariableDeclaration(o.parent)&&o.parent.initializer&&e.isFunctionLikeDeclaration(o.parent.initializer)?o.parent.initializer:e.tryCast(e.getContainingFunction(e.getTokenAtPosition(n,r)),e.canBeConvertedToAsync)){var s=new e.Map,l=e.isInJSFile(a),u=function(t,n){if(!t.body)return new e.Set;var r=new e.Set;return e.forEachChild(t.body,function t(i){c(i,n,"then")?(r.add(e.getNodeId(i)),e.forEach(i.arguments,t)):c(i,n,"catch")||c(i,n,"finally")?(r.add(e.getNodeId(i)),e.forEachChild(i,t)):d(i,n)?r.add(e.getNodeId(i)):e.forEachChild(i,t)}),r}(a,i),f=function(t,n,r){var i=new e.Map,a=e.createMultiMap();return e.forEachChild(t,function t(o){if(e.isIdentifier(o)){var s=n.getSymbolAtLocation(o);if(s){var c=T(n.getTypeAtLocation(o),n),l=e.getSymbolId(s).toString();if(!c||e.isParameter(o.parent)||e.isFunctionLikeDeclaration(o.parent)||r.has(l)){if(o.parent&&(e.isParameter(o.parent)||e.isVariableDeclaration(o.parent)||e.isBindingElement(o.parent))){var u=o.text,d=a.get(u);if(d&&d.some(function(e){return e!==s})){var m=p(o,a);i.set(l,m.identifier),r.set(l,m),a.add(u,s)}else{var f=e.getSynthesizedDeepClone(o);r.set(l,A(f)),a.add(u,s)}}}else{var _=e.firstOrUndefined(c.parameters),h=(null==_?void 0:_.valueDeclaration)&&e.isParameter(_.valueDeclaration)&&e.tryCast(_.valueDeclaration.name,e.isIdentifier)||e.factory.createUniqueName("result",16),g=p(h,a);r.set(l,g),a.add(h.text,s)}}}else e.forEachChild(o,t)}),e.getSynthesizedDeepCloneWithReplacements(t,!0,function(t){if(e.isBindingElement(t)&&e.isIdentifier(t.name)&&e.isObjectBindingPattern(t.parent)){if((a=(r=n.getSymbolAtLocation(t.name))&&i.get(String(e.getSymbolId(r))))&&a.text!==(t.name||t.propertyName).getText())return e.factory.createBindingElement(t.dotDotDotToken,t.propertyName||t.name,a,t.initializer)}else if(e.isIdentifier(t)){var r,a;if(a=(r=n.getSymbolAtLocation(t))&&i.get(String(e.getSymbolId(r))))return e.factory.createIdentifier(a.text)}})}(a,i,s);if(e.returnsPromise(f,i)){var h=f.body&&e.isBlock(f.body)?function(t,n){var r=[];return e.forEachReturnStatement(t,function(t){e.isReturnStatementWithFixablePromiseHandler(t,n)&&r.push(t)}),r}(f.body,i):e.emptyArray,g={checker:i,synthNamesMap:s,setOfExpressionsToReturn:u,isInJSFile:l};if(h.length){var y=e.skipTrivia(n.text,e.moveRangePastModifiers(a).pos);t.insertModifierAt(n,y,132,{suffix:" "});for(var v=function(r){if(e.forEachChild(r,function i(a){if(e.isCallExpression(a)){var o=_(a,a,g,!1);if(m())return!0;t.replaceNodeWithNodes(n,r,o)}else if(!e.isFunctionLike(a)&&(e.forEachChild(a,i),m()))return!0}),m())return{value:void 0}},b=0,E=h;b0)return I;if(g){if(A=S(o.checker,g,h),O(a,o))return E(A,u(a,t,o.checker));var P=b(r,A,void 0);return r&&r.types.push(o.checker.getAwaitedType(g)||g),P}return f();default:return f()}return e.emptyArray}function S(t,n,r){var i=e.getSynthesizedDeepClone(r);return t.getPromisedTypeOfPromise(n)?e.factory.createAwaitExpression(i):i}function T(t,n){var r=n.getSignaturesOfType(t,0);return e.lastOrUndefined(r)}function C(t,n,r,i){var a=[];return e.forEachChild(n,function n(o){if(e.isCallExpression(o)){var s=_(o,o,t,r,i);if((a=a.concat(s)).length>0)return}else e.isFunctionLike(o)||e.forEachChild(o,n)}),a}function D(t,n){var r,i=[];if(e.isFunctionLikeDeclaration(t)?t.parameters.length>0&&(r=function t(n){return e.isIdentifier(n)?a(n):function(t,n,r){return void 0===n&&(n=e.emptyArray),void 0===r&&(r=[]),{kind:1,bindingPattern:t,elements:n,types:r}}(n,e.flatMap(n.elements,function(n){return e.isOmittedExpression(n)?[]:[t(n.name)]}))}(t.parameters[0].name)):e.isIdentifier(t)?r=a(t):e.isPropertyAccessExpression(t)&&e.isIdentifier(t.name)&&(r=a(t.name)),r&&(!("identifier"in r)||"undefined"!==r.identifier.text))return r;function a(t){var r,a=function(e){return e.symbol?e.symbol:n.checker.getSymbolAtLocation(e)}((r=t).original?r.original:r);return a&&n.synthNamesMap.get(e.getSymbolId(a).toString())||A(t,i)}}function L(t){return!t||(w(t)?!t.identifier.text:e.every(t.elements,L))}function A(e,t){return void 0===t&&(t=[]),{kind:0,identifier:e,types:t,hasBeenDeclared:!1,hasBeenReferenced:!1}}function N(e){return e.hasBeenReferenced=!0,e.identifier}function k(e){return w(e)?P(e):I(e)}function I(e){for(var t=0,n=e.elements;t1?[[o(r),s(r)],!0]:[[s(r)],!0]:[[o(r)],!1]}(d.arguments[0],n):void 0;return m?(i.replaceNodeWithNodes(t,r.parent,m[0]),m[1]):(i.replaceRangeWithText(t,e.createRange(u.getStart(t),d.pos),"export default"),!0)}i.delete(t,r.parent)}else e.isExportsOrModuleExportsOrAlias(t,u.expression)&&function(t,n,r,i){var a=n.left.name.text,o=i.get(a);if(void 0!==o){var s=[_(void 0,o,n.right),h([e.factory.createExportSpecifier(!1,o,a)])];r.replaceNodeWithNodes(t,n.parent,s)}else!function(t,n,r){var i=t.left,a=t.right,o=t.parent,s=i.name.text;if(!(e.isFunctionExpression(a)||e.isArrowFunction(a)||e.isClassExpression(a))||a.name&&a.name.text!==s)r.replaceNodeRangeWithNodes(n,i.expression,e.findChildOfKind(i,24,n),[e.factory.createToken(93),e.factory.createToken(85)],{joiner:" ",suffix:" "});else{r.replaceRange(n,{pos:i.getStart(n),end:a.getStart(n)},e.factory.createToken(93),{suffix:" "}),a.name||r.insertName(n,a,s);var c=e.findChildOfKind(o,26,n);c&&r.delete(n,c)}}(n,t,r)}(t,r,i,a);return!1}(t,r,g,i,d,m)}default:return!1}}function a(n,r,i,a,o,s,c){var u,d=r.declarationList,p=!1,h=e.map(d.declarations,function(r){var i=r.name,u=r.initializer;if(u){if(e.isExportsOrModuleExportsOrAlias(n,u))return p=!0,g([]);if(e.isRequireCall(u,!0))return p=!0,function(n,r,i,a,o,s){switch(n.kind){case 203:var c=e.mapAllOrFail(n.elements,function(t){return t.dotDotDotToken||t.initializer||t.propertyName&&!e.isIdentifier(t.propertyName)||!e.isIdentifier(t.name)?void 0:f(t.propertyName&&t.propertyName.text,t.name.text)});if(c)return g([e.makeImport(void 0,c,r,s)]);case 204:var u=l(t.moduleSpecifierToValidIdentifier(r.text,o),a);return g([e.makeImport(e.factory.createIdentifier(u),void 0,r,s),_(void 0,e.getSynthesizedDeepClone(n),e.factory.createIdentifier(u))]);case 79:return function(t,n,r,i,a){for(var o,s=r.getSymbolAtLocation(t),c=new e.Map,u=!1,d=0,p=i.original.get(t.text);d0||u.length>0||p.size>0||m.size>0}};function f(t){var n,r,i=t.fix,a=t.symbolName;switch(i.kind){case 0:c.push(i);break;case 1:u.push(i);break;case 2:var o=i.importClauseOrBindingPattern,s=i.importKind,l=i.addAsTypeOnly,d=String(e.getNodeId(o));if((g=p.get(d))||p.set(d,g={importClauseOrBindingPattern:o,defaultImport:void 0,namedImports:new e.Map}),0===s){var f=null==g?void 0:g.namedImports.get(a);g.namedImports.set(a,y(f,l))}else e.Debug.assert(void 0===g.defaultImport||g.defaultImport.name===a,"(Add to Existing) Default import should be missing or match symbolName"),g.defaultImport={name:a,addAsTypeOnly:y(null===(n=g.defaultImport)||void 0===n?void 0:n.addAsTypeOnly,l)};break;case 3:var _=i.moduleSpecifier,h=(s=i.importKind,i.useRequire),g=function(e,t,n,r){var i=v(e,!0),a=v(e,!1),o=m.get(i),s=m.get(a),c={defaultImport:void 0,namedImports:void 0,namespaceLikeImport:void 0,useRequire:n};return 1===t&&2===r?o||(m.set(i,c),c):1===r&&(o||s)?o||s:s||(m.set(a,c),c)}(_,s,h,l=i.addAsTypeOnly);switch(e.Debug.assert(g.useRequire===h,"(Add new) Tried to add an `import` and a `require` for the same module"),s){case 1:e.Debug.assert(void 0===g.defaultImport||g.defaultImport.name===a,"(Add new) Default import should be missing or match symbolName"),g.defaultImport={name:a,addAsTypeOnly:y(null===(r=g.defaultImport)||void 0===r?void 0:r.addAsTypeOnly,l)};break;case 0:f=(g.namedImports||(g.namedImports=new e.Map)).get(a),g.namedImports.set(a,y(f,l));break;case 3:case 2:e.Debug.assert(void 0===g.namespaceLikeImport||g.namespaceLikeImport.name===a,"Namespacelike import shoudl be missing or match symbolName"),g.namespaceLikeImport={importKind:s,name:a,addAsTypeOnly:l}}break;case 4:break;default:e.Debug.assertNever(i,"fix wasn't never - got kind ".concat(i.kind))}function y(e,t){return Math.max(null!=e?e:0,t)}function v(e,t){return"".concat(t?1:0,"|").concat(e)}}}function l(t,n,r,i,a,o,s,c,l){e.Debug.assert(n.some(function(e){return e.moduleSymbol===r||e.symbol.parent===r}),"Some exportInfo should match the specified moduleSymbol");var u=e.createPackageJsonImportFilter(t,l,c);return v(m(n,a,o,s,i,t,c,l).fixes,t,i,u,c)}function u(e){return{description:e.description,changes:e.changes,commands:e.commands}}function d(t,n,r,i,a,o,s,c){var l=g(a,o);return e.getExportInfoMap(t,o,a,s,c).search(t.path,i,function(e){return e===r},function(t){if(e.skipAlias(t[0].symbol,l(t[0].isFromPackageJson))===n)return t})}function p(t,n,r,i){var a,o,s=r.getCompilerOptions(),c=u(r.getTypeChecker(),!1);if(c)return c;var l=null===(o=null===(a=i.getPackageJsonAutoImportProvider)||void 0===a?void 0:a.call(i))||void 0===o?void 0:o.getTypeChecker();return e.Debug.checkDefined(l&&u(l,!0),"Could not find symbol in specified module for code actions");function u(r,i){var a=e.getDefaultLikeExportInfo(n,r,s);if(a&&e.skipAlias(a.symbol,r)===t)return{symbol:a.symbol,moduleSymbol:n,moduleFileName:void 0,exportKind:a.exportKind,targetFlags:e.skipAlias(t,r).flags,isFromPackageJson:i};var o=r.tryGetMemberInModuleExportsAndProperties(t.name,n);return o&&e.skipAlias(o,r)===t?{symbol:o,moduleSymbol:n,moduleFileName:void 0,exportKind:0,targetFlags:e.skipAlias(t,r).flags,isFromPackageJson:i}:void 0}}function m(t,r,i,a,o,s,c,l,u,d){void 0===u&&(u=_(o.getTypeChecker(),s,o.getCompilerOptions()));var p=o.getTypeChecker(),m=e.flatMap(t,u.getImportsForExportInfo),h=r&&function(t,n,r,i){return e.firstDefined(t,function(t){var a,o=t.declaration,s=function(t){var n,r,i;switch(t.kind){case 257:return null===(n=e.tryCast(t.name,e.isIdentifier))||void 0===n?void 0:n.text;case 268:return t.name.text;case 269:return null===(i=e.tryCast(null===(r=t.importClause)||void 0===r?void 0:r.namedBindings,e.isNamespaceImport))||void 0===i?void 0:i.name.text;default:return e.Debug.assertNever(t)}}(o),c=null===(a=e.tryGetModuleSpecifierFromDeclaration(o))||void 0===a?void 0:a.text;if(s&&c){var l=function(t,n){var r;switch(t.kind){case 257:return n.resolveExternalModuleName(t.initializer.arguments[0]);case 268:return n.getAliasedSymbol(t.symbol);case 269:var i=e.tryCast(null===(r=t.importClause)||void 0===r?void 0:r.namedBindings,e.isNamespaceImport);return i&&n.getAliasedSymbol(i.symbol);default:return e.Debug.assertNever(t)}}(o,i);if(l&&l.exports.has(e.escapeLeadingUnderscores(n)))return{kind:0,namespacePrefix:s,position:r,moduleSpecifier:c}}})}(m,r.symbolName,r.position,p),y=function(t,n,r,i){return e.firstDefined(t,function(t){var a=t.declaration,o=t.importKind,s=t.symbol,c=t.targetFlags;if(3!==o&&2!==o&&268!==a.kind){if(257===a.kind)return 0!==o&&1!==o||203!==a.name.kind?void 0:{kind:2,importClauseOrBindingPattern:a.name,importKind:o,moduleSpecifier:a.initializer.arguments[0].text,addAsTypeOnly:4};var l=a.importClause;if(l&&e.isStringLiteralLike(a.moduleSpecifier)){var u=l.name,d=l.namedBindings;if(!l.isTypeOnly||0===o&&d){var p=f(n,!1,s,c,r,i);if(!(1===o&&(u||2===p&&d)||0===o&&271===(null==d?void 0:d.kind)))return{kind:2,importClauseOrBindingPattern:l,importKind:o,moduleSpecifier:a.moduleSpecifier.text,addAsTypeOnly:p}}}}})}(m,i,p,o.getCompilerOptions());if(y)return{computedWithoutCacheCount:0,fixes:n(n([],h?[h]:e.emptyArray,!0),[y],!1)};var v=function(t,n,r,i,a,o,s,c,l,u){var d=e.firstDefined(n,function(t){return function(t,n,r,i,a){var o,s=t.declaration,c=t.importKind,l=t.symbol,u=t.targetFlags,d=null===(o=e.tryGetModuleSpecifierFromDeclaration(s))||void 0===o?void 0:o.text;if(d)return{kind:3,moduleSpecifier:d,importKind:c,addAsTypeOnly:r?4:f(n,!0,l,u,i,a),useRequire:r}}(t,o,s,r.getTypeChecker(),r.getCompilerOptions())});return d?{fixes:[d]}:function(t,n,r,i,a,o,s,c,l){var u=e.isSourceFileJS(n),d=t.getCompilerOptions(),p=e.createModuleSpecifierResolutionHost(t,s),m=g(t,s),_=e.moduleResolutionUsesNodeModules(e.getEmitModuleResolutionKind(d)),h=l?function(t){return{moduleSpecifiers:e.moduleSpecifiers.tryGetModuleSpecifiersFromCache(t,n,p,c),computedWithoutCache:!1}}:function(t,r){return e.moduleSpecifiers.getModuleSpecifiersWithCacheInfo(t,r,d,n,p,c)},y=0,v=e.flatMap(o,function(t,o){var s=m(t.isFromPackageJson),c=h(t.moduleSymbol,s),l=c.computedWithoutCache,p=c.moduleSpecifiers,g=!!(111551&t.targetFlags),v=f(i,!0,t.symbol,t.targetFlags,s,d);return y+=l?1:0,e.mapDefined(p,function(i){return _&&e.pathContainsNodeModules(i)?void 0:!g&&u&&void 0!==r?{kind:1,moduleSpecifier:i,position:r,exportInfo:t,isReExport:o>0}:{kind:3,moduleSpecifier:i,importKind:x(n,t.exportKind,d),useRequire:a,addAsTypeOnly:v,exportInfo:t,isReExport:o>0}})});return{computedWithoutCacheCount:y,fixes:v}}(r,i,a,o,s,t,c,l,u)}(t,m,o,s,null==r?void 0:r.position,i,a,c,l,d),b=v.fixes,E=v.computedWithoutCacheCount;return{computedWithoutCacheCount:void 0===E?0:E,fixes:n(n([],h?[h]:e.emptyArray,!0),b,!0)}}function f(e,t,n,r,i,a){return e?t&&2===a.importsNotUsedAsValues?2:!a.isolatedModules||!a.preserveValueImports||111551&r&&!i.getTypeOnlyAliasDeclaration(n)?1:2:4}function _(t,n,r){for(var i,a=0,o=n.imports;a=e.ModuleKind.ES2015)return i?1:2;if(a)return e.isExternalModule(t)||r?i?1:2:3;for(var o=0,s=t.statements;o1&&e.OrganizeImports.importSpecifiersAreSorted(n.parent.elements)){t.delete(i,n);var o=e.factory.updateImportSpecifier(n,!1,n.propertyName,n.name),s=e.OrganizeImports.getImportSpecifierInsertionIndex(n.parent.elements,o);t.insertImportSpecifierAtIndex(i,o,n.parent,s)}else t.deleteRange(i,n.getFirstToken());return n}return e.Debug.assert(n.parent.parent.isTypeOnly),c(n.parent.parent),n.parent.parent;case 270:return c(n),n;case 271:return c(n.parent),n.parent;case 268:return t.deleteRange(i,n.getChildAt(1)),n;default:e.Debug.failBadSyntaxKind(n)}function c(r){if(t.delete(i,e.getTypeKeywordOfTypeOnlyImport(r,i)),a){var o=e.tryCast(r.namedBindings,e.isNamedImports);if(o&&o.elements.length>1){e.OrganizeImports.importSpecifiersAreSorted(o.elements)&&273===n.kind&&0!==o.elements.indexOf(n)&&(t.delete(i,n),t.insertImportSpecifierAtIndex(i,n,o,0));for(var s=0,c=o.elements;s"),[e.Diagnostics.Convert_function_expression_0_to_arrow_function,c?c.text:e.ANONYMOUS]}return t.replaceNode(n,s,e.factory.createToken(85)),t.insertText(n,c.end," = "),t.insertText(n,l.pos," =>"),[e.Diagnostics.Convert_function_declaration_0_to_arrow_function,c.text]}}}t.registerCodeFix({errorCodes:r,getCodeActions:function(r){var a,o=r.sourceFile,s=r.program,c=r.span,l=e.textChanges.ChangeTracker.with(r,function(e){a=i(e,o,c.start,s.getTypeChecker())});return a?[t.createCodeFixAction(n,l,a,n,e.Diagnostics.Fix_all_implicit_this_errors)]:e.emptyArray},fixIds:[n],getAllCodeActions:function(e){return t.codeFixAll(e,r,function(t,n){i(t,n.file,n.start,e.program.getTypeChecker())})}})}(e.codefix||(e.codefix={}))}(c||(c={})),function(e){!function(t){var r="fixImportNonExportedMember",i=[e.Diagnostics.Module_0_declares_1_locally_but_it_is_not_exported.code];function a(t,n,r){var i,a=e.getTokenAtPosition(t,n);if(e.isIdentifier(a)){var o=e.findAncestor(a,e.isImportDeclaration);if(void 0===o)return;var s=e.isStringLiteral(o.moduleSpecifier)?o.moduleSpecifier.text:void 0;if(void 0===s)return;var c=e.getResolvedModule(t,s,void 0);if(void 0===c)return;var l=r.getSourceFile(c.resolvedFileName);if(void 0===l||e.isSourceFileFromLibrary(r,l))return;var u=null===(i=l.symbol.valueDeclaration)||void 0===i?void 0:i.locals;if(void 0===u)return;var d=u.get(a.escapedText);if(void 0===d)return;var p=function(t){if(void 0===t.valueDeclaration)return e.firstOrUndefined(t.declarations);var n=t.valueDeclaration,r=e.isVariableDeclaration(n)?e.tryCast(n.parent.parent,e.isVariableStatement):void 0;return r&&1===e.length(r.declarationList.declarations)?r:n}(d);if(void 0===p)return;return{exportName:{node:a,isTypeOnly:e.isTypeDeclaration(p)},node:p,moduleSourceFile:l,moduleSpecifier:s}}}function o(t,n,r,i,a){e.length(i)&&(a?c(t,n,r,a,i):l(t,n,r,i))}function s(t,n){return e.findLast(t.statements,function(t){return e.isExportDeclaration(t)&&(n&&t.isTypeOnly||!t.isTypeOnly)})}function c(t,r,i,a,o){var s=a.exportClause&&e.isNamedExports(a.exportClause)?a.exportClause.elements:e.factory.createNodeArray([]),c=!(a.isTypeOnly||!r.getCompilerOptions().isolatedModules&&!e.find(s,function(e){return e.isTypeOnly}));t.replaceNode(i,a,e.factory.updateExportDeclaration(a,a.modifiers,a.isTypeOnly,e.factory.createNamedExports(e.factory.createNodeArray(n(n([],s,!0),u(o,c),!0),s.hasTrailingComma)),a.moduleSpecifier,a.assertClause))}function l(t,n,r,i){t.insertNodeAtEndOfScope(r,r,e.factory.createExportDeclaration(void 0,!1,e.factory.createNamedExports(u(i,!!n.getCompilerOptions().isolatedModules)),void 0,void 0))}function u(t,n){return e.factory.createNodeArray(e.map(t,function(t){return e.factory.createExportSpecifier(n&&t.isTypeOnly,void 0,t.node)}))}t.registerCodeFix({errorCodes:i,fixIds:[r],getCodeActions:function(n){var i=n.sourceFile,o=n.span,u=n.program,d=a(i,o.start,u);if(void 0!==d){var p=e.textChanges.ChangeTracker.with(n,function(t){return function(t,n,r){var i=r.exportName,a=r.node,o=r.moduleSourceFile,u=s(o,i.isTypeOnly);u?c(t,n,o,u,[i]):e.canHaveExportModifier(a)?t.insertExportModifier(o,a):l(t,n,o,[i])}(t,u,d)});return[t.createCodeFixAction(r,p,[e.Diagnostics.Export_0_from_module_1,d.exportName.node.text,d.moduleSpecifier],r,e.Diagnostics.Export_all_referenced_locals)]}},getAllCodeActions:function(r){var c=r.program;return t.createCombinedCodeActions(e.textChanges.ChangeTracker.with(r,function(l){var u=new e.Map;t.eachDiagnostic(r,i,function(t){var n=a(t.file,t.start,c);if(void 0!==n){var r=n.exportName,i=n.node,o=n.moduleSourceFile;if(void 0===s(o,r.isTypeOnly)&&e.canHaveExportModifier(i))l.insertExportModifier(o,i);else{var d=u.get(o)||{typeOnlyExports:[],exports:[]};r.isTypeOnly?d.typeOnlyExports.push(r):d.exports.push(r),u.set(o,d)}}}),u.forEach(function(e,t){var r=s(t,!0);r&&r.isTypeOnly?(o(l,c,t,e.typeOnlyExports,r),o(l,c,t,e.exports,s(t,!1))):o(l,c,t,n(n([],e.exports,!0),e.typeOnlyExports,!0),r)})}))}})}(e.codefix||(e.codefix={}))}(c||(c={})),function(e){var t,n,r;t=e.codefix||(e.codefix={}),n="fixIncorrectNamedTupleSyntax",r=[e.Diagnostics.A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type.code,e.Diagnostics.A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type.code],t.registerCodeFix({errorCodes:r,getCodeActions:function(r){var i=r.sourceFile,a=r.span,o=function(t,n){var r=e.getTokenAtPosition(t,n);return e.findAncestor(r,function(e){return 199===e.kind})}(i,a.start),s=e.textChanges.ChangeTracker.with(r,function(t){return function(t,n,r){if(r){for(var i=r.type,a=!1,o=!1;187===i.kind||188===i.kind||193===i.kind;)187===i.kind?a=!0:188===i.kind&&(o=!0),i=i.type;var s=e.factory.updateNamedTupleMember(r,r.dotDotDotToken||(o?e.factory.createToken(25):void 0),r.name,r.questionToken||(a?e.factory.createToken(57):void 0),i);s!==r&&t.replaceNode(n,r,s)}}(t,i,o)});return[t.createCodeFixAction(n,s,e.Diagnostics.Move_labeled_tuple_element_modifiers_to_labels,n,e.Diagnostics.Move_labeled_tuple_element_modifiers_to_labels)]},fixIds:[n]})}(c||(c={})),function(e){!function(t){var n="fixSpelling",r=[e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code,e.Diagnostics.Property_0_may_not_exist_on_type_1_Did_you_mean_2.code,e.Diagnostics.Cannot_find_name_0_Did_you_mean_1.code,e.Diagnostics.Could_not_find_name_0_Did_you_mean_1.code,e.Diagnostics.Cannot_find_namespace_0_Did_you_mean_1.code,e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,e.Diagnostics.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,e.Diagnostics._0_has_no_exported_member_named_1_Did_you_mean_2.code,e.Diagnostics.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1.code,e.Diagnostics.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1.code,e.Diagnostics.No_overload_matches_this_call.code,e.Diagnostics.Type_0_is_not_assignable_to_type_1.code];function i(t,n,r,i){var a=e.getTokenAtPosition(t,n),o=a.parent;if(i!==e.Diagnostics.No_overload_matches_this_call.code&&i!==e.Diagnostics.Type_0_is_not_assignable_to_type_1.code||e.isJsxAttribute(o)){var s,c=r.program.getTypeChecker();if(e.isPropertyAccessExpression(o)&&o.name===a){e.Debug.assert(e.isMemberName(a),"Expected an identifier for spelling (property access)");var l=c.getTypeAtLocation(o.expression);32&o.flags&&(l=c.getNonNullableType(l)),s=c.getSuggestedSymbolForNonexistentProperty(a,l)}else if(e.isBinaryExpression(o)&&101===o.operatorToken.kind&&o.left===a&&e.isPrivateIdentifier(a)){var u=c.getTypeAtLocation(o.right);s=c.getSuggestedSymbolForNonexistentProperty(a,u)}else if(e.isQualifiedName(o)&&o.right===a){var d=c.getSymbolAtLocation(o.left);d&&1536&d.flags&&(s=c.getSuggestedSymbolForNonexistentModule(o.right,d))}else if(e.isImportSpecifier(o)&&o.name===a){e.Debug.assertNode(a,e.isIdentifier,"Expected an identifier for spelling (import)");var p=function(t,n,r){if(r&&e.isStringLiteralLike(r.moduleSpecifier)){var i=e.getResolvedModule(t,r.moduleSpecifier.text,e.getModeForUsageLocation(t,r.moduleSpecifier));return i?n.program.getSourceFile(i.resolvedFileName):void 0}}(t,r,e.findAncestor(a,e.isImportDeclaration));p&&p.symbol&&(s=c.getSuggestedSymbolForNonexistentModule(a,p.symbol))}else if(e.isJsxAttribute(o)&&o.name===a){e.Debug.assertNode(a,e.isIdentifier,"Expected an identifier for JSX attribute");var m=e.findAncestor(a,e.isJsxOpeningLikeElement),f=c.getContextualTypeForArgumentAtIndex(m,0);s=c.getSuggestedSymbolForNonexistentJSXAttribute(a,f)}else if(e.hasSyntacticModifier(o,16384)&&e.isClassElement(o)&&o.name===a){var _=e.findAncestor(a,e.isClassLike),h=_?e.getEffectiveBaseTypeNode(_):void 0,g=h?c.getTypeAtLocation(h):void 0;g&&(s=c.getSuggestedSymbolForNonexistentClassMember(e.getTextOfNode(a),g))}else{var y=e.getMeaningFromLocation(a),v=e.getTextOfNode(a);e.Debug.assert(void 0!==v,"name should be defined"),s=c.getSuggestedSymbolForNonexistentSymbol(a,v,function(e){var t=0;return 4&e&&(t|=1920),2&e&&(t|=788968),1&e&&(t|=111551),t}(y))}return void 0===s?void 0:{node:a,suggestedSymbol:s}}}function a(t,n,r,i,a){var o=e.symbolName(i);if(!e.isIdentifierText(o,a)&&e.isPropertyAccessExpression(r.parent)){var s=i.valueDeclaration;s&&e.isNamedDeclaration(s)&&e.isPrivateIdentifier(s.name)?t.replaceNode(n,r,e.factory.createIdentifier(o)):t.replaceNode(n,r.parent,e.factory.createElementAccessExpression(r.parent.expression,e.factory.createStringLiteral(o)))}else t.replaceNode(n,r,e.factory.createIdentifier(o))}t.registerCodeFix({errorCodes:r,getCodeActions:function(r){var o=r.sourceFile,s=r.errorCode,c=i(o,r.span.start,r,s);if(c){var l=c.node,u=c.suggestedSymbol,d=e.getEmitScriptTarget(r.host.getCompilationSettings()),p=e.textChanges.ChangeTracker.with(r,function(e){return a(e,o,l,u,d)});return[t.createCodeFixAction("spelling",p,[e.Diagnostics.Change_spelling_to_0,e.symbolName(u)],n,e.Diagnostics.Fix_all_detected_spelling_errors)]}},fixIds:[n],getAllCodeActions:function(n){return t.codeFixAll(n,r,function(t,r){var o=i(r.file,r.start,n,r.code),s=e.getEmitScriptTarget(n.host.getCompilationSettings());o&&a(t,n.sourceFile,o.node,o.suggestedSymbol,s)})}})}(e.codefix||(e.codefix={}))}(c||(c={})),function(e){!function(t){var n,r="returnValueCorrect",i="fixAddReturnStatement",a="fixRemoveBracesFromArrowFunctionBody",o="fixWrapTheBlockWithParen",s=[e.Diagnostics.A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value.code,e.Diagnostics.Type_0_is_not_assignable_to_type_1.code,e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code];function c(t,n,r){var i=t.createSymbol(4,n.escapedText);i.type=t.getTypeAtLocation(r);var a=e.createSymbolTable([i]);return t.createAnonymousType(void 0,a,[],[],[])}function l(t,r,i,a){if(r.body&&e.isBlock(r.body)&&1===e.length(r.body.statements)){var o=e.first(r.body.statements);if(e.isExpressionStatement(o)&&u(t,r,t.getTypeAtLocation(o.expression),i,a))return{declaration:r,kind:n.MissingReturnStatement,expression:o.expression,statement:o,commentSource:o.expression};if(e.isLabeledStatement(o)&&e.isExpressionStatement(o.statement)){var s=e.factory.createObjectLiteralExpression([e.factory.createPropertyAssignment(o.label,o.statement.expression)]);if(u(t,r,c(t,o.label,o.statement.expression),i,a))return e.isArrowFunction(r)?{declaration:r,kind:n.MissingParentheses,expression:s,statement:o,commentSource:o.statement.expression}:{declaration:r,kind:n.MissingReturnStatement,expression:s,statement:o,commentSource:o.statement.expression}}else if(e.isBlock(o)&&1===e.length(o.statements)){var l=e.first(o.statements);if(e.isLabeledStatement(l)&&e.isExpressionStatement(l.statement)&&(s=e.factory.createObjectLiteralExpression([e.factory.createPropertyAssignment(l.label,l.statement.expression)]),u(t,r,c(t,l.label,l.statement.expression),i,a)))return{declaration:r,kind:n.MissingReturnStatement,expression:s,statement:o,commentSource:l}}}}function u(t,n,r,i,a){if(a){var o=t.getSignatureFromDeclaration(n);if(o){e.hasSyntacticModifier(n,512)&&(r=t.createPromiseType(r));var s=t.createSignature(n,o.typeParameters,o.thisParameter,o.parameters,r,void 0,o.minArgumentCount,o.flags);r=t.createAnonymousType(void 0,e.createSymbolTable(),[s],[],[])}else r=t.getAnyType()}return t.isTypeAssignableTo(r,i)}function d(t,n,r,i){var a=e.getTokenAtPosition(n,r);if(a.parent){var o=e.findAncestor(a.parent,e.isFunctionLikeDeclaration);switch(i){case e.Diagnostics.A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value.code:if(!(o&&o.body&&o.type&&e.rangeContainsRange(o.type,a)))return;return l(t,o,t.getTypeFromTypeNode(o.type),!1);case e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code:if(!o||!e.isCallExpression(o.parent)||!o.body)return;var s=o.parent.arguments.indexOf(o),c=t.getContextualTypeForArgumentAtIndex(o.parent,s);if(!c)return;return l(t,o,c,!0);case e.Diagnostics.Type_0_is_not_assignable_to_type_1.code:if(!e.isDeclarationName(a)||!e.isVariableLike(a.parent)&&!e.isJsxAttribute(a.parent))return;var u=function(t){switch(t.kind){case 257:case 166:case 205:case 169:case 299:return t.initializer;case 288:return t.initializer&&(e.isJsxExpression(t.initializer)?t.initializer.expression:void 0);case 300:case 168:case 302:case 350:case 343:return}}(a.parent);if(!u||!e.isFunctionLikeDeclaration(u)||!u.body)return;return l(t,u,t.getTypeAtLocation(a.parent),!0)}}}function p(t,n,r,i){e.suppressLeadingAndTrailingTrivia(r);var a=e.probablyUsesSemicolons(n);t.replaceNode(n,i,e.factory.createReturnStatement(r),{leadingTriviaOption:e.textChanges.LeadingTriviaOption.Exclude,trailingTriviaOption:e.textChanges.TrailingTriviaOption.Exclude,suffix:a?";":void 0})}function m(t,n,r,i,a,o){var s=e.needsParentheses(i)?e.factory.createParenthesizedExpression(i):i;e.suppressLeadingAndTrailingTrivia(a),e.copyComments(a,s),t.replaceNode(n,r.body,s)}function f(t,n,r,i){t.replaceNode(n,r.body,e.factory.createParenthesizedExpression(i))}function _(n,a,o){var s=e.textChanges.ChangeTracker.with(n,function(e){return p(e,n.sourceFile,a,o)});return t.createCodeFixAction(r,s,e.Diagnostics.Add_a_return_statement,i,e.Diagnostics.Add_all_missing_return_statement)}function h(n,i,a){var s=e.textChanges.ChangeTracker.with(n,function(e){return f(e,n.sourceFile,i,a)});return t.createCodeFixAction(r,s,e.Diagnostics.Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal,o,e.Diagnostics.Wrap_all_object_literal_with_parentheses)}!function(e){e[e.MissingReturnStatement=0]="MissingReturnStatement",e[e.MissingParentheses=1]="MissingParentheses"}(n||(n={})),t.registerCodeFix({errorCodes:s,fixIds:[i,a,o],getCodeActions:function(i){var o=i.program,s=i.sourceFile,c=i.span.start,l=i.errorCode,u=d(o.getTypeChecker(),s,c,l);if(u)return u.kind===n.MissingReturnStatement?e.append([_(i,u.expression,u.statement)],e.isArrowFunction(u.declaration)?function(n,i,o,s){var c=e.textChanges.ChangeTracker.with(n,function(e){return m(e,n.sourceFile,i,o,s)});return t.createCodeFixAction(r,c,e.Diagnostics.Remove_braces_from_arrow_function_body,a,e.Diagnostics.Remove_braces_from_all_arrow_function_bodies_with_relevant_issues)}(i,u.declaration,u.expression,u.commentSource):void 0):[h(i,u.declaration,u.expression)]},getAllCodeActions:function(n){return t.codeFixAll(n,s,function(t,r){var s=d(n.program.getTypeChecker(),r.file,r.start,r.code);if(s)switch(n.fixId){case i:p(t,r.file,s.expression,s.statement);break;case a:if(!e.isArrowFunction(s.declaration))return;m(t,r.file,s.declaration,s.expression,s.commentSource);break;case o:if(!e.isArrowFunction(s.declaration))return;f(t,r.file,s.declaration,s.expression);break;default:e.Debug.fail(JSON.stringify(n.fixId))}})}})}(e.codefix||(e.codefix={}))}(c||(c={})),function(e){!function(t){var r,i="fixMissingMember",a="fixMissingProperties",o="fixMissingAttributes",s="fixMissingFunctionDeclaration",c=[e.Diagnostics.Property_0_does_not_exist_on_type_1.code,e.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code,e.Diagnostics.Property_0_is_missing_in_type_1_but_required_in_type_2.code,e.Diagnostics.Type_0_is_missing_the_following_properties_from_type_1_Colon_2.code,e.Diagnostics.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more.code,e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,e.Diagnostics.Cannot_find_name_0.code];function l(t,n,i,a,o){var s=e.getTokenAtPosition(t,n),c=s.parent;if(i===e.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code){if(18!==s.kind||!e.isObjectLiteralExpression(c)||!e.isCallExpression(c.parent))return;var l=e.findIndex(c.parent.arguments,function(e){return e===c});if(l<0)return;if(!((f=a.getResolvedSignature(c.parent))&&f.declaration&&f.parameters[l]))return;var u=f.parameters[l].valueDeclaration;if(!(u&&e.isParameter(u)&&e.isIdentifier(u.name)))return;var d=e.arrayFrom(a.getUnmatchedProperties(a.getTypeAtLocation(c),a.getParameterType(f,l),!1,!1));if(!e.length(d))return;return{kind:r.ObjectLiteral,token:u.name,properties:d,parentDeclaration:c}}if(e.isMemberName(s)){if(e.isIdentifier(s)&&e.hasInitializer(c)&&c.initializer&&e.isObjectLiteralExpression(c.initializer)){if(d=e.arrayFrom(a.getUnmatchedProperties(a.getTypeAtLocation(c.initializer),a.getTypeAtLocation(s),!1,!1)),!e.length(d))return;return{kind:r.ObjectLiteral,token:s,properties:d,parentDeclaration:c.initializer}}if(e.isIdentifier(s)&&e.isJsxOpeningLikeElement(s.parent)){var p=function(t,n,r){var i=t.getContextualType(r.attributes);if(void 0===i)return e.emptyArray;var a=i.getProperties();if(!e.length(a))return e.emptyArray;for(var o=new e.Set,s=0,c=r.attributes.properties;s=e.ModuleKind.ES2015&&o99)&&(s=e.textChanges.ChangeTracker.with(n,function(n){if(e.getTsConfigObjectLiteralExpression(i)){var r=[["target",e.factory.createStringLiteral("es2017")]];o===e.ModuleKind.CommonJS&&r.push(["module",e.factory.createStringLiteral("commonjs")]),t.setJsonCompilerOptionValues(n,i,r)}}),a.push(t.createCodeFixActionWithoutFixAll("fixTargetOption",s,[e.Diagnostics.Set_the_target_option_in_your_configuration_file_to_0,"es2017"]))),a.length?a:void 0}}})}(c||(c={})),function(e){!function(t){var n="fixPropertyAssignment",r=[e.Diagnostics.Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern.code];function i(t,n,r){t.replaceNode(n,r,e.factory.createPropertyAssignment(r.name,r.objectAssignmentInitializer))}function a(t,n){return e.cast(e.getTokenAtPosition(t,n).parent,e.isShorthandPropertyAssignment)}t.registerCodeFix({errorCodes:r,fixIds:[n],getCodeActions:function(r){var o=a(r.sourceFile,r.span.start),s=e.textChanges.ChangeTracker.with(r,function(e){return i(e,r.sourceFile,o)});return[t.createCodeFixAction(n,s,[e.Diagnostics.Change_0_to_1,"=",":"],n,[e.Diagnostics.Switch_each_misused_0_to_1,"=",":"])]},getAllCodeActions:function(e){return t.codeFixAll(e,r,function(e,t){return i(e,t.file,a(t.file,t.start))})}})}(e.codefix||(e.codefix={}))}(c||(c={})),function(e){!function(t){var n="extendsInterfaceBecomesImplements",r=[e.Diagnostics.Cannot_extend_an_interface_0_Did_you_mean_implements.code];function i(t,n){var r=e.getTokenAtPosition(t,n),i=e.getContainingClass(r).heritageClauses,a=i[0].getFirstToken();return 94===a.kind?{extendsToken:a,heritageClauses:i}:void 0}function a(t,n,r,i){if(t.replaceNode(n,r,e.factory.createToken(117)),2===i.length&&94===i[0].token&&117===i[1].token){var a=i[1].getFirstToken(),o=a.getFullStart();t.replaceRange(n,{pos:o,end:o},e.factory.createToken(27));for(var s=n.text,c=a.end;c":">","}":"}"};function o(t,n,r,i,o){var s=r.getText()[i];if(function(t){return e.hasProperty(a,t)}(s)){var c=o?a[s]:"{".concat(e.quote(r,n,s),"}");t.replaceRangeWithText(r,{pos:i,end:i+1},c)}}}(e.codefix||(e.codefix={}))}(c||(c={})),function(e){!function(t){var n="deleteUnmatchedParameter",r="renameUnmatchedParameter",i=[e.Diagnostics.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name.code];function a(t,n){var r=e.getTokenAtPosition(t,n);if(r.parent&&e.isJSDocParameterTag(r.parent)&&e.isIdentifier(r.parent.name)){var i=r.parent,a=e.getHostSignatureFromJSDoc(i);if(a)return{signature:a,name:r.parent.name,jsDocParameterTag:i}}}t.registerCodeFix({fixIds:[n,r],errorCodes:i,getCodeActions:function(i){var o=[],s=a(i.sourceFile,i.span.start);if(s)return e.append(o,function(r,i){var a=i.name,o=i.signature,s=i.jsDocParameterTag,c=e.textChanges.ChangeTracker.with(r,function(e){return e.filterJSDocTags(r.sourceFile,o,function(e){return e!==s})});return t.createCodeFixAction(n,c,[e.Diagnostics.Delete_unused_param_tag_0,a.getText(r.sourceFile)],n,e.Diagnostics.Delete_all_unused_param_tags)}(i,s)),e.append(o,function(n,i){var a=i.name,o=i.signature,s=i.jsDocParameterTag;if(e.length(o.parameters)){for(var c=n.sourceFile,l=e.getJSDocTags(o),u=new e.Set,d=0,p=l;dl,v=e.isPropertyAccessExpression(h.node.parent)&&e.isSuperKeyword(h.node.parent.expression)&&e.isCallExpression(h.node.parent.parent)&&h.node.parent.parent.arguments.length>l,b=(e.isMethodDeclaration(h.node.parent)||e.isMethodSignature(h.node.parent))&&h.node.parent!==r.parent&&h.node.parent.parameters.length>l;if(g||v||b)return!1}}return!0;case 259:return!c.name||!function(t,n,r){return!!e.FindAllReferences.Core.eachSymbolReferenceInFile(r,t,n,function(t){return e.isIdentifier(t)&&e.isCallExpression(t.parent)&&t.parent.arguments.indexOf(t)>=0})}(t,n,c.name)||y(c,r,s);case 215:case 216:return y(c,r,s);case 175:return!1;case 174:return!0;default:return e.Debug.failBadSyntaxKind(c)}}(i,n,r,a,o,s,c))if(r.modifiers&&r.modifiers.length>0&&(!e.isIdentifier(r.name)||e.FindAllReferences.Core.isSymbolReferencedInFile(r.name,i,n)))for(var l=0,u=r.modifiers;li})}function y(t,n,r){var i=t.parameters,a=i.indexOf(n);return e.Debug.assert(-1!==a,"The parameter should already be in the list"),r?i.slice(a+1).every(function(t){return e.isIdentifier(t.name)&&!t.symbol.isReferenced}):a===i.length-1}t.registerCodeFix({errorCodes:s,getCodeActions:function(i){var s=i.errorCode,g=i.sourceFile,y=i.program,v=i.cancellationToken,b=y.getTypeChecker(),E=y.getSourceFiles(),x=e.getTokenAtPosition(g,i.span.start);if(e.isJSDocTemplateTag(x))return[l(e.textChanges.ChangeTracker.with(i,function(e){return e.delete(g,x)}),e.Diagnostics.Remove_template_tag)];if(29===x.kind){var S=e.textChanges.ChangeTracker.with(i,function(e){return u(e,g,x)});return[l(S,e.Diagnostics.Remove_type_parameters)]}var T=p(x);if(T)return S=e.textChanges.ChangeTracker.with(i,function(e){return e.delete(g,T)}),[t.createCodeFixAction(n,S,[e.Diagnostics.Remove_import_from_0,e.showModuleSpecifier(T)],a,e.Diagnostics.Delete_all_unused_imports)];if(d(x)){var C=e.textChanges.ChangeTracker.with(i,function(e){return h(g,x,e,b,E,y,v,!1)});if(C.length)return[t.createCodeFixAction(n,C,[e.Diagnostics.Remove_unused_declaration_for_Colon_0,x.getText(g)],a,e.Diagnostics.Delete_all_unused_imports)]}if(e.isObjectBindingPattern(x.parent)||e.isArrayBindingPattern(x.parent)){if(e.isParameter(x.parent.parent)){var D=x.parent.elements,L=[D.length>1?e.Diagnostics.Remove_unused_declarations_for_Colon_0:e.Diagnostics.Remove_unused_declaration_for_Colon_0,e.map(D,function(e){return e.getText(g)}).join(", ")];return[l(e.textChanges.ChangeTracker.with(i,function(t){return function(t,n,r){e.forEach(r.elements,function(e){return t.delete(n,e)})}(t,g,x.parent)}),L)]}return[l(e.textChanges.ChangeTracker.with(i,function(e){return e.delete(g,x.parent.parent)}),e.Diagnostics.Remove_unused_destructuring_declaration)]}if(m(g,x))return[l(e.textChanges.ChangeTracker.with(i,function(e){return f(e,g,x.parent)}),e.Diagnostics.Remove_variable_statement)];var A=[];if(138===x.kind){S=e.textChanges.ChangeTracker.with(i,function(e){return c(e,g,x)});var N=e.cast(x.parent,e.isInferTypeNode).typeParameter.name.text;A.push(t.createCodeFixAction(n,S,[e.Diagnostics.Replace_infer_0_with_unknown,N],o,e.Diagnostics.Replace_all_unused_infer_with_unknown))}else C=e.textChanges.ChangeTracker.with(i,function(e){return h(g,x,e,b,E,y,v,!1)}),C.length&&(N=e.isComputedPropertyName(x.parent)?x.parent:x,A.push(l(C,[e.Diagnostics.Remove_unused_declaration_for_Colon_0,N.getText(g)])));var k=e.textChanges.ChangeTracker.with(i,function(e){return _(e,s,g,x)});return k.length&&A.push(t.createCodeFixAction(n,k,[e.Diagnostics.Prefix_0_with_an_underscore,x.getText(g)],r,e.Diagnostics.Prefix_all_unused_declarations_with_where_possible)),A},fixIds:[r,i,a,o],getAllCodeActions:function(n){var l=n.sourceFile,y=n.program,v=n.cancellationToken,b=y.getTypeChecker(),E=y.getSourceFiles();return t.codeFixAll(n,s,function(t,s){var x=e.getTokenAtPosition(l,s.start);switch(n.fixId){case r:_(t,s.code,l,x);break;case a:var S=p(x);S?t.delete(l,S):d(x)&&h(l,x,t,b,E,y,v,!0);break;case i:if(138===x.kind||d(x))break;if(e.isJSDocTemplateTag(x))t.delete(l,x);else if(29===x.kind)u(t,l,x);else if(e.isObjectBindingPattern(x.parent)){if(x.parent.parent.initializer)break;e.isParameter(x.parent.parent)&&!g(x.parent.parent,b,E)||t.delete(l,x.parent.parent)}else{if(e.isArrayBindingPattern(x.parent.parent)&&x.parent.parent.parent.initializer)break;m(l,x)?f(t,l,x.parent):h(l,x,t,b,E,y,v,!0)}break;case o:138===x.kind&&c(t,l,x);break;default:e.Debug.fail(JSON.stringify(n.fixId))}})}})}(e.codefix||(e.codefix={}))}(c||(c={})),function(e){!function(t){var n="fixUnreachableCode",r=[e.Diagnostics.Unreachable_code_detected.code];function i(t,n,r,i,a){var o=e.getTokenAtPosition(n,r),s=e.findAncestor(o,e.isStatement);if(s.getStart(n)!==o.getStart(n)){var c=JSON.stringify({statementKind:e.Debug.formatSyntaxKind(s.kind),tokenKind:e.Debug.formatSyntaxKind(o.kind),errorCode:a,start:r,length:i});e.Debug.fail("Token and statement should start at the same point. "+c)}var l=(e.isBlock(s.parent)?s.parent:s).parent;if(!e.isBlock(s.parent)||s===e.first(s.parent.statements))switch(l.kind){case 242:if(l.elseStatement){if(e.isBlock(s.parent))break;return void t.replaceNode(n,s,e.factory.createBlock(e.emptyArray))}case 244:case 245:return void t.delete(n,l)}if(e.isBlock(s.parent)){var u=r+i,d=e.Debug.checkDefined(function(e,t){for(var n,r=0,i=e;rK.length?W(k,v.getSignatureFromDeclaration(h[h.length-1]),D,$(S),q(u,k)):(e.Debug.assert(h.length===K.length,"Declarations and signatures should match count"),l(function(t,r,i,a,o,s,c,l,u){for(var d=a[0],f=a[0].minArgumentCount,_=!1,h=0,g=a;h=d.parameters.length&&(!e.signatureHasRestParameter(y)||e.signatureHasRestParameter(d))&&(d=y)}var v=d.parameters.length-(e.signatureHasRestParameter(d)?1:0),b=d.parameters.map(function(e){return e.name}),E=p(v,b,void 0,f,!1);if(_){var x=e.factory.createParameterDeclaration(void 0,e.factory.createToken(25),b[v]||"rest",v>=f?e.factory.createToken(57):void 0,e.factory.createArrayTypeNode(e.factory.createKeywordTypeNode(157)),void 0);E.push(x)}return function(t,n,r,i,a,o,s,c){return e.factory.createMethodDeclaration(t,void 0,n,r?e.factory.createToken(57):void 0,void 0,a,o,c||m(s))}(c,o,s,0,E,function(t,r,i,a){if(e.length(t)){var o=r.getUnionType(e.map(t,r.getReturnTypeOfSignature));return r.typeToTypeNode(o,a,void 0,n(i))}}(a,t,r,i),l,u)}(v,o,r,K,$(S),A&&!!(1&d),D,k,u))))}function W(e,t,n,i,s){var u=a(171,o,e,t,s,i,n,A&&!!(1&d),r,c);u&&l(u)}function $(t){return e.getSynthesizedDeepClone(t,!1)}function q(t,n,r){return r?void 0:e.getSynthesizedDeepClone(t,!1)||m(n)}function z(t){return e.getSynthesizedDeepClone(t,!1)}}function a(t,r,i,a,o,s,c,l,u,d){var p=r.program,m=p.getTypeChecker(),f=e.getEmitScriptTarget(p.getCompilerOptions()),_=524545|(0===i?268435456:0),h=m.signatureToSignatureDeclaration(a,t,u,_,n(r));if(h){var g=h.typeParameters,v=h.parameters,E=h.type;if(d){if(g){var x=e.sameMap(g,function(t){var n,r=t.constraint,i=t.default;return r&&(n=y(r,f))&&(r=n.typeNode,b(d,n.symbols)),i&&(n=y(i,f))&&(i=n.typeNode,b(d,n.symbols)),e.factory.updateTypeParameterDeclaration(t,t.modifiers,t.name,r,i)});g!==x&&(g=e.setTextRange(e.factory.createNodeArray(x,g.hasTrailingComma),g))}var S=e.sameMap(v,function(t){var n=y(t.type,f),r=t.type;return n&&(r=n.typeNode,b(d,n.symbols)),e.factory.updateParameterDeclaration(t,t.modifiers,t.dotDotDotToken,t.name,t.questionToken,r,t.initializer)});if(v!==S&&(v=e.setTextRange(e.factory.createNodeArray(S,v.hasTrailingComma),v)),E){var T=y(E,f);T&&(E=T.typeNode,b(d,T.symbols))}}var C=l?e.factory.createToken(57):void 0,D=h.asteriskToken;return e.isFunctionExpression(h)?e.factory.updateFunctionExpression(h,c,h.asteriskToken,e.tryCast(s,e.isIdentifier),g,v,E,null!=o?o:h.body):e.isArrowFunction(h)?e.factory.updateArrowFunction(h,c,g,v,E,h.equalsGreaterThanToken,null!=o?o:h.body):e.isMethodDeclaration(h)?e.factory.updateMethodDeclaration(h,c,D,null!=s?s:e.factory.createIdentifier(""),C,g,v,E,o):e.isFunctionDeclaration(h)?e.factory.updateFunctionDeclaration(h,c,h.asteriskToken,e.tryCast(s,e.isIdentifier),g,v,E,null!=o?o:h.body):void 0}}function o(e){return 84+e<=90?String.fromCharCode(84+e):"T".concat(e)}function s(t,n,r,i,a,o,s){var c=t.typeToTypeNode(r,i,o,s);if(c&&e.isImportTypeNode(c)){var l=y(c,a);l&&(b(n,l.symbols),c=l.typeNode)}return e.getSynthesizedDeepClone(c)}function c(e){return e.isUnionOrIntersection()?e.types.some(c):262144&e.flags}function l(t,n,r,i,a,l,p){for(var m=[],f=new e.Map,_=0;_=i?e.factory.createToken(57):void 0,a?void 0:(null==r?void 0:r[c])||e.factory.createKeywordTypeNode(157),void 0);o.push(d)}return o}function m(t){return f(e.Diagnostics.Method_not_implemented.message,t)}function f(t,n){return e.factory.createBlock([e.factory.createThrowStatement(e.factory.createNewExpression(e.factory.createIdentifier("Error"),void 0,[e.factory.createStringLiteral(t,0===n)]))],!0)}function _(t,n,r){var i=e.getTsConfigObjectLiteralExpression(n);if(i){var a=g(i,"compilerOptions");if(void 0!==a){var o=a.initializer;if(e.isObjectLiteralExpression(o))for(var s=0,c=r;s0)return[t.createCodeFixAction(n,a,e.Diagnostics.Convert_to_a_bigint_numeric_literal,n,e.Diagnostics.Convert_all_to_bigint_numeric_literals)]},fixIds:[n],getAllCodeActions:function(e){return t.codeFixAll(e,r,function(e,t){return i(e,t.file,t)})}})}(e.codefix||(e.codefix={}))}(c||(c={})),function(e){!function(t){var n="fixAddModuleReferTypeMissingTypeof",r=[e.Diagnostics.Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0.code];function i(t,n){var r=e.getTokenAtPosition(t,n);return e.Debug.assert(100===r.kind,"This token should be an ImportKeyword"),e.Debug.assert(202===r.parent.kind,"Token parent should be an ImportType"),r.parent}function a(t,n,r){var i=e.factory.updateImportTypeNode(r,r.argument,r.assertions,r.qualifier,r.typeArguments,!0);t.replaceNode(n,r,i)}t.registerCodeFix({errorCodes:r,getCodeActions:function(r){var o=r.sourceFile,s=r.span,c=i(o,s.start),l=e.textChanges.ChangeTracker.with(r,function(e){return a(e,o,c)});return[t.createCodeFixAction(n,l,e.Diagnostics.Add_missing_typeof,n,e.Diagnostics.Add_missing_typeof)]},fixIds:[n],getAllCodeActions:function(e){return t.codeFixAll(e,r,function(t,n){return a(t,e.sourceFile,i(n.file,n.start))})}})}(e.codefix||(e.codefix={}))}(c||(c={})),function(e){!function(t){var n="wrapJsxInFragment",r=[e.Diagnostics.JSX_expressions_must_have_one_parent_element.code];function i(t,n){var r=e.getTokenAtPosition(t,n).parent.parent;if((e.isBinaryExpression(r)||(r=r.parent,e.isBinaryExpression(r)))&&e.nodeIsMissing(r.operatorToken))return r}function a(t,n,r){var i=function(t){for(var n=[],r=t;;){if(e.isBinaryExpression(r)&&e.nodeIsMissing(r.operatorToken)&&27===r.operatorToken.kind){if(n.push(r.left),e.isJsxChild(r.right))return n.push(r.right),n;if(e.isBinaryExpression(r.right)){r=r.right;continue}return}return}}(r);i&&t.replaceNode(n,r,e.factory.createJsxFragment(e.factory.createJsxOpeningFragment(),i,e.factory.createJsxJsxClosingFragment()))}t.registerCodeFix({errorCodes:r,getCodeActions:function(r){var o=r.sourceFile,s=r.span,c=i(o,s.start);if(c){var l=e.textChanges.ChangeTracker.with(r,function(e){return a(e,o,c)});return[t.createCodeFixAction(n,l,e.Diagnostics.Wrap_in_JSX_fragment,n,e.Diagnostics.Wrap_all_unparented_JSX_in_JSX_fragment)]}},fixIds:[n],getAllCodeActions:function(e){return t.codeFixAll(e,r,function(t,n){var r=i(e.sourceFile,n.start);r&&a(t,e.sourceFile,r)})}})}(e.codefix||(e.codefix={}))}(c||(c={})),function(e){!function(t){var r="fixConvertToMappedObjectType",i=[e.Diagnostics.An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead.code];function a(t,n){var r=e.getTokenAtPosition(t,n),i=e.tryCast(r.parent.parent,e.isIndexSignatureDeclaration);if(i){var a=e.isInterfaceDeclaration(i.parent)?i.parent:e.tryCast(i.parent.parent,e.isTypeAliasDeclaration);if(a)return{indexSignature:i,container:a}}}function o(t,r,i){var a=i.indexSignature,o=i.container,s=(e.isInterfaceDeclaration(o)?o.members:o.type.members).filter(function(t){return!e.isIndexSignatureDeclaration(t)}),c=e.first(a.parameters),l=e.factory.createTypeParameterDeclaration(void 0,e.cast(c.name,e.isIdentifier),c.type),u=e.factory.createMappedTypeNode(e.hasEffectiveReadonlyModifier(a)?e.factory.createModifier(146):void 0,l,void 0,a.questionToken,a.type,void 0),d=e.factory.createIntersectionTypeNode(n(n(n([],e.getAllSuperTypeNodes(o),!0),[u],!1),s.length?[e.factory.createTypeLiteralNode(s)]:e.emptyArray,!0));t.replaceNode(r,o,function(t,n){return e.factory.createTypeAliasDeclaration(t.modifiers,t.name,t.typeParameters,n)}(o,d))}t.registerCodeFix({errorCodes:i,getCodeActions:function(n){var i=n.sourceFile,s=n.span,c=a(i,s.start);if(c){var l=e.textChanges.ChangeTracker.with(n,function(e){return o(e,i,c)}),u=e.idText(c.container.name);return[t.createCodeFixAction(r,l,[e.Diagnostics.Convert_0_to_mapped_object_type,u],r,[e.Diagnostics.Convert_0_to_mapped_object_type,u])]}},fixIds:[r],getAllCodeActions:function(e){return t.codeFixAll(e,i,function(e,t){var n=a(t.file,t.start);n&&o(e,t.file,n)})}})}(e.codefix||(e.codefix={}))}(c||(c={})),function(e){var t,n,r;t=e.codefix||(e.codefix={}),n="removeAccidentalCallParentheses",r=[e.Diagnostics.This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without.code],t.registerCodeFix({errorCodes:r,getCodeActions:function(r){var i=e.findAncestor(e.getTokenAtPosition(r.sourceFile,r.span.start),e.isCallExpression);if(i){var a=e.textChanges.ChangeTracker.with(r,function(e){e.deleteRange(r.sourceFile,{pos:i.expression.end,end:i.end})});return[t.createCodeFixActionWithoutFixAll(n,a,e.Diagnostics.Remove_parentheses)]}},fixIds:[n]})}(c||(c={})),function(e){!function(t){var n="removeUnnecessaryAwait",r=[e.Diagnostics.await_has_no_effect_on_the_type_of_this_expression.code];function i(t,n,r){var i=e.tryCast(e.getTokenAtPosition(n,r.start),function(e){return 133===e.kind}),a=i&&e.tryCast(i.parent,e.isAwaitExpression);if(a){var o=a;if(e.isParenthesizedExpression(a.parent)){var s=e.getLeftmostExpression(a.expression,!1);if(e.isIdentifier(s)){var c=e.findPrecedingToken(a.parent.pos,n);c&&103!==c.kind&&(o=a.parent)}}t.replaceNode(n,o,a.expression)}}t.registerCodeFix({errorCodes:r,getCodeActions:function(r){var a=e.textChanges.ChangeTracker.with(r,function(e){return i(e,r.sourceFile,r.span)});if(a.length>0)return[t.createCodeFixAction(n,a,e.Diagnostics.Remove_unnecessary_await,n,e.Diagnostics.Remove_all_unnecessary_uses_of_await)]},fixIds:[n],getAllCodeActions:function(e){return t.codeFixAll(e,r,function(e,t){return i(e,t.file,t)})}})}(e.codefix||(e.codefix={}))}(c||(c={})),function(e){!function(t){var n=[e.Diagnostics.A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both.code],r="splitTypeOnlyImport";function i(t,n){return e.findAncestor(e.getTokenAtPosition(t,n.start),e.isImportDeclaration)}function a(t,n,r){if(n){var i=e.Debug.checkDefined(n.importClause);t.replaceNode(r.sourceFile,n,e.factory.updateImportDeclaration(n,n.modifiers,e.factory.updateImportClause(i,i.isTypeOnly,i.name,void 0),n.moduleSpecifier,n.assertClause)),t.insertNodeAfter(r.sourceFile,n,e.factory.createImportDeclaration(void 0,e.factory.updateImportClause(i,i.isTypeOnly,void 0,i.namedBindings),n.moduleSpecifier,n.assertClause))}}t.registerCodeFix({errorCodes:n,fixIds:[r],getCodeActions:function(n){var o=e.textChanges.ChangeTracker.with(n,function(e){return a(e,i(n.sourceFile,n.span),n)});if(o.length)return[t.createCodeFixAction(r,o,e.Diagnostics.Split_into_two_separate_import_declarations,r,e.Diagnostics.Split_all_invalid_type_only_imports)]},getAllCodeActions:function(e){return t.codeFixAll(e,n,function(t,n){a(t,i(e.sourceFile,n),e)})}})}(e.codefix||(e.codefix={}))}(c||(c={})),function(e){!function(t){var n="fixConvertConstToLet",r=[e.Diagnostics.Cannot_assign_to_0_because_it_is_a_constant.code];function i(t,n,r){var i,a=r.getTypeChecker().getSymbolAtLocation(e.getTokenAtPosition(t,n));if(void 0!==a){var o=e.tryCast(null===(i=null==a?void 0:a.valueDeclaration)||void 0===i?void 0:i.parent,e.isVariableDeclarationList);if(void 0!==o){var s=e.findChildOfKind(o,85,t);if(void 0!==s)return{symbol:a,token:s}}}}function a(t,n,r){t.replaceNode(n,r,e.factory.createToken(119))}t.registerCodeFix({errorCodes:r,getCodeActions:function(r){var o=r.sourceFile,s=r.span,c=r.program,l=i(o,s.start,c);if(void 0!==l){var u=e.textChanges.ChangeTracker.with(r,function(e){return a(e,o,l.token)});return[t.createCodeFixActionMaybeFixAll(n,u,e.Diagnostics.Convert_const_to_let,n,e.Diagnostics.Convert_all_const_to_let)]}},getAllCodeActions:function(n){var o=n.program,s=new e.Map;return t.createCombinedCodeActions(e.textChanges.ChangeTracker.with(n,function(c){t.eachDiagnostic(n,r,function(t){var n=i(t.file,t.start,o);if(n&&e.addToSeen(s,e.getSymbolId(n.symbol)))return a(c,t.file,n.token)})}))},fixIds:[n]})}(e.codefix||(e.codefix={}))}(c||(c={})),function(e){!function(t){var n="fixExpectedComma",r=[e.Diagnostics._0_expected.code];function i(t,n,r){var i=e.getTokenAtPosition(t,n);return 26===i.kind&&i.parent&&(e.isObjectLiteralExpression(i.parent)||e.isArrayLiteralExpression(i.parent))?{node:i}:void 0}function a(t,n,r){var i=r.node,a=e.factory.createToken(27);t.replaceNode(n,i,a)}t.registerCodeFix({errorCodes:r,getCodeActions:function(r){var o=r.sourceFile,s=i(o,r.span.start,r.errorCode);if(s){var c=e.textChanges.ChangeTracker.with(r,function(e){return a(e,o,s)});return[t.createCodeFixAction(n,c,[e.Diagnostics.Change_0_to_1,";",","],n,[e.Diagnostics.Change_0_to_1,";",","])]}},fixIds:[n],getAllCodeActions:function(e){return t.codeFixAll(e,r,function(t,n){var r=i(n.file,n.start,n.code);r&&a(t,e.sourceFile,r)})}})}(e.codefix||(e.codefix={}))}(c||(c={})),function(e){!function(t){var n="addVoidToPromise",r=[e.Diagnostics.Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_without_arguments.code,e.Diagnostics.Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise.code];function i(t,n,r,i,a){var o=e.getTokenAtPosition(n,r.start);if(e.isIdentifier(o)&&e.isCallExpression(o.parent)&&o.parent.expression===o&&0===o.parent.arguments.length){var s=i.getTypeChecker(),c=s.getSymbolAtLocation(o),l=null==c?void 0:c.valueDeclaration;if(l&&e.isParameter(l)&&e.isNewExpression(l.parent.parent)&&!(null==a?void 0:a.has(l))){null==a||a.add(l);var u=function(t){var n;if(!e.isInJSFile(t))return t.typeArguments;if(e.isParenthesizedExpression(t.parent)){var r=null===(n=e.getJSDocTypeTag(t.parent))||void 0===n?void 0:n.typeExpression.type;if(r&&e.isTypeReferenceNode(r)&&e.isIdentifier(r.typeName)&&"Promise"===e.idText(r.typeName))return r.typeArguments}}(l.parent.parent);if(e.some(u)){var d=u[0],p=!e.isUnionTypeNode(d)&&!e.isParenthesizedTypeNode(d)&&e.isParenthesizedTypeNode(e.factory.createUnionTypeNode([d,e.factory.createKeywordTypeNode(114)]).types[0]);p&&t.insertText(n,d.pos,"("),t.insertText(n,d.end,p?") | void":" | void")}else{var m=s.getResolvedSignature(o.parent),f=null==m?void 0:m.parameters[0],_=f&&s.getTypeOfSymbolAtLocation(f,l.parent.parent);e.isInJSFile(l)?(!_||3&_.flags)&&(t.insertText(n,l.parent.parent.end,")"),t.insertText(n,e.skipTrivia(n.text,l.parent.parent.pos),"/** @type {Promise} */(")):(!_||2&_.flags)&&t.insertText(n,l.parent.parent.expression.end,"")}}}}t.registerCodeFix({errorCodes:r,fixIds:[n],getCodeActions:function(r){var a=e.textChanges.ChangeTracker.with(r,function(e){return i(e,r.sourceFile,r.span,r.program)});if(a.length>0)return[t.createCodeFixAction("addVoidToPromise",a,e.Diagnostics.Add_void_to_Promise_resolved_without_a_value,n,e.Diagnostics.Add_void_to_all_Promises_resolved_without_a_value)]},getAllCodeActions:function(n){return t.codeFixAll(n,r,function(t,r){return i(t,r.file,r,n.program,new e.Set)})}})}(e.codefix||(e.codefix={}))}(c||(c={})),function(e){!function(t){var n="Convert export",i={name:"Convert default export to named export",description:e.Diagnostics.Convert_default_export_to_named_export.message,kind:"refactor.rewrite.export.named"},a={name:"Convert named export to default export",description:e.Diagnostics.Convert_named_export_to_default_export.message,kind:"refactor.rewrite.export.default"};function o(t,n){void 0===n&&(n=!0);var r=t.file,i=t.program,a=e.getRefactorContextSpan(t),o=e.getTokenAtPosition(r,a.start),s=o.parent&&1&e.getSyntacticModifierFlags(o.parent)&&n?o.parent:e.getParentNodeInSpan(o,r,a);if(!s||!(e.isSourceFile(s.parent)||e.isModuleBlock(s.parent)&&e.isAmbientModule(s.parent.parent)))return{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_export_statement)};var c=i.getTypeChecker(),l=function(t,n){var r=t.parent;if(e.isSourceFile(r))return r.symbol;var i=r.parent.symbol;return i.valueDeclaration&&e.isExternalModuleAugmentation(i.valueDeclaration)?n.getMergedSymbol(i):i}(s,c),u=e.getSyntacticModifierFlags(s)||(e.isExportAssignment(s)&&!s.isExportEquals?1025:0),d=!!(1024&u);if(!(1&u)||!d&&l.exports.has("default"))return{error:e.getLocaleSpecificMessage(e.Diagnostics.This_file_already_has_a_default_export)};var p=function(t){return e.isIdentifier(t)&&c.getSymbolAtLocation(t)?void 0:{error:e.getLocaleSpecificMessage(e.Diagnostics.Can_only_convert_named_export)}};switch(s.kind){case 259:case 260:case 261:case 263:case 262:case 264:if(!(_=s).name)return;return p(_.name)||{exportNode:_,exportName:_.name,wasDefault:d,exportingModuleSymbol:l};case 240:var m=s;if(!(2&m.declarationList.flags)||1!==m.declarationList.declarations.length)return;var f=e.first(m.declarationList.declarations);if(!f.initializer)return;return e.Debug.assert(!d,"Can't have a default flag here"),p(f.name)||{exportNode:m,exportName:f.name,wasDefault:d,exportingModuleSymbol:l};case 274:var _;if((_=s).isExportEquals)return;return p(_.expression)||{exportNode:_,exportName:_.expression,wasDefault:d,exportingModuleSymbol:l};default:return}}function s(t,n){return e.factory.createImportSpecifier(!1,t===n?void 0:e.factory.createIdentifier(t),e.factory.createIdentifier(n))}function c(t,n){return e.factory.createExportSpecifier(!1,t===n?void 0:e.factory.createIdentifier(t),e.factory.createIdentifier(n))}t.registerRefactor(n,{kinds:[i.kind,a.kind],getAvailableActions:function(s){var c=o(s,"invoked"===s.triggerReason);if(!c)return e.emptyArray;if(!t.isRefactorErrorInfo(c)){var l=c.wasDefault?i:a;return[{name:n,description:l.description,actions:[l]}]}return s.preferences.provideRefactorNotApplicableReason?[{name:n,description:e.Diagnostics.Convert_default_export_to_named_export.message,actions:[r(r({},i),{notApplicableReason:c.error}),r(r({},a),{notApplicableReason:c.error})]}]:e.emptyArray},getEditsForAction:function(n,r){e.Debug.assert(r===i.name||r===a.name,"Unexpected action name");var l=o(n);e.Debug.assert(l&&!t.isRefactorErrorInfo(l),"Expected applicable refactor info");var u=e.textChanges.ChangeTracker.with(n,function(t){return function(t,n,r,i,a){(function(t,n,r,i){var a=n.wasDefault,o=n.exportNode,s=n.exportName;if(a)if(e.isExportAssignment(o)&&!o.isExportEquals){var l=o.expression,u=c(l.text,l.text);r.replaceNode(t,o,e.factory.createExportDeclaration(void 0,!1,e.factory.createNamedExports([u])))}else r.delete(t,e.Debug.checkDefined(e.findModifier(o,88),"Should find a default keyword in modifier list"));else{var d=e.Debug.checkDefined(e.findModifier(o,93),"Should find an export keyword in modifier list");switch(o.kind){case 259:case 260:case 261:r.insertNodeAfter(t,d,e.factory.createToken(88));break;case 240:var p=e.first(o.declarationList.declarations);if(!e.FindAllReferences.Core.isSymbolReferencedInFile(s,i,t)&&!p.type){r.replaceNode(t,o,e.factory.createExportDefault(e.Debug.checkDefined(p.initializer,"Initializer was previously known to be present")));break}case 263:case 262:case 264:r.deleteModifier(t,d),r.insertNodeAfter(t,o,e.factory.createExportDefault(e.factory.createIdentifier(s.text)));break;default:e.Debug.fail("Unexpected exportNode kind ".concat(o.kind))}}})(t,r,i,n.getTypeChecker()),function(t,n,r,i){var a=n.wasDefault,o=n.exportName,l=n.exportingModuleSymbol,u=t.getTypeChecker(),d=e.Debug.checkDefined(u.getSymbolAtLocation(o),"Export name should resolve to a symbol");e.FindAllReferences.Core.eachExportReference(t.getSourceFiles(),u,i,d,l,o.text,a,function(t){if(o!==t){var n=t.getSourceFile();a?function(t,n,r,i){var a=n.parent;switch(a.kind){case 208:r.replaceNode(t,n,e.factory.createIdentifier(i));break;case 273:case 278:var o=a;r.replaceNode(t,o,s(i,o.name.text));break;case 270:var c=a;e.Debug.assert(c.name===n,"Import clause name should match provided ref"),o=s(i,n.text);var l=c.namedBindings;if(l)if(271===l.kind){r.deleteRange(t,{pos:n.getStart(t),end:l.getStart(t)});var u=e.isStringLiteral(c.parent.moduleSpecifier)?e.quotePreferenceFromString(c.parent.moduleSpecifier,t):1,d=e.makeImport(void 0,[s(i,n.text)],c.parent.moduleSpecifier,u);r.insertNodeAfter(t,c.parent,d)}else r.delete(t,n),r.insertNodeAtEndOfList(t,l.elements,o);else r.replaceNode(t,n,e.factory.createNamedImports([o]));break;case 202:var p=a;r.replaceNode(t,a,e.factory.createImportTypeNode(p.argument,p.assertions,e.factory.createIdentifier(i),p.typeArguments,p.isTypeOf));break;default:e.Debug.failBadSyntaxKind(a)}}(n,t,r,o.text):function(t,n,r){var i=n.parent;switch(i.kind){case 208:r.replaceNode(t,n,e.factory.createIdentifier("default"));break;case 273:var a=e.factory.createIdentifier(i.name.text);1===i.parent.elements.length?r.replaceNode(t,i.parent,a):(r.delete(t,i),r.insertNodeBefore(t,i.parent,a));break;case 278:r.replaceNode(t,i,c("default",i.name.text));break;default:e.Debug.assertNever(i,"Unexpected parent kind ".concat(i.kind))}}(n,t,r)}})}(n,r,i,a)}(n.file,n.program,l,t,n.cancellationToken)});return{edits:u,renameFilename:void 0,renameLocation:void 0}}})}(e.refactor||(e.refactor={}))}(c||(c={})),function(e){!function(t){var n,i="Convert import",a=((n={})[0]={name:"Convert namespace import to named imports",description:e.Diagnostics.Convert_namespace_import_to_named_imports.message,kind:"refactor.rewrite.import.named"},n[2]={name:"Convert named imports to namespace import",description:e.Diagnostics.Convert_named_imports_to_namespace_import.message,kind:"refactor.rewrite.import.namespace"},n[1]={name:"Convert named imports to default import",description:e.Diagnostics.Convert_named_imports_to_default_import.message,kind:"refactor.rewrite.import.default"},n);function o(t,n){void 0===n&&(n=!0);var r=t.file,i=e.getRefactorContextSpan(t),a=e.getTokenAtPosition(r,i.start),o=n?e.findAncestor(a,e.isImportDeclaration):e.getParentNodeInSpan(a,r,i);if(!o||!e.isImportDeclaration(o))return{error:"Selection is not an import declaration."};var c=i.start+i.length,l=e.findNextToken(o,o.parent,r);if(!(l&&c>l.getStart())){var u=o.importClause;return u?u.namedBindings?271===u.namedBindings.kind?{convertTo:0,import:u.namedBindings}:s(t.program,u)?{convertTo:1,import:u.namedBindings}:{convertTo:2,import:u.namedBindings}:{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_namespace_import_or_named_imports)}:{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_import_clause)}}}function s(t,n){return e.getAllowSyntheticDefaultImports(t.getCompilerOptions())&&(r=n.parent.moduleSpecifier,i=t.getTypeChecker(),!!(a=i.resolveExternalModuleName(r))&&a!==i.resolveExternalModuleSymbol(a));var r,i,a}function c(t){return e.isPropertyAccessExpression(t)?t.name:t.right}function l(t,n,r,i,a){void 0===a&&(a=s(n,i.parent));var o=n.getTypeChecker(),c=i.parent.parent,l=c.moduleSpecifier,d=new e.Set;i.elements.forEach(function(e){var t=o.getSymbolAtLocation(e.name);t&&d.add(t)});for(var p=l&&e.isStringLiteral(l)?e.codefix.moduleSpecifierToValidIdentifier(l.text,99):"module",m=i.elements.some(function(n){return!!e.FindAllReferences.Core.eachSymbolReferenceInFile(n.name,o,t,function(t){var n=o.resolveName(p,t,67108863,!0);return!!n&&(!d.has(n)||e.isExportSpecifier(t.parent))})})?e.getUniqueName(p,t):p,f=new e.Set,_=function(n){var i=(n.propertyName||n.name).text;e.FindAllReferences.Core.eachSymbolReferenceInFile(n.name,o,t,function(a){var o=e.factory.createPropertyAccessExpression(e.factory.createIdentifier(m),i);e.isShorthandPropertyAssignment(a.parent)?r.replaceNode(t,a.parent,e.factory.createPropertyAssignment(a.text,o)):e.isExportSpecifier(a.parent)?f.add(n):r.replaceNode(t,a,o)})},h=0,g=i.elements;h=d.pos?m.getEnd():d.getEnd()),_=c?function(e){for(;e.parent;){if(s(e)&&!s(e.parent))return e;e=e.parent}}(d):function(e,t){for(;e.parent;){if(s(e)&&0!==t.length&&e.end>=t.start+t.length)return e;e=e.parent}}(d,f),h=_&&s(_)?function(t){if(o(t))return t;if(e.isVariableStatement(t)){var n=e.getSingleVariableOfVariableStatement(t),r=null==n?void 0:n.initializer;return r&&o(r)?r:void 0}return t.expression&&o(t.expression)?t.expression:void 0}(_):void 0;if(!h)return{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_convertible_access_expression)};var g=i.getTypeChecker();return e.isConditionalExpression(h)?function(t,n){var r=t.condition,i=p(t.whenTrue);if(!i||n.isNullableType(n.getTypeAtLocation(i)))return{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_convertible_access_expression)};if((e.isPropertyAccessExpression(r)||e.isIdentifier(r))&&u(r,i.expression))return{finalExpression:i,occurrences:[r],expression:t};if(e.isBinaryExpression(r)){var a=l(i.expression,r);return a?{finalExpression:i,occurrences:a,expression:t}:{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_matching_access_expressions)}}}(h,g):function(t){if(55!==t.operatorToken.kind)return{error:e.getLocaleSpecificMessage(e.Diagnostics.Can_only_convert_logical_AND_access_chains)};var n=p(t.right);if(!n)return{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_convertible_access_expression)};var r=l(n.expression,t.left);return r?{finalExpression:n,occurrences:r,expression:t}:{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_find_matching_access_expressions)}}(h)}}function l(t,n){for(var r=[];e.isBinaryExpression(n)&&55===n.operatorToken.kind;){var i=u(e.skipParentheses(t),e.skipParentheses(n.right));if(!i)break;r.push(i),t=i,n=n.left}var a=u(t,n);return a&&r.push(a),r.length>0?r:void 0}function u(t,n){if(e.isIdentifier(n)||e.isPropertyAccessExpression(n)||e.isElementAccessExpression(n))return function(t,n){for(;(e.isCallExpression(t)||e.isPropertyAccessExpression(t)||e.isElementAccessExpression(t))&&d(t)!==d(n);)t=t.expression;for(;e.isPropertyAccessExpression(t)&&e.isPropertyAccessExpression(n)||e.isElementAccessExpression(t)&&e.isElementAccessExpression(n);){if(d(t)!==d(n))return!1;t=t.expression,n=n.expression}return e.isIdentifier(t)&&e.isIdentifier(n)&&t.getText()===n.getText()}(t,n)?n:void 0}function d(t){return e.isIdentifier(t)||e.isStringOrNumericLiteralLike(t)?t.getText():e.isPropertyAccessExpression(t)?d(t.name):e.isElementAccessExpression(t)?d(t.argumentExpression):void 0}function p(t){return t=e.skipParentheses(t),e.isBinaryExpression(t)?p(t.left):(e.isPropertyAccessExpression(t)||e.isElementAccessExpression(t)||e.isCallExpression(t))&&!e.isOptionalChain(t)?t:void 0}function m(t,n,r){if(e.isPropertyAccessExpression(n)||e.isElementAccessExpression(n)||e.isCallExpression(n)){var i=m(t,n.expression,r),a=r.length>0?r[r.length-1]:void 0,o=(null==a?void 0:a.getText())===n.expression.getText();if(o&&r.pop(),e.isCallExpression(n))return o?e.factory.createCallChain(i,e.factory.createToken(28),n.typeArguments,n.arguments):e.factory.createCallChain(i,n.questionDotToken,n.typeArguments,n.arguments);if(e.isPropertyAccessExpression(n))return o?e.factory.createPropertyAccessChain(i,e.factory.createToken(28),n.name):e.factory.createPropertyAccessChain(i,n.questionDotToken,n.name);if(e.isElementAccessExpression(n))return o?e.factory.createElementAccessChain(i,e.factory.createToken(28),n.argumentExpression):e.factory.createElementAccessChain(i,n.questionDotToken,n.argumentExpression)}return n}t.registerRefactor(n,{kinds:[a.kind],getEditsForAction:function(n,r){var i=c(n);e.Debug.assert(i&&!t.isRefactorErrorInfo(i),"Expected applicable refactor info");var a=e.textChanges.ChangeTracker.with(n,function(t){return function(t,n,r,i){var a=i.finalExpression,o=i.occurrences,s=i.expression,c=o[o.length-1],l=m(n,a,o);l&&(e.isPropertyAccessExpression(l)||e.isElementAccessExpression(l)||e.isCallExpression(l))&&(e.isBinaryExpression(s)?r.replaceNodeRange(t,c,a,l):e.isConditionalExpression(s)&&r.replaceNode(t,s,e.factory.createBinaryExpression(l,e.factory.createToken(60),s.whenFalse)))}(n.file,n.program.getTypeChecker(),t,i)});return{edits:a,renameFilename:void 0,renameLocation:void 0}},getAvailableActions:function(o){var s=c(o,"invoked"===o.triggerReason);return s?t.isRefactorErrorInfo(s)?o.preferences.provideRefactorNotApplicableReason?[{name:n,description:i,actions:[r(r({},a),{notApplicableReason:s.error})]}]:e.emptyArray:[{name:n,description:i,actions:[a]}]:e.emptyArray}})}((t=e.refactor||(e.refactor={})).convertToOptionalChainExpression||(t.convertToOptionalChainExpression={}))}(c||(c={})),function(e){var t;!function(){var n="Convert overload list to single signature",r=e.Diagnostics.Convert_overload_list_to_single_signature.message,i={name:n,description:r,kind:"refactor.rewrite.function.overloadList"};function a(e){switch(e.kind){case 170:case 171:case 176:case 173:case 177:case 259:return!0}return!1}function o(t,n,r){var i=e.getTokenAtPosition(t,n),o=e.findAncestor(i,a);if(o&&!(e.isFunctionLikeDeclaration(o)&&o.body&&e.rangeContainsPosition(o.body,n))){var s=r.getTypeChecker(),c=o.symbol;if(c){var l=c.declarations;if(!(e.length(l)<=1)&&e.every(l,function(n){return e.getSourceFileOfNode(n)===t})&&a(l[0])){var u=l[0].kind;if(e.every(l,function(e){return e.kind===u})){var d=l;if(!e.some(d,function(t){return!!t.typeParameters||e.some(t.parameters,function(t){return!!t.modifiers||!e.isIdentifier(t.name)})})){var p=e.mapDefined(d,function(e){return s.getSignatureFromDeclaration(e)});if(e.length(p)===e.length(l)){var m=s.getReturnTypeOfSignature(p[0]);if(e.every(p,function(e){return s.getReturnTypeOfSignature(e)===m}))return d}}}}}}}t.registerRefactor(n,{kinds:[i.kind],getEditsForAction:function(t){var n=t.file,r=t.startPosition,i=t.program,a=o(n,r,i);if(a){var s=i.getTypeChecker(),c=a[a.length-1],l=c;switch(c.kind){case 170:l=e.factory.updateMethodSignature(c,c.modifiers,c.name,c.questionToken,c.typeParameters,d(a),c.type);break;case 171:l=e.factory.updateMethodDeclaration(c,c.modifiers,c.asteriskToken,c.name,c.questionToken,c.typeParameters,d(a),c.type,c.body);break;case 176:l=e.factory.updateCallSignature(c,c.typeParameters,d(a),c.type);break;case 173:l=e.factory.updateConstructorDeclaration(c,c.modifiers,d(a),c.body);break;case 177:l=e.factory.updateConstructSignature(c,c.typeParameters,d(a),c.type);break;case 259:l=e.factory.updateFunctionDeclaration(c,c.modifiers,c.asteriskToken,c.name,c.typeParameters,d(a),c.type,c.body);break;default:return e.Debug.failBadSyntaxKind(c,"Unhandled signature kind in overload list conversion refactoring")}if(l!==c){var u=e.textChanges.ChangeTracker.with(t,function(e){e.replaceNodeRange(n,a[0],a[a.length-1],l)});return{renameFilename:void 0,renameLocation:void 0,edits:u}}}function d(t){var n=t[t.length-1];return e.isFunctionLikeDeclaration(n)&&n.body&&(t=t.slice(0,t.length-1)),e.factory.createNodeArray([e.factory.createParameterDeclaration(void 0,e.factory.createToken(25),"args",void 0,e.factory.createUnionTypeNode(e.map(t,p)))])}function p(t){var n=e.map(t.parameters,m);return e.setEmitFlags(e.factory.createTupleTypeNode(n),e.some(n,function(t){return!!e.length(e.getSyntheticLeadingComments(t))})?0:1)}function m(t){e.Debug.assert(e.isIdentifier(t.name));var n=e.setTextRange(e.factory.createNamedTupleMember(t.dotDotDotToken,t.name,t.questionToken,t.type||e.factory.createKeywordTypeNode(131)),t),r=t.symbol&&t.symbol.getDocumentationComment(s);if(r){var i=e.displayPartsToString(r);i.length&&e.setSyntheticLeadingComments(n,[{text:"*\n".concat(i.split("\n").map(function(e){return" * ".concat(e)}).join("\n"),"\n "),kind:3,pos:-1,end:-1,hasTrailingNewLine:!0,hasLeadingNewline:!0}])}return n}},getAvailableActions:function(t){return o(t.file,t.startPosition,t.program)?[{name:n,description:r,actions:[i]}]:e.emptyArray}})}((t=e.refactor||(e.refactor={})).addOrRemoveBracesToArrowFunction||(t.addOrRemoveBracesToArrowFunction={}))}(c||(c={})),function(e){var t;!function(n){var i,a,o,s,c="Extract Symbol",l={name:"Extract Constant",description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_constant),kind:"refactor.extract.constant"},u={name:"Extract Function",description:e.getLocaleSpecificMessage(e.Diagnostics.Extract_function),kind:"refactor.extract.function"};function d(n){var i=n.kind,a=m(n.file,e.getRefactorContextSpan(n),"invoked"===n.triggerReason),o=a.targetRange;if(void 0===o){if(!a.errors||0===a.errors.length||!n.preferences.provideRefactorNotApplicableReason)return e.emptyArray;var s=[];return t.refactorKindBeginsWith(u.kind,i)&&s.push({name:c,description:u.description,actions:[r(r({},u),{notApplicableReason:A(a.errors)})]}),t.refactorKindBeginsWith(l.kind,i)&&s.push({name:c,description:l.description,actions:[r(r({},l),{notApplicableReason:A(a.errors)})]}),s}var d=function(t,n){var r=h(t,n),i=r.scopes,a=r.readsAndWrites,o=a.functionErrorsPerScope,s=a.constantErrorsPerScope,c=i.map(function(t,n){var r,i,a=function(t){return e.isFunctionLikeDeclaration(t)?"inner function":e.isClassLike(t)?"method":"function"}(t),c=function(t){return e.isClassLike(t)?"readonly field":"constant"}(t),l=e.isFunctionLikeDeclaration(t)?function(t){switch(t.kind){case 173:return"constructor";case 215:case 259:return t.name?"function '".concat(t.name.text,"'"):e.ANONYMOUS;case 216:return"arrow function";case 171:return"method '".concat(t.name.getText(),"'");case 174:return"'get ".concat(t.name.getText(),"'");case 175:return"'set ".concat(t.name.getText(),"'");default:throw e.Debug.assertNever(t,"Unexpected scope kind ".concat(t.kind))}}(t):e.isClassLike(t)?function(e){return 260===e.kind?e.name?"class '".concat(e.name.text,"'"):"anonymous class declaration":e.name?"class expression '".concat(e.name.text,"'"):"anonymous class expression"}(t):function(e){return 265===e.kind?"namespace '".concat(e.parent.name.getText(),"'"):e.externalModuleIndicator?0:1}(t);return 1===l?(r=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1_scope),[a,"global"]),i=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1_scope),[c,"global"])):0===l?(r=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1_scope),[a,"module"]),i=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1_scope),[c,"module"])):(r=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1),[a,l]),i=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_1),[c,l])),0!==n||e.isClassLike(t)||(i=e.formatStringFromArgs(e.getLocaleSpecificMessage(e.Diagnostics.Extract_to_0_in_enclosing_scope),[c])),{functionExtraction:{description:r,errors:o[n]},constantExtraction:{description:i,errors:s[n]}}});return c}(o,n);if(void 0===d)return e.emptyArray;for(var p,f,_=[],g=new e.Map,y=[],v=new e.Map,b=0,E=0,x=d;E0;if(e.isBlock(t)&&!s&&0===i.size)return{body:e.factory.createBlock(t.statements,!0),returnValueProperty:void 0};var c=!1,l=e.factory.createNodeArray(e.isBlock(t)?t.statements.slice(0):[e.isStatement(t)?t:e.factory.createReturnStatement(e.skipParentheses(t))]);if(s||i.size){var u=e.visitNodes(l,function t(a){if(!c&&e.isReturnStatement(a)&&s){var l=v(n,r);return a.expression&&(o||(o="__return"),l.unshift(e.factory.createPropertyAssignment(o,e.visitNode(a.expression,t)))),1===l.length?e.factory.createReturnStatement(l[0].name):e.factory.createReturnStatement(e.factory.createObjectLiteralExpression(l))}var u=c;c=c||e.isFunctionLikeDeclaration(a)||e.isClassLike(a);var d=i.get(e.getNodeId(a).toString()),p=d?e.getSynthesizedDeepClone(d):e.visitEachChild(a,t,e.nullTransformationContext);return c=u,p}).slice();if(s&&!a&&e.isStatement(t)){var d=v(n,r);1===d.length?u.push(e.factory.createReturnStatement(d[0].name)):u.push(e.factory.createReturnStatement(e.factory.createObjectLiteralExpression(d)))}return{body:e.factory.createBlock(u,!0),returnValueProperty:o}}return{body:e.factory.createBlock(l,!0),returnValueProperty:void 0}}(t,i,l,p,!!(o.facts&a.HasReturn)),O=w.body,R=w.returnValueProperty;e.suppressLeadingAndTrailingTrivia(O);var M=!!(o.facts&a.UsesThisInFunction);if(e.isClassLike(n)){var F=x?[]:[e.factory.createModifier(121)];o.facts&a.InStaticRegion&&F.push(e.factory.createModifier(124)),o.facts&a.IsAsyncFunction&&F.push(e.factory.createModifier(132)),P=e.factory.createMethodDeclaration(F.length?F:void 0,o.facts&a.IsGenerator?e.factory.createToken(41):void 0,T,void 0,N,C,c,O)}else M&&C.unshift(e.factory.createParameterDeclaration(void 0,void 0,"this",void 0,m.typeToTypeNode(m.getTypeAtLocation(o.thisNode),n,1),void 0)),P=e.factory.createFunctionDeclaration(o.facts&a.IsAsyncFunction?[e.factory.createToken(132)]:void 0,o.facts&a.IsGenerator?e.factory.createToken(41):void 0,T,N,C,c,O);var G=e.textChanges.ChangeTracker.fromContext(s),B=function(t,n){return e.find(function(t){if(e.isFunctionLikeDeclaration(t)){var n=t.body;if(e.isBlock(n))return n.statements}else{if(e.isModuleBlock(t)||e.isSourceFile(t))return t.statements;if(e.isClassLike(t))return t.members;e.assertType(t)}return e.emptyArray}(n),function(n){return n.pos>=t&&e.isFunctionLikeDeclaration(n)&&!e.isConstructorDeclaration(n)})}((b(o.range)?e.last(o.range):o.range).end,n);B?G.insertNodeBefore(s.file,B,P,!0):G.insertNodeAtEndOfScope(s.file,n,P),_.writeFixes(G);var U=[],V=function(t,n,r){var i=e.factory.createIdentifier(r);if(e.isClassLike(t)){var o=n.facts&a.InStaticRegion?e.factory.createIdentifier(t.name.text):e.factory.createThis();return e.factory.createPropertyAccessExpression(o,i)}return i}(n,o,E);M&&D.unshift(e.factory.createIdentifier("this"));var K=e.factory.createCallExpression(M?e.factory.createPropertyAccessExpression(V,"call"):V,k,D);if(o.facts&a.IsGenerator&&(K=e.factory.createYieldExpression(e.factory.createToken(41),K)),o.facts&a.IsAsyncFunction&&(K=e.factory.createAwaitExpression(K)),S(t)&&(K=e.factory.createJsxExpression(void 0,K)),i.length&&!l)if(e.Debug.assert(!R,"Expected no returnValueProperty"),e.Debug.assert(!(o.facts&a.HasReturn),"Expected RangeFacts.HasReturn flag to be unset"),1===i.length){var j=i[0];U.push(e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([e.factory.createVariableDeclaration(e.getSynthesizedDeepClone(j.name),void 0,e.getSynthesizedDeepClone(j.type),K)],j.parent.flags)))}else{for(var H=[],W=[],$=i[0].parent.flags,q=!1,z=0,J=i;z0,"Found no members");for(var a=!0,o=0,s=i;ot)return r||i[0];if(a&&!e.isPropertyDeclaration(c)){if(void 0!==r)return c;a=!1}r=c}return void 0===r?e.Debug.fail():r}(t.pos,n);h.insertNodeBefore(o.file,b,y,!0),h.replaceNode(o.file,t,v)}else{var E=e.factory.createVariableDeclaration(d,void 0,m,f),T=function(t,n){for(var r;void 0!==t&&t!==n;){if(e.isVariableDeclaration(t)&&t.initializer===r&&e.isVariableDeclarationList(t.parent)&&t.parent.declarations.length>1)return t;r=t,t=t.parent}}(t,n);if(T)h.insertNodeBefore(o.file,T,E),v=e.factory.createIdentifier(d),h.replaceNode(o.file,t,v);else if(241===t.parent.kind&&n===e.findAncestor(t,_)){var C=e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([E],2));h.replaceNode(o.file,t.parent,C)}else C=e.factory.createVariableStatement(void 0,e.factory.createVariableDeclarationList([E],2)),b=function(t,n){var r;e.Debug.assert(!e.isClassLike(n));for(var i=t;i!==n;i=i.parent)_(i)&&(r=i);for(i=(r||t).parent;;i=i.parent){if(x(i)){for(var a=void 0,o=0,s=i.statements;ot.pos)break;a=c}return!a&&e.isCaseClause(i)?(e.Debug.assert(e.isSwitchStatement(i.parent.parent),"Grandparent isn't a switch statement"),i.parent.parent):e.Debug.checkDefined(a,"prevStatement failed to get set")}e.Debug.assert(i!==n,"Didn't encounter a block-like before encountering scope")}}(t,n),0===b.pos?h.insertNodeAtTopOfFile(o.file,C,!1):h.insertNodeBefore(o.file,b,C,!1),241===t.parent.kind?h.delete(o.file,t.parent):(v=e.factory.createIdentifier(d),S(t)&&(v=e.factory.createJsxExpression(void 0,v)),h.replaceNode(o.file,t,v))}var D=h.getChanges(),L=t.getSourceFile().fileName;return{renameFilename:L,renameLocation:e.getRenameLocation(D,L,d,!0),edits:D}}(e.isExpression(c)?c:c.statements[0].expression,o[r],l[r],t.facts,n)}(r,t,o);e.Debug.fail("Unrecognized action name")}function m(t,n,r){void 0===r&&(r=!0);var o=n.length;if(0===o&&!r)return{errors:[e.createFileDiagnostic(t,n.start,o,i.cannotExtractEmpty)]};var s,c=0===o&&r,l=e.findFirstNonJsxWhitespaceToken(t,n.start),u=e.findTokenOnLeftOfPosition(t,e.textSpanEnd(n)),d=l&&u&&r?function(e,t,n){var r=e.getStart(n),i=t.getEnd();return 59===n.text.charCodeAt(i)&&i++,{start:r,length:i-r}}(l,u,t):n,p=c?function(t){return e.findAncestor(t,function(t){return t.parent&&E(t)&&!e.isBinaryExpression(t.parent)})}(l):e.getParentNodeInSpan(l,t,d),m=c?p:e.getParentNodeInSpan(u,t,d),_=a.None;if(!p||!m)return{errors:[e.createFileDiagnostic(t,n.start,o,i.cannotExtractRange)]};if(8388608&p.flags)return{errors:[e.createFileDiagnostic(t,n.start,o,i.cannotExtractJSDoc)]};if(p.parent!==m.parent)return{errors:[e.createFileDiagnostic(t,n.start,o,i.cannotExtractRange)]};if(p!==m){if(!x(p.parent))return{errors:[e.createFileDiagnostic(t,n.start,o,i.cannotExtractRange)]};for(var h=[],g=0,y=p.parent.statements;g=n.start+n.length)return(o||(o=[])).push(e.createDiagnosticForNode(r,i.cannotExtractSuper)),!0}else _|=a.UsesThis,s=r;break;case 216:e.forEachChild(r,function t(n){if(e.isThis(n))_|=a.UsesThis,s=r;else{if(e.isClassLike(n)||e.isFunctionLike(n)&&!e.isArrowFunction(n))return!1;e.forEachChild(n,t)}});case 260:case 259:e.isSourceFile(r.parent)&&void 0===r.parent.externalModuleIndicator&&(o||(o=[])).push(e.createDiagnosticForNode(r,i.functionWillNotBeVisibleInTheNewScope));case 228:case 215:case 171:case 173:case 174:case 175:return!1}var p=u;switch(r.kind){case 242:u&=-5;break;case 255:u=0;break;case 238:r.parent&&255===r.parent.kind&&r.parent.finallyBlock===r&&(u=4);break;case 293:case 292:u|=1;break;default:e.isIterationStatement(r,!1)&&(u|=3)}switch(r.kind){case 194:case 108:_|=a.UsesThis,s=r;break;case 253:var m=r.label;(l||(l=[])).push(m.escapedText),e.forEachChild(r,t),l.pop();break;case 249:case 248:(m=r.label)?e.contains(l,m.escapedText)||(o||(o=[])).push(e.createDiagnosticForNode(r,i.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange)):u&(249===r.kind?1:2)||(o||(o=[])).push(e.createDiagnosticForNode(r,i.cannotExtractRangeContainingConditionalBreakOrContinueStatements));break;case 220:_|=a.IsAsyncFunction;break;case 226:_|=a.IsGenerator;break;case 250:4&u?_|=a.HasReturn:(o||(o=[])).push(e.createDiagnosticForNode(r,i.cannotExtractRangeContainingConditionalReturnStatement));break;default:e.forEachChild(r,t)}u=p}(t),_&a.UsesThis){var d=e.getThisContainer(t,!1);(259===d.kind||171===d.kind&&207===d.parent.kind||215===d.kind)&&(_|=a.UsesThisInFunction)}return o}}function f(t){return e.isStatement(t)?[t]:e.isExpressionNode(t)?e.isExpressionStatement(t.parent)?[t.parent]:t:T(t)?t:void 0}function _(t){return e.isArrowFunction(t)?e.isFunctionBody(t.body):e.isFunctionLikeDeclaration(t)||e.isSourceFile(t)||e.isModuleBlock(t)||e.isClassLike(t)}function h(t,n){var r=n.file,o=function(t){var n=b(t.range)?e.first(t.range):t.range;if(t.facts&a.UsesThis&&!(t.facts&a.UsesThisInFunction)){var r=e.getContainingClass(n);if(r){var i=e.findAncestor(n,e.isFunctionLikeDeclaration);return i?[i,r]:[r]}}for(var o=[];;)if(166===(n=n.parent).kind&&(n=e.findAncestor(n,function(t){return e.isFunctionLikeDeclaration(t)}).parent),_(n)&&(o.push(n),308===n.kind))return o}(t),s=function(t,n){return b(t.range)?{pos:e.first(t.range).getStart(n),end:e.last(t.range).getEnd()}:t.range}(t,r),c=function(t,n,r,o,s,c){var l,u,d=new e.Map,p=[],m=[],f=[],_=[],h=[],g=new e.Map,y=[],v=b(t.range)?1===t.range.length&&e.isExpressionStatement(t.range[0])?t.range[0].expression:void 0:t.range;if(void 0===v){var E=t.range,x=e.first(E).getStart(),S=e.last(E).end;u=e.createFileDiagnostic(o,x,S-x,i.expressionExpected)}else 147456&s.getTypeAtLocation(v).flags&&(u=e.createDiagnosticForNode(v,i.uselessConstantType));for(var T=0,C=n;T=l)return h;if(N.set(h,l),g){for(var y=0,v=p;y0){for(var w=new e.Map,O=0,R=I;void 0!==R&&O=0)){var i=e.isIdentifier(r)?H(r):s.getSymbolAtLocation(r);if(i){var a=e.find(h,function(e){return e.symbol===i});if(a)if(e.isVariableDeclaration(a)){var o=a.symbol.id.toString();g.has(o)||(y.push(a),g.set(o,!0))}else l=l||a}e.forEachChild(r,n)}})}for(var V=function(r){var o=p[r];if(r>0&&(o.usages.size>0||o.typeParameterUsages.size>0)){var s=b(t.range)?t.range[0]:t.range;_[r].push(e.createDiagnosticForNode(s,i.cannotAccessVariablesFromNestedScopes))}t.facts&a.UsesThisInFunction&&e.isClassLike(n[r])&&f[r].push(e.createDiagnosticForNode(t.thisNode,i.cannotExtractFunctionsContainingThisToMethod));var c,u=!1;if(p[r].usages.forEach(function(t){2===t.usage&&(u=!0,106500&t.symbol.flags&&t.symbol.valueDeclaration&&e.hasEffectiveModifier(t.symbol.valueDeclaration,64)&&(c=t.symbol.valueDeclaration))}),e.Debug.assert(b(t.range)||0===y.length,"No variable declarations expected if something was extracted"),u&&!b(t.range)){var d=e.createDiagnosticForNode(t.range,i.cannotWriteInExpression);f[r].push(d),_[r].push(d)}else c&&r>0?(d=e.createDiagnosticForNode(c,i.cannotExtractReadonlyPropertyInitializerOutsideConstructor),f[r].push(d),_[r].push(d)):l&&(d=e.createDiagnosticForNode(l,i.cannotExtractExportedEntity),f[r].push(d),_[r].push(d))},K=0;Kr.pos});if(-1!==a){var o=i[a];if(e.isNamedDeclaration(o)&&o.name&&e.rangeContainsRange(o.name,r))return{toMove:[i[a]],afterLast:i[a+1]};if(!(r.pos>o.getStart(n))){var s=e.findIndex(i,function(e){return e.end>r.end},a);if(-1===s||!(0===s||i[s].getStart(n)=1&&e.every(t,function(t){return function(t,n){if(e.isRestParameter(t)){var r=n.getTypeAtLocation(t);if(!n.isArrayType(r)&&!n.isTupleType(r))return!1}return!t.modifiers&&e.isIdentifier(t.name)}(t,n)})}(t.parameters,n))return!1;switch(t.kind){case 259:return _(t)&&f(t,n);case 171:if(e.isObjectLiteralExpression(t.parent)){var i=o(t.name,n);return 1===(null===(r=null==i?void 0:i.declarations)||void 0===r?void 0:r.length)&&f(t,n)}return f(t,n);case 173:return e.isClassDeclaration(t.parent)?_(t.parent)&&f(t,n):h(t.parent.parent)&&f(t,n);case 215:case 216:return h(t.parent)}return!1}(a,r)&&e.rangeContainsRange(a,i))||a.body&&e.rangeContainsRange(a.body,i)?void 0:a}function m(t){return e.isMethodSignature(t)&&(e.isInterfaceDeclaration(t.parent)||e.isTypeLiteralNode(t.parent))}function f(e,t){return!!e.body&&!t.isImplementationOfOverload(e)}function _(t){return!!t.name||!!e.findModifier(t,88)}function h(t){return e.isVariableDeclaration(t)&&e.isVarConst(t)&&e.isIdentifier(t.name)&&!t.type}function g(t){return t.length>0&&e.isThis(t[0].name)}function y(t){return g(t)&&(t=e.factory.createNodeArray(t.slice(1),t.hasTrailingComma)),t}function v(t,n){var r=y(t.parameters),i=e.isRestParameter(e.last(r)),a=i?n.slice(0,r.length-1):n,o=e.map(a,function(t,n){var i,a,o=(i=E(r[n]),a=t,e.isIdentifier(a)&&e.getTextOfIdentifierOrLiteral(a)===i?e.factory.createShorthandPropertyAssignment(i):e.factory.createPropertyAssignment(i,a));return e.suppressLeadingAndTrailingTrivia(o.name),e.isPropertyAssignment(o)&&e.suppressLeadingAndTrailingTrivia(o.initializer),e.copyComments(t,o),o});if(i&&n.length>=r.length){var s=n.slice(r.length-1),c=e.factory.createPropertyAssignment(E(e.last(r)),e.factory.createArrayLiteralExpression(s));o.push(c)}return e.factory.createObjectLiteralExpression(o,!1)}function b(t,n,r){var i,a,o,s=n.getTypeChecker(),c=y(t.parameters),l=e.map(c,function(t){var n=e.factory.createBindingElement(void 0,void 0,E(t),e.isRestParameter(t)&&_(t)?e.factory.createArrayLiteralExpression():t.initializer);return e.suppressLeadingAndTrailingTrivia(n),t.initializer&&n.initializer&&e.copyComments(t.initializer,n.initializer),n}),u=e.factory.createObjectBindingPattern(l),d=(i=c,a=e.map(i,function(t){var i=t.type;i||!t.initializer&&!e.isRestParameter(t)||(i=function(t){var i=s.getTypeAtLocation(t);return e.getTypeNodeIfAccessible(i,t,n,r)}(t));var a=e.factory.createPropertySignature(void 0,E(t),_(t)?e.factory.createToken(57):t.questionToken,i);return e.suppressLeadingAndTrailingTrivia(a),e.copyComments(t.name,a.name),t.type&&a.type&&e.copyComments(t.type,a.type),a}),e.addEmitFlags(e.factory.createTypeLiteralNode(a),1));e.every(c,_)&&(o=e.factory.createObjectLiteralExpression());var p=e.factory.createParameterDeclaration(void 0,void 0,u,void 0,d,o);if(g(t.parameters)){var m=t.parameters[0],f=e.factory.createParameterDeclaration(void 0,void 0,m.name,void 0,m.type);return e.suppressLeadingAndTrailingTrivia(f.name),e.copyComments(m.name,f.name),m.type&&(e.suppressLeadingAndTrailingTrivia(f.type),e.copyComments(m.type,f.type)),e.factory.createNodeArray([f,p])}return e.factory.createNodeArray([p]);function _(t){if(e.isRestParameter(t)){var n=s.getTypeAtLocation(t);return!s.isTupleType(n)}return s.isOptionalParameter(t)}}function E(t){return e.getTextOfIdentifierOrLiteral(t.name)}t.registerRefactor(r,{kinds:[a.kind],getEditsForAction:function(t,i){e.Debug.assert(i===r,"Unexpected action name");var a=t.file,f=t.startPosition,_=t.program,h=t.cancellationToken,g=t.host,y=p(a,f,_.getTypeChecker());if(y&&h){var E=function(t,r,i){var a=function(t){switch(t.kind){case 259:return t.name?[t.name]:[e.Debug.checkDefined(e.findModifier(t,88),"Nameless function declaration should be a default export")];case 171:return[t.name];case 173:var n=e.Debug.checkDefined(e.findChildOfKind(t,135,t.getSourceFile()),"Constructor declaration should have constructor keyword");return 228===t.parent.kind?[t.parent.parent.name,n]:[n];case 216:return[t.parent.name];case 215:return t.name?[t.name,t.parent.name]:[t.parent.name];default:return e.Debug.assertNever(t,"Unexpected function declaration kind ".concat(t.kind))}}(t),p=e.isConstructorDeclaration(t)?function(t){switch(t.parent.kind){case 260:var n=t.parent;return n.name?[n.name]:[e.Debug.checkDefined(e.findModifier(n,88),"Nameless class declaration should be a default export")];case 228:var r=t.parent,i=t.parent.parent,a=r.name;return a?[a,i.name]:[i.name]}}(t):[],f=e.deduplicate(n(n([],a,!0),p,!0),e.equateValues),_=r.getTypeChecker(),h=function(n){for(var r={accessExpressions:[],typeUsages:[]},i={functionCalls:[],declarations:[],classReferences:r,valid:!0},f=e.map(a,g),h=e.map(p,g),y=e.isConstructorDeclaration(t),v=e.map(a,function(e){return o(e,_)}),b=0,E=n;b0;){var o=i.shift();e.copyTrailingComments(t[o],a,n,3,!1),r(o,a)}}};function p(e){return e.replace(/\\.|[$`]/g,function(e){return"\\"===e[0]?e:"\\"+e})}function m(t){var n=e.isTemplateHead(t)||e.isTemplateMiddle(t)?-2:-1;return e.getTextOfNode(t).slice(1,n)}function f(t,n){for(var r=[],i="",a="";t1)return t.getUnionType(e.mapDefined(r,function(e){return e.getReturnType()}))}var i=t.getSignatureFromDeclaration(n);if(i)return t.getReturnTypeOfSignature(i)}(o,i);if(!s)return{error:e.getLocaleSpecificMessage(e.Diagnostics.Could_not_determine_function_return_type)};var c=o.typeToTypeNode(s,i,1);return c?{declaration:i,returnTypeNode:c}:void 0}}t.registerRefactor(n,{kinds:[a.kind],getEditsForAction:function(n){var r=o(n);if(r&&!t.isRefactorErrorInfo(r)){var i=e.textChanges.ChangeTracker.with(n,function(t){return function(t,n,r,i){var a=e.findChildOfKind(r,21,t),o=e.isArrowFunction(r)&&void 0===a,s=o?e.first(r.parameters):a;s&&(o&&(n.insertNodeBefore(t,s,e.factory.createToken(20)),n.insertNodeAfter(t,s,e.factory.createToken(21))),n.insertNodeAt(t,s.end,i,{prefix:": "}))}(n.file,t,r.declaration,r.returnTypeNode)});return{renameFilename:void 0,renameLocation:void 0,edits:i}}},getAvailableActions:function(s){var c=o(s);return c?t.isRefactorErrorInfo(c)?s.preferences.provideRefactorNotApplicableReason?[{name:n,description:i,actions:[r(r({},a),{notApplicableReason:c.error})]}]:e.emptyArray:[{name:n,description:i,actions:[a]}]:e.emptyArray}})}((t=e.refactor||(e.refactor={})).inferFunctionReturnType||(t.inferFunctionReturnType={}))}(c||(c={})),function(e){function t(t,n,r,a){var o=e.isNodeKind(t)?new i(t,n,r):79===t?new u(79,n,r):80===t?new d(80,n,r):new l(t,n,r);return o.parent=a,o.flags=50720768&a.flags,o}e.servicesVersion="0.8";var i=function(){function n(e,t,n){this.pos=t,this.end=n,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0,this.kind=e}return n.prototype.assertHasRealPosition=function(t){e.Debug.assert(!e.positionIsSynthesized(this.pos)&&!e.positionIsSynthesized(this.end),t||"Node must have a real position for this operation")},n.prototype.getSourceFile=function(){return e.getSourceFileOfNode(this)},n.prototype.getStart=function(t,n){return this.assertHasRealPosition(),e.getTokenPosOfNode(this,t,n)},n.prototype.getFullStart=function(){return this.assertHasRealPosition(),this.pos},n.prototype.getEnd=function(){return this.assertHasRealPosition(),this.end},n.prototype.getWidth=function(e){return this.assertHasRealPosition(),this.getEnd()-this.getStart(e)},n.prototype.getFullWidth=function(){return this.assertHasRealPosition(),this.end-this.pos},n.prototype.getLeadingTriviaWidth=function(e){return this.assertHasRealPosition(),this.getStart(e)-this.pos},n.prototype.getFullText=function(e){return this.assertHasRealPosition(),(e||this.getSourceFile()).text.substring(this.pos,this.end)},n.prototype.getText=function(e){return this.assertHasRealPosition(),e||(e=this.getSourceFile()),e.text.substring(this.getStart(e),this.getEnd())},n.prototype.getChildCount=function(e){return this.getChildren(e).length},n.prototype.getChildAt=function(e,t){return this.getChildren(t)[e]},n.prototype.getChildren=function(n){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=function(n,r){if(!e.isNodeKind(n.kind))return e.emptyArray;var i=[];if(e.isJSDocCommentContainingNode(n))return n.forEachChild(function(e){i.push(e)}),i;e.scanner.setText((r||n.getSourceFile()).text);var o=n.pos,s=function(e){a(i,o,e.pos,n),i.push(e),o=e.end};return e.forEach(n.jsDoc,s),o=n.pos,n.forEachChild(s,function(e){a(i,o,e.pos,n),i.push(function(e,n){var r=t(351,e.pos,e.end,n);r._children=[];for(var i=e.pos,o=0,s=e;o350});return r.kind<163?r:r.getFirstToken(t)}},n.prototype.getLastToken=function(t){this.assertHasRealPosition();var n=this.getChildren(t),r=e.lastOrUndefined(n);if(r)return r.kind<163?r:r.getLastToken(t)},n.prototype.forEachChild=function(t,n){return e.forEachChild(this,t,n)},n}();function a(n,r,i,a){for(e.scanner.setTextPos(r);r=r.length&&(t=this.getEnd()),t||(t=r[n+1]-1);var i=this.getFullText();return"\n"===i[t]&&"\r"===i[t-1]?t-1:t},n.prototype.getNamedDeclarations=function(){return this.namedDeclarations||(this.namedDeclarations=this.computeNamedDeclarations()),this.namedDeclarations},n.prototype.computeNamedDeclarations=function(){var t=e.createMultiMap();return this.forEachChild(function i(a){switch(a.kind){case 259:case 215:case 171:case 170:var o=a,s=r(o);if(s){var c=function(e){var n=t.get(e);return n||t.set(e,n=[]),n}(s),l=e.lastOrUndefined(c);l&&o.parent===l.parent&&o.symbol===l.symbol?o.body&&!l.body&&(c[c.length-1]=o):c.push(o)}e.forEachChild(a,i);break;case 260:case 228:case 261:case 262:case 263:case 264:case 268:case 278:case 273:case 270:case 271:case 174:case 175:case 184:n(a),e.forEachChild(a,i);break;case 166:if(!e.hasSyntacticModifier(a,16476))break;case 257:case 205:var u=a;if(e.isBindingPattern(u.name)){e.forEachChild(u.name,i);break}u.initializer&&i(u.initializer);case 302:case 169:case 168:n(a);break;case 275:var d=a;d.exportClause&&(e.isNamedExports(d.exportClause)?e.forEach(d.exportClause.elements,i):i(d.exportClause.name));break;case 269:var p=a.importClause;p&&(p.name&&n(p.name),p.namedBindings&&(271===p.namedBindings.kind?n(p.namedBindings):e.forEach(p.namedBindings.elements,i)));break;case 223:0!==e.getAssignmentDeclarationKind(a)&&n(a);default:e.forEachChild(a,i)}}),t;function n(e){var n=r(e);n&&t.add(n,e)}function r(t){var n=e.getNonAssignedNameOfDeclaration(t);return n&&(e.isComputedPropertyName(n)&&e.isPropertyAccessExpression(n.expression)?n.expression.name.text:e.isPropertyName(n)?e.getNameFromPropertyName(n):void 0)}},n}(i),v=function(){function t(e,t,n){this.fileName=e,this.text=t,this.skipTrivia=n}return t.prototype.getLineAndCharacterOfPosition=function(t){return e.getLineAndCharacterOfPosition(this,t)},t}();function b(t){var n=!0;for(var r in t)if(e.hasProperty(t,r)&&!E(r)){n=!1;break}if(n)return t;var i={};for(var r in t)e.hasProperty(t,r)&&(i[E(r)?r:r.charAt(0).toLowerCase()+r.substr(1)]=t[r]);return i}function E(e){return!e.length||e.charAt(0)===e.charAt(0).toLowerCase()}e.toEditorSettings=b,e.displayPartsToString=function(t){return t?e.map(t,function(e){return e.text}).join(""):""},e.getDefaultCompilerOptions=function(){return{target:1,jsx:1}},e.getSupportedCodeFixes=function(){return e.codefix.getSupportedErrorCodes()};var x=function(){function t(e){this.host=e}return t.prototype.getCurrentSourceFile=function(t){var n,r,i,a,o,s,c,l,u=this.host.getScriptSnapshot(t);if(!u)throw new Error("Could not find file: '"+t+"'.");var d,p=e.getScriptKind(t,this.host),m=this.host.getScriptVersion(t);if(this.currentFileName!==t)d=T(t,u,{languageVersion:99,impliedNodeFormat:e.getImpliedNodeFormatForFile(e.toPath(t,this.host.getCurrentDirectory(),(null===(i=null===(r=(n=this.host).getCompilerHost)||void 0===r?void 0:r.call(n))||void 0===i?void 0:i.getCanonicalFileName)||e.hostGetCanonicalFileName(this.host)),null===(l=null===(c=null===(s=null===(o=(a=this.host).getCompilerHost)||void 0===o?void 0:o.call(a))||void 0===s?void 0:s.getModuleResolutionCache)||void 0===c?void 0:c.call(s))||void 0===l?void 0:l.getPackageJsonInfoCache(),this.host,this.host.getCompilationSettings()),setExternalModuleIndicator:e.getSetExternalModuleIndicator(this.host.getCompilationSettings())},m,!0,p);else if(this.currentFileVersion!==m){var f=u.getChangeRange(this.currentFileScriptSnapshot);d=C(this.currentSourceFile,u,m,f)}return d&&(this.currentFileVersion=m,this.currentFileName=t,this.currentFileScriptSnapshot=u,this.currentSourceFile=d),this.currentSourceFile},t}();function S(e,t,n){e.version=n,e.scriptSnapshot=t}function T(t,n,r,i,a,o){var s=e.createSourceFile(t,e.getSnapshotText(n),r,a,o);return S(s,n,i),s}function C(t,n,r,i,a){if(i&&r!==t.version){var o=void 0,s=0!==i.span.start?t.text.substr(0,i.span.start):"",c=e.textSpanEnd(i.span)!==t.text.length?t.text.substr(e.textSpanEnd(i.span)):"";if(0===i.newLength)o=s&&c?s+c:s||c;else{var l=n.getText(i.span.start,i.span.start+i.newLength);o=s&&c?s+l+c:s?s+l:l+c}var u=e.updateSourceFile(t,o,i,a);return S(u,n,r),u.nameTable=void 0,t!==u&&t.scriptSnapshot&&(t.scriptSnapshot.dispose&&t.scriptSnapshot.dispose(),t.scriptSnapshot=void 0),u}var d={languageVersion:t.languageVersion,impliedNodeFormat:t.impliedNodeFormat,setExternalModuleIndicator:t.setExternalModuleIndicator};return T(t.fileName,n,d,r,!0,t.scriptKind)}e.createLanguageServiceSourceFile=T,e.updateLanguageServiceSourceFile=C;var D={isCancellationRequested:e.returnFalse,throwIfCancellationRequested:e.noop},L=function(){function t(e){this.cancellationToken=e}return t.prototype.isCancellationRequested=function(){return this.cancellationToken.isCancellationRequested()},t.prototype.throwIfCancellationRequested=function(){if(this.isCancellationRequested())throw null===e.tracing||void 0===e.tracing||e.tracing.instant("session","cancellationThrown",{kind:"CancellationTokenObject"}),new e.OperationCanceledException},t}(),A=function(){function t(e,t){void 0===t&&(t=20),this.hostCancellationToken=e,this.throttleWaitMilliseconds=t,this.lastCancellationCheckTime=0}return t.prototype.isCancellationRequested=function(){var t=e.timestamp();return Math.abs(t-this.lastCancellationCheckTime)>=this.throttleWaitMilliseconds&&(this.lastCancellationCheckTime=t,this.hostCancellationToken.isCancellationRequested())},t.prototype.throwIfCancellationRequested=function(){if(this.isCancellationRequested())throw null===e.tracing||void 0===e.tracing||e.tracing.instant("session","cancellationThrown",{kind:"ThrottledCancellationToken"}),new e.OperationCanceledException},t}();e.ThrottledCancellationToken=A;var N=["getSemanticDiagnostics","getSuggestionDiagnostics","getCompilerOptionsDiagnostics","getSemanticClassifications","getEncodedSemanticClassifications","getCodeFixesAtPosition","getCombinedCodeFix","applyCodeActionCommand","organizeImports","getEditsForFileRename","getEmitOutput","getApplicableRefactors","getEditsForRefactor","prepareCallHierarchy","provideCallHierarchyIncomingCalls","provideCallHierarchyOutgoingCalls","provideInlayHints"],k=n(n([],N,!0),["getCompletionsAtPosition","getCompletionEntryDetails","getCompletionEntrySymbol","getSignatureHelpItems","getQuickInfoAtPosition","getDefinitionAtPosition","getDefinitionAndBoundSpan","getImplementationAtPosition","getTypeDefinitionAtPosition","getReferencesAtPosition","findReferences","getOccurrencesAtPosition","getDocumentHighlights","getNavigateToItems","getRenameInfo","findRenameLocations","getApplicableRefactors"],!1);function I(t){var n=function(t){switch(t.kind){case 10:case 14:case 8:if(164===t.parent.kind)return e.isObjectLiteralElement(t.parent.parent)?t.parent.parent:void 0;case 79:return!e.isObjectLiteralElement(t.parent)||207!==t.parent.parent.kind&&289!==t.parent.parent.kind||t.parent.name!==t?void 0:t.parent}}(t);return n&&(e.isObjectLiteralExpression(n.parent)||e.isJsxAttributes(n.parent))?n:void 0}function P(t,n,r,i){var a=e.getNameFromPropertyName(t.name);if(!a)return e.emptyArray;if(!r.isUnion())return(o=r.getProperty(a))?[o]:e.emptyArray;var o,s=e.mapDefined(r.types,function(r){return(e.isObjectLiteralExpression(t.parent)||e.isJsxAttributes(t.parent))&&n.isTypeInvalidDueToUnionDiscriminant(r,t.parent)?void 0:r.getProperty(a)});return i&&(0===s.length||s.length===r.types.length)&&(o=r.getProperty(a))?[o]:0===s.length?e.mapDefined(r.types,function(e){return e.getProperty(a)}):s}e.createLanguageService=function(t,i,a){var o,s,c;void 0===i&&(i=e.createDocumentRegistry(t.useCaseSensitiveFileNames&&t.useCaseSensitiveFileNames(),t.getCurrentDirectory())),c=void 0===a?e.LanguageServiceMode.Semantic:"boolean"==typeof a?a?e.LanguageServiceMode.Syntactic:e.LanguageServiceMode.Semantic:a;var l,u,d=new x(t),p=0,m=t.getCancellationToken?new L(t.getCancellationToken()):D,f=t.getCurrentDirectory();function _(e){t.log&&t.log(e)}e.maybeSetLocalizedDiagnosticMessages(null===(s=t.getLocalizedDiagnosticMessages)||void 0===s?void 0:s.bind(t));var h=e.hostUsesCaseSensitiveFileNames(t),g=e.createGetCanonicalFileName(h),y=e.getSourceMapper({useCaseSensitiveFileNames:function(){return h},getCurrentDirectory:function(){return f},getProgram:S,fileExists:e.maybeBind(t,t.fileExists),readFile:e.maybeBind(t,t.readFile),getDocumentPositionMapper:e.maybeBind(t,t.getDocumentPositionMapper),getSourceFileLike:e.maybeBind(t,t.getSourceFileLike),log:_});function v(e){var t=l.getSourceFile(e);if(!t){var n=new Error("Could not find source file: '".concat(e,"'."));throw n.ProgramFiles=l.getSourceFiles().map(function(e){return e.fileName}),n}return t}function E(){var r,a,o;if(e.Debug.assert(c!==e.LanguageServiceMode.Syntactic),t.getProjectVersion){var s=t.getProjectVersion();if(s){if(u===s&&!(null===(r=t.hasChangedAutomaticTypeDirectiveNames)||void 0===r?void 0:r.call(t)))return;u=s}}var d=t.getTypeRootsVersion?t.getTypeRootsVersion():0;p!==d&&(_("TypeRoots version has changed; provide new program"),l=void 0,p=d);var v,b=t.getScriptFileNames().slice(),E=t.getCompilationSettings()||{target:1,jsx:1},x=t.hasInvalidatedResolutions||e.returnFalse,S=e.maybeBind(t,t.hasChangedAutomaticTypeDirectiveNames),T=null===(a=t.getProjectReferences)||void 0===a?void 0:a.call(t),C={getSourceFile:w,getSourceFileByPath:O,getCancellationToken:function(){return m},getCanonicalFileName:g,useCaseSensitiveFileNames:function(){return h},getNewLine:function(){return e.getNewLineCharacter(E,function(){return e.getNewLineOrDefaultFromHost(t)})},getDefaultLibFileName:function(e){return t.getDefaultLibFileName(e)},writeFile:e.noop,getCurrentDirectory:function(){return f},fileExists:function(e){return t.fileExists(e)},readFile:function(e){return t.readFile&&t.readFile(e)},getSymlinkCache:e.maybeBind(t,t.getSymlinkCache),realpath:e.maybeBind(t,t.realpath),directoryExists:function(n){return e.directoryProbablyExists(n,t)},getDirectories:function(e){return t.getDirectories?t.getDirectories(e):[]},readDirectory:function(n,r,i,a,o){return e.Debug.checkDefined(t.readDirectory,"'LanguageServiceHost.readDirectory' must be implemented to correctly process 'projectReferences'"),t.readDirectory(n,r,i,a,o)},onReleaseOldSourceFile:P,onReleaseParsedCommandLine:function(e,n,r){var i;t.getParsedCommandLine?null===(i=t.onReleaseParsedCommandLine)||void 0===i||i.call(t,e,n,r):n&&P(n.sourceFile,r)},hasInvalidatedResolutions:x,hasChangedAutomaticTypeDirectiveNames:S,trace:e.maybeBind(t,t.trace),resolveModuleNames:e.maybeBind(t,t.resolveModuleNames),getModuleResolutionCache:e.maybeBind(t,t.getModuleResolutionCache),resolveTypeReferenceDirectives:e.maybeBind(t,t.resolveTypeReferenceDirectives),useSourceOfProjectReferenceRedirect:e.maybeBind(t,t.useSourceOfProjectReferenceRedirect),getParsedCommandLine:I},D=C.getSourceFile,L=e.changeCompilerHostLikeToUseCache(C,function(t){return e.toPath(t,f,g)},function(){for(var e=[],t=0;t0?D-h.length:0;v=c.substr(L,h.length)===h?h.length:0,s.push({newText:"",span:{length:_.length,start:D-v}})}return s}function F(t){var n=t.openingElement,r=t.closingElement,i=t.parent;return!e.tagNamesAreEquivalent(n.tagName,r.tagName)||e.isJsxElement(i)&&e.tagNamesAreEquivalent(n.tagName,i.openingElement.tagName)&&F(i)}function G(t){var n=t.closingFragment,r=t.parent;return!!(131072&n.flags)||e.isJsxFragment(r)&&G(r)}function B(n,r,i,a,o,s){var c="number"==typeof r?[r,void 0]:[r.pos,r.end];return{file:n,startPosition:c[0],endPosition:c[1],program:S(),host:t,formatContext:e.formatting.getFormatContext(a,t),cancellationToken:m,preferences:i,triggerReason:o,kind:s}}A.forEach(function(e,t){return A.set(e.toString(),Number(t))});var U={dispose:function(){if(l){var n=i.getKeyForCompilationSettings(l.getCompilerOptions());e.forEach(l.getSourceFiles(),function(e){return i.releaseDocumentWithKey(e.resolvedPath,n,e.scriptKind,e.impliedNodeFormat)}),l=void 0}t=void 0},cleanupSemanticCache:function(){l=void 0},getSyntacticDiagnostics:function(e){return E(),l.getSyntacticDiagnostics(v(e),m).slice()},getSemanticDiagnostics:function(t){E();var r=v(t),i=l.getSemanticDiagnostics(r,m);if(!e.getEmitDeclarations(l.getCompilerOptions()))return i.slice();var a=l.getDeclarationDiagnostics(r,m);return n(n([],i,!0),a,!0)},getSuggestionDiagnostics:function(t){return E(),e.computeSuggestionDiagnostics(v(t),l,m)},getCompilerOptionsDiagnostics:function(){return E(),n(n([],l.getOptionsDiagnostics(m),!0),l.getGlobalDiagnostics(m),!0)},getSyntacticClassifications:function(t,n){return e.getSyntacticClassifications(m,d.getCurrentSourceFile(t),n)},getSemanticClassifications:function(t,n,r){return E(),"2020"===(r||"original")?e.classifier.v2020.getSemanticClassifications(l,m,v(t),n):e.getSemanticClassifications(l.getTypeChecker(),m,v(t),l.getClassifiableNames(),n)},getEncodedSyntacticClassifications:function(t,n){return e.getEncodedSyntacticClassifications(m,d.getCurrentSourceFile(t),n)},getEncodedSemanticClassifications:function(t,n,r){return E(),"original"===(r||"original")?e.getEncodedSemanticClassifications(l.getTypeChecker(),m,v(t),l.getClassifiableNames(),n):e.classifier.v2020.getEncodedSemanticClassifications(l,m,v(t),n)},getCompletionsAtPosition:function(n,i,a,o){void 0===a&&(a=e.emptyOptions);var s=r(r({},e.identity(a)),{includeCompletionsForModuleExports:a.includeCompletionsForModuleExports||a.includeExternalModuleExports,includeCompletionsWithInsertText:a.includeCompletionsWithInsertText||a.includeInsertTextCompletions});return E(),e.Completions.getCompletionsAtPosition(t,l,_,v(n),i,s,a.triggerCharacter,a.triggerKind,m,o&&e.formatting.getFormatContext(o,t))},getCompletionEntryDetails:function(n,r,i,a,o,s,c){return void 0===s&&(s=e.emptyOptions),E(),e.Completions.getCompletionEntryDetails(l,_,v(n),r,{name:i,source:o,data:c},t,a&&e.formatting.getFormatContext(a,t),s,m)},getCompletionEntrySymbol:function(n,r,i,a,o){return void 0===o&&(o=e.emptyOptions),E(),e.Completions.getCompletionEntrySymbol(l,_,v(n),r,{name:i,source:a},t,o)},getSignatureHelpItems:function(t,n,r){var i=(void 0===r?e.emptyOptions:r).triggerReason;E();var a=v(t);return e.SignatureHelp.getSignatureHelpItems(l,a,n,i,m)},getQuickInfoAtPosition:function(t,n){E();var r=v(t),i=e.getTouchingPropertyName(r,n);if(i!==r){var a=l.getTypeChecker(),o=function(t){return e.isNewExpression(t.parent)&&t.pos===t.parent.pos?t.parent.expression:e.isNamedTupleMember(t.parent)&&t.pos===t.parent.pos||e.isImportMeta(t.parent)&&t.parent.name===t?t.parent:t}(i),s=function(t,n){var r=I(t);if(r){var i=n.getContextualType(r.parent),a=i&&P(r,n,i,!1);if(a&&1===a.length)return e.first(a)}return n.getSymbolAtLocation(t)}(o,a);if(!s||a.isUnknownSymbol(s)){var c=function(t,n,r){switch(n.kind){case 79:return!e.isLabelName(n)&&!e.isTagName(n)&&!e.isConstTypeReference(n.parent);case 208:case 163:return!e.isInComment(t,r);case 108:case 194:case 106:case 199:return!0;case 233:return e.isImportMeta(n);default:return!1}}(r,o,n)?a.getTypeAtLocation(o):void 0;return c&&{kind:"",kindModifiers:"",textSpan:e.createTextSpanFromNode(o,r),displayParts:a.runWithCancellationToken(m,function(t){return e.typeToDisplayParts(t,c,e.getContainerNode(o))}),documentation:c.symbol?c.symbol.getDocumentationComment(a):void 0,tags:c.symbol?c.symbol.getJsDocTags(a):void 0}}var u=a.runWithCancellationToken(m,function(t){return e.SymbolDisplay.getSymbolDisplayPartsDocumentationAndSymbolKind(t,s,r,e.getContainerNode(o),o)}),d=u.symbolKind,p=u.displayParts,f=u.documentation,_=u.tags;return{kind:d,kindModifiers:e.SymbolDisplay.getSymbolModifiers(a,s),textSpan:e.createTextSpanFromNode(o,r),displayParts:p,documentation:f,tags:_}}},getDefinitionAtPosition:function(t,n,r,i){return E(),e.GoToDefinition.getDefinitionAtPosition(l,v(t),n,r,i)},getDefinitionAndBoundSpan:function(t,n){return E(),e.GoToDefinition.getDefinitionAndBoundSpan(l,v(t),n)},getImplementationAtPosition:function(t,n){return E(),e.FindAllReferences.getImplementationsAtPosition(l,m,l.getSourceFiles(),v(t),n)},getTypeDefinitionAtPosition:function(t,n){return E(),e.GoToDefinition.getTypeDefinitionAtPosition(l.getTypeChecker(),v(t),n)},getReferencesAtPosition:function(t,n){return E(),C(e.getTouchingPropertyName(v(t),n),n,{use:1},e.FindAllReferences.toReferenceEntry)},findReferences:function(t,n){return E(),e.FindAllReferences.findReferencedSymbols(l,m,l.getSourceFiles(),v(t),n)},getFileReferences:function(t){return E(),e.FindAllReferences.Core.getReferencesForFileName(t,l,l.getSourceFiles()).map(e.FindAllReferences.toReferenceEntry)},getOccurrencesAtPosition:function(t,n){return e.flatMap(T(t,n,[t]),function(e){return e.highlightSpans.map(function(t){return r(r({fileName:e.fileName,textSpan:t.textSpan,isWriteAccess:"writtenReference"===t.kind},t.isInString&&{isInString:!0}),t.contextSpan&&{contextSpan:t.contextSpan})})})},getDocumentHighlights:T,getNameOrDottedNameSpan:function(t,n,r){var i=d.getCurrentSourceFile(t),a=e.getTouchingPropertyName(i,n);if(a!==i){switch(a.kind){case 208:case 163:case 10:case 95:case 110:case 104:case 106:case 108:case 194:case 79:break;default:return}for(var o=a;;)if(e.isRightSideOfPropertyAccess(o)||e.isRightSideOfQualifiedName(o))o=o.parent;else{if(!e.isNameOfModuleDeclaration(o))break;if(264!==o.parent.parent.kind||o.parent.parent.body!==o.parent)break;o=o.parent.parent.name}return e.createTextSpanFromBounds(o.getStart(),a.getEnd())}},getBreakpointStatementAtPosition:function(t,n){var r=d.getCurrentSourceFile(t);return e.BreakpointResolver.spanInSourceFileAtLocation(r,n)},getNavigateToItems:function(t,n,r,i){void 0===i&&(i=!1),E();var a=r?[v(r)]:l.getSourceFiles();return e.NavigateTo.getNavigateToItems(a,l.getTypeChecker(),m,t,n,i)},getRenameInfo:function(t,n,r){return E(),e.Rename.getRenameInfo(l,v(t),n,r||{})},getSmartSelectionRange:function(t,n){return e.SmartSelectionRange.getSmartSelectionRange(n,d.getCurrentSourceFile(t))},findRenameLocations:function(t,n,i,a,o){E();var s=v(t),c=e.getAdjustedRenameLocation(e.getTouchingPropertyName(s,n));if(e.Rename.nodeIsEligibleForRename(c)){if(e.isIdentifier(c)&&(e.isJsxOpeningElement(c.parent)||e.isJsxClosingElement(c.parent))&&e.isIntrinsicJsxName(c.escapedText)){var l=c.parent.parent;return[l.openingElement,l.closingElement].map(function(t){var n=e.createTextSpanFromNode(t.tagName,s);return r({fileName:s.fileName,textSpan:n},e.FindAllReferences.toContextSpan(n,s,t.parent))})}return C(c,n,{findInStrings:i,findInComments:a,providePrefixAndSuffixTextForRename:o,use:2},function(t,n,r){return e.FindAllReferences.toRenameLocation(t,n,r,o||!1)})}},getNavigationBarItems:function(t){return e.NavigationBar.getNavigationBarItems(d.getCurrentSourceFile(t),m)},getNavigationTree:function(t){return e.NavigationBar.getNavigationTree(d.getCurrentSourceFile(t),m)},getOutliningSpans:function(t){var n=d.getCurrentSourceFile(t);return e.OutliningElementsCollector.collectElements(n,m)},getTodoComments:function(t,n){E();var r=v(t);m.throwIfCancellationRequested();var i=r.text,a=[];if(n.length>0&&!function(t){return e.stringContains(t,"/node_modules/")}(r.fileName))for(var o=function(){var t="("+/(?:^(?:\s|\*)*)/.source+"|"+/(?:\/\/+\s*)/.source+"|"+/(?:\/\*+\s*)/.source+")",r="(?:"+e.map(n,function(e){return"("+e.text.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")+")"}).join("|")+")";return new RegExp(t+"("+r+/(?:.*?)/.source+")"+/(?:$|\*\/)/.source,"gim")}(),s=void 0;s=o.exec(i);){m.throwIfCancellationRequested(),e.Debug.assert(s.length===n.length+3);var c=s[1],l=s.index+c.length;if(e.isInComment(r,l)){for(var u=void 0,d=0;d=97&&e<=122||e>=65&&e<=90||e>=48&&e<=57}},getBraceMatchingAtPosition:function(t,n){var r=d.getCurrentSourceFile(t),i=e.getTouchingToken(r,n),a=i.getStart(r)===n?A.get(i.kind.toString()):void 0,o=a&&e.findChildOfKind(i.parent,a,r);return o?[e.createTextSpanFromNode(i,r),e.createTextSpanFromNode(o,r)].sort(function(e,t){return e.start-t.start}):e.emptyArray},getIndentationAtPosition:function(t,n,r){var i=e.timestamp(),a=b(r),o=d.getCurrentSourceFile(t);_("getIndentationAtPosition: getCurrentSourceFile: "+(e.timestamp()-i)),i=e.timestamp();var s=e.formatting.SmartIndenter.getIndentation(n,o,a);return _("getIndentationAtPosition: computeIndentation : "+(e.timestamp()-i)),s},getFormattingEditsForRange:function(n,r,i,a){var o=d.getCurrentSourceFile(n);return e.formatting.formatSelection(r,i,o,e.formatting.getFormatContext(b(a),t))},getFormattingEditsForDocument:function(n,r){return e.formatting.formatDocument(d.getCurrentSourceFile(n),e.formatting.getFormatContext(b(r),t))},getFormattingEditsAfterKeystroke:function(n,r,i,a){var o=d.getCurrentSourceFile(n),s=e.formatting.getFormatContext(b(a),t);if(!e.isInComment(o,r))switch(i){case"{":return e.formatting.formatOnOpeningCurly(r,o,s);case"}":return e.formatting.formatOnClosingCurly(r,o,s);case";":return e.formatting.formatOnSemicolon(r,o,s);case"\n":return e.formatting.formatOnEnter(r,o,s)}return[]},getDocCommentTemplateAtPosition:function(n,r,i){return e.JsDoc.getDocCommentTemplateAtPosition(e.getNewLineOrDefaultFromHost(t),d.getCurrentSourceFile(n),r,i)},isValidBraceCompletionAtPosition:function(t,n,r){if(60===r)return!1;var i=d.getCurrentSourceFile(t);if(e.isInString(i,n))return!1;if(e.isInsideJsxElementOrAttribute(i,n))return 123===r;if(e.isInTemplateString(i,n))return!1;switch(r){case 39:case 34:case 96:return!e.isInComment(i,n)}return!0},getJsxClosingTagAtPosition:function(t,n){var r=d.getCurrentSourceFile(t),i=e.findPrecedingToken(n,r);if(i){var a=31===i.kind&&e.isJsxOpeningElement(i.parent)?i.parent.parent:e.isJsxText(i)&&e.isJsxElement(i.parent)?i.parent:void 0;if(a&&F(a))return{newText:"")};var o=31===i.kind&&e.isJsxOpeningFragment(i.parent)?i.parent.parent:e.isJsxText(i)&&e.isJsxFragment(i.parent)?i.parent:void 0;return o&&G(o)?{newText:""}:void 0}},getSpanOfEnclosingComment:function(t,n,r){var i=d.getCurrentSourceFile(t),a=e.formatting.getRangeOfEnclosingComment(i,n);return!a||r&&3!==a.kind?void 0:e.createTextSpanFromRange(a)},getCodeFixesAtPosition:function(n,r,i,a,o,s){void 0===s&&(s=e.emptyOptions),E();var c=v(n),u=e.createTextSpanFromBounds(r,i),d=e.formatting.getFormatContext(o,t);return e.flatMap(e.deduplicate(a,e.equateValues,e.compareValues),function(n){return m.throwIfCancellationRequested(),e.codefix.getFixes({errorCode:n,sourceFile:c,span:u,program:l,host:t,cancellationToken:m,formatContext:d,preferences:s})})},getCombinedCodeFix:function(n,r,i,a){void 0===a&&(a=e.emptyOptions),E(),e.Debug.assert("file"===n.type);var o=v(n.fileName),s=e.formatting.getFormatContext(i,t);return e.codefix.getAllFixes({fixId:r,sourceFile:o,program:l,host:t,cancellationToken:m,formatContext:s,preferences:a})},applyCodeActionCommand:function(t,n){var r="string"==typeof t?n:t;return e.isArray(r)?Promise.all(r.map(function(e){return w(e)})):w(r)},organizeImports:function(n,r,i){var a;void 0===i&&(i=e.emptyOptions),E(),e.Debug.assert("file"===n.type);var o=v(n.fileName),s=e.formatting.getFormatContext(r,t),c=null!==(a=n.mode)&&void 0!==a?a:n.skipDestructiveCodeActions?"SortAndCombine":"All";return e.OrganizeImports.organizeImports(o,s,t,l,i,c)},getEditsForFileRename:function(n,r,i,a){return void 0===a&&(a=e.emptyOptions),e.getEditsForFileRename(S(),n,r,t,e.formatting.getFormatContext(i,t),a,y)},getEmitOutput:function(n,r,i){E();var a=v(n),o=t.getCustomTransformers&&t.getCustomTransformers();return e.getFileEmitOutput(l,a,!!r,m,o,i)},getNonBoundSourceFile:function(e){return d.getCurrentSourceFile(e)},getProgram:S,getCurrentProgram:function(){return l},getAutoImportProvider:function(){var e;return null===(e=t.getPackageJsonAutoImportProvider)||void 0===e?void 0:e.call(t)},updateIsDefinitionOfReferencedSymbols:function(n,r){var i=l.getTypeChecker(),a=function(){for(var a=0,o=n;ai){var a=e.findPrecedingToken(r.pos,t);if(!a||t.getLineAndCharacterOfPosition(a.getEnd()).line!==i)return;r=a}if(!(16777216&r.flags))return d(r)}function o(n,r){var i=e.canHaveDecorators(n)?e.findLast(n.modifiers,e.isDecorator):void 0,a=i?e.skipTrivia(t.text,i.end):n.getStart(t);return e.createTextSpanFromBounds(a,(r||n).getEnd())}function s(n,r){return o(n,e.findNextToken(r,r.parent,t))}function c(e,n){return e&&i===t.getLineAndCharacterOfPosition(e.getStart(t)).line?d(e):d(n)}function l(n){return d(e.findPrecedingToken(n.pos,t))}function u(n){return d(e.findNextToken(n,n.parent,t))}function d(n){if(n){var r=n.parent;switch(n.kind){case 240:return v(n.declarationList.declarations[0]);case 257:case 169:case 168:return v(n);case 166:return function t(n){if(e.isBindingPattern(n.name))return S(n.name);if(function(t){return!!t.initializer||void 0!==t.dotDotDotToken||e.hasSyntacticModifier(t,12)}(n))return o(n);var r=n.parent,i=r.parameters.indexOf(n);return e.Debug.assert(-1!==i),0!==i?t(r.parameters[i-1]):d(r.body)}(n);case 259:case 171:case 170:case 174:case 175:case 173:case 215:case 216:return function(e){if(e.body)return b(e)?o(e):d(e.body)}(n);case 238:if(e.isFunctionBlock(n))return g=(h=n).statements.length?h.statements[0]:h.getLastToken(),b(h.parent)?c(h.parent,g):d(g);case 265:return E(n);case 295:return E(n.block);case 241:return o(n.expression);case 250:return o(n.getChildAt(0),n.expression);case 244:return s(n,n.expression);case 243:return d(n.statement);case 256:return o(n.getChildAt(0));case 242:return s(n,n.expression);case 253:return d(n.statement);case 249:case 248:return o(n.getChildAt(0),n.label);case 245:return function(e){return e.initializer?x(e):e.condition?o(e.condition):e.incrementor?o(e.incrementor):void 0}(n);case 246:return s(n,n.expression);case 247:return x(n);case 252:return s(n,n.expression);case 292:case 293:return d(n.statements[0]);case 255:return E(n.tryBlock);case 254:case 274:return o(n,n.expression);case 268:return o(n,n.moduleReference);case 269:case 275:return o(n,n.moduleSpecifier);case 264:if(1!==e.getModuleInstanceState(n))return;case 260:case 263:case 302:case 205:return o(n);case 251:return d(n.statement);case 167:return function(n,r,i){if(n){var a=n.indexOf(r);if(a>=0){for(var s=a,c=a+1;s>0&&i(n[s-1]);)s--;for(;c0?d(t.declarations[0]):void 0}function S(t){var n=e.forEach(t.elements,function(e){return 229!==e.kind?e:void 0});return n?d(n):205===t.parent.kind?o(t.parent):y(t.parent)}function T(t){e.Debug.assert(204!==t.kind&&203!==t.kind);var n=206===t.kind?t.elements:t.properties,r=e.forEach(n,function(e){return 229!==e.kind?e:void 0});return r?d(r):o(223===t.parent.kind?t.parent:t)}}}}(c||(c={})),function(e){e.transform=function(t,n,r){var i=[];r=e.fixupCompilerOptions(r,i);var a=e.isArray(t)?t:[t],o=e.transformNodes(void 0,void 0,e.factory,r,a,n,!0);return o.diagnostics=e.concatenate(o.diagnostics,i),o}}(c||(c={}));var c,l=function(){return this}();!function(e){function t(e,t){e&&e.log("*INTERNAL ERROR* - Exception in typescript services: "+t.message)}var i=function(){function t(e){this.scriptSnapshotShim=e}return t.prototype.getText=function(e,t){return this.scriptSnapshotShim.getText(e,t)},t.prototype.getLength=function(){return this.scriptSnapshotShim.getLength()},t.prototype.getChangeRange=function(t){var n=t,r=this.scriptSnapshotShim.getChangeRange(n.scriptSnapshotShim);if(null===r)return null;var i=JSON.parse(r);return e.createTextChangeRange(e.createTextSpan(i.span.start,i.span.length),i.newLength)},t.prototype.dispose=function(){"dispose"in this.scriptSnapshotShim&&this.scriptSnapshotShim.dispose()},t}(),a=function(){function t(t){var n=this;this.shimHost=t,this.loggingEnabled=!1,this.tracingEnabled=!1,"getModuleResolutionsForFile"in this.shimHost&&(this.resolveModuleNames=function(t,r){var i=JSON.parse(n.shimHost.getModuleResolutionsForFile(r));return e.map(t,function(t){var n=e.getProperty(i,t);return n?{resolvedFileName:n,extension:e.extensionFromPath(n),isExternalLibraryImport:!1}:void 0})}),"directoryExists"in this.shimHost&&(this.directoryExists=function(e){return n.shimHost.directoryExists(e)}),"getTypeReferenceDirectiveResolutionsForFile"in this.shimHost&&(this.resolveTypeReferenceDirectives=function(t,r){var i=JSON.parse(n.shimHost.getTypeReferenceDirectiveResolutionsForFile(r));return e.map(t,function(t){return e.getProperty(i,e.isString(t)?t:t.fileName.toLowerCase())})})}return t.prototype.log=function(e){this.loggingEnabled&&this.shimHost.log(e)},t.prototype.trace=function(e){this.tracingEnabled&&this.shimHost.trace(e)},t.prototype.error=function(e){this.shimHost.error(e)},t.prototype.getProjectVersion=function(){if(this.shimHost.getProjectVersion)return this.shimHost.getProjectVersion()},t.prototype.getTypeRootsVersion=function(){return this.shimHost.getTypeRootsVersion?this.shimHost.getTypeRootsVersion():0},t.prototype.useCaseSensitiveFileNames=function(){return!!this.shimHost.useCaseSensitiveFileNames&&this.shimHost.useCaseSensitiveFileNames()},t.prototype.getCompilationSettings=function(){var e=this.shimHost.getCompilationSettings();if(null===e||""===e)throw Error("LanguageServiceShimHostAdapter.getCompilationSettings: empty compilationSettings");var t=JSON.parse(e);return t.allowNonTsExtensions=!0,t},t.prototype.getScriptFileNames=function(){var e=this.shimHost.getScriptFileNames();return JSON.parse(e)},t.prototype.getScriptSnapshot=function(e){var t=this.shimHost.getScriptSnapshot(e);return t&&new i(t)},t.prototype.getScriptKind=function(e){return"getScriptKind"in this.shimHost?this.shimHost.getScriptKind(e):0},t.prototype.getScriptVersion=function(e){return this.shimHost.getScriptVersion(e)},t.prototype.getLocalizedDiagnosticMessages=function(){var e=this.shimHost.getLocalizedDiagnosticMessages();if(null===e||""===e)return null;try{return JSON.parse(e)}catch(e){return this.log(e.description||"diagnosticMessages.generated.json has invalid JSON format"),null}},t.prototype.getCancellationToken=function(){var t=this.shimHost.getCancellationToken();return new e.ThrottledCancellationToken(t)},t.prototype.getCurrentDirectory=function(){return this.shimHost.getCurrentDirectory()},t.prototype.getDirectories=function(e){return JSON.parse(this.shimHost.getDirectories(e))},t.prototype.getDefaultLibFileName=function(e){return this.shimHost.getDefaultLibFileName(JSON.stringify(e))},t.prototype.readDirectory=function(t,n,r,i,a){var o=e.getFileMatcherPatterns(t,r,i,this.shimHost.useCaseSensitiveFileNames(),this.shimHost.getCurrentDirectory());return JSON.parse(this.shimHost.readDirectory(t,JSON.stringify(n),JSON.stringify(o.basePaths),o.excludePattern,o.includeFilePattern,o.includeDirectoryPattern,a))},t.prototype.readFile=function(e,t){return this.shimHost.readFile(e,t)},t.prototype.fileExists=function(e){return this.shimHost.fileExists(e)},t}();e.LanguageServiceShimHostAdapter=a;var c=function(){function t(e){var t=this;this.shimHost=e,this.useCaseSensitiveFileNames=!!this.shimHost.useCaseSensitiveFileNames&&this.shimHost.useCaseSensitiveFileNames(),"directoryExists"in this.shimHost?this.directoryExists=function(e){return t.shimHost.directoryExists(e)}:this.directoryExists=void 0,"realpath"in this.shimHost?this.realpath=function(e){return t.shimHost.realpath(e)}:this.realpath=void 0}return t.prototype.readDirectory=function(t,n,r,i,a){var o=e.getFileMatcherPatterns(t,r,i,this.shimHost.useCaseSensitiveFileNames(),this.shimHost.getCurrentDirectory());return JSON.parse(this.shimHost.readDirectory(t,JSON.stringify(n),JSON.stringify(o.basePaths),o.excludePattern,o.includeFilePattern,o.includeDirectoryPattern,a))},t.prototype.fileExists=function(e){return this.shimHost.fileExists(e)},t.prototype.readFile=function(e){return this.shimHost.readFile(e)},t.prototype.getDirectories=function(e){return JSON.parse(this.shimHost.getDirectories(e))},t}();function u(e,t,n,r){return d(e,t,!0,n,r)}function d(n,r,i,a,o){try{var s=function(t,n,r,i){var a;i&&(t.log(n),a=e.timestamp());var o=r();if(i){var s=e.timestamp();if(t.log("".concat(n," completed in ").concat(s-a," msec")),e.isString(o)){var c=o;c.length>128&&(c=c.substring(0,128)+"..."),t.log(" result.length=".concat(c.length,", result='").concat(JSON.stringify(c),"'"))}}return o}(n,r,a,o);return i?JSON.stringify({result:s}):s}catch(i){return i instanceof e.OperationCanceledException?JSON.stringify({canceled:!0}):(t(n,i),i.description=r,JSON.stringify({error:i}))}}e.CoreServicesShimHostAdapter=c;var p=function(){function e(e){this.factory=e,e.registerShim(this)}return e.prototype.dispose=function(e){this.factory.unregisterShim(this)},e}();function m(t,n){return t.map(function(t){return function(t,n){return{message:e.flattenDiagnosticMessageText(t.messageText,n),start:t.start,length:t.length,category:e.diagnosticCategoryName(t),code:t.code,reportsUnnecessary:t.reportsUnnecessary,reportsDeprecated:t.reportsDeprecated}}(t,n)})}e.realizeDiagnostics=m;var f=function(t){function n(e,n,r){var i=t.call(this,e)||this;return i.host=n,i.languageService=r,i.logPerformance=!1,i.logger=i.host,i}return s(n,t),n.prototype.forwardJSONCall=function(e,t){return u(this.logger,e,t,this.logPerformance)},n.prototype.dispose=function(e){this.logger.log("dispose()"),this.languageService.dispose(),this.languageService=null,l&&l.CollectGarbage&&(l.CollectGarbage(),this.logger.log("CollectGarbage()")),this.logger=null,t.prototype.dispose.call(this,e)},n.prototype.refresh=function(e){this.forwardJSONCall("refresh(".concat(e,")"),function(){return null})},n.prototype.cleanupSemanticCache=function(){var e=this;this.forwardJSONCall("cleanupSemanticCache()",function(){return e.languageService.cleanupSemanticCache(),null})},n.prototype.realizeDiagnostics=function(t){return m(t,e.getNewLineOrDefaultFromHost(this.host))},n.prototype.getSyntacticClassifications=function(t,n,r){var i=this;return this.forwardJSONCall("getSyntacticClassifications('".concat(t,"', ").concat(n,", ").concat(r,")"),function(){return i.languageService.getSyntacticClassifications(t,e.createTextSpan(n,r))})},n.prototype.getSemanticClassifications=function(t,n,r){var i=this;return this.forwardJSONCall("getSemanticClassifications('".concat(t,"', ").concat(n,", ").concat(r,")"),function(){return i.languageService.getSemanticClassifications(t,e.createTextSpan(n,r))})},n.prototype.getEncodedSyntacticClassifications=function(t,n,r){var i=this;return this.forwardJSONCall("getEncodedSyntacticClassifications('".concat(t,"', ").concat(n,", ").concat(r,")"),function(){return _(i.languageService.getEncodedSyntacticClassifications(t,e.createTextSpan(n,r)))})},n.prototype.getEncodedSemanticClassifications=function(t,n,r){var i=this;return this.forwardJSONCall("getEncodedSemanticClassifications('".concat(t,"', ").concat(n,", ").concat(r,")"),function(){return _(i.languageService.getEncodedSemanticClassifications(t,e.createTextSpan(n,r)))})},n.prototype.getSyntacticDiagnostics=function(e){var t=this;return this.forwardJSONCall("getSyntacticDiagnostics('".concat(e,"')"),function(){var n=t.languageService.getSyntacticDiagnostics(e);return t.realizeDiagnostics(n)})},n.prototype.getSemanticDiagnostics=function(e){var t=this;return this.forwardJSONCall("getSemanticDiagnostics('".concat(e,"')"),function(){var n=t.languageService.getSemanticDiagnostics(e);return t.realizeDiagnostics(n)})},n.prototype.getSuggestionDiagnostics=function(e){var t=this;return this.forwardJSONCall("getSuggestionDiagnostics('".concat(e,"')"),function(){return t.realizeDiagnostics(t.languageService.getSuggestionDiagnostics(e))})},n.prototype.getCompilerOptionsDiagnostics=function(){var e=this;return this.forwardJSONCall("getCompilerOptionsDiagnostics()",function(){var t=e.languageService.getCompilerOptionsDiagnostics();return e.realizeDiagnostics(t)})},n.prototype.getQuickInfoAtPosition=function(e,t){var n=this;return this.forwardJSONCall("getQuickInfoAtPosition('".concat(e,"', ").concat(t,")"),function(){return n.languageService.getQuickInfoAtPosition(e,t)})},n.prototype.getNameOrDottedNameSpan=function(e,t,n){var r=this;return this.forwardJSONCall("getNameOrDottedNameSpan('".concat(e,"', ").concat(t,", ").concat(n,")"),function(){return r.languageService.getNameOrDottedNameSpan(e,t,n)})},n.prototype.getBreakpointStatementAtPosition=function(e,t){var n=this;return this.forwardJSONCall("getBreakpointStatementAtPosition('".concat(e,"', ").concat(t,")"),function(){return n.languageService.getBreakpointStatementAtPosition(e,t)})},n.prototype.getSignatureHelpItems=function(e,t,n){var r=this;return this.forwardJSONCall("getSignatureHelpItems('".concat(e,"', ").concat(t,")"),function(){return r.languageService.getSignatureHelpItems(e,t,n)})},n.prototype.getDefinitionAtPosition=function(e,t){var n=this;return this.forwardJSONCall("getDefinitionAtPosition('".concat(e,"', ").concat(t,")"),function(){return n.languageService.getDefinitionAtPosition(e,t)})},n.prototype.getDefinitionAndBoundSpan=function(e,t){var n=this;return this.forwardJSONCall("getDefinitionAndBoundSpan('".concat(e,"', ").concat(t,")"),function(){return n.languageService.getDefinitionAndBoundSpan(e,t)})},n.prototype.getTypeDefinitionAtPosition=function(e,t){var n=this;return this.forwardJSONCall("getTypeDefinitionAtPosition('".concat(e,"', ").concat(t,")"),function(){return n.languageService.getTypeDefinitionAtPosition(e,t)})},n.prototype.getImplementationAtPosition=function(e,t){var n=this;return this.forwardJSONCall("getImplementationAtPosition('".concat(e,"', ").concat(t,")"),function(){return n.languageService.getImplementationAtPosition(e,t)})},n.prototype.getRenameInfo=function(e,t,n){var r=this;return this.forwardJSONCall("getRenameInfo('".concat(e,"', ").concat(t,")"),function(){return r.languageService.getRenameInfo(e,t,n)})},n.prototype.getSmartSelectionRange=function(e,t){var n=this;return this.forwardJSONCall("getSmartSelectionRange('".concat(e,"', ").concat(t,")"),function(){return n.languageService.getSmartSelectionRange(e,t)})},n.prototype.findRenameLocations=function(e,t,n,r,i){var a=this;return this.forwardJSONCall("findRenameLocations('".concat(e,"', ").concat(t,", ").concat(n,", ").concat(r,", ").concat(i,")"),function(){return a.languageService.findRenameLocations(e,t,n,r,i)})},n.prototype.getBraceMatchingAtPosition=function(e,t){var n=this;return this.forwardJSONCall("getBraceMatchingAtPosition('".concat(e,"', ").concat(t,")"),function(){return n.languageService.getBraceMatchingAtPosition(e,t)})},n.prototype.isValidBraceCompletionAtPosition=function(e,t,n){var r=this;return this.forwardJSONCall("isValidBraceCompletionAtPosition('".concat(e,"', ").concat(t,", ").concat(n,")"),function(){return r.languageService.isValidBraceCompletionAtPosition(e,t,n)})},n.prototype.getSpanOfEnclosingComment=function(e,t,n){var r=this;return this.forwardJSONCall("getSpanOfEnclosingComment('".concat(e,"', ").concat(t,")"),function(){return r.languageService.getSpanOfEnclosingComment(e,t,n)})},n.prototype.getIndentationAtPosition=function(e,t,n){var r=this;return this.forwardJSONCall("getIndentationAtPosition('".concat(e,"', ").concat(t,")"),function(){var i=JSON.parse(n);return r.languageService.getIndentationAtPosition(e,t,i)})},n.prototype.getReferencesAtPosition=function(e,t){var n=this;return this.forwardJSONCall("getReferencesAtPosition('".concat(e,"', ").concat(t,")"),function(){return n.languageService.getReferencesAtPosition(e,t)})},n.prototype.findReferences=function(e,t){var n=this;return this.forwardJSONCall("findReferences('".concat(e,"', ").concat(t,")"),function(){return n.languageService.findReferences(e,t)})},n.prototype.getFileReferences=function(e){var t=this;return this.forwardJSONCall("getFileReferences('".concat(e,")"),function(){return t.languageService.getFileReferences(e)})},n.prototype.getOccurrencesAtPosition=function(e,t){var n=this;return this.forwardJSONCall("getOccurrencesAtPosition('".concat(e,"', ").concat(t,")"),function(){return n.languageService.getOccurrencesAtPosition(e,t)})},n.prototype.getDocumentHighlights=function(t,n,r){var i=this;return this.forwardJSONCall("getDocumentHighlights('".concat(t,"', ").concat(n,")"),function(){var a=i.languageService.getDocumentHighlights(t,n,JSON.parse(r)),o=e.toFileNameLowerCase(e.normalizeSlashes(t));return e.filter(a,function(t){return e.toFileNameLowerCase(e.normalizeSlashes(t.fileName))===o})})},n.prototype.getCompletionsAtPosition=function(e,t,n,r){var i=this;return this.forwardJSONCall("getCompletionsAtPosition('".concat(e,"', ").concat(t,", ").concat(n,", ").concat(r,")"),function(){return i.languageService.getCompletionsAtPosition(e,t,n,r)})},n.prototype.getCompletionEntryDetails=function(e,t,n,r,i,a,o){var s=this;return this.forwardJSONCall("getCompletionEntryDetails('".concat(e,"', ").concat(t,", '").concat(n,"')"),function(){var c=void 0===r?void 0:JSON.parse(r);return s.languageService.getCompletionEntryDetails(e,t,n,c,i,a,o)})},n.prototype.getFormattingEditsForRange=function(e,t,n,r){var i=this;return this.forwardJSONCall("getFormattingEditsForRange('".concat(e,"', ").concat(t,", ").concat(n,")"),function(){var a=JSON.parse(r);return i.languageService.getFormattingEditsForRange(e,t,n,a)})},n.prototype.getFormattingEditsForDocument=function(e,t){var n=this;return this.forwardJSONCall("getFormattingEditsForDocument('".concat(e,"')"),function(){var r=JSON.parse(t);return n.languageService.getFormattingEditsForDocument(e,r)})},n.prototype.getFormattingEditsAfterKeystroke=function(e,t,n,r){var i=this;return this.forwardJSONCall("getFormattingEditsAfterKeystroke('".concat(e,"', ").concat(t,", '").concat(n,"')"),function(){var a=JSON.parse(r);return i.languageService.getFormattingEditsAfterKeystroke(e,t,n,a)})},n.prototype.getDocCommentTemplateAtPosition=function(e,t,n){var r=this;return this.forwardJSONCall("getDocCommentTemplateAtPosition('".concat(e,"', ").concat(t,")"),function(){return r.languageService.getDocCommentTemplateAtPosition(e,t,n)})},n.prototype.getNavigateToItems=function(e,t,n){var r=this;return this.forwardJSONCall("getNavigateToItems('".concat(e,"', ").concat(t,", ").concat(n,")"),function(){return r.languageService.getNavigateToItems(e,t,n)})},n.prototype.getNavigationBarItems=function(e){var t=this;return this.forwardJSONCall("getNavigationBarItems('".concat(e,"')"),function(){return t.languageService.getNavigationBarItems(e)})},n.prototype.getNavigationTree=function(e){var t=this;return this.forwardJSONCall("getNavigationTree('".concat(e,"')"),function(){return t.languageService.getNavigationTree(e)})},n.prototype.getOutliningSpans=function(e){var t=this;return this.forwardJSONCall("getOutliningSpans('".concat(e,"')"),function(){return t.languageService.getOutliningSpans(e)})},n.prototype.getTodoComments=function(e,t){var n=this;return this.forwardJSONCall("getTodoComments('".concat(e,"')"),function(){return n.languageService.getTodoComments(e,JSON.parse(t))})},n.prototype.prepareCallHierarchy=function(e,t){var n=this;return this.forwardJSONCall("prepareCallHierarchy('".concat(e,"', ").concat(t,")"),function(){return n.languageService.prepareCallHierarchy(e,t)})},n.prototype.provideCallHierarchyIncomingCalls=function(e,t){var n=this;return this.forwardJSONCall("provideCallHierarchyIncomingCalls('".concat(e,"', ").concat(t,")"),function(){return n.languageService.provideCallHierarchyIncomingCalls(e,t)})},n.prototype.provideCallHierarchyOutgoingCalls=function(e,t){var n=this;return this.forwardJSONCall("provideCallHierarchyOutgoingCalls('".concat(e,"', ").concat(t,")"),function(){return n.languageService.provideCallHierarchyOutgoingCalls(e,t)})},n.prototype.provideInlayHints=function(e,t,n){var r=this;return this.forwardJSONCall("provideInlayHints('".concat(e,"', '").concat(JSON.stringify(t),"', ").concat(JSON.stringify(n),")"),function(){return r.languageService.provideInlayHints(e,t,n)})},n.prototype.getEmitOutput=function(e){var t=this;return this.forwardJSONCall("getEmitOutput('".concat(e,"')"),function(){var n=t.languageService.getEmitOutput(e),i=n.diagnostics,a=o(n,["diagnostics"]);return r(r({},a),{diagnostics:t.realizeDiagnostics(i)})})},n.prototype.getEmitOutputObject=function(e){var t=this;return d(this.logger,"getEmitOutput('".concat(e,"')"),!1,function(){return t.languageService.getEmitOutput(e)},this.logPerformance)},n.prototype.toggleLineComment=function(e,t){var n=this;return this.forwardJSONCall("toggleLineComment('".concat(e,"', '").concat(JSON.stringify(t),"')"),function(){return n.languageService.toggleLineComment(e,t)})},n.prototype.toggleMultilineComment=function(e,t){var n=this;return this.forwardJSONCall("toggleMultilineComment('".concat(e,"', '").concat(JSON.stringify(t),"')"),function(){return n.languageService.toggleMultilineComment(e,t)})},n.prototype.commentSelection=function(e,t){var n=this;return this.forwardJSONCall("commentSelection('".concat(e,"', '").concat(JSON.stringify(t),"')"),function(){return n.languageService.commentSelection(e,t)})},n.prototype.uncommentSelection=function(e,t){var n=this;return this.forwardJSONCall("uncommentSelection('".concat(e,"', '").concat(JSON.stringify(t),"')"),function(){return n.languageService.uncommentSelection(e,t)})},n}(p);function _(e){return{spans:e.spans.join(","),endOfLineState:e.endOfLineState}}var h=function(t){function n(n,r){var i=t.call(this,n)||this;return i.logger=r,i.logPerformance=!1,i.classifier=e.createClassifier(),i}return s(n,t),n.prototype.getEncodedLexicalClassifications=function(e,t,n){var r=this;return void 0===n&&(n=!1),u(this.logger,"getEncodedLexicalClassifications",function(){return _(r.classifier.getEncodedLexicalClassifications(e,t,n))},this.logPerformance)},n.prototype.getClassificationsForLine=function(e,t,n){void 0===n&&(n=!1);for(var r=this.classifier.getClassificationsForLine(e,t,n),i="",a=0,o=r.entries;a=1&&arguments.length<=3?e.factory.createVariableDeclaration(t,void 0,n,r):e.Debug.fail("Argument count mismatch")},t),e.updateVariableDeclaration=e.Debug.deprecate(function(t,n,r,i,a){return 5===arguments.length?e.factory.updateVariableDeclaration(t,n,r,i,a):4===arguments.length?e.factory.updateVariableDeclaration(t,n,t.exclamationToken,r,i):e.Debug.fail("Argument count mismatch")},t),e.createImportClause=e.Debug.deprecate(function(t,n,r){return void 0===r&&(r=!1),e.factory.createImportClause(r,t,n)},t),e.updateImportClause=e.Debug.deprecate(function(t,n,r,i){return e.factory.updateImportClause(t,i,n,r)},t),e.createExportDeclaration=e.Debug.deprecate(function(t,n,r,i,a){return void 0===a&&(a=!1),e.factory.createExportDeclaration(t,n,a,r,i)},t),e.updateExportDeclaration=e.Debug.deprecate(function(t,n,r,i,a,o){return e.factory.updateExportDeclaration(t,n,r,o,i,a,t.assertClause)},t),e.createJSDocParamTag=e.Debug.deprecate(function(t,n,r,i){return e.factory.createJSDocParameterTag(void 0,t,n,r,!1,i?e.factory.createNodeArray([e.factory.createJSDocText(i)]):void 0)},t),e.createComma=e.Debug.deprecate(function(t,n){return e.factory.createComma(t,n)},t),e.createLessThan=e.Debug.deprecate(function(t,n){return e.factory.createLessThan(t,n)},t),e.createAssignment=e.Debug.deprecate(function(t,n){return e.factory.createAssignment(t,n)},t),e.createStrictEquality=e.Debug.deprecate(function(t,n){return e.factory.createStrictEquality(t,n)},t),e.createStrictInequality=e.Debug.deprecate(function(t,n){return e.factory.createStrictInequality(t,n)},t),e.createAdd=e.Debug.deprecate(function(t,n){return e.factory.createAdd(t,n)},t),e.createSubtract=e.Debug.deprecate(function(t,n){return e.factory.createSubtract(t,n)},t),e.createLogicalAnd=e.Debug.deprecate(function(t,n){return e.factory.createLogicalAnd(t,n)},t),e.createLogicalOr=e.Debug.deprecate(function(t,n){return e.factory.createLogicalOr(t,n)},t),e.createPostfixIncrement=e.Debug.deprecate(function(t){return e.factory.createPostfixIncrement(t)},t),e.createLogicalNot=e.Debug.deprecate(function(t){return e.factory.createLogicalNot(t)},t),e.createNode=e.Debug.deprecate(function(t,n,r){return void 0===n&&(n=0),void 0===r&&(r=0),e.setTextRangePosEnd(308===t?e.parseBaseNodeFactory.createBaseSourceFileNode(t):79===t?e.parseBaseNodeFactory.createBaseIdentifierNode(t):80===t?e.parseBaseNodeFactory.createBasePrivateIdentifierNode(t):e.isNodeKind(t)?e.parseBaseNodeFactory.createBaseNode(t):e.parseBaseNodeFactory.createBaseTokenNode(t),n,r)},{since:"4.0",warnAfter:"4.1",message:"Use an appropriate `factory` method instead."}),e.getMutableClone=e.Debug.deprecate(function(t){var n=e.factory.cloneNode(t);return e.setTextRange(n,t),e.setParent(n,t.parent),n},{since:"4.0",warnAfter:"4.1",message:"Use an appropriate `factory.update...` method instead, use `setCommentRange` or `setSourceMapRange`, and avoid setting `parent`."})}(c||(c={})),function(e){e.isTypeAssertion=e.Debug.deprecate(function(e){return 213===e.kind},{since:"4.0",warnAfter:"4.1",message:"Use `isTypeAssertionExpression` instead."})}(c||(c={})),function(e){e.isIdentifierOrPrivateIdentifier=e.Debug.deprecate(function(t){return e.isMemberName(t)},{since:"4.2",warnAfter:"4.3",message:"Use `isMemberName` instead."})}(c||(c={})),function(e){function t(t){var n=t.createConstructorTypeNode,r=t.updateConstructorTypeNode;t.createConstructorTypeNode=e.buildOverload("createConstructorTypeNode").overload({0:function(e,t,r,i){return n(e,t,r,i)},1:function(e,t,r){return n(void 0,e,t,r)}}).bind({0:function(e){return 4===e.length},1:function(e){return 3===e.length}}).deprecate({1:{since:"4.2",warnAfter:"4.3",message:"Use the overload that accepts 'modifiers'"}}).finish(),t.updateConstructorTypeNode=e.buildOverload("updateConstructorTypeNode").overload({0:function(e,t,n,i,a){return r(e,t,n,i,a)},1:function(e,t,n,i){return r(e,e.modifiers,t,n,i)}}).bind({0:function(e){return 5===e.length},1:function(e){return 4===e.length}}).deprecate({1:{since:"4.2",warnAfter:"4.3",message:"Use the overload that accepts 'modifiers'"}}).finish()}var n=e.createNodeFactory;e.createNodeFactory=function(e,r){var i=n(e,r);return t(i),i},t(e.factory)}(c||(c={})),function(e){function t(t){var n=t.createImportTypeNode,r=t.updateImportTypeNode;t.createImportTypeNode=e.buildOverload("createImportTypeNode").overload({0:function(e,t,r,i,a){return n(e,t,r,i,a)},1:function(e,t,r,i){return n(e,void 0,t,r,i)}}).bind({0:function(t){var n=t[1],r=t[2],i=t[3],a=t[4];return(void 0===n||e.isImportTypeAssertionContainer(n))&&(void 0===r||!e.isArray(r))&&(void 0===i||e.isArray(i))&&(void 0===a||"boolean"==typeof a)},1:function(t){var n=t[1],r=t[2],i=t[3];return void 0===t[4]&&(void 0===n||e.isEntityName(n))&&(void 0===r||e.isArray(r))&&(void 0===i||"boolean"==typeof i)}}).deprecate({1:{since:"4.6",warnAfter:"4.7",message:"Use the overload that accepts 'assertions'"}}).finish(),t.updateImportTypeNode=e.buildOverload("updateImportTypeNode").overload({0:function(e,t,n,i,a,o){return r(e,t,n,i,a,o)},1:function(e,t,n,i,a){return r(e,t,e.assertions,n,i,a)}}).bind({0:function(t){var n=t[2],r=t[3],i=t[4],a=t[5];return(void 0===n||e.isImportTypeAssertionContainer(n))&&(void 0===r||!e.isArray(r))&&(void 0===i||e.isArray(i))&&(void 0===a||"boolean"==typeof a)},1:function(t){var n=t[2],r=t[3],i=t[4];return void 0===t[5]&&(void 0===n||e.isEntityName(n))&&(void 0===r||e.isArray(r))&&(void 0===i||"boolean"==typeof i)}}).deprecate({1:{since:"4.6",warnAfter:"4.7",message:"Use the overload that accepts 'assertions'"}}).finish()}var n=e.createNodeFactory;e.createNodeFactory=function(e,r){var i=n(e,r);return t(i),i},t(e.factory)}(c||(c={})),function(e){function t(t){var n=t.createTypeParameterDeclaration,r=t.updateTypeParameterDeclaration;t.createTypeParameterDeclaration=e.buildOverload("createTypeParameterDeclaration").overload({0:function(e,t,r,i){return n(e,t,r,i)},1:function(e,t,r){return n(void 0,e,t,r)}}).bind({0:function(t){var n=t[0];return void 0===n||e.isArray(n)},1:function(t){var n=t[0];return void 0!==n&&!e.isArray(n)}}).deprecate({1:{since:"4.7",warnAfter:"4.8",message:"Use the overload that accepts 'modifiers'"}}).finish(),t.updateTypeParameterDeclaration=e.buildOverload("updateTypeParameterDeclaration").overload({0:function(e,t,n,i,a){return r(e,t,n,i,a)},1:function(e,t,n,i){return r(e,e.modifiers,t,n,i)}}).bind({0:function(t){var n=t[1];return void 0===n||e.isArray(n)},1:function(t){var n=t[1];return void 0!==n&&!e.isArray(n)}}).deprecate({1:{since:"4.7",warnAfter:"4.8",message:"Use the overload that accepts 'modifiers'"}}).finish()}var n=e.createNodeFactory;e.createNodeFactory=function(e,r){var i=n(e,r);return t(i),i},t(e.factory)}(c||(c={})),function(e){var t={since:"4.8",warnAfter:"4.9.0-0",message:"Decorators have been combined with modifiers. Callers should switch to an overload that does not accept a 'decorators' parameter."},n={since:"4.8",warnAfter:"4.9.0-0",message:"Decorators are no longer supported for this function. Callers should switch to an overload that does not accept a 'decorators' parameter."},r={since:"4.8",warnAfter:"4.9.0-0",message:"Decorators and modifiers are no longer supported for this function. Callers should switch to an overload that does not accept the 'decorators' and 'modifiers' parameters."};function i(i){var a=i.createParameterDeclaration,o=i.updateParameterDeclaration,s=i.createPropertyDeclaration,c=i.updatePropertyDeclaration,l=i.createMethodDeclaration,u=i.updateMethodDeclaration,d=i.createConstructorDeclaration,p=i.updateConstructorDeclaration,m=i.createGetAccessorDeclaration,f=i.updateGetAccessorDeclaration,_=i.createSetAccessorDeclaration,h=i.updateSetAccessorDeclaration,g=i.createIndexSignature,y=i.updateIndexSignature,v=i.createClassStaticBlockDeclaration,b=i.updateClassStaticBlockDeclaration,E=i.createClassExpression,x=i.updateClassExpression,S=i.createFunctionDeclaration,T=i.updateFunctionDeclaration,C=i.createClassDeclaration,D=i.updateClassDeclaration,L=i.createInterfaceDeclaration,A=i.updateInterfaceDeclaration,N=i.createTypeAliasDeclaration,k=i.updateTypeAliasDeclaration,I=i.createEnumDeclaration,P=i.updateEnumDeclaration,w=i.createModuleDeclaration,O=i.updateModuleDeclaration,R=i.createImportEqualsDeclaration,M=i.updateImportEqualsDeclaration,F=i.createImportDeclaration,G=i.updateImportDeclaration,B=i.createExportAssignment,U=i.updateExportAssignment,V=i.createExportDeclaration,K=i.updateExportDeclaration;i.createParameterDeclaration=e.buildOverload("createParameterDeclaration").overload({0:function(e,t,n,r,i,o){return a(e,t,n,r,i,o)},1:function(t,n,r,i,o,s,c){return a(e.concatenate(t,n),r,i,o,s,c)}}).bind({0:function(t){var n=t[1],r=t[2],i=t[3],a=t[4],o=t[5];return void 0===t[6]&&(void 0===n||!e.isArray(n))&&(void 0===r||"string"==typeof r||e.isBindingName(r))&&(void 0===i||"object"==typeof i&&e.isQuestionToken(i))&&(void 0===a||e.isTypeNode(a))&&(void 0===o||e.isExpression(o))},1:function(t){var n=t[1],r=t[2],i=t[3],a=t[4],o=t[5],s=t[6];return(void 0===n||e.isArray(n))&&(void 0===r||"object"==typeof r&&e.isDotDotDotToken(r))&&(void 0===i||"string"==typeof i||e.isBindingName(i))&&(void 0===a||e.isQuestionToken(a))&&(void 0===o||e.isTypeNode(o))&&(void 0===s||e.isExpression(s))}}).deprecate({1:t}).finish(),i.updateParameterDeclaration=e.buildOverload("updateParameterDeclaration").overload({0:function(e,t,n,r,i,a,s){return o(e,t,n,r,i,a,s)},1:function(t,n,r,i,a,s,c,l){return o(t,e.concatenate(n,r),i,a,s,c,l)}}).bind({0:function(t){var n=t[2],r=t[3],i=t[4],a=t[5],o=t[6];return void 0===t[7]&&(void 0===n||!e.isArray(n))&&(void 0===r||"string"==typeof r||e.isBindingName(r))&&(void 0===i||"object"==typeof i&&e.isQuestionToken(i))&&(void 0===a||e.isTypeNode(a))&&(void 0===o||e.isExpression(o))},1:function(t){var n=t[2],r=t[3],i=t[4],a=t[5],o=t[6],s=t[7];return(void 0===n||e.isArray(n))&&(void 0===r||"object"==typeof r&&e.isDotDotDotToken(r))&&(void 0===i||"string"==typeof i||e.isBindingName(i))&&(void 0===a||e.isQuestionToken(a))&&(void 0===o||e.isTypeNode(o))&&(void 0===s||e.isExpression(s))}}).deprecate({1:t}).finish(),i.createPropertyDeclaration=e.buildOverload("createPropertyDeclaration").overload({0:function(e,t,n,r,i){return s(e,t,n,r,i)},1:function(t,n,r,i,a,o){return s(e.concatenate(t,n),r,i,a,o)}}).bind({0:function(t){var n=t[1],r=t[2],i=t[3],a=t[4];return void 0===t[5]&&(void 0===n||!e.isArray(n))&&(void 0===r||"object"==typeof r&&e.isQuestionOrExclamationToken(r))&&(void 0===i||e.isTypeNode(i))&&(void 0===a||e.isExpression(a))},1:function(t){var n=t[1],r=t[2],i=t[3],a=t[4],o=t[5];return(void 0===n||e.isArray(n))&&(void 0===r||"string"==typeof r||e.isPropertyName(r))&&(void 0===i||e.isQuestionOrExclamationToken(i))&&(void 0===a||e.isTypeNode(a))&&(void 0===o||e.isExpression(o))}}).deprecate({1:t}).finish(),i.updatePropertyDeclaration=e.buildOverload("updatePropertyDeclaration").overload({0:function(e,t,n,r,i,a){return c(e,t,n,r,i,a)},1:function(t,n,r,i,a,o,s){return c(t,e.concatenate(n,r),i,a,o,s)}}).bind({0:function(t){var n=t[2],r=t[3],i=t[4],a=t[5];return void 0===t[6]&&(void 0===n||!e.isArray(n))&&(void 0===r||"object"==typeof r&&e.isQuestionOrExclamationToken(r))&&(void 0===i||e.isTypeNode(i))&&(void 0===a||e.isExpression(a))},1:function(t){var n=t[2],r=t[3],i=t[4],a=t[5],o=t[6];return(void 0===n||e.isArray(n))&&(void 0===r||"string"==typeof r||e.isPropertyName(r))&&(void 0===i||e.isQuestionOrExclamationToken(i))&&(void 0===a||e.isTypeNode(a))&&(void 0===o||e.isExpression(o))}}).deprecate({1:t}).finish(),i.createMethodDeclaration=e.buildOverload("createMethodDeclaration").overload({0:function(e,t,n,r,i,a,o,s){return l(e,t,n,r,i,a,o,s)},1:function(t,n,r,i,a,o,s,c,u){return l(e.concatenate(t,n),r,i,a,o,s,c,u)}}).bind({0:function(t){var n=t[1],r=t[2],i=t[3],a=t[4],o=t[5],s=t[6],c=t[7];return void 0===t[8]&&(void 0===n||!e.isArray(n))&&(void 0===r||"string"==typeof r||e.isPropertyName(r))&&(void 0===i||"object"==typeof i&&e.isQuestionToken(i))&&(void 0===a||e.isArray(a))&&(void 0===o||!e.some(o,e.isTypeParameterDeclaration))&&(void 0===s||!e.isArray(s))&&(void 0===c||e.isBlock(c))},1:function(t){var n=t[1],r=t[2],i=t[3],a=t[4],o=t[5],s=t[6],c=t[7],l=t[8];return(void 0===n||e.isArray(n))&&(void 0===r||"object"==typeof r&&e.isAsteriskToken(r))&&(void 0===i||"string"==typeof i||e.isPropertyName(i))&&(void 0===a||!e.isArray(a))&&(void 0===o||!e.some(o,e.isParameter))&&(void 0===s||e.isArray(s))&&(void 0===c||e.isTypeNode(c))&&(void 0===l||e.isBlock(l))}}).deprecate({1:t}).finish(),i.updateMethodDeclaration=e.buildOverload("updateMethodDeclaration").overload({0:function(e,t,n,r,i,a,o,s,c){return u(e,t,n,r,i,a,o,s,c)},1:function(t,n,r,i,a,o,s,c,l,d){return u(t,e.concatenate(n,r),i,a,o,s,c,l,d)}}).bind({0:function(t){var n=t[2],r=t[3],i=t[4],a=t[5],o=t[6],s=t[7],c=t[8];return void 0===t[9]&&(void 0===n||!e.isArray(n))&&(void 0===r||"string"==typeof r||e.isPropertyName(r))&&(void 0===i||"object"==typeof i&&e.isQuestionToken(i))&&(void 0===a||e.isArray(a))&&(void 0===o||!e.some(o,e.isTypeParameterDeclaration))&&(void 0===s||!e.isArray(s))&&(void 0===c||e.isBlock(c))},1:function(t){var n=t[2],r=t[3],i=t[4],a=t[5],o=t[6],s=t[7],c=t[8],l=t[9];return(void 0===n||e.isArray(n))&&(void 0===r||"object"==typeof r&&e.isAsteriskToken(r))&&(void 0===i||"string"==typeof i||e.isPropertyName(i))&&(void 0===a||!e.isArray(a))&&(void 0===o||!e.some(o,e.isParameter))&&(void 0===s||e.isArray(s))&&(void 0===c||e.isTypeNode(c))&&(void 0===l||e.isBlock(l))}}).deprecate({1:t}).finish(),i.createConstructorDeclaration=e.buildOverload("createConstructorDeclaration").overload({0:function(e,t,n){return d(e,t,n)},1:function(e,t,n,r){return d(t,n,r)}}).bind({0:function(t){var n=t[0],r=t[1],i=t[2];return!(void 0!==t[3]||void 0!==n&&e.some(n,e.isDecorator)||void 0!==r&&e.some(r,e.isModifier)||void 0!==i&&e.isArray(i))},1:function(t){var n=t[0],r=t[1],i=t[2],a=t[3];return(void 0===n||!e.some(n,e.isModifier))&&(void 0===r||!e.some(r,e.isParameter))&&(void 0===i||e.isArray(i))&&(void 0===a||e.isBlock(a))}}).deprecate({1:n}).finish(),i.updateConstructorDeclaration=e.buildOverload("updateConstructorDeclaration").overload({0:function(e,t,n,r){return p(e,t,n,r)},1:function(e,t,n,r,i){return p(e,n,r,i)}}).bind({0:function(t){var n=t[1],r=t[2],i=t[3];return!(void 0!==t[4]||void 0!==n&&e.some(n,e.isDecorator)||void 0!==r&&e.some(r,e.isModifier)||void 0!==i&&e.isArray(i))},1:function(t){var n=t[1],r=t[2],i=t[3],a=t[4];return(void 0===n||!e.some(n,e.isModifier))&&(void 0===r||!e.some(r,e.isParameter))&&(void 0===i||e.isArray(i))&&(void 0===a||e.isBlock(a))}}).deprecate({1:n}).finish(),i.createGetAccessorDeclaration=e.buildOverload("createGetAccessorDeclaration").overload({0:function(e,t,n,r,i){return m(e,t,n,r,i)},1:function(t,n,r,i,a,o){return m(e.concatenate(t,n),r,i,a,o)}}).bind({0:function(t){var n=t[1],r=t[2],i=t[3],a=t[4];return void 0===t[5]&&(void 0===n||!e.isArray(n))&&(void 0===r||e.isArray(r))&&(void 0===i||!e.isArray(i))&&(void 0===a||e.isBlock(a))},1:function(t){var n=t[1],r=t[2],i=t[3],a=t[4],o=t[5];return(void 0===n||e.isArray(n))&&(void 0===r||!e.isArray(r))&&(void 0===i||e.isArray(i))&&(void 0===a||e.isTypeNode(a))&&(void 0===o||e.isBlock(o))}}).deprecate({1:t}).finish(),i.updateGetAccessorDeclaration=e.buildOverload("updateGetAccessorDeclaration").overload({0:function(e,t,n,r,i,a){return f(e,t,n,r,i,a)},1:function(t,n,r,i,a,o,s){return f(t,e.concatenate(n,r),i,a,o,s)}}).bind({0:function(t){var n=t[2],r=t[3],i=t[4],a=t[5];return void 0===t[6]&&(void 0===n||!e.isArray(n))&&(void 0===r||e.isArray(r))&&(void 0===i||!e.isArray(i))&&(void 0===a||e.isBlock(a))},1:function(t){var n=t[2],r=t[3],i=t[4],a=t[5],o=t[6];return(void 0===n||e.isArray(n))&&(void 0===r||!e.isArray(r))&&(void 0===i||e.isArray(i))&&(void 0===a||e.isTypeNode(a))&&(void 0===o||e.isBlock(o))}}).deprecate({1:t}).finish(),i.createSetAccessorDeclaration=e.buildOverload("createSetAccessorDeclaration").overload({0:function(e,t,n,r){return _(e,t,n,r)},1:function(t,n,r,i,a){return _(e.concatenate(t,n),r,i,a)}}).bind({0:function(t){var n=t[1],r=t[2],i=t[3];return void 0===t[4]&&(void 0===n||!e.isArray(n))&&(void 0===r||e.isArray(r))&&(void 0===i||!e.isArray(i))},1:function(t){var n=t[1],r=t[2],i=t[3],a=t[4];return(void 0===n||e.isArray(n))&&(void 0===r||!e.isArray(r))&&(void 0===i||e.isArray(i))&&(void 0===a||e.isBlock(a))}}).deprecate({1:t}).finish(),i.updateSetAccessorDeclaration=e.buildOverload("updateSetAccessorDeclaration").overload({0:function(e,t,n,r,i){return h(e,t,n,r,i)},1:function(t,n,r,i,a,o){return h(t,e.concatenate(n,r),i,a,o)}}).bind({0:function(t){var n=t[2],r=t[3],i=t[4];return void 0===t[5]&&(void 0===n||!e.isArray(n))&&(void 0===r||e.isArray(r))&&(void 0===i||!e.isArray(i))},1:function(t){var n=t[2],r=t[3],i=t[4],a=t[5];return(void 0===n||e.isArray(n))&&(void 0===r||!e.isArray(r))&&(void 0===i||e.isArray(i))&&(void 0===a||e.isBlock(a))}}).deprecate({1:t}).finish(),i.createIndexSignature=e.buildOverload("createIndexSignature").overload({0:function(e,t,n){return g(e,t,n)},1:function(e,t,n,r){return g(t,n,r)}}).bind({0:function(t){var n=t[0],r=t[1],i=t[2];return void 0===t[3]&&(void 0===n||e.every(n,e.isModifier))&&(void 0===r||e.every(r,e.isParameter))&&(void 0===i||!e.isArray(i))},1:function(t){var n=t[0],r=t[1],i=t[2],a=t[3];return(void 0===n||e.every(n,e.isDecorator))&&(void 0===r||e.every(r,e.isModifier))&&(void 0===i||e.isArray(i))&&(void 0===a||e.isTypeNode(a))}}).deprecate({1:n}).finish(),i.updateIndexSignature=e.buildOverload("updateIndexSignature").overload({0:function(e,t,n,r){return y(e,t,n,r)},1:function(e,t,n,r,i){return y(e,n,r,i)}}).bind({0:function(t){var n=t[1],r=t[2],i=t[3];return void 0===t[4]&&(void 0===n||e.every(n,e.isModifier))&&(void 0===r||e.every(r,e.isParameter))&&(void 0===i||!e.isArray(i))},1:function(t){var n=t[1],r=t[2],i=t[3],a=t[4];return(void 0===n||e.every(n,e.isDecorator))&&(void 0===r||e.every(r,e.isModifier))&&(void 0===i||e.isArray(i))&&(void 0===a||e.isTypeNode(a))}}).deprecate({1:n}).finish(),i.createClassStaticBlockDeclaration=e.buildOverload("createClassStaticBlockDeclaration").overload({0:function(e){return v(e)},1:function(e,t,n){return v(n)}}).bind({0:function(t){var n=t[0],r=t[1],i=t[2];return void 0===r&&void 0===i&&(void 0===n||!e.isArray(n))},1:function(t){var n=t[0],r=t[1],i=t[2];return(void 0===n||e.isArray(n))&&(void 0===r||e.isArray(n))&&(void 0===i||e.isBlock(i))}}).deprecate({1:r}).finish(),i.updateClassStaticBlockDeclaration=e.buildOverload("updateClassStaticBlockDeclaration").overload({0:function(e,t){return b(e,t)},1:function(e,t,n,r){return b(e,r)}}).bind({0:function(t){var n=t[1],r=t[2],i=t[3];return void 0===r&&void 0===i&&(void 0===n||!e.isArray(n))},1:function(t){var n=t[1],r=t[2],i=t[3];return(void 0===n||e.isArray(n))&&(void 0===r||e.isArray(n))&&(void 0===i||e.isBlock(i))}}).deprecate({1:r}).finish(),i.createClassExpression=e.buildOverload("createClassExpression").overload({0:function(e,t,n,r,i){return E(e,t,n,r,i)},1:function(t,n,r,i,a,o){return E(e.concatenate(t,n),r,i,a,o)}}).bind({0:function(t){var n=t[1],r=t[2],i=t[3],a=t[4];return void 0===t[5]&&(void 0===n||!e.isArray(n))&&(void 0===r||e.isArray(r))&&(void 0===i||e.every(i,e.isHeritageClause))&&(void 0===a||e.every(a,e.isClassElement))},1:function(t){var n=t[1],r=t[2],i=t[3],a=t[4],o=t[5];return(void 0===n||e.isArray(n))&&(void 0===r||!e.isArray(r))&&(void 0===i||e.every(i,e.isTypeParameterDeclaration))&&(void 0===a||e.every(a,e.isHeritageClause))&&(void 0===o||e.isArray(o))}}).deprecate({1:n}).finish(),i.updateClassExpression=e.buildOverload("updateClassExpression").overload({0:function(e,t,n,r,i,a){return x(e,t,n,r,i,a)},1:function(t,n,r,i,a,o,s){return x(t,e.concatenate(n,r),i,a,o,s)}}).bind({0:function(t){var n=t[2],r=t[3],i=t[4],a=t[5];return void 0===t[6]&&(void 0===n||!e.isArray(n))&&(void 0===r||e.isArray(r))&&(void 0===i||e.every(i,e.isHeritageClause))&&(void 0===a||e.every(a,e.isClassElement))},1:function(t){var n=t[2],r=t[3],i=t[4],a=t[5],o=t[6];return(void 0===n||e.isArray(n))&&(void 0===r||!e.isArray(r))&&(void 0===i||e.every(i,e.isTypeParameterDeclaration))&&(void 0===a||e.every(a,e.isHeritageClause))&&(void 0===o||e.isArray(o))}}).deprecate({1:n}).finish(),i.createFunctionDeclaration=e.buildOverload("createFunctionDeclaration").overload({0:function(e,t,n,r,i,a,o){return S(e,t,n,r,i,a,o)},1:function(e,t,n,r,i,a,o,s){return S(t,n,r,i,a,o,s)}}).bind({0:function(t){var n=t[1],r=t[2],i=t[3],a=t[4],o=t[5],s=t[6];return void 0===t[7]&&(void 0===n||!e.isArray(n))&&(void 0===r||"string"==typeof r||e.isIdentifier(r))&&(void 0===i||e.isArray(i))&&(void 0===a||e.every(a,e.isParameter))&&(void 0===o||!e.isArray(o))&&(void 0===s||e.isBlock(s))},1:function(t){var n=t[1],r=t[2],i=t[3],a=t[4],o=t[5],s=t[6],c=t[7];return(void 0===n||e.isArray(n))&&(void 0===r||"string"!=typeof r&&e.isAsteriskToken(r))&&(void 0===i||!e.isArray(i))&&(void 0===a||e.every(a,e.isTypeParameterDeclaration))&&(void 0===o||e.isArray(o))&&(void 0===s||e.isTypeNode(s))&&(void 0===c||e.isBlock(c))}}).deprecate({1:n}).finish(),i.updateFunctionDeclaration=e.buildOverload("updateFunctionDeclaration").overload({0:function(e,t,n,r,i,a,o,s){return T(e,t,n,r,i,a,o,s)},1:function(e,t,n,r,i,a,o,s,c){return T(e,n,r,i,a,o,s,c)}}).bind({0:function(t){var n=t[2],r=t[3],i=t[4],a=t[5],o=t[6],s=t[7];return void 0===t[8]&&(void 0===n||!e.isArray(n))&&(void 0===r||e.isIdentifier(r))&&(void 0===i||e.isArray(i))&&(void 0===a||e.every(a,e.isParameter))&&(void 0===o||!e.isArray(o))&&(void 0===s||e.isBlock(s))},1:function(t){var n=t[2],r=t[3],i=t[4],a=t[5],o=t[6],s=t[7],c=t[8];return(void 0===n||e.isArray(n))&&(void 0===r||"string"!=typeof r&&e.isAsteriskToken(r))&&(void 0===i||!e.isArray(i))&&(void 0===a||e.every(a,e.isTypeParameterDeclaration))&&(void 0===o||e.isArray(o))&&(void 0===s||e.isTypeNode(s))&&(void 0===c||e.isBlock(c))}}).deprecate({1:n}).finish(),i.createClassDeclaration=e.buildOverload("createClassDeclaration").overload({0:function(e,t,n,r,i){return C(e,t,n,r,i)},1:function(t,n,r,i,a,o){return C(e.concatenate(t,n),r,i,a,o)}}).bind({0:function(t){var n=t[1],r=t[2],i=t[3],a=t[4];return void 0===t[5]&&(void 0===n||!e.isArray(n))&&(void 0===r||e.isArray(r))&&(void 0===i||e.every(i,e.isHeritageClause))&&(void 0===a||e.every(a,e.isClassElement))},1:function(){return!0}}).deprecate({1:t}).finish(),i.updateClassDeclaration=e.buildOverload("updateClassDeclaration").overload({0:function(e,t,n,r,i,a){return D(e,t,n,r,i,a)},1:function(t,n,r,i,a,o,s){return D(t,e.concatenate(n,r),i,a,o,s)}}).bind({0:function(t){var n=t[2],r=t[3],i=t[4],a=t[5];return void 0===t[6]&&(void 0===n||!e.isArray(n))&&(void 0===r||e.isArray(r))&&(void 0===i||e.every(i,e.isHeritageClause))&&(void 0===a||e.every(a,e.isClassElement))},1:function(t){var n=t[2],r=t[3],i=t[4],a=t[5],o=t[6];return(void 0===n||e.isArray(n))&&(void 0===r||!e.isArray(r))&&(void 0===i||e.every(i,e.isTypeParameterDeclaration))&&(void 0===a||e.every(a,e.isHeritageClause))&&(void 0===o||e.isArray(o))}}).deprecate({1:t}).finish(),i.createInterfaceDeclaration=e.buildOverload("createInterfaceDeclaration").overload({0:function(e,t,n,r,i){return L(e,t,n,r,i)},1:function(e,t,n,r,i,a){return L(t,n,r,i,a)}}).bind({0:function(t){var n=t[0],r=t[1],i=t[2],a=t[3],o=t[4];return void 0===t[5]&&(void 0===n||e.every(n,e.isModifier))&&(void 0===r||!e.isArray(r))&&(void 0===i||e.isArray(i))&&(void 0===a||e.every(a,e.isHeritageClause))&&(void 0===o||e.every(o,e.isTypeElement))},1:function(t){var n=t[0],r=t[1],i=t[2],a=t[3],o=t[4],s=t[5];return(void 0===n||e.every(n,e.isDecorator))&&(void 0===r||e.isArray(r))&&(void 0===i||!e.isArray(i))&&(void 0===a||e.every(a,e.isTypeParameterDeclaration))&&(void 0===o||e.every(o,e.isHeritageClause))&&(void 0===s||e.every(s,e.isTypeElement))}}).deprecate({1:n}).finish(),i.updateInterfaceDeclaration=e.buildOverload("updateInterfaceDeclaration").overload({0:function(e,t,n,r,i,a){return A(e,t,n,r,i,a)},1:function(e,t,n,r,i,a,o){return A(e,n,r,i,a,o)}}).bind({0:function(t){var n=t[1],r=t[2],i=t[3],a=t[4],o=t[5];return void 0===t[6]&&(void 0===n||e.every(n,e.isModifier))&&(void 0===r||!e.isArray(r))&&(void 0===i||e.isArray(i))&&(void 0===a||e.every(a,e.isHeritageClause))&&(void 0===o||e.every(o,e.isTypeElement))},1:function(t){var n=t[1],r=t[2],i=t[3],a=t[4],o=t[5],s=t[6];return(void 0===n||e.every(n,e.isDecorator))&&(void 0===r||e.isArray(r))&&(void 0===i||!e.isArray(i))&&(void 0===a||e.every(a,e.isTypeParameterDeclaration))&&(void 0===o||e.every(o,e.isHeritageClause))&&(void 0===s||e.every(s,e.isTypeElement))}}).deprecate({1:n}).finish(),i.createTypeAliasDeclaration=e.buildOverload("createTypeAliasDeclaration").overload({0:function(e,t,n,r){return N(e,t,n,r)},1:function(e,t,n,r,i){return N(t,n,r,i)}}).bind({0:function(t){var n=t[0],r=t[1],i=t[2],a=t[3];return void 0===t[4]&&(void 0===n||e.every(n,e.isModifier))&&(void 0===r||!e.isArray(r))&&(void 0===i||e.isArray(i))&&(void 0===a||!e.isArray(a))},1:function(t){var n=t[0],r=t[1],i=t[2],a=t[3],o=t[4];return(void 0===n||e.every(n,e.isDecorator))&&(void 0===r||e.isArray(r))&&(void 0===i||!e.isArray(i))&&(void 0===a||e.isArray(a))&&(void 0===o||e.isTypeNode(o))}}).deprecate({1:n}).finish(),i.updateTypeAliasDeclaration=e.buildOverload("updateTypeAliasDeclaration").overload({0:function(e,t,n,r,i){return k(e,t,n,r,i)},1:function(e,t,n,r,i,a){return k(e,n,r,i,a)}}).bind({0:function(t){var n=t[1],r=t[2],i=t[3],a=t[4];return void 0===t[5]&&(void 0===n||e.every(n,e.isModifier))&&(void 0===r||!e.isArray(r))&&(void 0===i||e.isArray(i))&&(void 0===a||!e.isArray(a))},1:function(t){var n=t[1],r=t[2],i=t[3],a=t[4],o=t[5];return(void 0===n||e.every(n,e.isDecorator))&&(void 0===r||e.isArray(r))&&(void 0===i||!e.isArray(i))&&(void 0===a||e.isArray(a))&&(void 0===o||e.isTypeNode(o))}}).deprecate({1:n}).finish(),i.createEnumDeclaration=e.buildOverload("createEnumDeclaration").overload({0:function(e,t,n){return I(e,t,n)},1:function(e,t,n,r){return I(t,n,r)}}).bind({0:function(t){var n=t[0],r=t[1],i=t[2];return void 0===t[3]&&(void 0===n||e.every(n,e.isModifier))&&(void 0===r||!e.isArray(r))&&(void 0===i||e.isArray(i))},1:function(t){var n=t[0],r=t[1],i=t[2],a=t[3];return(void 0===n||e.every(n,e.isDecorator))&&(void 0===r||e.isArray(r))&&(void 0===i||!e.isArray(i))&&(void 0===a||e.isArray(a))}}).deprecate({1:n}).finish(),i.updateEnumDeclaration=e.buildOverload("updateEnumDeclaration").overload({0:function(e,t,n,r){return P(e,t,n,r)},1:function(e,t,n,r,i){return P(e,n,r,i)}}).bind({0:function(t){var n=t[1],r=t[2],i=t[3];return void 0===t[4]&&(void 0===n||e.every(n,e.isModifier))&&(void 0===r||!e.isArray(r))&&(void 0===i||e.isArray(i))},1:function(t){var n=t[1],r=t[2],i=t[3],a=t[4];return(void 0===n||e.every(n,e.isDecorator))&&(void 0===r||e.isArray(r))&&(void 0===i||!e.isArray(i))&&(void 0===a||e.isArray(a))}}).deprecate({1:n}).finish(),i.createModuleDeclaration=e.buildOverload("createModuleDeclaration").overload({0:function(e,t,n,r){return w(e,t,n,r)},1:function(e,t,n,r,i){return w(t,n,r,i)}}).bind({0:function(t){var n=t[0],r=t[1],i=t[2],a=t[3];return void 0===t[4]&&(void 0===n||e.every(n,e.isModifier))&&void 0!==r&&!e.isArray(r)&&(void 0===i||e.isModuleBody(i))&&(void 0===a||"number"==typeof a)},1:function(t){var n=t[0],r=t[1],i=t[2],a=t[3],o=t[4];return(void 0===n||e.every(n,e.isDecorator))&&(void 0===r||e.isArray(r))&&void 0!==i&&e.isModuleName(i)&&(void 0===a||"object"==typeof a)&&(void 0===o||"number"==typeof o)}}).deprecate({1:n}).finish(),i.updateModuleDeclaration=e.buildOverload("updateModuleDeclaration").overload({0:function(e,t,n,r){return O(e,t,n,r)},1:function(e,t,n,r,i){return O(e,n,r,i)}}).bind({0:function(t){var n=t[1],r=t[2],i=t[3];return void 0===t[4]&&(void 0===n||e.every(n,e.isModifier))&&(void 0===r||!e.isArray(r))&&(void 0===i||e.isModuleBody(i))},1:function(t){var n=t[1],r=t[2],i=t[3],a=t[4];return(void 0===n||e.every(n,e.isDecorator))&&(void 0===r||e.isArray(r))&&void 0!==i&&e.isModuleName(i)&&(void 0===a||e.isModuleBody(a))}}).deprecate({1:n}).finish(),i.createImportEqualsDeclaration=e.buildOverload("createImportEqualsDeclaration").overload({0:function(e,t,n,r){return R(e,t,n,r)},1:function(e,t,n,r,i){return R(t,n,r,i)}}).bind({0:function(t){var n=t[0],r=t[1],i=t[2],a=t[3];return void 0===t[4]&&(void 0===n||e.every(n,e.isModifier))&&(void 0===r||"boolean"==typeof r)&&"boolean"!=typeof i&&"string"!=typeof a},1:function(t){var n=t[0],r=t[1],i=t[2],a=t[3],o=t[4];return(void 0===n||e.every(n,e.isDecorator))&&(void 0===r||e.isArray(r))&&(void 0===i||"boolean"==typeof i)&&("string"==typeof a||e.isIdentifier(a))&&void 0!==o&&e.isModuleReference(o)}}).deprecate({1:n}).finish(),i.updateImportEqualsDeclaration=e.buildOverload("updateImportEqualsDeclaration").overload({0:function(e,t,n,r,i){return M(e,t,n,r,i)},1:function(e,t,n,r,i,a){return M(e,n,r,i,a)}}).bind({0:function(t){var n=t[1],r=t[2],i=t[3],a=t[4];return void 0===t[5]&&(void 0===n||e.every(n,e.isModifier))&&(void 0===r||"boolean"==typeof r)&&"boolean"!=typeof i&&"string"!=typeof a},1:function(t){var n=t[1],r=t[2],i=t[3],a=t[4],o=t[5];return(void 0===n||e.every(n,e.isDecorator))&&(void 0===r||e.isArray(r))&&(void 0===i||"boolean"==typeof i)&&("string"==typeof a||e.isIdentifier(a))&&void 0!==o&&e.isModuleReference(o)}}).deprecate({1:n}).finish(),i.createImportDeclaration=e.buildOverload("createImportDeclaration").overload({0:function(e,t,n,r){return F(e,t,n,r)},1:function(e,t,n,r,i){return F(t,n,r,i)}}).bind({0:function(t){var n=t[0],r=t[1],i=t[2],a=t[3];return void 0===t[4]&&(void 0===n||e.every(n,e.isModifier))&&(void 0===r||!e.isArray(r))&&void 0!==i&&e.isExpression(i)&&(void 0===a||e.isAssertClause(a))},1:function(t){var n=t[0],r=t[1],i=t[2],a=t[3],o=t[4];return(void 0===n||e.every(n,e.isDecorator))&&(void 0===r||e.isArray(r))&&(void 0===i||e.isImportClause(i))&&void 0!==a&&e.isExpression(a)&&(void 0===o||e.isAssertClause(o))}}).deprecate({1:n}).finish(),i.updateImportDeclaration=e.buildOverload("updateImportDeclaration").overload({0:function(e,t,n,r,i){return G(e,t,n,r,i)},1:function(e,t,n,r,i,a){return G(e,n,r,i,a)}}).bind({0:function(t){var n=t[1],r=t[2],i=t[3],a=t[4];return void 0===t[5]&&(void 0===n||e.every(n,e.isModifier))&&(void 0===r||!e.isArray(r))&&(void 0===i||e.isExpression(i))&&(void 0===a||e.isAssertClause(a))},1:function(t){var n=t[1],r=t[2],i=t[3],a=t[4],o=t[5];return(void 0===n||e.every(n,e.isDecorator))&&(void 0===r||e.isArray(r))&&(void 0===i||e.isImportClause(i))&&void 0!==a&&e.isExpression(a)&&(void 0===o||e.isAssertClause(o))}}).deprecate({1:n}).finish(),i.createExportAssignment=e.buildOverload("createExportAssignment").overload({0:function(e,t,n){return B(e,t,n)},1:function(e,t,n,r){return B(t,n,r)}}).bind({0:function(t){var n=t[0],r=t[1],i=t[2];return void 0===t[3]&&(void 0===n||e.every(n,e.isModifier))&&(void 0===r||"boolean"==typeof r)&&"object"==typeof i},1:function(t){var n=t[0],r=t[1],i=t[2],a=t[3];return(void 0===n||e.every(n,e.isDecorator))&&(void 0===r||e.isArray(r))&&(void 0===i||"boolean"==typeof i)&&void 0!==a&&e.isExpression(a)}}).deprecate({1:n}).finish(),i.updateExportAssignment=e.buildOverload("updateExportAssignment").overload({0:function(e,t,n){return U(e,t,n)},1:function(e,t,n,r){return U(e,n,r)}}).bind({0:function(t){var n=t[1],r=t[2];return void 0===t[3]&&(void 0===n||e.every(n,e.isModifier))&&void 0!==r&&!e.isArray(r)},1:function(t){var n=t[1],r=t[2],i=t[3];return(void 0===n||e.every(n,e.isDecorator))&&(void 0===r||e.isArray(r))&&void 0!==i&&e.isExpression(i)}}).deprecate({1:n}).finish(),i.createExportDeclaration=e.buildOverload("createExportDeclaration").overload({0:function(e,t,n,r,i){return V(e,t,n,r,i)},1:function(e,t,n,r,i,a){return V(t,n,r,i,a)}}).bind({0:function(t){var n=t[0],r=t[1],i=t[2],a=t[3],o=t[4];return void 0===t[5]&&(void 0===n||e.every(n,e.isModifier))&&"boolean"==typeof r&&"boolean"!=typeof i&&(void 0===a||e.isExpression(a))&&(void 0===o||e.isAssertClause(o))},1:function(t){var n=t[0],r=t[1],i=t[2],a=t[3],o=t[4],s=t[5];return(void 0===n||e.every(n,e.isDecorator))&&(void 0===r||e.isArray(r))&&"boolean"==typeof i&&(void 0===a||e.isNamedExportBindings(a))&&(void 0===o||e.isExpression(o))&&(void 0===s||e.isAssertClause(s))}}).deprecate({1:n}).finish(),i.updateExportDeclaration=e.buildOverload("updateExportDeclaration").overload({0:function(e,t,n,r,i,a){return K(e,t,n,r,i,a)},1:function(e,t,n,r,i,a,o){return K(e,n,r,i,a,o)}}).bind({0:function(t){var n=t[1],r=t[2],i=t[3],a=t[4],o=t[5];return void 0===t[6]&&(void 0===n||e.every(n,e.isModifier))&&"boolean"==typeof r&&"boolean"!=typeof i&&(void 0===a||e.isExpression(a))&&(void 0===o||e.isAssertClause(o))},1:function(t){var n=t[1],r=t[2],i=t[3],a=t[4],o=t[5],s=t[6];return(void 0===n||e.every(n,e.isDecorator))&&(void 0===r||e.isArray(r))&&"boolean"==typeof i&&(void 0===a||e.isNamedExportBindings(a))&&(void 0===o||e.isExpression(o))&&(void 0===s||e.isAssertClause(s))}}).deprecate({1:n}).finish()}var a=e.createNodeFactory;e.createNodeFactory=function(e,t){var n=a(e,t);return i(n),n},i(e.factory)}(c||(c={})),function(e){"undefined"!=typeof console&&(e.Debug.loggingHost={log:function(t,n){switch(t){case e.LogLevel.Error:return console.error(n);case e.LogLevel.Warning:return console.warn(n);case e.LogLevel.Info:case e.LogLevel.Verbose:return console.log(n)}}})}(c||(c={}))}(typescript$1)),typescript$1.exports}function requirePath(){return hasRequiredPath?path:(hasRequiredPath=1,path={sep:"/"})}function requireBalancedMatch(){if(hasRequiredBalancedMatch)return balancedMatch;function e(e,r,i){e instanceof RegExp&&(e=t(e,i)),r instanceof RegExp&&(r=t(r,i));var a=n(e,r,i);return a&&{start:a[0],end:a[1],pre:i.slice(0,a[0]),body:i.slice(a[0]+e.length,a[1]),post:i.slice(a[1]+r.length)}}function t(e,t){var n=t.match(e);return n?n[0]:null}function n(e,t,n){var r,i,a,o,s,c=n.indexOf(e),l=n.indexOf(t,c+1),u=c;if(c>=0&&l>0){if(e===t)return[c,l];for(r=[],a=n.length;u>=0&&!s;)u==c?(r.push(u),c=n.indexOf(e,u+1)):1==r.length?s=[r.pop(),l]:((i=r.pop())=0?c:l;r.length&&(s=[a,o])}return s}return hasRequiredBalancedMatch=1,balancedMatch=e,e.range=n,balancedMatch}function requireBraceExpansion(){if(hasRequiredBraceExpansion)return braceExpansion;hasRequiredBraceExpansion=1;var e=requireBalancedMatch();braceExpansion=function(e){return e?("{}"===e.substr(0,2)&&(e="\\{\\}"+e.substr(2)),m(function(e){return e.split("\\\\").join(t).split("\\{").join(n).split("\\}").join(r).split("\\,").join(i).split("\\.").join(a)}(e),!0).map(s)):[]};var t="\0SLASH"+Math.random()+"\0",n="\0OPEN"+Math.random()+"\0",r="\0CLOSE"+Math.random()+"\0",i="\0COMMA"+Math.random()+"\0",a="\0PERIOD"+Math.random()+"\0";function o(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function s(e){return e.split(t).join("\\").split(n).join("{").split(r).join("}").split(i).join(",").split(a).join(".")}function c(t){if(!t)return[""];var n=[],r=e("{","}",t);if(!r)return t.split(",");var i=r.pre,a=r.body,o=r.post,s=i.split(",");s[s.length-1]+="{"+a+"}";var l=c(o);return o.length&&(s[s.length-1]+=l.shift(),s.push.apply(s,l)),n.push.apply(n,s),n}function l(e){return"{"+e+"}"}function u(e){return/^-?0\d/.test(e)}function d(e,t){return e<=t}function p(e,t){return e>=t}function m(t,n){var i=[],a=e("{","}",t);if(!a)return[t];var s=a.pre,f=a.post.length?m(a.post,!1):[""];if(/\$$/.test(a.pre))for(var _=0;_=0;if(!E&&!x)return a.post.match(/,.*\}/)?m(t=a.pre+"{"+a.body+r+a.post):[t];if(E)g=a.body.split(/\.\./);else if(1===(g=c(a.body)).length&&1===(g=m(g[0],!1).map(l)).length)return f.map(function(e){return a.pre+g[0]+e});if(E){var S=o(g[0]),T=o(g[1]),C=Math.max(g[0].length,g[1].length),D=3==g.length?Math.abs(o(g[2])):1,L=d;T0){var P=new Array(I+1).join("0");k=N<0?"-"+P+k.slice(1):P+k}}y.push(k)}}else{y=[];for(var w=0;w(m(t),!(!n.nocomment&&"#"===t.charAt(0))&&new g(t,n).match(e));minimatch_1=e;const t=requirePath();e.sep=t.sep;const n=Symbol("globstar **");e.GLOBSTAR=n;const r=requireBraceExpansion(),i={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},a="[^/]",o=a+"*?",s=e=>e.split("").reduce((e,t)=>(e[t]=!0,e),{}),c=s("().*{}+?[]^$\\!"),l=s("[.("),u=/\/+/;e.filter=(t,n={})=>(r,i,a)=>e(r,t,n);const d=(e,t={})=>{const n={};return Object.keys(e).forEach(t=>n[t]=e[t]),Object.keys(t).forEach(e=>n[e]=t[e]),n};e.defaults=t=>{if(!t||"object"!=typeof t||!Object.keys(t).length)return e;const n=e,r=(e,r,i)=>n(e,r,d(t,i));return(r.Minimatch=class extends n.Minimatch{constructor(e,n){super(e,d(t,n))}}).defaults=e=>n.defaults(d(t,e)).Minimatch,r.filter=(e,r)=>n.filter(e,d(t,r)),r.defaults=e=>n.defaults(d(t,e)),r.makeRe=(e,r)=>n.makeRe(e,d(t,r)),r.braceExpand=(e,r)=>n.braceExpand(e,d(t,r)),r.match=(e,r,i)=>n.match(e,r,d(t,i)),r},e.braceExpand=(e,t)=>p(e,t);const p=(e,t={})=>(m(e),t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:r(e)),m=e=>{if("string"!=typeof e)throw new TypeError("invalid pattern");if(e.length>65536)throw new TypeError("pattern is too long")},f=Symbol("subparse");e.makeRe=(e,t)=>new g(e,t||{}).makeRe(),e.match=(e,t,n={})=>{const r=new g(t,n);return e=e.filter(e=>r.match(e)),r.options.nonull&&!e.length&&e.push(t),e};const _=e=>e.replace(/\\([^-\]])/g,"$1"),h=e=>e.replace(/[[\]\\]/g,"\\$&");class g{constructor(e,t){m(e),t||(t={}),this.options=t,this.set=[],this.pattern=e,this.windowsPathsNoEscape=!!t.windowsPathsNoEscape||!1===t.allowWindowsEscape,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.partial=!!t.partial,this.make()}debug(){}make(){const e=this.pattern,t=this.options;if(!t.nocomment&&"#"===e.charAt(0))return void(this.comment=!0);if(!e)return void(this.empty=!0);this.parseNegate();let n=this.globSet=this.braceExpand();t.debug&&(this.debug=(...e)=>console.error(...e)),this.debug(this.pattern,n),n=this.globParts=n.map(e=>e.split(u)),this.debug(this.pattern,n),n=n.map((e,t,n)=>e.map(this.parse,this)),this.debug(this.pattern,n),n=n.filter(e=>-1===e.indexOf(!1)),this.debug(this.pattern,n),this.set=n}parseNegate(){if(this.options.nonegate)return;const e=this.pattern;let t=!1,n=0;for(let r=0;r>> no match, partial?",e,p,t,m),p!==s))}if("string"==typeof u?(l=d===u,this.debug("string match",u,d,l)):(l=d.match(u),this.debug("pattern match",u,d,l)),!l)return!1}if(a===s&&o===c)return!0;if(a===s)return r;if(o===c)return a===s-1&&""===e[a];throw new Error("wtf?")}braceExpand(){return p(this.pattern,this.options)}parse(e,t){m(e);const r=this.options;if("**"===e){if(!r.noglobstar)return n;e="*"}if(""===e)return"";let s="",u=!1,d=!1;const p=[],g=[];let y,v,b,E,x=!1,S=-1,T=-1,C="."===e.charAt(0),D=r.dot||C;const L=e=>"."===e.charAt(0)?"":r.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",A=()=>{if(y){switch(y){case"*":s+=o,u=!0;break;case"?":s+=a,u=!0;break;default:s+="\\"+y}this.debug("clearStateChar %j %j",y,s),y=!1}};for(let t,n=0;n(n||(n="\\"),t+t+n+"|")),this.debug("tail=%j\n %s",e,e,b,s);const t="*"===b.type?o:"?"===b.type?a:"\\"+b.type;u=!0,s=s.slice(0,b.reStart)+t+"\\("+e}A(),d&&(s+="\\\\");const N=l[s.charAt(0)];for(let e=g.length-1;e>-1;e--){const n=g[e],r=s.slice(0,n.reStart),i=s.slice(n.reStart,n.reEnd-8);let a=s.slice(n.reEnd);const o=s.slice(n.reEnd-8,n.reEnd)+a,c=r.split(")").length,l=r.split("(").length-c;let u=a;for(let e=0;ee.replace(/\\(.)/g,"$1"))(e);const k=r.nocase?"i":"";try{return Object.assign(new RegExp("^"+s+"$",k),{_glob:e,_src:s})}catch(e){return new RegExp("$.")}}makeRe(){if(this.regexp||!1===this.regexp)return this.regexp;const e=this.set;if(!e.length)return this.regexp=!1,this.regexp;const t=this.options,r=t.noglobstar?o:t.dot?"(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?":"(?:(?!(?:\\/|^)\\.).)*?",i=t.nocase?"i":"";let a=e.map(e=>(e=e.map(e=>"string"==typeof e?(e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"))(e):e===n?n:e._src).reduce((e,t)=>(e[e.length-1]===n&&t===n||e.push(t),e),[]),e.forEach((t,i)=>{t===n&&e[i-1]!==n&&(0===i?e.length>1?e[i+1]="(?:\\/|"+r+"\\/)?"+e[i+1]:e[i]=r:i===e.length-1?e[i-1]+="(?:\\/|"+r+")?":(e[i-1]+="(?:\\/|\\/"+r+"\\/)"+e[i+1],e[i+1]=n))}),e.filter(e=>e!==n).join("/"))).join("|");a="^(?:"+a+")$",this.negate&&(a="^(?!"+a+").*$");try{this.regexp=new RegExp(a,i)}catch(e){this.regexp=!1}return this.regexp}match(e,n=this.partial){if(this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return""===e;if("/"===e&&n)return!0;const r=this.options;"/"!==t.sep&&(e=e.split(t.sep).join("/")),e=e.split(u),this.debug(this.pattern,"split",e);const i=this.set;let a;this.debug(this.pattern,"set",i);for(let t=e.length-1;t>=0&&(a=e[t],!a);t--);for(let t=0;te.indexOf(t)===n)}static removeFirst(e,t){const n=e.indexOf(t);return-1!==n&&(e.splice(n,1),!0)}static removeAll(e,t){const n=[];for(let r=e.length-1;r>=0;r--)t(e[r])&&(n.push(e[r]),e.splice(r,1));return n}static flatten(e){return e.reduce((e,t)=>e.concat(t),[])}static from(e){const t=[];for(const n of e)t.push(n);return t}static*toIterator(e){for(const t of e)yield t}static sortByProperty(e,t){return e.sort((e,n)=>t(e)<=t(n)?-1:1),e}static groupBy(e,t){const n=[],r={};for(const i of e){const e=t(i).toString();null==r[e]&&(r[e]=[],n.push(r[e])),r[e].push(i)}return n}static binaryInsertWithOverwrite(e,t,n){let r=e.length-1,i=0;for(;i<=r;){const a=Math.floor((r+i)/2);n.compareTo(t,e[a])<0?r=a-1:i=a+1}null!=e[r]&&0===n.compareTo(t,e[r])?e[r]=t:e.splice(r+1,0,t)}static binarySearch(e,t){let n=e.length-1,r=0;for(;r<=n;){const i=Math.floor((n+r)/2),a=t.compareTo(e[i]);if(0===a)return i;a<0?n=i-1:r=i+1}return-1}static containsSubArray(e,t){let n=0;for(const r of e)if(t[n]===r){if(n++,n===t.length)return!0}else n=0;return!1}}function S(e){return t(e);function t(e){const t=Object.create(e.constructor.prototype);for(const r of Object.keys(e))t[r]=n(e[r]);return t}function n(e){return e instanceof Array?e.map(n):"object"==typeof e?null===e?e:t(e):e}}class T{constructor(){this.subscriptions=[]}subscribe(e){-1===this.getIndex(e)&&this.subscriptions.push(e)}unsubscribe(e){const t=this.getIndex(e);t>=0&&this.subscriptions.splice(t,1)}fire(e){for(const t of this.subscriptions)t(e)}getIndex(e){return this.subscriptions.indexOf(e)}}function C(e,t){return null!=t?t:e}class D{constructor(){}static clone(e){if(null!=e)return e instanceof Array?function(e){return e.map(e=>D.clone(e))}(e):Object.assign({},e)}}function L(e,t,n,r,i,a,o,s,c,l){return u.matchFiles.apply(this,arguments)}function A(e,t,n,r,i){return u.getFileMatcherPatterns.apply(this,arguments)}function N(e){return function(){if(null!=k)return k;k={};for(const e of Object.keys(u.SyntaxKind).filter(e=>isNaN(parseInt(e,10)))){const t=u.SyntaxKind[e];null==k[t]&&(k[t]=e)}return k}()[e]}let k;e.errors=void 0,function(e){class t extends Error{constructor(e,t){const n=t&&function(e){const t=function(e){if(!function(e){return"object"==typeof e&&null!==e&&"getSourceFile"in e&&"getStart"in e}(e))return;const t=e.getSourceFile(),n=t.getFullText(),r=e.getStart(),i=n.lastIndexOf("\n",r)+1,a=n.indexOf("\n",r),o=-1===a?n.length:a,s=r-i>40?r-37:i,c=o-s>80?s+77:o;let l="";return s!==i&&(l+="..."),l+=n.substring(s,c),c!==o&&(l+="..."),{filePath:t.getFilePath(),loc:{line:M.getLineNumberAtPos(n,r),character:r-i+1},lineText:l}}(e);return t?`${t.filePath}:${t.loc.line}:${t.loc.character}\n> ${t.loc.line} | ${t.lineText}`:void 0}(t),r=n?`${e}\n\n${n}`:e;super(r),this.message=r}}e.BaseError=t;class n extends t{constructor(e,t,n){super(`Argument Error (${e}): ${t}`,n)}}e.ArgumentError=n;class r extends n{constructor(e,t){super(e,"Cannot be null or whitespace.",t)}}e.ArgumentNullOrWhitespaceError=r;class i extends n{constructor(e,t,n,r){super(e,`Range is ${n[0]} to ${n[1]}, but ${t} was provided.`,r)}}e.ArgumentOutOfRangeError=i;class a extends n{constructor(e,t,n,r){super(e,`Expected type '${t}', but was '${n}'.`,r)}}e.ArgumentTypeError=a;class o extends t{constructor(e,t="Path"){super(`${t} not found: ${e}`),this.path=e,this.code="ENOENT"}}e.PathNotFoundError=o,e.DirectoryNotFoundError=class extends o{constructor(e){super(e,"Directory")}},e.FileNotFoundError=class extends o{constructor(e){super(e,"File")}};class s extends t{constructor(e,t){super(e,t)}}e.InvalidOperationError=s;class c extends t{constructor(e="Not implemented.",t){super(e,t)}}function l(e,t){if("string"!=typeof e)throw new a(t,"string",typeof e)}function u(e,t,n){if(et[1])throw new i(n,e,t)}function d(e,t){throw new c(`Not implemented feature for syntax kind '${N(e)}'.`,t)}e.NotImplementedError=c,e.NotSupportedError=class extends t{constructor(e){super(e)}},e.throwIfNotType=function(e,t,n){if(typeof e!==t)throw new a(n,t,typeof e)},e.throwIfNotString=l,e.throwIfWhitespaceOrNotString=function(e,t){if(l(e,t),0===e.trim().length)throw new r(t)},e.throwIfOutOfRange=u,e.throwIfRangeOutOfRange=function(e,t,r){if(e[0]>e[1])throw new n(r,`The start of a range must not be greater than the end: [${e[0]}, ${e[1]}]`);u(e[0],t,r),u(e[1],t,r)},e.throwNotImplementedForSyntaxKindError=d,e.throwIfNegative=function(e,t){if(e<0)throw new n(t,"Expected a non-negative value.")},e.throwIfNullOrUndefined=function(e,t,n){if(null==e)throw new s("string"==typeof t?t:t(),n);return e},e.throwNotImplementedForNeverValueError=function(e,t){const n=e;if(null!=n&&"number"==typeof n.kind)return d(n.kind,t);throw new c(`Not implemented value: ${JSON.stringify(e)}`,t)},e.throwIfNotEqual=function(e,t,n){if(e!==t)throw new s(`Expected ${e} to equal ${t}. ${n}`)},e.throwIfTrue=function(e,t){if(!0===e)throw new s(t)}}(e.errors||(e.errors={}));const I="\n".charCodeAt(0),P="\r".charCodeAt(0),w=" ".charCodeAt(0),O="\t".charCodeAt(0),R=new Set([" ","\f","\n","\r","\t","\v"," ","\u2028","\u2029"].map(e=>e.charCodeAt(0)));class M{constructor(){}static isWhitespaceCharCode(e){return R.has(e)}static isSpaces(e){if(null==e||0===e.length)return!1;for(let t=0;t0&&M.isWhitespaceCharCode(e.charCodeAt(n-1));)n--;return e.substring(0,n)+t+e.substring(n)}static getLineNumberAtPos(t,n){e.errors.throwIfOutOfRange(n,[0,t.length],"pos");let r=0;for(let e=0;e0;){const e=t.charCodeAt(n-1);if(e===I||e===P)break;n--}return n}static getLineEndFromPos(t,n){for(e.errors.throwIfOutOfRange(n,[0,t.length],"pos");n=t);u++)e.charCodeAt(u)===w?d++:e.charCodeAt(u)===O&&(d+=r);s=null==i[o+1]?e.length:i[o+1],n+=e.substring(u,s)}return n+=e.substring(s),n}()}static indent(e,t,n){if(0===t)return e;const{indentText:r,indentSizeInSpaces:i,isInStringAtPos:a}=n,o=t>0?r.repeat(t):void 0,s=Math.abs(t*i);let c="",l=0,u=0;for(let t=0;t0)c+=o+e.substring(l,u);else{let t=l,n=0;for(t=l;t=s);t++)if(e.charCodeAt(t)===w)n++;else{if(e.charCodeAt(t)!==O)break;n+=i}c+=e.substring(t,u)}}}}class F{constructor(e,t){this.getKey=e,this.comparer=t,this.array=[]}set(e){x.binaryInsertWithOverwrite(this.array,e,new b(this.getKey,this.comparer))}removeByValue(e){this.removeByKey(this.getKey(e))}removeByKey(e){const t=new y(this.comparer,e),n=x.binarySearch(this.array,new E(this.getKey,t));n>=0&&this.array.splice(n,1)}getArrayCopy(){return[...this.array]}hasItems(){return this.array.length>0}*entries(){yield*this.array}}function G(e,n,r,i,a,o){return u.createLanguageServiceSourceFile(e,n,null!=r?r:t.ScriptTarget.Latest,i,a,o)}class B{constructor(e,t){this.documentCache=t,this.absoluteToOriginalPath=new Map;for(const n of t._getFilePaths())this.absoluteToOriginalPath.set(e.getStandardizedAbsolutePath(n),n)}getDocumentIfMatch(e,t,n,r){const i=this.absoluteToOriginalPath.get(e);if(null!=i)return this.documentCache._getDocumentIfMatch(i,e,t,n,r)}}class U{constructor(){this._fileTexts=new Map,this._documents=new Map}_addFiles(e){for(const t of e)this._fileTexts.set(t.fileName,t.text)}_getFilePaths(){return this._fileTexts.keys()}_getCacheForFileSystem(e){return new B(e,this)}_getDocumentIfMatch(e,t,n,r,i){const a=this._fileTexts.get(e);if(null!=a&&a===n.getText(0,n.getLength()))return this._getDocument(e,t,n,r,i)}_getDocument(e,t,n,r,i){const a=this._getKey(e,r,i);let o=this._documents.get(a);return null==o&&(o=G(t,n,r,"-1",!1,i),this._documents.set(a,o)),o=S(o),o.fileName=t,o}_getKey(e,t,n){var r,i;return e+(null!==(r=null==t?void 0:t.toString())&&void 0!==r?r:"-1")+(null!==(i=null==n?void 0:n.toString())&&void 0!==i?i:"-1")}}const V=[{fileName:"lib.d.ts",text:'/// \n/// \n/// \n/// \n/// \n'},{fileName:"lib.dom.d.ts",text:'/// \ninterface AddEventListenerOptions extends EventListenerOptions{once?:boolean;passive?:boolean;signal?:AbortSignal;}interface AesCbcParams extends Algorithm{iv:BufferSource;}interface AesCtrParams extends Algorithm{counter:BufferSource;length:number;}interface AesDerivedKeyParams extends Algorithm{length:number;}interface AesGcmParams extends Algorithm{additionalData?:BufferSource;iv:BufferSource;tagLength?:number;}interface AesKeyAlgorithm extends KeyAlgorithm{length:number;}interface AesKeyGenParams extends Algorithm{length:number;}interface Algorithm{name:string;}interface AnalyserOptions extends AudioNodeOptions{fftSize?:number;maxDecibels?:number;minDecibels?:number;smoothingTimeConstant?:number;}interface AnimationEventInit extends EventInit{animationName?:string;elapsedTime?:number;pseudoElement?:string;}interface AnimationPlaybackEventInit extends EventInit{currentTime?:CSSNumberish|null;timelineTime?:CSSNumberish|null;}interface AssignedNodesOptions{flatten?:boolean;}interface AudioBufferOptions{length:number;numberOfChannels?:number;sampleRate:number;}interface AudioBufferSourceOptions{buffer?:AudioBuffer|null;detune?:number;loop?:boolean;loopEnd?:number;loopStart?:number;playbackRate?:number;}interface AudioConfiguration{bitrate?:number;channels?:string;contentType:string;samplerate?:number;spatialRendering?:boolean;}interface AudioContextOptions{latencyHint?:AudioContextLatencyCategory|number;sampleRate?:number;}interface AudioNodeOptions{channelCount?:number;channelCountMode?:ChannelCountMode;channelInterpretation?:ChannelInterpretation;}interface AudioProcessingEventInit extends EventInit{inputBuffer:AudioBuffer;outputBuffer:AudioBuffer;playbackTime:number;}interface AudioTimestamp{contextTime?:number;performanceTime?:DOMHighResTimeStamp;}interface AudioWorkletNodeOptions extends AudioNodeOptions{numberOfInputs?:number;numberOfOutputs?:number;outputChannelCount?:number[];parameterData?:Record;processorOptions?:any;}interface AuthenticationExtensionsClientInputs{appid?:string;credProps?:boolean;hmacCreateSecret?:boolean;}interface AuthenticationExtensionsClientOutputs{appid?:boolean;credProps?:CredentialPropertiesOutput;hmacCreateSecret?:boolean;}interface AuthenticatorSelectionCriteria{authenticatorAttachment?:AuthenticatorAttachment;requireResidentKey?:boolean;residentKey?:ResidentKeyRequirement;userVerification?:UserVerificationRequirement;}interface BiquadFilterOptions extends AudioNodeOptions{Q?:number;detune?:number;frequency?:number;gain?:number;type?:BiquadFilterType;}interface BlobEventInit{data:Blob;timecode?:DOMHighResTimeStamp;}interface BlobPropertyBag{endings?:EndingType;type?:string;}interface CSSStyleSheetInit{baseURL?:string;disabled?:boolean;media?:MediaList|string;}interface CacheQueryOptions{ignoreMethod?:boolean;ignoreSearch?:boolean;ignoreVary?:boolean;}interface CanvasRenderingContext2DSettings{alpha?:boolean;colorSpace?:PredefinedColorSpace;desynchronized?:boolean;willReadFrequently?:boolean;}interface ChannelMergerOptions extends AudioNodeOptions{numberOfInputs?:number;}interface ChannelSplitterOptions extends AudioNodeOptions{numberOfOutputs?:number;}interface ClientQueryOptions{includeUncontrolled?:boolean;type?:ClientTypes;}interface ClipboardEventInit extends EventInit{clipboardData?:DataTransfer|null;}interface ClipboardItemOptions{presentationStyle?:PresentationStyle;}interface CloseEventInit extends EventInit{code?:number;reason?:string;wasClean?:boolean;}interface CompositionEventInit extends UIEventInit{data?:string;}interface ComputedEffectTiming extends EffectTiming{activeDuration?:CSSNumberish;currentIteration?:number|null;endTime?:CSSNumberish;localTime?:CSSNumberish|null;progress?:number|null;startTime?:CSSNumberish;}interface ComputedKeyframe{composite:CompositeOperationOrAuto;computedOffset:number;easing:string;offset:number|null;[property:string]:string|number|null|undefined;}interface ConstantSourceOptions{offset?:number;}interface ConstrainBooleanParameters{exact?:boolean;ideal?:boolean;}interface ConstrainDOMStringParameters{exact?:string|string[];ideal?:string|string[];}interface ConstrainDoubleRange extends DoubleRange{exact?:number;ideal?:number;}interface ConstrainULongRange extends ULongRange{exact?:number;ideal?:number;}interface ConvolverOptions extends AudioNodeOptions{buffer?:AudioBuffer|null;disableNormalization?:boolean;}interface CredentialCreationOptions{publicKey?:PublicKeyCredentialCreationOptions;signal?:AbortSignal;}interface CredentialPropertiesOutput{rk?:boolean;}interface CredentialRequestOptions{mediation?:CredentialMediationRequirement;publicKey?:PublicKeyCredentialRequestOptions;signal?:AbortSignal;}interface CryptoKeyPair{privateKey:CryptoKey;publicKey:CryptoKey;}interface CustomEventInitextends EventInit{detail?:T;}interface DOMMatrix2DInit{a?:number;b?:number;c?:number;d?:number;e?:number;f?:number;m11?:number;m12?:number;m21?:number;m22?:number;m41?:number;m42?:number;}interface DOMMatrixInit extends DOMMatrix2DInit{is2D?:boolean;m13?:number;m14?:number;m23?:number;m24?:number;m31?:number;m32?:number;m33?:number;m34?:number;m43?:number;m44?:number;}interface DOMPointInit{w?:number;x?:number;y?:number;z?:number;}interface DOMQuadInit{p1?:DOMPointInit;p2?:DOMPointInit;p3?:DOMPointInit;p4?:DOMPointInit;}interface DOMRectInit{height?:number;width?:number;x?:number;y?:number;}interface DelayOptions extends AudioNodeOptions{delayTime?:number;maxDelayTime?:number;}interface DeviceMotionEventAccelerationInit{x?:number|null;y?:number|null;z?:number|null;}interface DeviceMotionEventInit extends EventInit{acceleration?:DeviceMotionEventAccelerationInit;accelerationIncludingGravity?:DeviceMotionEventAccelerationInit;interval?:number;rotationRate?:DeviceMotionEventRotationRateInit;}interface DeviceMotionEventRotationRateInit{alpha?:number|null;beta?:number|null;gamma?:number|null;}interface DeviceOrientationEventInit extends EventInit{absolute?:boolean;alpha?:number|null;beta?:number|null;gamma?:number|null;}interface DisplayMediaStreamOptions{audio?:boolean|MediaTrackConstraints;video?:boolean|MediaTrackConstraints;}interface DocumentTimelineOptions{originTime?:DOMHighResTimeStamp;}interface DoubleRange{max?:number;min?:number;}interface DragEventInit extends MouseEventInit{dataTransfer?:DataTransfer|null;}interface DynamicsCompressorOptions extends AudioNodeOptions{attack?:number;knee?:number;ratio?:number;release?:number;threshold?:number;}interface EcKeyAlgorithm extends KeyAlgorithm{namedCurve:NamedCurve;}interface EcKeyGenParams extends Algorithm{namedCurve:NamedCurve;}interface EcKeyImportParams extends Algorithm{namedCurve:NamedCurve;}interface EcdhKeyDeriveParams extends Algorithm{public:CryptoKey;}interface EcdsaParams extends Algorithm{hash:HashAlgorithmIdentifier;}interface EffectTiming{delay?:number;direction?:PlaybackDirection;duration?:number|string;easing?:string;endDelay?:number;fill?:FillMode;iterationStart?:number;iterations?:number;playbackRate?:number;}interface ElementCreationOptions{is?:string;}interface ElementDefinitionOptions{extends?:string;}interface ErrorEventInit extends EventInit{colno?:number;error?:any;filename?:string;lineno?:number;message?:string;}interface EventInit{bubbles?:boolean;cancelable?:boolean;composed?:boolean;}interface EventListenerOptions{capture?:boolean;}interface EventModifierInit extends UIEventInit{altKey?:boolean;ctrlKey?:boolean;metaKey?:boolean;modifierAltGraph?:boolean;modifierCapsLock?:boolean;modifierFn?:boolean;modifierFnLock?:boolean;modifierHyper?:boolean;modifierNumLock?:boolean;modifierScrollLock?:boolean;modifierSuper?:boolean;modifierSymbol?:boolean;modifierSymbolLock?:boolean;shiftKey?:boolean;}interface EventSourceInit{withCredentials?:boolean;}interface FilePropertyBag extends BlobPropertyBag{lastModified?:number;}interface FileSystemFlags{create?:boolean;exclusive?:boolean;}interface FileSystemGetDirectoryOptions{create?:boolean;}interface FileSystemGetFileOptions{create?:boolean;}interface FileSystemRemoveOptions{recursive?:boolean;}interface FocusEventInit extends UIEventInit{relatedTarget?:EventTarget|null;}interface FocusOptions{preventScroll?:boolean;}interface FontFaceDescriptors{display?:string;featureSettings?:string;stretch?:string;style?:string;unicodeRange?:string;variant?:string;weight?:string;}interface FontFaceSetLoadEventInit extends EventInit{fontfaces?:FontFace[];}interface FormDataEventInit extends EventInit{formData:FormData;}interface FullscreenOptions{navigationUI?:FullscreenNavigationUI;}interface GainOptions extends AudioNodeOptions{gain?:number;}interface GamepadEventInit extends EventInit{gamepad:Gamepad;}interface GetAnimationsOptions{subtree?:boolean;}interface GetNotificationOptions{tag?:string;}interface GetRootNodeOptions{composed?:boolean;}interface HashChangeEventInit extends EventInit{newURL?:string;oldURL?:string;}interface HkdfParams extends Algorithm{hash:HashAlgorithmIdentifier;info:BufferSource;salt:BufferSource;}interface HmacImportParams extends Algorithm{hash:HashAlgorithmIdentifier;length?:number;}interface HmacKeyAlgorithm extends KeyAlgorithm{hash:KeyAlgorithm;length:number;}interface HmacKeyGenParams extends Algorithm{hash:HashAlgorithmIdentifier;length?:number;}interface IDBDatabaseInfo{name?:string;version?:number;}interface IDBIndexParameters{multiEntry?:boolean;unique?:boolean;}interface IDBObjectStoreParameters{autoIncrement?:boolean;keyPath?:string|string[]|null;}interface IDBTransactionOptions{durability?:IDBTransactionDurability;}interface IDBVersionChangeEventInit extends EventInit{newVersion?:number|null;oldVersion?:number;}interface IIRFilterOptions extends AudioNodeOptions{feedback:number[];feedforward:number[];}interface IdleRequestOptions{timeout?:number;}interface ImageBitmapOptions{colorSpaceConversion?:ColorSpaceConversion;imageOrientation?:ImageOrientation;premultiplyAlpha?:PremultiplyAlpha;resizeHeight?:number;resizeQuality?:ResizeQuality;resizeWidth?:number;}interface ImageBitmapRenderingContextSettings{alpha?:boolean;}interface ImageDataSettings{colorSpace?:PredefinedColorSpace;}interface ImportMeta{url:string;}interface InputEventInit extends UIEventInit{data?:string|null;dataTransfer?:DataTransfer|null;inputType?:string;isComposing?:boolean;targetRanges?:StaticRange[];}interface IntersectionObserverEntryInit{boundingClientRect:DOMRectInit;intersectionRatio:number;intersectionRect:DOMRectInit;isIntersecting:boolean;rootBounds:DOMRectInit|null;target:Element;time:DOMHighResTimeStamp;}interface IntersectionObserverInit{root?:Element|Document|null;rootMargin?:string;threshold?:number|number[];}interface JsonWebKey{alg?:string;crv?:string;d?:string;dp?:string;dq?:string;e?:string;ext?:boolean;k?:string;key_ops?:string[];kty?:string;n?:string;oth?:RsaOtherPrimesInfo[];p?:string;q?:string;qi?:string;use?:string;x?:string;y?:string;}interface KeyAlgorithm{name:string;}interface KeyboardEventInit extends EventModifierInit{charCode?:number;code?:string;isComposing?:boolean;key?:string;keyCode?:number;location?:number;repeat?:boolean;}interface Keyframe{composite?:CompositeOperationOrAuto;easing?:string;offset?:number|null;[property:string]:string|number|null|undefined;}interface KeyframeAnimationOptions extends KeyframeEffectOptions{id?:string;}interface KeyframeEffectOptions extends EffectTiming{composite?:CompositeOperation;iterationComposite?:IterationCompositeOperation;pseudoElement?:string|null;}interface LockInfo{clientId?:string;mode?:LockMode;name?:string;}interface LockManagerSnapshot{held?:LockInfo[];pending?:LockInfo[];}interface LockOptions{ifAvailable?:boolean;mode?:LockMode;signal?:AbortSignal;steal?:boolean;}interface MediaCapabilitiesDecodingInfo extends MediaCapabilitiesInfo{configuration?:MediaDecodingConfiguration;}interface MediaCapabilitiesEncodingInfo extends MediaCapabilitiesInfo{configuration?:MediaEncodingConfiguration;}interface MediaCapabilitiesInfo{powerEfficient:boolean;smooth:boolean;supported:boolean;}interface MediaConfiguration{audio?:AudioConfiguration;video?:VideoConfiguration;}interface MediaDecodingConfiguration extends MediaConfiguration{type:MediaDecodingType;}interface MediaElementAudioSourceOptions{mediaElement:HTMLMediaElement;}interface MediaEncodingConfiguration extends MediaConfiguration{type:MediaEncodingType;}interface MediaEncryptedEventInit extends EventInit{initData?:ArrayBuffer|null;initDataType?:string;}interface MediaImage{sizes?:string;src:string;type?:string;}interface MediaKeyMessageEventInit extends EventInit{message:ArrayBuffer;messageType:MediaKeyMessageType;}interface MediaKeySystemConfiguration{audioCapabilities?:MediaKeySystemMediaCapability[];distinctiveIdentifier?:MediaKeysRequirement;initDataTypes?:string[];label?:string;persistentState?:MediaKeysRequirement;sessionTypes?:string[];videoCapabilities?:MediaKeySystemMediaCapability[];}interface MediaKeySystemMediaCapability{contentType?:string;encryptionScheme?:string|null;robustness?:string;}interface MediaMetadataInit{album?:string;artist?:string;artwork?:MediaImage[];title?:string;}interface MediaPositionState{duration?:number;playbackRate?:number;position?:number;}interface MediaQueryListEventInit extends EventInit{matches?:boolean;media?:string;}interface MediaRecorderOptions{audioBitsPerSecond?:number;bitsPerSecond?:number;mimeType?:string;videoBitsPerSecond?:number;}interface MediaSessionActionDetails{action:MediaSessionAction;fastSeek?:boolean;seekOffset?:number;seekTime?:number;}interface MediaStreamAudioSourceOptions{mediaStream:MediaStream;}interface MediaStreamConstraints{audio?:boolean|MediaTrackConstraints;peerIdentity?:string;preferCurrentTab?:boolean;video?:boolean|MediaTrackConstraints;}interface MediaStreamTrackEventInit extends EventInit{track:MediaStreamTrack;}interface MediaTrackCapabilities{aspectRatio?:DoubleRange;autoGainControl?:boolean[];channelCount?:ULongRange;cursor?:string[];deviceId?:string;displaySurface?:string;echoCancellation?:boolean[];facingMode?:string[];frameRate?:DoubleRange;groupId?:string;height?:ULongRange;latency?:DoubleRange;logicalSurface?:boolean;noiseSuppression?:boolean[];resizeMode?:string[];sampleRate?:ULongRange;sampleSize?:ULongRange;width?:ULongRange;}interface MediaTrackConstraintSet{aspectRatio?:ConstrainDouble;autoGainControl?:ConstrainBoolean;channelCount?:ConstrainULong;deviceId?:ConstrainDOMString;echoCancellation?:ConstrainBoolean;facingMode?:ConstrainDOMString;frameRate?:ConstrainDouble;groupId?:ConstrainDOMString;height?:ConstrainULong;latency?:ConstrainDouble;noiseSuppression?:ConstrainBoolean;sampleRate?:ConstrainULong;sampleSize?:ConstrainULong;suppressLocalAudioPlayback?:ConstrainBoolean;width?:ConstrainULong;}interface MediaTrackConstraints extends MediaTrackConstraintSet{advanced?:MediaTrackConstraintSet[];}interface MediaTrackSettings{aspectRatio?:number;autoGainControl?:boolean;deviceId?:string;echoCancellation?:boolean;facingMode?:string;frameRate?:number;groupId?:string;height?:number;noiseSuppression?:boolean;restrictOwnAudio?:boolean;sampleRate?:number;sampleSize?:number;width?:number;}interface MediaTrackSupportedConstraints{aspectRatio?:boolean;autoGainControl?:boolean;deviceId?:boolean;echoCancellation?:boolean;facingMode?:boolean;frameRate?:boolean;groupId?:boolean;height?:boolean;noiseSuppression?:boolean;sampleRate?:boolean;sampleSize?:boolean;suppressLocalAudioPlayback?:boolean;width?:boolean;}interface MessageEventInitextends EventInit{data?:T;lastEventId?:string;origin?:string;ports?:MessagePort[];source?:MessageEventSource|null;}interface MouseEventInit extends EventModifierInit{button?:number;buttons?:number;clientX?:number;clientY?:number;movementX?:number;movementY?:number;relatedTarget?:EventTarget|null;screenX?:number;screenY?:number;}interface MultiCacheQueryOptions extends CacheQueryOptions{cacheName?:string;}interface MutationObserverInit{attributeFilter?:string[];attributeOldValue?:boolean;attributes?:boolean;characterData?:boolean;characterDataOldValue?:boolean;childList?:boolean;subtree?:boolean;}interface NavigationPreloadState{enabled?:boolean;headerValue?:string;}interface NotificationAction{action:string;icon?:string;title:string;}interface NotificationOptions{actions?:NotificationAction[];badge?:string;body?:string;data?:any;dir?:NotificationDirection;icon?:string;image?:string;lang?:string;renotify?:boolean;requireInteraction?:boolean;silent?:boolean;tag?:string;timestamp?:EpochTimeStamp;vibrate?:VibratePattern;}interface OfflineAudioCompletionEventInit extends EventInit{renderedBuffer:AudioBuffer;}interface OfflineAudioContextOptions{length:number;numberOfChannels?:number;sampleRate:number;}interface OptionalEffectTiming{delay?:number;direction?:PlaybackDirection;duration?:number|string;easing?:string;endDelay?:number;fill?:FillMode;iterationStart?:number;iterations?:number;playbackRate?:number;}interface OscillatorOptions extends AudioNodeOptions{detune?:number;frequency?:number;periodicWave?:PeriodicWave;type?:OscillatorType;}interface PageTransitionEventInit extends EventInit{persisted?:boolean;}interface PannerOptions extends AudioNodeOptions{coneInnerAngle?:number;coneOuterAngle?:number;coneOuterGain?:number;distanceModel?:DistanceModelType;maxDistance?:number;orientationX?:number;orientationY?:number;orientationZ?:number;panningModel?:PanningModelType;positionX?:number;positionY?:number;positionZ?:number;refDistance?:number;rolloffFactor?:number;}interface PaymentCurrencyAmount{currency:string;value:string;}interface PaymentDetailsBase{displayItems?:PaymentItem[];modifiers?:PaymentDetailsModifier[];}interface PaymentDetailsInit extends PaymentDetailsBase{id?:string;total:PaymentItem;}interface PaymentDetailsModifier{additionalDisplayItems?:PaymentItem[];data?:any;supportedMethods:string;total?:PaymentItem;}interface PaymentDetailsUpdate extends PaymentDetailsBase{paymentMethodErrors?:any;total?:PaymentItem;}interface PaymentItem{amount:PaymentCurrencyAmount;label:string;pending?:boolean;}interface PaymentMethodChangeEventInit extends PaymentRequestUpdateEventInit{methodDetails?:any;methodName?:string;}interface PaymentMethodData{data?:any;supportedMethods:string;}interface PaymentRequestUpdateEventInit extends EventInit{}interface PaymentValidationErrors{error?:string;paymentMethod?:any;}interface Pbkdf2Params extends Algorithm{hash:HashAlgorithmIdentifier;iterations:number;salt:BufferSource;}interface PerformanceMarkOptions{detail?:any;startTime?:DOMHighResTimeStamp;}interface PerformanceMeasureOptions{detail?:any;duration?:DOMHighResTimeStamp;end?:string|DOMHighResTimeStamp;start?:string|DOMHighResTimeStamp;}interface PerformanceObserverInit{buffered?:boolean;entryTypes?:string[];type?:string;}interface PeriodicWaveConstraints{disableNormalization?:boolean;}interface PeriodicWaveOptions extends PeriodicWaveConstraints{imag?:number[]|Float32Array;real?:number[]|Float32Array;}interface PermissionDescriptor{name:PermissionName;}interface PictureInPictureEventInit extends EventInit{pictureInPictureWindow:PictureInPictureWindow;}interface PointerEventInit extends MouseEventInit{coalescedEvents?:PointerEvent[];height?:number;isPrimary?:boolean;pointerId?:number;pointerType?:string;predictedEvents?:PointerEvent[];pressure?:number;tangentialPressure?:number;tiltX?:number;tiltY?:number;twist?:number;width?:number;}interface PopStateEventInit extends EventInit{state?:any;}interface PositionOptions{enableHighAccuracy?:boolean;maximumAge?:number;timeout?:number;}interface ProgressEventInit extends EventInit{lengthComputable?:boolean;loaded?:number;total?:number;}interface PromiseRejectionEventInit extends EventInit{promise:Promise;reason?:any;}interface PropertyIndexedKeyframes{composite?:CompositeOperationOrAuto|CompositeOperationOrAuto[];easing?:string|string[];offset?:number|(number|null)[];[property:string]:string|string[]|number|null|(number|null)[]|undefined;}interface PublicKeyCredentialCreationOptions{attestation?:AttestationConveyancePreference;authenticatorSelection?:AuthenticatorSelectionCriteria;challenge:BufferSource;excludeCredentials?:PublicKeyCredentialDescriptor[];extensions?:AuthenticationExtensionsClientInputs;pubKeyCredParams:PublicKeyCredentialParameters[];rp:PublicKeyCredentialRpEntity;timeout?:number;user:PublicKeyCredentialUserEntity;}interface PublicKeyCredentialDescriptor{id:BufferSource;transports?:AuthenticatorTransport[];type:PublicKeyCredentialType;}interface PublicKeyCredentialEntity{name:string;}interface PublicKeyCredentialParameters{alg:COSEAlgorithmIdentifier;type:PublicKeyCredentialType;}interface PublicKeyCredentialRequestOptions{allowCredentials?:PublicKeyCredentialDescriptor[];challenge:BufferSource;extensions?:AuthenticationExtensionsClientInputs;rpId?:string;timeout?:number;userVerification?:UserVerificationRequirement;}interface PublicKeyCredentialRpEntity extends PublicKeyCredentialEntity{id?:string;}interface PublicKeyCredentialUserEntity extends PublicKeyCredentialEntity{displayName:string;id:BufferSource;}interface PushSubscriptionJSON{endpoint?:string;expirationTime?:EpochTimeStamp|null;keys?:Record;}interface PushSubscriptionOptionsInit{applicationServerKey?:BufferSource|string|null;userVisibleOnly?:boolean;}interface QueuingStrategy{highWaterMark?:number;size?:QueuingStrategySize;}interface QueuingStrategyInit{highWaterMark:number;}interface RTCAnswerOptions extends RTCOfferAnswerOptions{}interface RTCCertificateExpiration{expires?:number;}interface RTCConfiguration{bundlePolicy?:RTCBundlePolicy;certificates?:RTCCertificate[];iceCandidatePoolSize?:number;iceServers?:RTCIceServer[];iceTransportPolicy?:RTCIceTransportPolicy;rtcpMuxPolicy?:RTCRtcpMuxPolicy;}interface RTCDTMFToneChangeEventInit extends EventInit{tone?:string;}interface RTCDataChannelEventInit extends EventInit{channel:RTCDataChannel;}interface RTCDataChannelInit{id?:number;maxPacketLifeTime?:number;maxRetransmits?:number;negotiated?:boolean;ordered?:boolean;protocol?:string;}interface RTCDtlsFingerprint{algorithm?:string;value?:string;}interface RTCEncodedAudioFrameMetadata{contributingSources?:number[];synchronizationSource?:number;}interface RTCEncodedVideoFrameMetadata{contributingSources?:number[];dependencies?:number[];frameId?:number;height?:number;spatialIndex?:number;synchronizationSource?:number;temporalIndex?:number;width?:number;}interface RTCErrorEventInit extends EventInit{error:RTCError;}interface RTCErrorInit{errorDetail:RTCErrorDetailType;httpRequestStatusCode?:number;receivedAlert?:number;sctpCauseCode?:number;sdpLineNumber?:number;sentAlert?:number;}interface RTCIceCandidateInit{candidate?:string;sdpMLineIndex?:number|null;sdpMid?:string|null;usernameFragment?:string|null;}interface RTCIceCandidatePairStats extends RTCStats{availableIncomingBitrate?:number;availableOutgoingBitrate?:number;bytesReceived?:number;bytesSent?:number;currentRoundTripTime?:number;lastPacketReceivedTimestamp?:DOMHighResTimeStamp;lastPacketSentTimestamp?:DOMHighResTimeStamp;localCandidateId:string;nominated?:boolean;remoteCandidateId:string;requestsReceived?:number;requestsSent?:number;responsesReceived?:number;responsesSent?:number;state:RTCStatsIceCandidatePairState;totalRoundTripTime?:number;transportId:string;}interface RTCIceServer{credential?:string;urls:string|string[];username?:string;}interface RTCInboundRtpStreamStats extends RTCReceivedRtpStreamStats{audioLevel?:number;bytesReceived?:number;concealedSamples?:number;concealmentEvents?:number;decoderImplementation?:string;estimatedPlayoutTimestamp?:DOMHighResTimeStamp;fecPacketsDiscarded?:number;fecPacketsReceived?:number;firCount?:number;frameHeight?:number;frameWidth?:number;framesDecoded?:number;framesDropped?:number;framesPerSecond?:number;framesReceived?:number;headerBytesReceived?:number;insertedSamplesForDeceleration?:number;jitterBufferDelay?:number;jitterBufferEmittedCount?:number;keyFramesDecoded?:number;kind:string;lastPacketReceivedTimestamp?:DOMHighResTimeStamp;nackCount?:number;packetsDiscarded?:number;pliCount?:number;qpSum?:number;remoteId?:string;removedSamplesForAcceleration?:number;silentConcealedSamples?:number;totalAudioEnergy?:number;totalDecodeTime?:number;totalInterFrameDelay?:number;totalProcessingDelay?:number;totalSamplesDuration?:number;totalSamplesReceived?:number;totalSquaredInterFrameDelay?:number;}interface RTCLocalSessionDescriptionInit{sdp?:string;type?:RTCSdpType;}interface RTCOfferAnswerOptions{}interface RTCOfferOptions extends RTCOfferAnswerOptions{iceRestart?:boolean;offerToReceiveAudio?:boolean;offerToReceiveVideo?:boolean;}interface RTCOutboundRtpStreamStats extends RTCSentRtpStreamStats{firCount?:number;frameHeight?:number;frameWidth?:number;framesEncoded?:number;framesPerSecond?:number;framesSent?:number;headerBytesSent?:number;hugeFramesSent?:number;keyFramesEncoded?:number;mediaSourceId?:string;nackCount?:number;pliCount?:number;qpSum?:number;qualityLimitationResolutionChanges?:number;remoteId?:string;retransmittedBytesSent?:number;retransmittedPacketsSent?:number;rid?:string;targetBitrate?:number;totalEncodeTime?:number;totalEncodedBytesTarget?:number;totalPacketSendDelay?:number;}interface RTCPeerConnectionIceErrorEventInit extends EventInit{address?:string|null;errorCode:number;errorText?:string;port?:number|null;url?:string;}interface RTCPeerConnectionIceEventInit extends EventInit{candidate?:RTCIceCandidate|null;url?:string|null;}interface RTCReceivedRtpStreamStats extends RTCRtpStreamStats{jitter?:number;packetsLost?:number;packetsReceived?:number;}interface RTCRtcpParameters{cname?:string;reducedSize?:boolean;}interface RTCRtpCapabilities{codecs:RTCRtpCodecCapability[];headerExtensions:RTCRtpHeaderExtensionCapability[];}interface RTCRtpCodecCapability{channels?:number;clockRate:number;mimeType:string;sdpFmtpLine?:string;}interface RTCRtpCodecParameters{channels?:number;clockRate:number;mimeType:string;payloadType:number;sdpFmtpLine?:string;}interface RTCRtpCodingParameters{rid?:string;}interface RTCRtpContributingSource{audioLevel?:number;rtpTimestamp:number;source:number;timestamp:DOMHighResTimeStamp;}interface RTCRtpEncodingParameters extends RTCRtpCodingParameters{active?:boolean;maxBitrate?:number;maxFramerate?:number;networkPriority?:RTCPriorityType;priority?:RTCPriorityType;scaleResolutionDownBy?:number;}interface RTCRtpHeaderExtensionCapability{uri?:string;}interface RTCRtpHeaderExtensionParameters{encrypted?:boolean;id:number;uri:string;}interface RTCRtpParameters{codecs:RTCRtpCodecParameters[];headerExtensions:RTCRtpHeaderExtensionParameters[];rtcp:RTCRtcpParameters;}interface RTCRtpReceiveParameters extends RTCRtpParameters{}interface RTCRtpSendParameters extends RTCRtpParameters{degradationPreference?:RTCDegradationPreference;encodings:RTCRtpEncodingParameters[];transactionId:string;}interface RTCRtpStreamStats extends RTCStats{codecId?:string;kind:string;ssrc:number;transportId?:string;}interface RTCRtpSynchronizationSource extends RTCRtpContributingSource{}interface RTCRtpTransceiverInit{direction?:RTCRtpTransceiverDirection;sendEncodings?:RTCRtpEncodingParameters[];streams?:MediaStream[];}interface RTCSentRtpStreamStats extends RTCRtpStreamStats{bytesSent?:number;packetsSent?:number;}interface RTCSessionDescriptionInit{sdp?:string;type:RTCSdpType;}interface RTCStats{id:string;timestamp:DOMHighResTimeStamp;type:RTCStatsType;}interface RTCTrackEventInit extends EventInit{receiver:RTCRtpReceiver;streams?:MediaStream[];track:MediaStreamTrack;transceiver:RTCRtpTransceiver;}interface RTCTransportStats extends RTCStats{bytesReceived?:number;bytesSent?:number;dtlsCipher?:string;dtlsState:RTCDtlsTransportState;localCertificateId?:string;remoteCertificateId?:string;selectedCandidatePairId?:string;srtpCipher?:string;tlsVersion?:string;}interface ReadableStreamGetReaderOptions{mode?:ReadableStreamReaderMode;}interface ReadableStreamReadDoneResult{done:true;value?:T;}interface ReadableStreamReadValueResult{done:false;value:T;}interface ReadableWritablePair{readable:ReadableStream;writable:WritableStream;}interface RegistrationOptions{scope?:string;type?:WorkerType;updateViaCache?:ServiceWorkerUpdateViaCache;}interface RequestInit{body?:BodyInit|null;cache?:RequestCache;credentials?:RequestCredentials;headers?:HeadersInit;integrity?:string;keepalive?:boolean;method?:string;mode?:RequestMode;redirect?:RequestRedirect;referrer?:string;referrerPolicy?:ReferrerPolicy;signal?:AbortSignal|null;window?:null;}interface ResizeObserverOptions{box?:ResizeObserverBoxOptions;}interface ResponseInit{headers?:HeadersInit;status?:number;statusText?:string;}interface RsaHashedImportParams extends Algorithm{hash:HashAlgorithmIdentifier;}interface RsaHashedKeyAlgorithm extends RsaKeyAlgorithm{hash:KeyAlgorithm;}interface RsaHashedKeyGenParams extends RsaKeyGenParams{hash:HashAlgorithmIdentifier;}interface RsaKeyAlgorithm extends KeyAlgorithm{modulusLength:number;publicExponent:BigInteger;}interface RsaKeyGenParams extends Algorithm{modulusLength:number;publicExponent:BigInteger;}interface RsaOaepParams extends Algorithm{label?:BufferSource;}interface RsaOtherPrimesInfo{d?:string;r?:string;t?:string;}interface RsaPssParams extends Algorithm{saltLength:number;}interface SVGBoundingBoxOptions{clipped?:boolean;fill?:boolean;markers?:boolean;stroke?:boolean;}interface ScrollIntoViewOptions extends ScrollOptions{block?:ScrollLogicalPosition;inline?:ScrollLogicalPosition;}interface ScrollOptions{behavior?:ScrollBehavior;}interface ScrollToOptions extends ScrollOptions{left?:number;top?:number;}interface SecurityPolicyViolationEventInit extends EventInit{blockedURI?:string;columnNumber?:number;disposition:SecurityPolicyViolationEventDisposition;documentURI:string;effectiveDirective:string;lineNumber?:number;originalPolicy:string;referrer?:string;sample?:string;sourceFile?:string;statusCode:number;violatedDirective:string;}interface ShadowRootInit{delegatesFocus?:boolean;mode:ShadowRootMode;slotAssignment?:SlotAssignmentMode;}interface ShareData{files?:File[];text?:string;title?:string;url?:string;}interface SpeechSynthesisErrorEventInit extends SpeechSynthesisEventInit{error:SpeechSynthesisErrorCode;}interface SpeechSynthesisEventInit extends EventInit{charIndex?:number;charLength?:number;elapsedTime?:number;name?:string;utterance:SpeechSynthesisUtterance;}interface StaticRangeInit{endContainer:Node;endOffset:number;startContainer:Node;startOffset:number;}interface StereoPannerOptions extends AudioNodeOptions{pan?:number;}interface StorageEstimate{quota?:number;usage?:number;}interface StorageEventInit extends EventInit{key?:string|null;newValue?:string|null;oldValue?:string|null;storageArea?:Storage|null;url?:string;}interface StreamPipeOptions{preventAbort?:boolean;preventCancel?:boolean;preventClose?:boolean;signal?:AbortSignal;}interface StructuredSerializeOptions{transfer?:Transferable[];}interface SubmitEventInit extends EventInit{submitter?:HTMLElement|null;}interface TextDecodeOptions{stream?:boolean;}interface TextDecoderOptions{fatal?:boolean;ignoreBOM?:boolean;}interface TextEncoderEncodeIntoResult{read?:number;written?:number;}interface TouchEventInit extends EventModifierInit{changedTouches?:Touch[];targetTouches?:Touch[];touches?:Touch[];}interface TouchInit{altitudeAngle?:number;azimuthAngle?:number;clientX?:number;clientY?:number;force?:number;identifier:number;pageX?:number;pageY?:number;radiusX?:number;radiusY?:number;rotationAngle?:number;screenX?:number;screenY?:number;target:EventTarget;touchType?:TouchType;}interface TrackEventInit extends EventInit{track?:TextTrack|null;}interface Transformer{flush?:TransformerFlushCallback;readableType?:undefined;start?:TransformerStartCallback;transform?:TransformerTransformCallback;writableType?:undefined;}interface TransitionEventInit extends EventInit{elapsedTime?:number;propertyName?:string;pseudoElement?:string;}interface UIEventInit extends EventInit{detail?:number;view?:Window|null;which?:number;}interface ULongRange{max?:number;min?:number;}interface UnderlyingByteSource{autoAllocateChunkSize?:number;cancel?:UnderlyingSourceCancelCallback;pull?:(controller:ReadableByteStreamController)=>void|PromiseLike;start?:(controller:ReadableByteStreamController)=>any;type:"bytes";}interface UnderlyingDefaultSource{cancel?:UnderlyingSourceCancelCallback;pull?:(controller:ReadableStreamDefaultController)=>void|PromiseLike;start?:(controller:ReadableStreamDefaultController)=>any;type?:undefined;}interface UnderlyingSink{abort?:UnderlyingSinkAbortCallback;close?:UnderlyingSinkCloseCallback;start?:UnderlyingSinkStartCallback;type?:undefined;write?:UnderlyingSinkWriteCallback;}interface UnderlyingSource{autoAllocateChunkSize?:number;cancel?:UnderlyingSourceCancelCallback;pull?:UnderlyingSourcePullCallback;start?:UnderlyingSourceStartCallback;type?:ReadableStreamType;}interface ValidityStateFlags{badInput?:boolean;customError?:boolean;patternMismatch?:boolean;rangeOverflow?:boolean;rangeUnderflow?:boolean;stepMismatch?:boolean;tooLong?:boolean;tooShort?:boolean;typeMismatch?:boolean;valueMissing?:boolean;}interface VideoColorSpaceInit{fullRange?:boolean|null;matrix?:VideoMatrixCoefficients|null;primaries?:VideoColorPrimaries|null;transfer?:VideoTransferCharacteristics|null;}interface VideoConfiguration{bitrate:number;colorGamut?:ColorGamut;contentType:string;framerate:number;hdrMetadataType?:HdrMetadataType;height:number;scalabilityMode?:string;transferFunction?:TransferFunction;width:number;}interface VideoFrameCallbackMetadata{captureTime?:DOMHighResTimeStamp;expectedDisplayTime:DOMHighResTimeStamp;height:number;mediaTime:number;presentationTime:DOMHighResTimeStamp;presentedFrames:number;processingDuration?:number;receiveTime?:DOMHighResTimeStamp;rtpTimestamp?:number;width:number;}interface WaveShaperOptions extends AudioNodeOptions{curve?:number[]|Float32Array;oversample?:OverSampleType;}interface WebGLContextAttributes{alpha?:boolean;antialias?:boolean;depth?:boolean;desynchronized?:boolean;failIfMajorPerformanceCaveat?:boolean;powerPreference?:WebGLPowerPreference;premultipliedAlpha?:boolean;preserveDrawingBuffer?:boolean;stencil?:boolean;}interface WebGLContextEventInit extends EventInit{statusMessage?:string;}interface WheelEventInit extends MouseEventInit{deltaMode?:number;deltaX?:number;deltaY?:number;deltaZ?:number;}interface WindowPostMessageOptions extends StructuredSerializeOptions{targetOrigin?:string;}interface WorkerOptions{credentials?:RequestCredentials;name?:string;type?:WorkerType;}interface WorkletOptions{credentials?:RequestCredentials;}type NodeFilter=((node:Node)=>number)|{acceptNode(node:Node):number;};declare var NodeFilter:{readonly FILTER_ACCEPT:number;readonly FILTER_REJECT:number;readonly FILTER_SKIP:number;readonly SHOW_ALL:number;readonly SHOW_ATTRIBUTE:number;readonly SHOW_CDATA_SECTION:number;readonly SHOW_COMMENT:number;readonly SHOW_DOCUMENT:number;readonly SHOW_DOCUMENT_FRAGMENT:number;readonly SHOW_DOCUMENT_TYPE:number;readonly SHOW_ELEMENT:number;readonly SHOW_ENTITY:number;readonly SHOW_ENTITY_REFERENCE:number;readonly SHOW_NOTATION:number;readonly SHOW_PROCESSING_INSTRUCTION:number;readonly SHOW_TEXT:number;};type XPathNSResolver=((prefix:string|null)=>string|null)|{lookupNamespaceURI(prefix:string|null):string|null;};interface ANGLE_instanced_arrays{drawArraysInstancedANGLE(mode:GLenum,first:GLint,count:GLsizei,primcount:GLsizei):void;drawElementsInstancedANGLE(mode:GLenum,count:GLsizei,type:GLenum,offset:GLintptr,primcount:GLsizei):void;vertexAttribDivisorANGLE(index:GLuint,divisor:GLuint):void;readonly VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE:GLenum;}interface ARIAMixin{ariaAtomic:string|null;ariaAutoComplete:string|null;ariaBusy:string|null;ariaChecked:string|null;ariaColCount:string|null;ariaColIndex:string|null;ariaColIndexText:string|null;ariaColSpan:string|null;ariaCurrent:string|null;ariaDisabled:string|null;ariaExpanded:string|null;ariaHasPopup:string|null;ariaHidden:string|null;ariaInvalid:string|null;ariaKeyShortcuts:string|null;ariaLabel:string|null;ariaLevel:string|null;ariaLive:string|null;ariaModal:string|null;ariaMultiLine:string|null;ariaMultiSelectable:string|null;ariaOrientation:string|null;ariaPlaceholder:string|null;ariaPosInSet:string|null;ariaPressed:string|null;ariaReadOnly:string|null;ariaRequired:string|null;ariaRoleDescription:string|null;ariaRowCount:string|null;ariaRowIndex:string|null;ariaRowIndexText:string|null;ariaRowSpan:string|null;ariaSelected:string|null;ariaSetSize:string|null;ariaSort:string|null;ariaValueMax:string|null;ariaValueMin:string|null;ariaValueNow:string|null;ariaValueText:string|null;role:string|null;}interface AbortController{readonly signal:AbortSignal;abort(reason?:any):void;}declare var AbortController:{prototype:AbortController;new():AbortController;};interface AbortSignalEventMap{"abort":Event;}interface AbortSignal extends EventTarget{readonly aborted:boolean;onabort:((this:AbortSignal,ev:Event)=>any)|null;readonly reason:any;throwIfAborted():void;addEventListener(type:K,listener:(this:AbortSignal,ev:AbortSignalEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(type:K,listener:(this:AbortSignal,ev:AbortSignalEventMap[K])=>any,options?:boolean|EventListenerOptions):void;removeEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|EventListenerOptions):void;}declare var AbortSignal:{prototype:AbortSignal;new():AbortSignal;abort(reason?:any):AbortSignal;timeout(milliseconds:number):AbortSignal;};interface AbstractRange{readonly collapsed:boolean;readonly endContainer:Node;readonly endOffset:number;readonly startContainer:Node;readonly startOffset:number;}declare var AbstractRange:{prototype:AbstractRange;new():AbstractRange;};interface AbstractWorkerEventMap{"error":ErrorEvent;}interface AbstractWorker{onerror:((this:AbstractWorker,ev:ErrorEvent)=>any)|null;addEventListener(type:K,listener:(this:AbstractWorker,ev:AbstractWorkerEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(type:K,listener:(this:AbstractWorker,ev:AbstractWorkerEventMap[K])=>any,options?:boolean|EventListenerOptions):void;removeEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|EventListenerOptions):void;}interface AnalyserNode extends AudioNode{fftSize:number;readonly frequencyBinCount:number;maxDecibels:number;minDecibels:number;smoothingTimeConstant:number;getByteFrequencyData(array:Uint8Array):void;getByteTimeDomainData(array:Uint8Array):void;getFloatFrequencyData(array:Float32Array):void;getFloatTimeDomainData(array:Float32Array):void;}declare var AnalyserNode:{prototype:AnalyserNode;new(context:BaseAudioContext,options?:AnalyserOptions):AnalyserNode;};interface Animatable{animate(keyframes:Keyframe[]|PropertyIndexedKeyframes|null,options?:number|KeyframeAnimationOptions):Animation;getAnimations(options?:GetAnimationsOptions):Animation[];}interface AnimationEventMap{"cancel":AnimationPlaybackEvent;"finish":AnimationPlaybackEvent;"remove":Event;}interface Animation extends EventTarget{currentTime:CSSNumberish|null;effect:AnimationEffect|null;readonly finished:Promise;id:string;oncancel:((this:Animation,ev:AnimationPlaybackEvent)=>any)|null;onfinish:((this:Animation,ev:AnimationPlaybackEvent)=>any)|null;onremove:((this:Animation,ev:Event)=>any)|null;readonly pending:boolean;readonly playState:AnimationPlayState;playbackRate:number;readonly ready:Promise;readonly replaceState:AnimationReplaceState;startTime:CSSNumberish|null;timeline:AnimationTimeline|null;cancel():void;commitStyles():void;finish():void;pause():void;persist():void;play():void;reverse():void;updatePlaybackRate(playbackRate:number):void;addEventListener(type:K,listener:(this:Animation,ev:AnimationEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(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;};interface AnimationEvent extends Event{readonly animationName:string;readonly elapsedTime:number;readonly pseudoElement:string;}declare var AnimationEvent:{prototype:AnimationEvent;new(type:string,animationEventInitDict?:AnimationEventInit):AnimationEvent;};interface AnimationFrameProvider{cancelAnimationFrame(handle:number):void;requestAnimationFrame(callback:FrameRequestCallback):number;}interface AnimationPlaybackEvent extends Event{readonly currentTime:CSSNumberish|null;readonly timelineTime:CSSNumberish|null;}declare var AnimationPlaybackEvent:{prototype:AnimationPlaybackEvent;new(type:string,eventInitDict?:AnimationPlaybackEventInit):AnimationPlaybackEvent;};interface AnimationTimeline{readonly currentTime:CSSNumberish|null;}declare var AnimationTimeline:{prototype:AnimationTimeline;new():AnimationTimeline;};interface Attr extends Node{readonly localName:string;readonly name:string;readonly namespaceURI:string|null;readonly ownerDocument:Document;readonly ownerElement:Element|null;readonly prefix:string|null;readonly specified:boolean;value:string;}declare var Attr:{prototype:Attr;new():Attr;};interface AudioBuffer{readonly duration:number;readonly length:number;readonly numberOfChannels:number;readonly sampleRate:number;copyFromChannel(destination:Float32Array,channelNumber:number,bufferOffset?:number):void;copyToChannel(source:Float32Array,channelNumber:number,bufferOffset?:number):void;getChannelData(channel:number):Float32Array;}declare var AudioBuffer:{prototype:AudioBuffer;new(options:AudioBufferOptions):AudioBuffer;};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(type:K,listener:(this:AudioBufferSourceNode,ev:AudioScheduledSourceNodeEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(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;};interface AudioContext extends BaseAudioContext{readonly baseLatency:number;readonly outputLatency:number;close():Promise;createMediaElementSource(mediaElement:HTMLMediaElement):MediaElementAudioSourceNode;createMediaStreamDestination():MediaStreamAudioDestinationNode;createMediaStreamSource(mediaStream:MediaStream):MediaStreamAudioSourceNode;getOutputTimestamp():AudioTimestamp;resume():Promise;suspend():Promise;addEventListener(type:K,listener:(this:AudioContext,ev:BaseAudioContextEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(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;};interface AudioDestinationNode extends AudioNode{readonly maxChannelCount:number;}declare var AudioDestinationNode:{prototype:AudioDestinationNode;new():AudioDestinationNode;};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;setOrientation(x:number,y:number,z:number,xUp:number,yUp:number,zUp:number):void;setPosition(x:number,y:number,z:number):void;}declare var AudioListener:{prototype:AudioListener;new():AudioListener;};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;};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;};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(type:K,listener:(this:AudioScheduledSourceNode,ev:AudioScheduledSourceNodeEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(type:K,listener:(this:AudioScheduledSourceNode,ev:AudioScheduledSourceNodeEventMap[K])=>any,options?:boolean|EventListenerOptions):void;removeEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|EventListenerOptions):void;}declare var AudioScheduledSourceNode:{prototype:AudioScheduledSourceNode;new():AudioScheduledSourceNode;};interface AudioWorklet extends Worklet{}declare var AudioWorklet:{prototype:AudioWorklet;new():AudioWorklet;};interface AudioWorkletNodeEventMap{"processorerror":Event;}interface AudioWorkletNode extends AudioNode{onprocessorerror:((this:AudioWorkletNode,ev:Event)=>any)|null;readonly parameters:AudioParamMap;readonly port:MessagePort;addEventListener(type:K,listener:(this:AudioWorkletNode,ev:AudioWorkletNodeEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(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;getAuthenticatorData():ArrayBuffer;getPublicKey():ArrayBuffer|null;getPublicKeyAlgorithm():COSEAlgorithmIdentifier;getTransports():string[];}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;addEventListener(type:K,listener:(this:BaseAudioContext,ev:BaseAudioContextEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(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;};interface BeforeUnloadEvent extends Event{returnValue:any;}declare var BeforeUnloadEvent:{prototype:BeforeUnloadEvent;new():BeforeUnloadEvent;};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;};interface Blob{readonly size:number;readonly type:string;arrayBuffer():Promise;slice(start?:number,end?:number,contentType?:string):Blob;stream():ReadableStream;text():Promise;}declare var Blob:{prototype:Blob;new(blobParts?:BlobPart[],options?:BlobPropertyBag):Blob;};interface BlobEvent extends Event{readonly data:Blob;readonly timecode:DOMHighResTimeStamp;}declare var BlobEvent:{prototype:BlobEvent;new(type:string,eventInitDict:BlobEventInit):BlobEvent;};interface Body{readonly body:ReadableStream|null;readonly bodyUsed:boolean;arrayBuffer():Promise;blob():Promise;formData():Promise;json():Promise;text():Promise;}interface BroadcastChannelEventMap{"message":MessageEvent;"messageerror":MessageEvent;}interface BroadcastChannel extends EventTarget{readonly name:string;onmessage:((this:BroadcastChannel,ev:MessageEvent)=>any)|null;onmessageerror:((this:BroadcastChannel,ev:MessageEvent)=>any)|null;close():void;postMessage(message:any):void;addEventListener(type:K,listener:(this:BroadcastChannel,ev:BroadcastChannelEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(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;};interface ByteLengthQueuingStrategy extends QueuingStrategy{readonly highWaterMark:number;readonly size:QueuingStrategySize;}declare var ByteLengthQueuingStrategy:{prototype:ByteLengthQueuingStrategy;new(init:QueuingStrategyInit):ByteLengthQueuingStrategy;};interface CDATASection extends Text{}declare var CDATASection:{prototype:CDATASection;new():CDATASection;};interface CSSAnimation extends Animation{readonly animationName:string;addEventListener(type:K,listener:(this:CSSAnimation,ev:AnimationEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(type:K,listener:(this:CSSAnimation,ev:AnimationEventMap[K])=>any,options?:boolean|EventListenerOptions):void;removeEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|EventListenerOptions):void;}declare var CSSAnimation:{prototype:CSSAnimation;new():CSSAnimation;};interface CSSConditionRule extends CSSGroupingRule{readonly conditionText:string;}declare var CSSConditionRule:{prototype:CSSConditionRule;new():CSSConditionRule;};interface CSSContainerRule extends CSSConditionRule{}declare var CSSContainerRule:{prototype:CSSContainerRule;new():CSSContainerRule;};interface CSSCounterStyleRule extends CSSRule{additiveSymbols:string;fallback:string;name:string;negative:string;pad:string;prefix:string;range:string;speakAs:string;suffix:string;symbols:string;system:string;}declare var CSSCounterStyleRule:{prototype:CSSCounterStyleRule;new():CSSCounterStyleRule;};interface CSSFontFaceRule extends CSSRule{readonly style:CSSStyleDeclaration;}declare var CSSFontFaceRule:{prototype:CSSFontFaceRule;new():CSSFontFaceRule;};interface CSSFontPaletteValuesRule extends CSSRule{readonly basePalette:string;readonly fontFamily:string;readonly name:string;readonly overrideColors:string;}declare var CSSFontPaletteValuesRule:{prototype:CSSFontPaletteValuesRule;new():CSSFontPaletteValuesRule;};interface CSSGroupingRule extends CSSRule{readonly cssRules:CSSRuleList;deleteRule(index:number):void;insertRule(rule:string,index?:number):number;}declare var CSSGroupingRule:{prototype:CSSGroupingRule;new():CSSGroupingRule;};interface CSSImportRule extends CSSRule{readonly href:string;readonly layerName:string|null;readonly media:MediaList;readonly styleSheet:CSSStyleSheet;}declare var CSSImportRule:{prototype:CSSImportRule;new():CSSImportRule;};interface CSSKeyframeRule extends CSSRule{keyText:string;readonly style:CSSStyleDeclaration;}declare var CSSKeyframeRule:{prototype:CSSKeyframeRule;new():CSSKeyframeRule;};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;};interface CSSLayerBlockRule extends CSSGroupingRule{readonly name:string;}declare var CSSLayerBlockRule:{prototype:CSSLayerBlockRule;new():CSSLayerBlockRule;};interface CSSLayerStatementRule extends CSSRule{readonly nameList:ReadonlyArray;}declare var CSSLayerStatementRule:{prototype:CSSLayerStatementRule;new():CSSLayerStatementRule;};interface CSSMediaRule extends CSSConditionRule{readonly media:MediaList;}declare var CSSMediaRule:{prototype:CSSMediaRule;new():CSSMediaRule;};interface CSSNamespaceRule extends CSSRule{readonly namespaceURI:string;readonly prefix:string;}declare var CSSNamespaceRule:{prototype:CSSNamespaceRule;new():CSSNamespaceRule;};interface CSSPageRule extends CSSGroupingRule{selectorText:string;readonly style:CSSStyleDeclaration;}declare var CSSPageRule:{prototype:CSSPageRule;new():CSSPageRule;};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;}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;};interface CSSRuleList{readonly length:number;item(index:number):CSSRule|null;[index:number]:CSSRule;}declare var CSSRuleList:{prototype:CSSRuleList;new():CSSRuleList;};interface CSSStyleDeclaration{accentColor:string;alignContent:string;alignItems:string;alignSelf:string;alignmentBaseline:string;all:string;animation:string;animationDelay:string;animationDirection:string;animationDuration:string;animationFillMode:string;animationIterationCount:string;animationName:string;animationPlayState:string;animationTimingFunction:string;appearance:string;aspectRatio:string;backdropFilter:string;backfaceVisibility:string;background:string;backgroundAttachment:string;backgroundBlendMode:string;backgroundClip:string;backgroundColor:string;backgroundImage:string;backgroundOrigin:string;backgroundPosition:string;backgroundPositionX:string;backgroundPositionY:string;backgroundRepeat:string;backgroundSize:string;baselineShift:string;blockSize:string;border:string;borderBlock:string;borderBlockColor:string;borderBlockEnd:string;borderBlockEndColor:string;borderBlockEndStyle:string;borderBlockEndWidth:string;borderBlockStart:string;borderBlockStartColor:string;borderBlockStartStyle:string;borderBlockStartWidth:string;borderBlockStyle:string;borderBlockWidth:string;borderBottom:string;borderBottomColor:string;borderBottomLeftRadius:string;borderBottomRightRadius:string;borderBottomStyle:string;borderBottomWidth:string;borderCollapse:string;borderColor:string;borderEndEndRadius:string;borderEndStartRadius:string;borderImage:string;borderImageOutset:string;borderImageRepeat:string;borderImageSlice:string;borderImageSource:string;borderImageWidth:string;borderInline:string;borderInlineColor:string;borderInlineEnd:string;borderInlineEndColor:string;borderInlineEndStyle:string;borderInlineEndWidth:string;borderInlineStart:string;borderInlineStartColor:string;borderInlineStartStyle:string;borderInlineStartWidth:string;borderInlineStyle:string;borderInlineWidth:string;borderLeft:string;borderLeftColor:string;borderLeftStyle:string;borderLeftWidth:string;borderRadius:string;borderRight:string;borderRightColor:string;borderRightStyle:string;borderRightWidth:string;borderSpacing:string;borderStartEndRadius:string;borderStartStartRadius:string;borderStyle:string;borderTop:string;borderTopColor:string;borderTopLeftRadius:string;borderTopRightRadius:string;borderTopStyle:string;borderTopWidth:string;borderWidth:string;bottom:string;boxShadow:string;boxSizing:string;breakAfter:string;breakBefore:string;breakInside:string;captionSide:string;caretColor:string;clear:string;clip:string;clipPath:string;clipRule:string;color:string;colorInterpolation:string;colorInterpolationFilters:string;colorScheme:string;columnCount:string;columnFill:string;columnGap:string;columnRule:string;columnRuleColor:string;columnRuleStyle:string;columnRuleWidth:string;columnSpan:string;columnWidth:string;columns:string;contain:string;container:string;containerName:string;containerType:string;content:string;counterIncrement:string;counterReset:string;counterSet:string;cssFloat:string;cssText:string;cursor:string;direction:string;display:string;dominantBaseline:string;emptyCells:string;fill:string;fillOpacity:string;fillRule:string;filter:string;flex:string;flexBasis:string;flexDirection:string;flexFlow:string;flexGrow:string;flexShrink:string;flexWrap:string;float:string;floodColor:string;floodOpacity:string;font:string;fontFamily:string;fontFeatureSettings:string;fontKerning:string;fontOpticalSizing:string;fontPalette:string;fontSize:string;fontSizeAdjust:string;fontStretch:string;fontStyle:string;fontSynthesis:string;fontVariant:string;fontVariantAlternates:string;fontVariantCaps:string;fontVariantEastAsian:string;fontVariantLigatures:string;fontVariantNumeric:string;fontVariantPosition:string;fontVariationSettings:string;fontWeight:string;gap:string;grid:string;gridArea:string;gridAutoColumns:string;gridAutoFlow:string;gridAutoRows:string;gridColumn:string;gridColumnEnd:string;gridColumnGap:string;gridColumnStart:string;gridGap:string;gridRow:string;gridRowEnd:string;gridRowGap:string;gridRowStart:string;gridTemplate:string;gridTemplateAreas:string;gridTemplateColumns:string;gridTemplateRows:string;height:string;hyphenateCharacter:string;hyphens:string;imageOrientation:string;imageRendering:string;inlineSize:string;inset:string;insetBlock:string;insetBlockEnd:string;insetBlockStart:string;insetInline:string;insetInlineEnd:string;insetInlineStart:string;isolation:string;justifyContent:string;justifyItems:string;justifySelf:string;left:string;readonly length:number;letterSpacing:string;lightingColor:string;lineBreak:string;lineHeight:string;listStyle:string;listStyleImage:string;listStylePosition:string;listStyleType:string;margin:string;marginBlock:string;marginBlockEnd:string;marginBlockStart:string;marginBottom:string;marginInline:string;marginInlineEnd:string;marginInlineStart:string;marginLeft:string;marginRight:string;marginTop:string;marker:string;markerEnd:string;markerMid:string;markerStart:string;mask:string;maskClip:string;maskComposite:string;maskImage:string;maskMode:string;maskOrigin:string;maskPosition:string;maskRepeat:string;maskSize:string;maskType:string;maxBlockSize:string;maxHeight:string;maxInlineSize:string;maxWidth:string;minBlockSize:string;minHeight:string;minInlineSize:string;minWidth:string;mixBlendMode:string;objectFit:string;objectPosition:string;offset:string;offsetDistance:string;offsetPath:string;offsetRotate:string;opacity:string;order:string;orphans:string;outline:string;outlineColor:string;outlineOffset:string;outlineStyle:string;outlineWidth:string;overflow:string;overflowAnchor:string;overflowClipMargin:string;overflowWrap:string;overflowX:string;overflowY:string;overscrollBehavior:string;overscrollBehaviorBlock:string;overscrollBehaviorInline:string;overscrollBehaviorX:string;overscrollBehaviorY:string;padding:string;paddingBlock:string;paddingBlockEnd:string;paddingBlockStart:string;paddingBottom:string;paddingInline:string;paddingInlineEnd:string;paddingInlineStart:string;paddingLeft:string;paddingRight:string;paddingTop:string;pageBreakAfter:string;pageBreakBefore:string;pageBreakInside:string;paintOrder:string;readonly parentRule:CSSRule|null;perspective:string;perspectiveOrigin:string;placeContent:string;placeItems:string;placeSelf:string;pointerEvents:string;position:string;printColorAdjust:string;quotes:string;resize:string;right:string;rotate:string;rowGap:string;rubyPosition:string;scale:string;scrollBehavior:string;scrollMargin:string;scrollMarginBlock:string;scrollMarginBlockEnd:string;scrollMarginBlockStart:string;scrollMarginBottom:string;scrollMarginInline:string;scrollMarginInlineEnd:string;scrollMarginInlineStart:string;scrollMarginLeft:string;scrollMarginRight:string;scrollMarginTop:string;scrollPadding:string;scrollPaddingBlock:string;scrollPaddingBlockEnd:string;scrollPaddingBlockStart:string;scrollPaddingBottom:string;scrollPaddingInline:string;scrollPaddingInlineEnd:string;scrollPaddingInlineStart:string;scrollPaddingLeft:string;scrollPaddingRight:string;scrollPaddingTop:string;scrollSnapAlign:string;scrollSnapStop:string;scrollSnapType:string;scrollbarGutter:string;shapeImageThreshold:string;shapeMargin:string;shapeOutside:string;shapeRendering:string;stopColor:string;stopOpacity:string;stroke:string;strokeDasharray:string;strokeDashoffset:string;strokeLinecap:string;strokeLinejoin:string;strokeMiterlimit:string;strokeOpacity:string;strokeWidth:string;tabSize:string;tableLayout:string;textAlign:string;textAlignLast:string;textAnchor:string;textCombineUpright:string;textDecoration:string;textDecorationColor:string;textDecorationLine:string;textDecorationSkipInk:string;textDecorationStyle:string;textDecorationThickness:string;textEmphasis:string;textEmphasisColor:string;textEmphasisPosition:string;textEmphasisStyle:string;textIndent:string;textOrientation:string;textOverflow:string;textRendering:string;textShadow:string;textTransform:string;textUnderlineOffset:string;textUnderlinePosition:string;top:string;touchAction:string;transform:string;transformBox:string;transformOrigin:string;transformStyle:string;transition:string;transitionDelay:string;transitionDuration:string;transitionProperty:string;transitionTimingFunction:string;translate:string;unicodeBidi:string;userSelect:string;verticalAlign:string;visibility:string;webkitAlignContent:string;webkitAlignItems:string;webkitAlignSelf:string;webkitAnimation:string;webkitAnimationDelay:string;webkitAnimationDirection:string;webkitAnimationDuration:string;webkitAnimationFillMode:string;webkitAnimationIterationCount:string;webkitAnimationName:string;webkitAnimationPlayState:string;webkitAnimationTimingFunction:string;webkitAppearance:string;webkitBackfaceVisibility:string;webkitBackgroundClip:string;webkitBackgroundOrigin:string;webkitBackgroundSize:string;webkitBorderBottomLeftRadius:string;webkitBorderBottomRightRadius:string;webkitBorderRadius:string;webkitBorderTopLeftRadius:string;webkitBorderTopRightRadius:string;webkitBoxAlign:string;webkitBoxFlex:string;webkitBoxOrdinalGroup:string;webkitBoxOrient:string;webkitBoxPack:string;webkitBoxShadow:string;webkitBoxSizing:string;webkitFilter:string;webkitFlex:string;webkitFlexBasis:string;webkitFlexDirection:string;webkitFlexFlow:string;webkitFlexGrow:string;webkitFlexShrink:string;webkitFlexWrap:string;webkitJustifyContent:string;webkitLineClamp:string;webkitMask:string;webkitMaskBoxImage:string;webkitMaskBoxImageOutset:string;webkitMaskBoxImageRepeat:string;webkitMaskBoxImageSlice:string;webkitMaskBoxImageSource:string;webkitMaskBoxImageWidth:string;webkitMaskClip:string;webkitMaskComposite:string;webkitMaskImage:string;webkitMaskOrigin:string;webkitMaskPosition:string;webkitMaskRepeat:string;webkitMaskSize:string;webkitOrder:string;webkitPerspective:string;webkitPerspectiveOrigin:string;webkitTextFillColor:string;webkitTextSizeAdjust:string;webkitTextStroke:string;webkitTextStrokeColor:string;webkitTextStrokeWidth:string;webkitTransform:string;webkitTransformOrigin:string;webkitTransformStyle:string;webkitTransition:string;webkitTransitionDelay:string;webkitTransitionDuration:string;webkitTransitionProperty:string;webkitTransitionTimingFunction:string;webkitUserSelect:string;whiteSpace:string;widows:string;width:string;willChange:string;wordBreak:string;wordSpacing:string;wordWrap:string;writingMode:string;zIndex:string;getPropertyPriority(property:string):string;getPropertyValue(property:string):string;item(index:number):string;removeProperty(property:string):string;setProperty(property:string,value:string|null,priority?:string):void;[index:number]:string;}declare var CSSStyleDeclaration:{prototype:CSSStyleDeclaration;new():CSSStyleDeclaration;};interface CSSStyleRule extends CSSRule{selectorText:string;readonly style:CSSStyleDeclaration;}declare var CSSStyleRule:{prototype:CSSStyleRule;new():CSSStyleRule;};interface CSSStyleSheet extends StyleSheet{readonly cssRules:CSSRuleList;readonly ownerRule:CSSRule|null;readonly rules:CSSRuleList;addRule(selector?:string,style?:string,index?:number):number;deleteRule(index:number):void;insertRule(rule:string,index?:number):number;removeRule(index?:number):void;replace(text:string):Promise;replaceSync(text:string):void;}declare var CSSStyleSheet:{prototype:CSSStyleSheet;new(options?:CSSStyleSheetInit):CSSStyleSheet;};interface CSSSupportsRule extends CSSConditionRule{}declare var CSSSupportsRule:{prototype:CSSSupportsRule;new():CSSSupportsRule;};interface CSSTransition extends Animation{readonly transitionProperty:string;addEventListener(type:K,listener:(this:CSSTransition,ev:AnimationEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(type:K,listener:(this:CSSTransition,ev:AnimationEventMap[K])=>any,options?:boolean|EventListenerOptions):void;removeEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|EventListenerOptions):void;}declare var CSSTransition:{prototype:CSSTransition;new():CSSTransition;};interface Cache{add(request:RequestInfo|URL):Promise;addAll(requests:RequestInfo[]):Promise;delete(request:RequestInfo|URL,options?:CacheQueryOptions):Promise;keys(request?:RequestInfo|URL,options?:CacheQueryOptions):Promise>;match(request:RequestInfo|URL,options?:CacheQueryOptions):Promise;matchAll(request?:RequestInfo|URL,options?:CacheQueryOptions):Promise>;put(request:RequestInfo|URL,response:Response):Promise;}declare var Cache:{prototype:Cache;new():Cache;};interface CacheStorage{delete(cacheName:string):Promise;has(cacheName:string):Promise;keys():Promise;match(request:RequestInfo|URL,options?:MultiCacheQueryOptions):Promise;open(cacheName:string):Promise;}declare var CacheStorage:{prototype:CacheStorage;new():CacheStorage;};interface CanvasCaptureMediaStreamTrack extends MediaStreamTrack{readonly canvas:HTMLCanvasElement;requestFrame():void;addEventListener(type:K,listener:(this:CanvasCaptureMediaStreamTrack,ev:MediaStreamTrackEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(type:K,listener:(this:CanvasCaptureMediaStreamTrack,ev:MediaStreamTrackEventMap[K])=>any,options?:boolean|EventListenerOptions):void;removeEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|EventListenerOptions):void;}declare var CanvasCaptureMediaStreamTrack:{prototype:CanvasCaptureMediaStreamTrack;new():CanvasCaptureMediaStreamTrack;};interface CanvasCompositing{globalAlpha:number;globalCompositeOperation:GlobalCompositeOperation;}interface CanvasDrawImage{drawImage(image:CanvasImageSource,dx:number,dy:number):void;drawImage(image:CanvasImageSource,dx:number,dy:number,dw:number,dh:number):void;drawImage(image:CanvasImageSource,sx:number,sy:number,sw:number,sh:number,dx:number,dy:number,dw:number,dh:number):void;}interface CanvasDrawPath{beginPath():void;clip(fillRule?:CanvasFillRule):void;clip(path:Path2D,fillRule?:CanvasFillRule):void;fill(fillRule?:CanvasFillRule):void;fill(path:Path2D,fillRule?:CanvasFillRule):void;isPointInPath(x:number,y:number,fillRule?:CanvasFillRule):boolean;isPointInPath(path:Path2D,x:number,y:number,fillRule?:CanvasFillRule):boolean;isPointInStroke(x:number,y:number):boolean;isPointInStroke(path:Path2D,x:number,y:number):boolean;stroke():void;stroke(path:Path2D):void;}interface CanvasFillStrokeStyles{fillStyle:string|CanvasGradient|CanvasPattern;strokeStyle:string|CanvasGradient|CanvasPattern;createConicGradient(startAngle:number,x:number,y:number):CanvasGradient;createLinearGradient(x0:number,y0:number,x1:number,y1:number):CanvasGradient;createPattern(image:CanvasImageSource,repetition:string|null):CanvasPattern|null;createRadialGradient(x0:number,y0:number,r0:number,x1:number,y1:number,r1:number):CanvasGradient;}interface CanvasFilters{filter:string;}interface CanvasGradient{addColorStop(offset:number,color:string):void;}declare var CanvasGradient:{prototype:CanvasGradient;new():CanvasGradient;};interface CanvasImageData{createImageData(sw:number,sh:number,settings?:ImageDataSettings):ImageData;createImageData(imagedata:ImageData):ImageData;getImageData(sx:number,sy:number,sw:number,sh:number,settings?:ImageDataSettings):ImageData;putImageData(imagedata:ImageData,dx:number,dy:number):void;putImageData(imagedata:ImageData,dx:number,dy:number,dirtyX:number,dirtyY:number,dirtyWidth:number,dirtyHeight:number):void;}interface CanvasImageSmoothing{imageSmoothingEnabled:boolean;imageSmoothingQuality:ImageSmoothingQuality;}interface CanvasPath{arc(x:number,y:number,radius:number,startAngle:number,endAngle:number,counterclockwise?:boolean):void;arcTo(x1:number,y1:number,x2:number,y2:number,radius:number):void;bezierCurveTo(cp1x:number,cp1y:number,cp2x:number,cp2y:number,x:number,y:number):void;closePath():void;ellipse(x:number,y:number,radiusX:number,radiusY:number,rotation:number,startAngle:number,endAngle:number,counterclockwise?:boolean):void;lineTo(x:number,y:number):void;moveTo(x:number,y:number):void;quadraticCurveTo(cpx:number,cpy:number,x:number,y:number):void;rect(x:number,y:number,w:number,h:number):void;roundRect(x:number,y:number,w:number,h:number,radii?:number|DOMPointInit|(number|DOMPointInit)[]):void;}interface CanvasPathDrawingStyles{lineCap:CanvasLineCap;lineDashOffset:number;lineJoin:CanvasLineJoin;lineWidth:number;miterLimit:number;getLineDash():number[];setLineDash(segments:number[]):void;}interface CanvasPattern{setTransform(transform?:DOMMatrix2DInit):void;}declare var CanvasPattern:{prototype:CanvasPattern;new():CanvasPattern;};interface CanvasRect{clearRect(x:number,y:number,w:number,h:number):void;fillRect(x:number,y:number,w:number,h:number):void;strokeRect(x:number,y:number,w:number,h:number):void;}interface CanvasRenderingContext2D extends CanvasCompositing,CanvasDrawImage,CanvasDrawPath,CanvasFillStrokeStyles,CanvasFilters,CanvasImageData,CanvasImageSmoothing,CanvasPath,CanvasPathDrawingStyles,CanvasRect,CanvasShadowStyles,CanvasState,CanvasText,CanvasTextDrawingStyles,CanvasTransform,CanvasUserInterface{readonly canvas:HTMLCanvasElement;getContextAttributes():CanvasRenderingContext2DSettings;}declare var CanvasRenderingContext2D:{prototype:CanvasRenderingContext2D;new():CanvasRenderingContext2D;};interface CanvasShadowStyles{shadowBlur:number;shadowColor:string;shadowOffsetX:number;shadowOffsetY:number;}interface CanvasState{restore():void;save():void;}interface CanvasText{fillText(text:string,x:number,y:number,maxWidth?:number):void;measureText(text:string):TextMetrics;strokeText(text:string,x:number,y:number,maxWidth?:number):void;}interface CanvasTextDrawingStyles{direction:CanvasDirection;font:string;fontKerning:CanvasFontKerning;textAlign:CanvasTextAlign;textBaseline:CanvasTextBaseline;}interface CanvasTransform{getTransform():DOMMatrix;resetTransform():void;rotate(angle:number):void;scale(x:number,y:number):void;setTransform(a:number,b:number,c:number,d:number,e:number,f:number):void;setTransform(transform?:DOMMatrix2DInit):void;transform(a:number,b:number,c:number,d:number,e:number,f:number):void;translate(x:number,y:number):void;}interface CanvasUserInterface{drawFocusIfNeeded(element:Element):void;drawFocusIfNeeded(path:Path2D,element:Element):void;}interface ChannelMergerNode extends AudioNode{}declare var ChannelMergerNode:{prototype:ChannelMergerNode;new(context:BaseAudioContext,options?:ChannelMergerOptions):ChannelMergerNode;};interface ChannelSplitterNode extends AudioNode{}declare var ChannelSplitterNode:{prototype:ChannelSplitterNode;new(context:BaseAudioContext,options?:ChannelSplitterOptions):ChannelSplitterNode;};interface CharacterData extends Node,ChildNode,NonDocumentTypeChildNode{data:string;readonly length:number;readonly ownerDocument:Document;appendData(data:string):void;deleteData(offset:number,count:number):void;insertData(offset:number,data:string):void;replaceData(offset:number,count:number,data:string):void;substringData(offset:number,count:number):string;}declare var CharacterData:{prototype:CharacterData;new():CharacterData;};interface ChildNode extends Node{after(...nodes:(Node|string)[]):void;before(...nodes:(Node|string)[]):void;remove():void;replaceWith(...nodes:(Node|string)[]):void;}interface ClientRect extends DOMRect{}interface Clipboard extends EventTarget{read():Promise;readText():Promise;write(data:ClipboardItems):Promise;writeText(data:string):Promise;}declare var Clipboard:{prototype:Clipboard;new():Clipboard;};interface ClipboardEvent extends Event{readonly clipboardData:DataTransfer|null;}declare var ClipboardEvent:{prototype:ClipboardEvent;new(type:string,eventInitDict?:ClipboardEventInit):ClipboardEvent;};interface ClipboardItem{readonly types:ReadonlyArray;getType(type:string):Promise;}declare var ClipboardItem:{prototype:ClipboardItem;new(items:Record>,options?:ClipboardItemOptions):ClipboardItem;};interface CloseEvent extends Event{readonly code:number;readonly reason:string;readonly wasClean:boolean;}declare var CloseEvent:{prototype:CloseEvent;new(type:string,eventInitDict?:CloseEventInit):CloseEvent;};interface Comment extends CharacterData{}declare var Comment:{prototype:Comment;new(data?:string):Comment;};interface CompositionEvent extends UIEvent{readonly data:string;initCompositionEvent(typeArg:string,bubblesArg?:boolean,cancelableArg?:boolean,viewArg?:WindowProxy|null,dataArg?:string):void;}declare var CompositionEvent:{prototype:CompositionEvent;new(type:string,eventInitDict?:CompositionEventInit):CompositionEvent;};interface ConstantSourceNode extends AudioScheduledSourceNode{readonly offset:AudioParam;addEventListener(type:K,listener:(this:ConstantSourceNode,ev:AudioScheduledSourceNodeEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(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;};interface ConvolverNode extends AudioNode{buffer:AudioBuffer|null;normalize:boolean;}declare var ConvolverNode:{prototype:ConvolverNode;new(context:BaseAudioContext,options?:ConvolverOptions):ConvolverNode;};interface CountQueuingStrategy extends QueuingStrategy{readonly highWaterMark:number;readonly size:QueuingStrategySize;}declare var CountQueuingStrategy:{prototype:CountQueuingStrategy;new(init:QueuingStrategyInit):CountQueuingStrategy;};interface Credential{readonly id:string;readonly type:string;}declare var Credential:{prototype:Credential;new():Credential;};interface CredentialsContainer{create(options?:CredentialCreationOptions):Promise;get(options?:CredentialRequestOptions):Promise;preventSilentAccess():Promise;store(credential:Credential):Promise;}declare var CredentialsContainer:{prototype:CredentialsContainer;new():CredentialsContainer;};interface Crypto{readonly subtle:SubtleCrypto;getRandomValues(array:T):T;randomUUID():string;}declare var Crypto:{prototype:Crypto;new():Crypto;};interface CryptoKey{readonly algorithm:KeyAlgorithm;readonly extractable:boolean;readonly type:KeyType;readonly usages:KeyUsage[];}declare var CryptoKey:{prototype:CryptoKey;new():CryptoKey;};interface CustomElementRegistry{define(name:string,constructor:CustomElementConstructor,options?:ElementDefinitionOptions):void;get(name:string):CustomElementConstructor|undefined;upgrade(root:Node):void;whenDefined(name:string):Promise;}declare var CustomElementRegistry:{prototype:CustomElementRegistry;new():CustomElementRegistry;};interface CustomEventextends Event{readonly detail:T;initCustomEvent(type:string,bubbles?:boolean,cancelable?:boolean,detail?:T):void;}declare var CustomEvent:{prototype:CustomEvent;new(type:string,eventInitDict?:CustomEventInit):CustomEvent;};interface DOMException extends Error{readonly code:number;readonly message:string;readonly name:string;readonly ABORT_ERR:number;readonly DATA_CLONE_ERR:number;readonly DOMSTRING_SIZE_ERR:number;readonly HIERARCHY_REQUEST_ERR:number;readonly INDEX_SIZE_ERR:number;readonly INUSE_ATTRIBUTE_ERR:number;readonly INVALID_ACCESS_ERR:number;readonly INVALID_CHARACTER_ERR:number;readonly INVALID_MODIFICATION_ERR:number;readonly INVALID_NODE_TYPE_ERR:number;readonly INVALID_STATE_ERR:number;readonly NAMESPACE_ERR:number;readonly NETWORK_ERR:number;readonly NOT_FOUND_ERR:number;readonly NOT_SUPPORTED_ERR:number;readonly NO_DATA_ALLOWED_ERR:number;readonly NO_MODIFICATION_ALLOWED_ERR:number;readonly QUOTA_EXCEEDED_ERR:number;readonly SECURITY_ERR:number;readonly SYNTAX_ERR:number;readonly TIMEOUT_ERR:number;readonly TYPE_MISMATCH_ERR:number;readonly URL_MISMATCH_ERR:number;readonly VALIDATION_ERR:number;readonly WRONG_DOCUMENT_ERR:number;}declare var DOMException:{prototype:DOMException;new(message?:string,name?:string):DOMException;readonly ABORT_ERR:number;readonly DATA_CLONE_ERR:number;readonly DOMSTRING_SIZE_ERR:number;readonly HIERARCHY_REQUEST_ERR:number;readonly INDEX_SIZE_ERR:number;readonly INUSE_ATTRIBUTE_ERR:number;readonly INVALID_ACCESS_ERR:number;readonly INVALID_CHARACTER_ERR:number;readonly INVALID_MODIFICATION_ERR:number;readonly INVALID_NODE_TYPE_ERR:number;readonly INVALID_STATE_ERR:number;readonly NAMESPACE_ERR:number;readonly NETWORK_ERR:number;readonly NOT_FOUND_ERR:number;readonly NOT_SUPPORTED_ERR:number;readonly NO_DATA_ALLOWED_ERR:number;readonly NO_MODIFICATION_ALLOWED_ERR:number;readonly QUOTA_EXCEEDED_ERR:number;readonly SECURITY_ERR:number;readonly SYNTAX_ERR:number;readonly TIMEOUT_ERR:number;readonly TYPE_MISMATCH_ERR:number;readonly URL_MISMATCH_ERR:number;readonly VALIDATION_ERR:number;readonly WRONG_DOCUMENT_ERR:number;};interface DOMImplementation{createDocument(namespace:string|null,qualifiedName:string|null,doctype?:DocumentType|null):XMLDocument;createDocumentType(qualifiedName:string,publicId:string,systemId:string):DocumentType;createHTMLDocument(title?:string):Document;hasFeature(...args:any[]):true;}declare var DOMImplementation:{prototype:DOMImplementation;new():DOMImplementation;};interface DOMMatrix extends DOMMatrixReadOnly{a:number;b:number;c:number;d:number;e:number;f:number;m11:number;m12:number;m13:number;m14:number;m21:number;m22:number;m23:number;m24:number;m31:number;m32:number;m33:number;m34:number;m41:number;m42:number;m43:number;m44:number;invertSelf():DOMMatrix;multiplySelf(other?:DOMMatrixInit):DOMMatrix;preMultiplySelf(other?:DOMMatrixInit):DOMMatrix;rotateAxisAngleSelf(x?:number,y?:number,z?:number,angle?:number):DOMMatrix;rotateFromVectorSelf(x?:number,y?:number):DOMMatrix;rotateSelf(rotX?:number,rotY?:number,rotZ?:number):DOMMatrix;scale3dSelf(scale?:number,originX?:number,originY?:number,originZ?:number):DOMMatrix;scaleSelf(scaleX?:number,scaleY?:number,scaleZ?:number,originX?:number,originY?:number,originZ?:number):DOMMatrix;setMatrixValue(transformList:string):DOMMatrix;skewXSelf(sx?:number):DOMMatrix;skewYSelf(sy?:number):DOMMatrix;translateSelf(tx?:number,ty?:number,tz?:number):DOMMatrix;}declare var DOMMatrix:{prototype:DOMMatrix;new(init?:string|number[]):DOMMatrix;fromFloat32Array(array32:Float32Array):DOMMatrix;fromFloat64Array(array64:Float64Array):DOMMatrix;fromMatrix(other?:DOMMatrixInit):DOMMatrix;};type SVGMatrix=DOMMatrix;declare var SVGMatrix:typeof DOMMatrix;type WebKitCSSMatrix=DOMMatrix;declare var WebKitCSSMatrix:typeof DOMMatrix;interface DOMMatrixReadOnly{readonly a:number;readonly b:number;readonly c:number;readonly d:number;readonly e:number;readonly f:number;readonly is2D:boolean;readonly isIdentity:boolean;readonly m11:number;readonly m12:number;readonly m13:number;readonly m14:number;readonly m21:number;readonly m22:number;readonly m23:number;readonly m24:number;readonly m31:number;readonly m32:number;readonly m33:number;readonly m34:number;readonly m41:number;readonly m42:number;readonly m43:number;readonly m44:number;flipX():DOMMatrix;flipY():DOMMatrix;inverse():DOMMatrix;multiply(other?:DOMMatrixInit):DOMMatrix;rotate(rotX?:number,rotY?:number,rotZ?:number):DOMMatrix;rotateAxisAngle(x?:number,y?:number,z?:number,angle?:number):DOMMatrix;rotateFromVector(x?:number,y?:number):DOMMatrix;scale(scaleX?:number,scaleY?:number,scaleZ?:number,originX?:number,originY?:number,originZ?:number):DOMMatrix;scale3d(scale?:number,originX?:number,originY?:number,originZ?:number):DOMMatrix;scaleNonUniform(scaleX?:number,scaleY?:number):DOMMatrix;skewX(sx?:number):DOMMatrix;skewY(sy?:number):DOMMatrix;toFloat32Array():Float32Array;toFloat64Array():Float64Array;toJSON():any;transformPoint(point?:DOMPointInit):DOMPoint;translate(tx?:number,ty?:number,tz?:number):DOMMatrix;toString():string;}declare var DOMMatrixReadOnly:{prototype:DOMMatrixReadOnly;new(init?:string|number[]):DOMMatrixReadOnly;fromFloat32Array(array32:Float32Array):DOMMatrixReadOnly;fromFloat64Array(array64:Float64Array):DOMMatrixReadOnly;fromMatrix(other?:DOMMatrixInit):DOMMatrixReadOnly;toString():string;};interface DOMParser{parseFromString(string:string,type:DOMParserSupportedType):Document;}declare var DOMParser:{prototype:DOMParser;new():DOMParser;};interface DOMPoint extends DOMPointReadOnly{w:number;x:number;y:number;z:number;}declare var DOMPoint:{prototype:DOMPoint;new(x?:number,y?:number,z?:number,w?:number):DOMPoint;fromPoint(other?:DOMPointInit):DOMPoint;};type SVGPoint=DOMPoint;declare var SVGPoint:typeof DOMPoint;interface DOMPointReadOnly{readonly w:number;readonly x:number;readonly y:number;readonly z:number;matrixTransform(matrix?:DOMMatrixInit):DOMPoint;toJSON():any;}declare var DOMPointReadOnly:{prototype:DOMPointReadOnly;new(x?:number,y?:number,z?:number,w?:number):DOMPointReadOnly;fromPoint(other?:DOMPointInit):DOMPointReadOnly;};interface DOMQuad{readonly p1:DOMPoint;readonly p2:DOMPoint;readonly p3:DOMPoint;readonly p4:DOMPoint;getBounds():DOMRect;toJSON():any;}declare var DOMQuad:{prototype:DOMQuad;new(p1?:DOMPointInit,p2?:DOMPointInit,p3?:DOMPointInit,p4?:DOMPointInit):DOMQuad;fromQuad(other?:DOMQuadInit):DOMQuad;fromRect(other?:DOMRectInit):DOMQuad;};interface DOMRect extends DOMRectReadOnly{height:number;width:number;x:number;y:number;}declare var DOMRect:{prototype:DOMRect;new(x?:number,y?:number,width?:number,height?:number):DOMRect;fromRect(other?:DOMRectInit):DOMRect;};type SVGRect=DOMRect;declare var SVGRect:typeof DOMRect;interface DOMRectList{readonly length:number;item(index:number):DOMRect|null;[index:number]:DOMRect;}declare var DOMRectList:{prototype:DOMRectList;new():DOMRectList;};interface DOMRectReadOnly{readonly bottom:number;readonly height:number;readonly left:number;readonly right:number;readonly top:number;readonly width:number;readonly x:number;readonly y:number;toJSON():any;}declare var DOMRectReadOnly:{prototype:DOMRectReadOnly;new(x?:number,y?:number,width?:number,height?:number):DOMRectReadOnly;fromRect(other?:DOMRectInit):DOMRectReadOnly;};interface DOMStringList{readonly length:number;contains(string:string):boolean;item(index:number):string|null;[index:number]:string;}declare var DOMStringList:{prototype:DOMStringList;new():DOMStringList;};interface DOMStringMap{[name:string]:string|undefined;}declare var DOMStringMap:{prototype:DOMStringMap;new():DOMStringMap;};interface DOMTokenList{readonly length:number;value:string;toString():string;add(...tokens:string[]):void;contains(token:string):boolean;item(index:number):string|null;remove(...tokens:string[]):void;replace(token:string,newToken:string):boolean;supports(token:string):boolean;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 DataTransfer{dropEffect:"none"|"copy"|"link"|"move";effectAllowed:"none"|"copy"|"copyLink"|"copyMove"|"link"|"linkMove"|"move"|"all"|"uninitialized";readonly files:FileList;readonly items:DataTransferItemList;readonly types:ReadonlyArray;clearData(format?:string):void;getData(format:string):string;setData(format:string,data:string):void;setDragImage(image:Element,x:number,y:number):void;}declare var DataTransfer:{prototype:DataTransfer;new():DataTransfer;};interface DataTransferItem{readonly kind:string;readonly type:string;getAsFile():File|null;getAsString(callback:FunctionStringCallback|null):void;webkitGetAsEntry():FileSystemEntry|null;}declare var DataTransferItem:{prototype:DataTransferItem;new():DataTransferItem;};interface DataTransferItemList{readonly length:number;add(data:string,type:string):DataTransferItem|null;add(data:File):DataTransferItem|null;clear():void;remove(index:number):void;[index:number]:DataTransferItem;}declare var DataTransferItemList:{prototype:DataTransferItemList;new():DataTransferItemList;};interface DelayNode extends AudioNode{readonly delayTime:AudioParam;}declare var DelayNode:{prototype:DelayNode;new(context:BaseAudioContext,options?:DelayOptions):DelayNode;};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;}interface DeviceOrientationEvent extends Event{readonly absolute:boolean;readonly alpha:number|null;readonly beta:number|null;readonly gamma:number|null;}declare var DeviceOrientationEvent:{prototype:DeviceOrientationEvent;new(type:string,eventInitDict?:DeviceOrientationEventInit):DeviceOrientationEvent;};interface DocumentEventMap extends DocumentAndElementEventHandlersEventMap,GlobalEventHandlersEventMap{"DOMContentLoaded":Event;"fullscreenchange":Event;"fullscreenerror":Event;"pointerlockchange":Event;"pointerlockerror":Event;"readystatechange":Event;"visibilitychange":Event;}interface Document extends Node,DocumentAndElementEventHandlers,DocumentOrShadowRoot,FontFaceSource,GlobalEventHandlers,NonElementParentNode,ParentNode,XPathEvaluatorBase{readonly URL:string;alinkColor:string;readonly all:HTMLAllCollection;readonly anchors:HTMLCollectionOf;readonly applets:HTMLCollection;bgColor:string;body:HTMLElement;readonly characterSet:string;readonly charset:string;readonly compatMode:string;readonly contentType:string;cookie:string;readonly currentScript:HTMLOrSVGScriptElement|null;readonly defaultView:(WindowProxy&typeof globalThis)|null;designMode:string;dir:string;readonly doctype:DocumentType|null;readonly documentElement:HTMLElement;readonly documentURI:string;domain:string;readonly embeds:HTMLCollectionOf;fgColor:string;readonly forms:HTMLCollectionOf;readonly fullscreen:boolean;readonly fullscreenEnabled:boolean;readonly head:HTMLHeadElement;readonly hidden:boolean;readonly images:HTMLCollectionOf;readonly implementation:DOMImplementation;readonly inputEncoding:string;readonly lastModified:string;linkColor:string;readonly links:HTMLCollectionOf;get location():Location;set location(href:string|Location);onfullscreenchange:((this:Document,ev:Event)=>any)|null;onfullscreenerror:((this:Document,ev:Event)=>any)|null;onpointerlockchange:((this:Document,ev:Event)=>any)|null;onpointerlockerror:((this:Document,ev:Event)=>any)|null;onreadystatechange:((this:Document,ev:Event)=>any)|null;onvisibilitychange:((this:Document,ev:Event)=>any)|null;readonly ownerDocument:null;readonly pictureInPictureEnabled:boolean;readonly plugins:HTMLCollectionOf;readonly readyState:DocumentReadyState;readonly referrer:string;readonly rootElement:SVGSVGElement|null;readonly scripts:HTMLCollectionOf;readonly scrollingElement:Element|null;readonly timeline:DocumentTimeline;title:string;readonly visibilityState:DocumentVisibilityState;vlinkColor:string;adoptNode(node:T):T;captureEvents():void;caretRangeFromPoint(x:number,y:number):Range|null;clear():void;close():void;createAttribute(localName:string):Attr;createAttributeNS(namespace:string|null,qualifiedName:string):Attr;createCDATASection(data:string):CDATASection;createComment(data:string):Comment;createDocumentFragment():DocumentFragment;createElement(tagName:K,options?:ElementCreationOptions):HTMLElementTagNameMap[K];createElement(tagName:K,options?:ElementCreationOptions):HTMLElementDeprecatedTagNameMap[K];createElement(tagName:string,options?:ElementCreationOptions):HTMLElement;createElementNS(namespaceURI:"http://www.w3.org/1999/xhtml",qualifiedName:string):HTMLElement;createElementNS(namespaceURI:"http://www.w3.org/2000/svg",qualifiedName:K):SVGElementTagNameMap[K];createElementNS(namespaceURI:"http://www.w3.org/2000/svg",qualifiedName:string):SVGElement;createElementNS(namespaceURI:string|null,qualifiedName:string,options?:ElementCreationOptions):Element;createElementNS(namespace:string|null,qualifiedName:string,options?:string|ElementCreationOptions):Element;createEvent(eventInterface:"AnimationEvent"):AnimationEvent;createEvent(eventInterface:"AnimationPlaybackEvent"):AnimationPlaybackEvent;createEvent(eventInterface:"AudioProcessingEvent"):AudioProcessingEvent;createEvent(eventInterface:"BeforeUnloadEvent"):BeforeUnloadEvent;createEvent(eventInterface:"BlobEvent"):BlobEvent;createEvent(eventInterface:"ClipboardEvent"):ClipboardEvent;createEvent(eventInterface:"CloseEvent"):CloseEvent;createEvent(eventInterface:"CompositionEvent"):CompositionEvent;createEvent(eventInterface:"CustomEvent"):CustomEvent;createEvent(eventInterface:"DeviceMotionEvent"):DeviceMotionEvent;createEvent(eventInterface:"DeviceOrientationEvent"):DeviceOrientationEvent;createEvent(eventInterface:"DragEvent"):DragEvent;createEvent(eventInterface:"ErrorEvent"):ErrorEvent;createEvent(eventInterface:"Event"):Event;createEvent(eventInterface:"Events"):Event;createEvent(eventInterface:"FocusEvent"):FocusEvent;createEvent(eventInterface:"FontFaceSetLoadEvent"):FontFaceSetLoadEvent;createEvent(eventInterface:"FormDataEvent"):FormDataEvent;createEvent(eventInterface:"GamepadEvent"):GamepadEvent;createEvent(eventInterface:"HashChangeEvent"):HashChangeEvent;createEvent(eventInterface:"IDBVersionChangeEvent"):IDBVersionChangeEvent;createEvent(eventInterface:"InputEvent"):InputEvent;createEvent(eventInterface:"KeyboardEvent"):KeyboardEvent;createEvent(eventInterface:"MediaEncryptedEvent"):MediaEncryptedEvent;createEvent(eventInterface:"MediaKeyMessageEvent"):MediaKeyMessageEvent;createEvent(eventInterface:"MediaQueryListEvent"):MediaQueryListEvent;createEvent(eventInterface:"MediaStreamTrackEvent"):MediaStreamTrackEvent;createEvent(eventInterface:"MessageEvent"):MessageEvent;createEvent(eventInterface:"MouseEvent"):MouseEvent;createEvent(eventInterface:"MouseEvents"):MouseEvent;createEvent(eventInterface:"MutationEvent"):MutationEvent;createEvent(eventInterface:"MutationEvents"):MutationEvent;createEvent(eventInterface:"OfflineAudioCompletionEvent"):OfflineAudioCompletionEvent;createEvent(eventInterface:"PageTransitionEvent"):PageTransitionEvent;createEvent(eventInterface:"PaymentMethodChangeEvent"):PaymentMethodChangeEvent;createEvent(eventInterface:"PaymentRequestUpdateEvent"):PaymentRequestUpdateEvent;createEvent(eventInterface:"PictureInPictureEvent"):PictureInPictureEvent;createEvent(eventInterface:"PointerEvent"):PointerEvent;createEvent(eventInterface:"PopStateEvent"):PopStateEvent;createEvent(eventInterface:"ProgressEvent"):ProgressEvent;createEvent(eventInterface:"PromiseRejectionEvent"):PromiseRejectionEvent;createEvent(eventInterface:"RTCDTMFToneChangeEvent"):RTCDTMFToneChangeEvent;createEvent(eventInterface:"RTCDataChannelEvent"):RTCDataChannelEvent;createEvent(eventInterface:"RTCErrorEvent"):RTCErrorEvent;createEvent(eventInterface:"RTCPeerConnectionIceErrorEvent"):RTCPeerConnectionIceErrorEvent;createEvent(eventInterface:"RTCPeerConnectionIceEvent"):RTCPeerConnectionIceEvent;createEvent(eventInterface:"RTCTrackEvent"):RTCTrackEvent;createEvent(eventInterface:"SecurityPolicyViolationEvent"):SecurityPolicyViolationEvent;createEvent(eventInterface:"SpeechSynthesisErrorEvent"):SpeechSynthesisErrorEvent;createEvent(eventInterface:"SpeechSynthesisEvent"):SpeechSynthesisEvent;createEvent(eventInterface:"StorageEvent"):StorageEvent;createEvent(eventInterface:"SubmitEvent"):SubmitEvent;createEvent(eventInterface:"TouchEvent"):TouchEvent;createEvent(eventInterface:"TrackEvent"):TrackEvent;createEvent(eventInterface:"TransitionEvent"):TransitionEvent;createEvent(eventInterface:"UIEvent"):UIEvent;createEvent(eventInterface:"UIEvents"):UIEvent;createEvent(eventInterface:"WebGLContextEvent"):WebGLContextEvent;createEvent(eventInterface:"WheelEvent"):WheelEvent;createEvent(eventInterface:string):Event;createNodeIterator(root:Node,whatToShow?:number,filter?:NodeFilter|null):NodeIterator;createProcessingInstruction(target:string,data:string):ProcessingInstruction;createRange():Range;createTextNode(data:string):Text;createTreeWalker(root:Node,whatToShow?:number,filter?:NodeFilter|null):TreeWalker;execCommand(commandId:string,showUI?:boolean,value?:string):boolean;exitFullscreen():Promise;exitPictureInPicture():Promise;exitPointerLock():void;getElementById(elementId:string):HTMLElement|null;getElementsByClassName(classNames:string):HTMLCollectionOf;getElementsByName(elementName:string):NodeListOf;getElementsByTagName(qualifiedName:K):HTMLCollectionOf;getElementsByTagName(qualifiedName:K):HTMLCollectionOf;getElementsByTagName(qualifiedName:string):HTMLCollectionOf;getElementsByTagNameNS(namespaceURI:"http://www.w3.org/1999/xhtml",localName:string):HTMLCollectionOf;getElementsByTagNameNS(namespaceURI:"http://www.w3.org/2000/svg",localName:string):HTMLCollectionOf;getElementsByTagNameNS(namespace:string|null,localName:string):HTMLCollectionOf;getSelection():Selection|null;hasFocus():boolean;hasStorageAccess():Promise;importNode(node:T,deep?:boolean):T;open(unused1?:string,unused2?:string):Document;open(url:string|URL,name:string,features:string):WindowProxy|null;queryCommandEnabled(commandId:string):boolean;queryCommandIndeterm(commandId:string):boolean;queryCommandState(commandId:string):boolean;queryCommandSupported(commandId:string):boolean;queryCommandValue(commandId:string):string;releaseEvents():void;requestStorageAccess():Promise;write(...text:string[]):void;writeln(...text:string[]):void;addEventListener(type:K,listener:(this:Document,ev:DocumentEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(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(type:K,listener:(this:DocumentAndElementEventHandlers,ev:DocumentAndElementEventHandlersEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(type:K,listener:(this:DocumentAndElementEventHandlers,ev:DocumentAndElementEventHandlersEventMap[K])=>any,options?:boolean|EventListenerOptions):void;removeEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|EventListenerOptions):void;}interface DocumentFragment extends Node,NonElementParentNode,ParentNode{readonly ownerDocument:Document;getElementById(elementId:string):HTMLElement|null;}declare var DocumentFragment:{prototype:DocumentFragment;new():DocumentFragment;};interface DocumentOrShadowRoot{readonly activeElement:Element|null;adoptedStyleSheets:CSSStyleSheet[];readonly fullscreenElement:Element|null;readonly pictureInPictureElement:Element|null;readonly pointerLockElement:Element|null;readonly styleSheets:StyleSheetList;elementFromPoint(x:number,y:number):Element|null;elementsFromPoint(x:number,y:number):Element[];getAnimations():Animation[];}interface DocumentTimeline extends AnimationTimeline{}declare var DocumentTimeline:{prototype:DocumentTimeline;new(options?:DocumentTimelineOptions):DocumentTimeline;};interface DocumentType extends Node,ChildNode{readonly name:string;readonly ownerDocument:Document;readonly publicId:string;readonly systemId:string;}declare var DocumentType:{prototype:DocumentType;new():DocumentType;};interface DragEvent extends MouseEvent{readonly dataTransfer:DataTransfer|null;}declare var DragEvent:{prototype:DragEvent;new(type:string,eventInitDict?:DragEventInit):DragEvent;};interface DynamicsCompressorNode extends AudioNode{readonly attack:AudioParam;readonly knee:AudioParam;readonly ratio:AudioParam;readonly reduction:number;readonly release:AudioParam;readonly threshold:AudioParam;}declare var DynamicsCompressorNode:{prototype:DynamicsCompressorNode;new(context:BaseAudioContext,options?:DynamicsCompressorOptions):DynamicsCompressorNode;};interface EXT_blend_minmax{readonly MAX_EXT:GLenum;readonly MIN_EXT:GLenum;}interface EXT_color_buffer_float{}interface EXT_color_buffer_half_float{readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT:GLenum;readonly RGB16F_EXT:GLenum;readonly RGBA16F_EXT:GLenum;readonly UNSIGNED_NORMALIZED_EXT:GLenum;}interface EXT_float_blend{}interface EXT_frag_depth{}interface EXT_sRGB{readonly FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING_EXT:GLenum;readonly SRGB8_ALPHA8_EXT:GLenum;readonly SRGB_ALPHA_EXT:GLenum;readonly SRGB_EXT:GLenum;}interface EXT_shader_texture_lod{}interface EXT_texture_compression_bptc{readonly COMPRESSED_RGBA_BPTC_UNORM_EXT:GLenum;readonly COMPRESSED_RGB_BPTC_SIGNED_FLOAT_EXT:GLenum;readonly COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_EXT:GLenum;readonly COMPRESSED_SRGB_ALPHA_BPTC_UNORM_EXT:GLenum;}interface EXT_texture_compression_rgtc{readonly COMPRESSED_RED_GREEN_RGTC2_EXT:GLenum;readonly COMPRESSED_RED_RGTC1_EXT:GLenum;readonly COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT:GLenum;readonly COMPRESSED_SIGNED_RED_RGTC1_EXT:GLenum;}interface EXT_texture_filter_anisotropic{readonly MAX_TEXTURE_MAX_ANISOTROPY_EXT:GLenum;readonly TEXTURE_MAX_ANISOTROPY_EXT:GLenum;}interface EXT_texture_norm16{readonly R16_EXT:GLenum;readonly R16_SNORM_EXT:GLenum;readonly RG16_EXT:GLenum;readonly RG16_SNORM_EXT:GLenum;readonly RGB16_EXT:GLenum;readonly RGB16_SNORM_EXT:GLenum;readonly RGBA16_EXT:GLenum;readonly RGBA16_SNORM_EXT:GLenum;}interface ElementEventMap{"fullscreenchange":Event;"fullscreenerror":Event;}interface Element extends Node,ARIAMixin,Animatable,ChildNode,InnerHTML,NonDocumentTypeChildNode,ParentNode,Slottable{readonly attributes:NamedNodeMap;readonly classList:DOMTokenList;className:string;readonly clientHeight:number;readonly clientLeft:number;readonly clientTop:number;readonly clientWidth:number;id:string;readonly localName:string;readonly namespaceURI:string|null;onfullscreenchange:((this:Element,ev:Event)=>any)|null;onfullscreenerror:((this:Element,ev:Event)=>any)|null;outerHTML:string;readonly ownerDocument:Document;readonly part:DOMTokenList;readonly prefix:string|null;readonly scrollHeight:number;scrollLeft:number;scrollTop:number;readonly scrollWidth:number;readonly shadowRoot:ShadowRoot|null;slot:string;readonly tagName:string;attachShadow(init:ShadowRootInit):ShadowRoot;closest(selector:K):HTMLElementTagNameMap[K]|null;closest(selector:K):SVGElementTagNameMap[K]|null;closest(selectors:string):E|null;getAttribute(qualifiedName:string):string|null;getAttributeNS(namespace:string|null,localName:string):string|null;getAttributeNames():string[];getAttributeNode(qualifiedName:string):Attr|null;getAttributeNodeNS(namespace:string|null,localName:string):Attr|null;getBoundingClientRect():DOMRect;getClientRects():DOMRectList;getElementsByClassName(classNames:string):HTMLCollectionOf;getElementsByTagName(qualifiedName:K):HTMLCollectionOf;getElementsByTagName(qualifiedName:K):HTMLCollectionOf;getElementsByTagName(qualifiedName:string):HTMLCollectionOf;getElementsByTagNameNS(namespaceURI:"http://www.w3.org/1999/xhtml",localName:string):HTMLCollectionOf;getElementsByTagNameNS(namespaceURI:"http://www.w3.org/2000/svg",localName:string):HTMLCollectionOf;getElementsByTagNameNS(namespace:string|null,localName:string):HTMLCollectionOf;hasAttribute(qualifiedName:string):boolean;hasAttributeNS(namespace:string|null,localName:string):boolean;hasAttributes():boolean;hasPointerCapture(pointerId:number):boolean;insertAdjacentElement(where:InsertPosition,element:Element):Element|null;insertAdjacentHTML(position:InsertPosition,text:string):void;insertAdjacentText(where:InsertPosition,data:string):void;matches(selectors:string):boolean;releasePointerCapture(pointerId:number):void;removeAttribute(qualifiedName:string):void;removeAttributeNS(namespace:string|null,localName:string):void;removeAttributeNode(attr:Attr):Attr;requestFullscreen(options?:FullscreenOptions):Promise;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;setAttribute(qualifiedName:string,value:string):void;setAttributeNS(namespace:string|null,qualifiedName:string,value:string):void;setAttributeNode(attr:Attr):Attr|null;setAttributeNodeNS(attr:Attr):Attr|null;setPointerCapture(pointerId:number):void;toggleAttribute(qualifiedName:string,force?:boolean):boolean;webkitMatchesSelector(selectors:string):boolean;addEventListener(type:K,listener:(this:Element,ev:ElementEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(type:K,listener:(this:Element,ev:ElementEventMap[K])=>any,options?:boolean|EventListenerOptions):void;removeEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|EventListenerOptions):void;}declare var Element:{prototype:Element;new():Element;};interface ElementCSSInlineStyle{readonly style:CSSStyleDeclaration;}interface ElementContentEditable{contentEditable:string;enterKeyHint:string;inputMode:string;readonly isContentEditable:boolean;}interface ElementInternals extends ARIAMixin{readonly form:HTMLFormElement|null;readonly labels:NodeList;readonly shadowRoot:ShadowRoot|null;readonly validationMessage:string;readonly validity:ValidityState;readonly willValidate:boolean;checkValidity():boolean;reportValidity():boolean;setFormValue(value:File|string|FormData|null,state?:File|string|FormData|null):void;setValidity(flags?:ValidityStateFlags,message?:string,anchor?:HTMLElement):void;}declare var ElementInternals:{prototype:ElementInternals;new():ElementInternals;};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;};interface Event{readonly bubbles:boolean;cancelBubble:boolean;readonly cancelable:boolean;readonly composed:boolean;readonly currentTarget:EventTarget|null;readonly defaultPrevented:boolean;readonly eventPhase:number;readonly isTrusted:boolean;returnValue:boolean;readonly srcElement:EventTarget|null;readonly target:EventTarget|null;readonly timeStamp:DOMHighResTimeStamp;readonly type:string;composedPath():EventTarget[];initEvent(type:string,bubbles?:boolean,cancelable?:boolean):void;preventDefault():void;stopImmediatePropagation():void;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 EventCounts{forEach(callbackfn:(value:number,key:string,parent:EventCounts)=>void,thisArg?:any):void;}declare var EventCounts:{prototype:EventCounts;new():EventCounts;};interface EventListener{(evt:Event):void;}interface EventListenerObject{handleEvent(object:Event):void;}interface EventSourceEventMap{"error":Event;"message":MessageEvent;"open":Event;}interface EventSource extends EventTarget{onerror:((this:EventSource,ev:Event)=>any)|null;onmessage:((this:EventSource,ev:MessageEvent)=>any)|null;onopen:((this:EventSource,ev:Event)=>any)|null;readonly readyState:number;readonly url:string;readonly withCredentials:boolean;close():void;readonly CLOSED:number;readonly CONNECTING:number;readonly OPEN:number;addEventListener(type:K,listener:(this:EventSource,ev:EventSourceEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:(this:EventSource,event:MessageEvent)=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(type:K,listener:(this:EventSource,ev:EventSourceEventMap[K])=>any,options?:boolean|EventListenerOptions):void;removeEventListener(type:string,listener:(this:EventSource,event:MessageEvent)=>any,options?:boolean|EventListenerOptions):void;removeEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|EventListenerOptions):void;}declare var EventSource:{prototype:EventSource;new(url:string|URL,eventSourceInitDict?:EventSourceInit):EventSource;readonly CLOSED:number;readonly CONNECTING:number;readonly OPEN:number;};interface EventTarget{addEventListener(type:string,callback:EventListenerOrEventListenerObject|null,options?:AddEventListenerOptions|boolean):void;dispatchEvent(event:Event):boolean;removeEventListener(type:string,callback:EventListenerOrEventListenerObject|null,options?:EventListenerOptions|boolean):void;}declare var EventTarget:{prototype:EventTarget;new():EventTarget;};interface External{AddSearchProvider():void;IsSearchProviderInstalled():void;}declare var External:{prototype:External;new():External;};interface File extends Blob{readonly lastModified:number;readonly name:string;readonly webkitRelativePath:string;}declare var File:{prototype:File;new(fileBits:BlobPart[],fileName:string,options?:FilePropertyBag):File;};interface FileList{readonly length:number;item(index:number):File|null;[index:number]:File;}declare var FileList:{prototype:FileList;new():FileList;};interface FileReaderEventMap{"abort":ProgressEvent;"error":ProgressEvent;"load":ProgressEvent;"loadend":ProgressEvent;"loadstart":ProgressEvent;"progress":ProgressEvent;}interface FileReader extends EventTarget{readonly error:DOMException|null;onabort:((this:FileReader,ev:ProgressEvent)=>any)|null;onerror:((this:FileReader,ev:ProgressEvent)=>any)|null;onload:((this:FileReader,ev:ProgressEvent)=>any)|null;onloadend:((this:FileReader,ev:ProgressEvent)=>any)|null;onloadstart:((this:FileReader,ev:ProgressEvent)=>any)|null;onprogress:((this:FileReader,ev:ProgressEvent)=>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(type:K,listener:(this:FileReader,ev:FileReaderEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(type:K,listener:(this:FileReader,ev:FileReaderEventMap[K])=>any,options?:boolean|EventListenerOptions):void;removeEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|EventListenerOptions):void;}declare var FileReader:{prototype:FileReader;new():FileReader;readonly DONE:number;readonly EMPTY:number;readonly LOADING:number;};interface FileSystem{readonly name:string;readonly root:FileSystemDirectoryEntry;}declare var FileSystem:{prototype:FileSystem;new():FileSystem;};interface FileSystemDirectoryEntry extends FileSystemEntry{createReader():FileSystemDirectoryReader;getDirectory(path?:string|null,options?:FileSystemFlags,successCallback?:FileSystemEntryCallback,errorCallback?:ErrorCallback):void;getFile(path?:string|null,options?:FileSystemFlags,successCallback?:FileSystemEntryCallback,errorCallback?:ErrorCallback):void;}declare var FileSystemDirectoryEntry:{prototype:FileSystemDirectoryEntry;new():FileSystemDirectoryEntry;};interface FileSystemDirectoryHandle extends FileSystemHandle{readonly kind:"directory";getDirectoryHandle(name:string,options?:FileSystemGetDirectoryOptions):Promise;getFileHandle(name:string,options?:FileSystemGetFileOptions):Promise;removeEntry(name:string,options?:FileSystemRemoveOptions):Promise;resolve(possibleDescendant:FileSystemHandle):Promise;}declare var FileSystemDirectoryHandle:{prototype:FileSystemDirectoryHandle;new():FileSystemDirectoryHandle;};interface FileSystemDirectoryReader{readEntries(successCallback:FileSystemEntriesCallback,errorCallback?:ErrorCallback):void;}declare var FileSystemDirectoryReader:{prototype:FileSystemDirectoryReader;new():FileSystemDirectoryReader;};interface FileSystemEntry{readonly filesystem:FileSystem;readonly fullPath:string;readonly isDirectory:boolean;readonly isFile:boolean;readonly name:string;getParent(successCallback?:FileSystemEntryCallback,errorCallback?:ErrorCallback):void;}declare var FileSystemEntry:{prototype:FileSystemEntry;new():FileSystemEntry;};interface FileSystemFileEntry extends FileSystemEntry{file(successCallback:FileCallback,errorCallback?:ErrorCallback):void;}declare var FileSystemFileEntry:{prototype:FileSystemFileEntry;new():FileSystemFileEntry;};interface FileSystemFileHandle extends FileSystemHandle{readonly kind:"file";getFile():Promise;}declare var FileSystemFileHandle:{prototype:FileSystemFileHandle;new():FileSystemFileHandle;};interface FileSystemHandle{readonly kind:FileSystemHandleKind;readonly name:string;isSameEntry(other:FileSystemHandle):Promise;}declare var FileSystemHandle:{prototype:FileSystemHandle;new():FileSystemHandle;};interface FocusEvent extends UIEvent{readonly relatedTarget:EventTarget|null;}declare var FocusEvent:{prototype:FocusEvent;new(type:string,eventInitDict?:FocusEventInit):FocusEvent;};interface FontFace{ascentOverride:string;descentOverride:string;display:string;family:string;featureSettings:string;lineGapOverride:string;readonly loaded:Promise;readonly status:FontFaceLoadStatus;stretch:string;style:string;unicodeRange:string;variant:string;variationSettings:string;weight:string;load():Promise;}declare var FontFace:{prototype:FontFace;new(family:string,source:string|BinaryData,descriptors?:FontFaceDescriptors):FontFace;};interface FontFaceSetEventMap{"loading":Event;"loadingdone":Event;"loadingerror":Event;}interface FontFaceSet extends EventTarget{onloading:((this:FontFaceSet,ev:Event)=>any)|null;onloadingdone:((this:FontFaceSet,ev:Event)=>any)|null;onloadingerror:((this:FontFaceSet,ev:Event)=>any)|null;readonly ready:Promise;readonly status:FontFaceSetLoadStatus;check(font:string,text?:string):boolean;load(font:string,text?:string):Promise;forEach(callbackfn:(value:FontFace,key:FontFace,parent:FontFaceSet)=>void,thisArg?:any):void;addEventListener(type:K,listener:(this:FontFaceSet,ev:FontFaceSetEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(type:K,listener:(this:FontFaceSet,ev:FontFaceSetEventMap[K])=>any,options?:boolean|EventListenerOptions):void;removeEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|EventListenerOptions):void;}declare var FontFaceSet:{prototype:FontFaceSet;new(initialFaces:FontFace[]):FontFaceSet;};interface FontFaceSetLoadEvent extends Event{readonly fontfaces:ReadonlyArray;}declare var FontFaceSetLoadEvent:{prototype:FontFaceSetLoadEvent;new(type:string,eventInitDict?:FontFaceSetLoadEventInit):FontFaceSetLoadEvent;};interface FontFaceSource{readonly fonts:FontFaceSet;}interface FormData{append(name:string,value:string|Blob,fileName?:string):void;delete(name:string):void;get(name:string):FormDataEntryValue|null;getAll(name:string):FormDataEntryValue[];has(name:string):boolean;set(name:string,value:string|Blob,fileName?:string):void;forEach(callbackfn:(value:FormDataEntryValue,key:string,parent:FormData)=>void,thisArg?:any):void;}declare var FormData:{prototype:FormData;new(form?:HTMLFormElement):FormData;};interface FormDataEvent extends Event{readonly formData:FormData;}declare var FormDataEvent:{prototype:FormDataEvent;new(type:string,eventInitDict:FormDataEventInit):FormDataEvent;};interface GainNode extends AudioNode{readonly gain:AudioParam;}declare var GainNode:{prototype:GainNode;new(context:BaseAudioContext,options?:GainOptions):GainNode;};interface Gamepad{readonly axes:ReadonlyArray;readonly buttons:ReadonlyArray;readonly connected:boolean;readonly hapticActuators:ReadonlyArray;readonly id:string;readonly index:number;readonly mapping:GamepadMappingType;readonly timestamp:DOMHighResTimeStamp;}declare var Gamepad:{prototype:Gamepad;new():Gamepad;};interface GamepadButton{readonly pressed:boolean;readonly touched:boolean;readonly value:number;}declare var GamepadButton:{prototype:GamepadButton;new():GamepadButton;};interface GamepadEvent extends Event{readonly gamepad:Gamepad;}declare var GamepadEvent:{prototype:GamepadEvent;new(type:string,eventInitDict:GamepadEventInit):GamepadEvent;};interface GamepadHapticActuator{readonly type:GamepadHapticActuatorType;}declare var GamepadHapticActuator:{prototype:GamepadHapticActuator;new():GamepadHapticActuator;};interface GenericTransformStream{readonly readable:ReadableStream;readonly writable:WritableStream;}interface Geolocation{clearWatch(watchId:number):void;getCurrentPosition(successCallback:PositionCallback,errorCallback?:PositionErrorCallback|null,options?:PositionOptions):void;watchPosition(successCallback:PositionCallback,errorCallback?:PositionErrorCallback|null,options?:PositionOptions):number;}declare var Geolocation:{prototype:Geolocation;new():Geolocation;};interface GeolocationCoordinates{readonly accuracy:number;readonly altitude:number|null;readonly altitudeAccuracy:number|null;readonly heading:number|null;readonly latitude:number;readonly longitude:number;readonly speed:number|null;}declare var GeolocationCoordinates:{prototype:GeolocationCoordinates;new():GeolocationCoordinates;};interface GeolocationPosition{readonly coords:GeolocationCoordinates;readonly timestamp:EpochTimeStamp;}declare var GeolocationPosition:{prototype:GeolocationPosition;new():GeolocationPosition;};interface GeolocationPositionError{readonly code:number;readonly message:string;readonly PERMISSION_DENIED:number;readonly POSITION_UNAVAILABLE:number;readonly TIMEOUT:number;}declare var GeolocationPositionError:{prototype:GeolocationPositionError;new():GeolocationPositionError;readonly PERMISSION_DENIED:number;readonly POSITION_UNAVAILABLE:number;readonly TIMEOUT:number;};interface GlobalEventHandlersEventMap{"abort":UIEvent;"animationcancel":AnimationEvent;"animationend":AnimationEvent;"animationiteration":AnimationEvent;"animationstart":AnimationEvent;"auxclick":MouseEvent;"beforeinput":InputEvent;"blur":FocusEvent;"cancel":Event;"canplay":Event;"canplaythrough":Event;"change":Event;"click":MouseEvent;"close":Event;"compositionend":CompositionEvent;"compositionstart":CompositionEvent;"compositionupdate":CompositionEvent;"contextmenu":MouseEvent;"cuechange":Event;"dblclick":MouseEvent;"drag":DragEvent;"dragend":DragEvent;"dragenter":DragEvent;"dragleave":DragEvent;"dragover":DragEvent;"dragstart":DragEvent;"drop":DragEvent;"durationchange":Event;"emptied":Event;"ended":Event;"error":ErrorEvent;"focus":FocusEvent;"focusin":FocusEvent;"focusout":FocusEvent;"formdata":FormDataEvent;"gotpointercapture":PointerEvent;"input":Event;"invalid":Event;"keydown":KeyboardEvent;"keypress":KeyboardEvent;"keyup":KeyboardEvent;"load":Event;"loadeddata":Event;"loadedmetadata":Event;"loadstart":Event;"lostpointercapture":PointerEvent;"mousedown":MouseEvent;"mouseenter":MouseEvent;"mouseleave":MouseEvent;"mousemove":MouseEvent;"mouseout":MouseEvent;"mouseover":MouseEvent;"mouseup":MouseEvent;"pause":Event;"play":Event;"playing":Event;"pointercancel":PointerEvent;"pointerdown":PointerEvent;"pointerenter":PointerEvent;"pointerleave":PointerEvent;"pointermove":PointerEvent;"pointerout":PointerEvent;"pointerover":PointerEvent;"pointerup":PointerEvent;"progress":ProgressEvent;"ratechange":Event;"reset":Event;"resize":UIEvent;"scroll":Event;"securitypolicyviolation":SecurityPolicyViolationEvent;"seeked":Event;"seeking":Event;"select":Event;"selectionchange":Event;"selectstart":Event;"slotchange":Event;"stalled":Event;"submit":SubmitEvent;"suspend":Event;"timeupdate":Event;"toggle":Event;"touchcancel":TouchEvent;"touchend":TouchEvent;"touchmove":TouchEvent;"touchstart":TouchEvent;"transitioncancel":TransitionEvent;"transitionend":TransitionEvent;"transitionrun":TransitionEvent;"transitionstart":TransitionEvent;"volumechange":Event;"waiting":Event;"webkitanimationend":Event;"webkitanimationiteration":Event;"webkitanimationstart":Event;"webkittransitionend":Event;"wheel":WheelEvent;}interface GlobalEventHandlers{onabort:((this:GlobalEventHandlers,ev:UIEvent)=>any)|null;onanimationcancel:((this:GlobalEventHandlers,ev:AnimationEvent)=>any)|null;onanimationend:((this:GlobalEventHandlers,ev:AnimationEvent)=>any)|null;onanimationiteration:((this:GlobalEventHandlers,ev:AnimationEvent)=>any)|null;onanimationstart:((this:GlobalEventHandlers,ev:AnimationEvent)=>any)|null;onauxclick:((this:GlobalEventHandlers,ev:MouseEvent)=>any)|null;onbeforeinput:((this:GlobalEventHandlers,ev:InputEvent)=>any)|null;onblur:((this:GlobalEventHandlers,ev:FocusEvent)=>any)|null;oncancel:((this:GlobalEventHandlers,ev:Event)=>any)|null;oncanplay:((this:GlobalEventHandlers,ev:Event)=>any)|null;oncanplaythrough:((this:GlobalEventHandlers,ev:Event)=>any)|null;onchange:((this:GlobalEventHandlers,ev:Event)=>any)|null;onclick:((this:GlobalEventHandlers,ev:MouseEvent)=>any)|null;onclose:((this:GlobalEventHandlers,ev:Event)=>any)|null;oncontextmenu:((this:GlobalEventHandlers,ev:MouseEvent)=>any)|null;oncuechange:((this:GlobalEventHandlers,ev:Event)=>any)|null;ondblclick:((this:GlobalEventHandlers,ev:MouseEvent)=>any)|null;ondrag:((this:GlobalEventHandlers,ev:DragEvent)=>any)|null;ondragend:((this:GlobalEventHandlers,ev:DragEvent)=>any)|null;ondragenter:((this:GlobalEventHandlers,ev:DragEvent)=>any)|null;ondragleave:((this:GlobalEventHandlers,ev:DragEvent)=>any)|null;ondragover:((this:GlobalEventHandlers,ev:DragEvent)=>any)|null;ondragstart:((this:GlobalEventHandlers,ev:DragEvent)=>any)|null;ondrop:((this:GlobalEventHandlers,ev:DragEvent)=>any)|null;ondurationchange:((this:GlobalEventHandlers,ev:Event)=>any)|null;onemptied:((this:GlobalEventHandlers,ev:Event)=>any)|null;onended:((this:GlobalEventHandlers,ev:Event)=>any)|null;onerror:OnErrorEventHandler;onfocus:((this:GlobalEventHandlers,ev:FocusEvent)=>any)|null;onformdata:((this:GlobalEventHandlers,ev:FormDataEvent)=>any)|null;ongotpointercapture:((this:GlobalEventHandlers,ev:PointerEvent)=>any)|null;oninput:((this:GlobalEventHandlers,ev:Event)=>any)|null;oninvalid:((this:GlobalEventHandlers,ev:Event)=>any)|null;onkeydown:((this:GlobalEventHandlers,ev:KeyboardEvent)=>any)|null;onkeypress:((this:GlobalEventHandlers,ev:KeyboardEvent)=>any)|null;onkeyup:((this:GlobalEventHandlers,ev:KeyboardEvent)=>any)|null;onload:((this:GlobalEventHandlers,ev:Event)=>any)|null;onloadeddata:((this:GlobalEventHandlers,ev:Event)=>any)|null;onloadedmetadata:((this:GlobalEventHandlers,ev:Event)=>any)|null;onloadstart:((this:GlobalEventHandlers,ev:Event)=>any)|null;onlostpointercapture:((this:GlobalEventHandlers,ev:PointerEvent)=>any)|null;onmousedown:((this:GlobalEventHandlers,ev:MouseEvent)=>any)|null;onmouseenter:((this:GlobalEventHandlers,ev:MouseEvent)=>any)|null;onmouseleave:((this:GlobalEventHandlers,ev:MouseEvent)=>any)|null;onmousemove:((this:GlobalEventHandlers,ev:MouseEvent)=>any)|null;onmouseout:((this:GlobalEventHandlers,ev:MouseEvent)=>any)|null;onmouseover:((this:GlobalEventHandlers,ev:MouseEvent)=>any)|null;onmouseup:((this:GlobalEventHandlers,ev:MouseEvent)=>any)|null;onpause:((this:GlobalEventHandlers,ev:Event)=>any)|null;onplay:((this:GlobalEventHandlers,ev:Event)=>any)|null;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;onprogress:((this:GlobalEventHandlers,ev:ProgressEvent)=>any)|null;onratechange:((this:GlobalEventHandlers,ev:Event)=>any)|null;onreset:((this:GlobalEventHandlers,ev:Event)=>any)|null;onresize:((this:GlobalEventHandlers,ev:UIEvent)=>any)|null;onscroll:((this:GlobalEventHandlers,ev:Event)=>any)|null;onsecuritypolicyviolation:((this:GlobalEventHandlers,ev:SecurityPolicyViolationEvent)=>any)|null;onseeked:((this:GlobalEventHandlers,ev:Event)=>any)|null;onseeking:((this:GlobalEventHandlers,ev:Event)=>any)|null;onselect:((this:GlobalEventHandlers,ev:Event)=>any)|null;onselectionchange:((this:GlobalEventHandlers,ev:Event)=>any)|null;onselectstart:((this:GlobalEventHandlers,ev:Event)=>any)|null;onslotchange:((this:GlobalEventHandlers,ev:Event)=>any)|null;onstalled:((this:GlobalEventHandlers,ev:Event)=>any)|null;onsubmit:((this:GlobalEventHandlers,ev:SubmitEvent)=>any)|null;onsuspend:((this:GlobalEventHandlers,ev:Event)=>any)|null;ontimeupdate:((this:GlobalEventHandlers,ev:Event)=>any)|null;ontoggle:((this:GlobalEventHandlers,ev:Event)=>any)|null;ontouchcancel?:((this:GlobalEventHandlers,ev:TouchEvent)=>any)|null|undefined;ontouchend?:((this:GlobalEventHandlers,ev:TouchEvent)=>any)|null|undefined;ontouchmove?:((this:GlobalEventHandlers,ev:TouchEvent)=>any)|null|undefined;ontouchstart?:((this:GlobalEventHandlers,ev:TouchEvent)=>any)|null|undefined;ontransitioncancel:((this:GlobalEventHandlers,ev:TransitionEvent)=>any)|null;ontransitionend:((this:GlobalEventHandlers,ev:TransitionEvent)=>any)|null;ontransitionrun:((this:GlobalEventHandlers,ev:TransitionEvent)=>any)|null;ontransitionstart:((this:GlobalEventHandlers,ev:TransitionEvent)=>any)|null;onvolumechange:((this:GlobalEventHandlers,ev:Event)=>any)|null;onwaiting:((this:GlobalEventHandlers,ev:Event)=>any)|null;onwebkitanimationend:((this:GlobalEventHandlers,ev:Event)=>any)|null;onwebkitanimationiteration:((this:GlobalEventHandlers,ev:Event)=>any)|null;onwebkitanimationstart:((this:GlobalEventHandlers,ev:Event)=>any)|null;onwebkittransitionend:((this:GlobalEventHandlers,ev:Event)=>any)|null;onwheel:((this:GlobalEventHandlers,ev:WheelEvent)=>any)|null;addEventListener(type:K,listener:(this:GlobalEventHandlers,ev:GlobalEventHandlersEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(type:K,listener:(this:GlobalEventHandlers,ev:GlobalEventHandlersEventMap[K])=>any,options?:boolean|EventListenerOptions):void;removeEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|EventListenerOptions):void;}interface HTMLAllCollection{readonly length:number;item(nameOrIndex?:string):HTMLCollection|Element|null;namedItem(name:string):HTMLCollection|Element|null;[index:number]:Element;}declare var HTMLAllCollection:{prototype:HTMLAllCollection;new():HTMLAllCollection;};interface HTMLAnchorElement extends HTMLElement,HTMLHyperlinkElementUtils{charset:string;coords:string;download:string;hreflang:string;name:string;ping:string;referrerPolicy:string;rel:string;readonly relList:DOMTokenList;rev:string;shape:string;target:string;text:string;type:string;addEventListener(type:K,listener:(this:HTMLAnchorElement,ev:HTMLElementEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(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 HTMLAreaElement extends HTMLElement,HTMLHyperlinkElementUtils{alt:string;coords:string;download:string;noHref:boolean;ping:string;referrerPolicy:string;rel:string;readonly relList:DOMTokenList;shape:string;target:string;addEventListener(type:K,listener:(this:HTMLAreaElement,ev:HTMLElementEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(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;};interface HTMLAudioElement extends HTMLMediaElement{addEventListener(type:K,listener:(this:HTMLAudioElement,ev:HTMLMediaElementEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(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;};interface HTMLBRElement extends HTMLElement{clear:string;addEventListener(type:K,listener:(this:HTMLBRElement,ev:HTMLElementEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(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;};interface HTMLBaseElement extends HTMLElement{href:string;target:string;addEventListener(type:K,listener:(this:HTMLBaseElement,ev:HTMLElementEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(type:K,listener:(this:HTMLBaseElement,ev:HTMLElementEventMap[K])=>any,options?:boolean|EventListenerOptions):void;removeEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|EventListenerOptions):void;}declare var HTMLBaseElement:{prototype:HTMLBaseElement;new():HTMLBaseElement;};interface HTMLBodyElementEventMap extends HTMLElementEventMap,WindowEventHandlersEventMap{}interface HTMLBodyElement extends HTMLElement,WindowEventHandlers{aLink:string;background:string;bgColor:string;link:string;text:string;vLink:string;addEventListener(type:K,listener:(this:HTMLBodyElement,ev:HTMLBodyElementEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(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;};interface HTMLButtonElement extends HTMLElement{disabled:boolean;readonly form:HTMLFormElement|null;formAction:string;formEnctype:string;formMethod:string;formNoValidate:boolean;formTarget:string;readonly labels:NodeListOf;name:string;type:string;readonly validationMessage:string;readonly validity:ValidityState;value:string;readonly willValidate:boolean;checkValidity():boolean;reportValidity():boolean;setCustomValidity(error:string):void;addEventListener(type:K,listener:(this:HTMLButtonElement,ev:HTMLElementEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(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;};interface HTMLCanvasElement extends HTMLElement{height:number;width:number;captureStream(frameRequestRate?:number):MediaStream;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;toDataURL(type?:string,quality?:any):string;transferControlToOffscreen():OffscreenCanvas;addEventListener(type:K,listener:(this:HTMLCanvasElement,ev:HTMLElementEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(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;};interface HTMLCollectionBase{readonly length:number;item(index:number):Element|null;[index:number]:Element;}interface HTMLCollection extends HTMLCollectionBase{namedItem(name:string):Element|null;}declare var HTMLCollection:{prototype:HTMLCollection;new():HTMLCollection;};interface HTMLCollectionOfextends HTMLCollectionBase{item(index:number):T|null;namedItem(name:string):T|null;[index:number]:T;}interface HTMLDListElement extends HTMLElement{compact:boolean;addEventListener(type:K,listener:(this:HTMLDListElement,ev:HTMLElementEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(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;};interface HTMLDataElement extends HTMLElement{value:string;addEventListener(type:K,listener:(this:HTMLDataElement,ev:HTMLElementEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(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;};interface HTMLDataListElement extends HTMLElement{readonly options:HTMLCollectionOf;addEventListener(type:K,listener:(this:HTMLDataListElement,ev:HTMLElementEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(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(type:K,listener:(this:HTMLDetailsElement,ev:HTMLElementEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(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(type:K,listener:(this:HTMLDialogElement,ev:HTMLElementEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(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{compact:boolean;addEventListener(type:K,listener:(this:HTMLDirectoryElement,ev:HTMLElementEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(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;};interface HTMLDivElement extends HTMLElement{align:string;addEventListener(type:K,listener:(this:HTMLDivElement,ev:HTMLElementEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(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;};interface HTMLDocument extends Document{addEventListener(type:K,listener:(this:HTMLDocument,ev:DocumentEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(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,DocumentAndElementEventHandlersEventMap,GlobalEventHandlersEventMap{}interface HTMLElement extends Element,DocumentAndElementEventHandlers,ElementCSSInlineStyle,ElementContentEditable,GlobalEventHandlers,HTMLOrSVGElement{accessKey:string;readonly accessKeyLabel:string;autocapitalize:string;dir:string;draggable:boolean;hidden:boolean;inert:boolean;innerText:string;lang:string;readonly offsetHeight:number;readonly offsetLeft:number;readonly offsetParent:Element|null;readonly offsetTop:number;readonly offsetWidth:number;outerText:string;spellcheck:boolean;title:string;translate:boolean;attachInternals():ElementInternals;click():void;addEventListener(type:K,listener:(this:HTMLElement,ev:HTMLElementEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(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;};interface HTMLEmbedElement extends HTMLElement{align:string;height:string;name:string;src:string;type:string;width:string;getSVGDocument():Document|null;addEventListener(type:K,listener:(this:HTMLEmbedElement,ev:HTMLElementEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(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;};interface HTMLFieldSetElement extends HTMLElement{disabled:boolean;readonly elements:HTMLCollection;readonly form:HTMLFormElement|null;name:string;readonly type:string;readonly validationMessage:string;readonly validity:ValidityState;readonly willValidate:boolean;checkValidity():boolean;reportValidity():boolean;setCustomValidity(error:string):void;addEventListener(type:K,listener:(this:HTMLFieldSetElement,ev:HTMLElementEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(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;};interface HTMLFontElement extends HTMLElement{color:string;face:string;size:string;addEventListener(type:K,listener:(this:HTMLFontElement,ev:HTMLElementEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(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;};interface HTMLFormControlsCollection extends HTMLCollectionBase{namedItem(name:string):RadioNodeList|Element|null;}declare var HTMLFormControlsCollection:{prototype:HTMLFormControlsCollection;new():HTMLFormControlsCollection;};interface HTMLFormElement extends HTMLElement{acceptCharset:string;action:string;autocomplete:string;readonly elements:HTMLFormControlsCollection;encoding:string;enctype:string;readonly length:number;method:string;name:string;noValidate:boolean;target:string;checkValidity():boolean;reportValidity():boolean;requestSubmit(submitter?:HTMLElement|null):void;reset():void;submit():void;addEventListener(type:K,listener:(this:HTMLFormElement,ev:HTMLElementEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(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{readonly contentDocument:Document|null;readonly contentWindow:WindowProxy|null;frameBorder:string;longDesc:string;marginHeight:string;marginWidth:string;name:string;noResize:boolean;scrolling:string;src:string;addEventListener(type:K,listener:(this:HTMLFrameElement,ev:HTMLElementEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(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{}interface HTMLFrameSetElement extends HTMLElement,WindowEventHandlers{cols:string;rows:string;addEventListener(type:K,listener:(this:HTMLFrameSetElement,ev:HTMLFrameSetElementEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(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;};interface HTMLHRElement extends HTMLElement{align:string;color:string;noShade:boolean;size:string;width:string;addEventListener(type:K,listener:(this:HTMLHRElement,ev:HTMLElementEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(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;};interface HTMLHeadElement extends HTMLElement{addEventListener(type:K,listener:(this:HTMLHeadElement,ev:HTMLElementEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(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;};interface HTMLHeadingElement extends HTMLElement{align:string;addEventListener(type:K,listener:(this:HTMLHeadingElement,ev:HTMLElementEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(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;};interface HTMLHtmlElement extends HTMLElement{version:string;addEventListener(type:K,listener:(this:HTMLHtmlElement,ev:HTMLElementEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(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;toString():string;readonly origin:string;password:string;pathname:string;port:string;protocol:string;search:string;username:string;}interface HTMLIFrameElement extends HTMLElement{align:string;allow:string;allowFullscreen:boolean;readonly contentDocument:Document|null;readonly contentWindow:WindowProxy|null;frameBorder:string;height:string;longDesc:string;marginHeight:string;marginWidth:string;name:string;referrerPolicy:ReferrerPolicy;readonly sandbox:DOMTokenList;scrolling:string;src:string;srcdoc:string;width:string;getSVGDocument():Document|null;addEventListener(type:K,listener:(this:HTMLIFrameElement,ev:HTMLElementEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(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;};interface HTMLImageElement extends HTMLElement{align:string;alt:string;border:string;readonly complete:boolean;crossOrigin:string|null;readonly currentSrc:string;decoding:"async"|"sync"|"auto";height:number;hspace:number;isMap:boolean;loading:"eager"|"lazy";longDesc:string;lowsrc:string;name:string;readonly naturalHeight:number;readonly naturalWidth:number;referrerPolicy:string;sizes:string;src:string;srcset:string;useMap:string;vspace:number;width:number;readonly x:number;readonly y:number;decode():Promise;addEventListener(type:K,listener:(this:HTMLImageElement,ev:HTMLElementEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(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;};interface HTMLInputElement extends HTMLElement{accept:string;align:string;alt:string;autocomplete:string;capture:string;checked:boolean;defaultChecked:boolean;defaultValue:string;dirName:string;disabled:boolean;files:FileList|null;readonly form:HTMLFormElement|null;formAction:string;formEnctype:string;formMethod:string;formNoValidate:boolean;formTarget:string;height:number;indeterminate:boolean;readonly labels:NodeListOf|null;readonly list:HTMLElement|null;max:string;maxLength:number;min:string;minLength:number;multiple:boolean;name:string;pattern:string;placeholder:string;readOnly:boolean;required:boolean;selectionDirection:"forward"|"backward"|"none"|null;selectionEnd:number|null;selectionStart:number|null;size:number;src:string;step:string;type:string;useMap:string;readonly validationMessage:string;readonly validity:ValidityState;value:string;valueAsDate:Date|null;valueAsNumber:number;readonly webkitEntries:ReadonlyArray;webkitdirectory:boolean;width:number;readonly willValidate:boolean;checkValidity():boolean;reportValidity():boolean;select():void;setCustomValidity(error:string):void;setRangeText(replacement:string):void;setRangeText(replacement:string,start:number,end:number,selectionMode?:SelectionMode):void;setSelectionRange(start:number|null,end:number|null,direction?:"forward"|"backward"|"none"):void;showPicker():void;stepDown(n?:number):void;stepUp(n?:number):void;addEventListener(type:K,listener:(this:HTMLInputElement,ev:HTMLElementEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(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;};interface HTMLLIElement extends HTMLElement{type:string;value:number;addEventListener(type:K,listener:(this:HTMLLIElement,ev:HTMLElementEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(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;};interface HTMLLabelElement extends HTMLElement{readonly control:HTMLElement|null;readonly form:HTMLFormElement|null;htmlFor:string;addEventListener(type:K,listener:(this:HTMLLabelElement,ev:HTMLElementEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(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;};interface HTMLLegendElement extends HTMLElement{align:string;readonly form:HTMLFormElement|null;addEventListener(type:K,listener:(this:HTMLLegendElement,ev:HTMLElementEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(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;};interface HTMLLinkElement extends HTMLElement,LinkStyle{as:string;charset:string;crossOrigin:string|null;disabled:boolean;href:string;hreflang:string;imageSizes:string;imageSrcset:string;integrity:string;media:string;referrerPolicy:string;rel:string;readonly relList:DOMTokenList;rev:string;readonly sizes:DOMTokenList;target:string;type:string;addEventListener(type:K,listener:(this:HTMLLinkElement,ev:HTMLElementEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(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;};interface HTMLMapElement extends HTMLElement{readonly areas:HTMLCollection;name:string;addEventListener(type:K,listener:(this:HTMLMapElement,ev:HTMLElementEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(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 HTMLMarqueeElement extends HTMLElement{behavior:string;bgColor:string;direction:string;height:string;hspace:number;loop:number;scrollAmount:number;scrollDelay:number;trueSpeed:boolean;vspace:number;width:string;start():void;stop():void;addEventListener(type:K,listener:(this:HTMLMarqueeElement,ev:HTMLElementEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(type:K,listener:(this:HTMLMarqueeElement,ev:HTMLElementEventMap[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;"waitingforkey":Event;}interface HTMLMediaElement extends HTMLElement{autoplay:boolean;readonly buffered:TimeRanges;controls:boolean;crossOrigin:string|null;readonly currentSrc:string;currentTime:number;defaultMuted:boolean;defaultPlaybackRate:number;disableRemotePlayback:boolean;readonly duration:number;readonly ended:boolean;readonly error:MediaError|null;loop:boolean;readonly mediaKeys:MediaKeys|null;muted:boolean;readonly networkState:number;onencrypted:((this:HTMLMediaElement,ev:MediaEncryptedEvent)=>any)|null;onwaitingforkey:((this:HTMLMediaElement,ev:Event)=>any)|null;readonly paused:boolean;playbackRate:number;readonly played:TimeRanges;preload:"none"|"metadata"|"auto"|"";preservesPitch:boolean;readonly readyState:number;readonly remote:RemotePlayback;readonly seekable:TimeRanges;readonly seeking:boolean;src:string;srcObject:MediaProvider|null;readonly textTracks:TextTrackList;volume:number;addTextTrack(kind:TextTrackKind,label?:string,language?:string):TextTrack;canPlayType(type:string):CanPlayTypeResult;fastSeek(time:number):void;load():void;pause():void;play():Promise;setMediaKeys(mediaKeys:MediaKeys|null):Promise;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(type:K,listener:(this:HTMLMediaElement,ev:HTMLMediaElementEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(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{compact:boolean;addEventListener(type:K,listener:(this:HTMLMenuElement,ev:HTMLElementEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(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;};interface HTMLMetaElement extends HTMLElement{content:string;httpEquiv:string;media:string;name:string;scheme:string;addEventListener(type:K,listener:(this:HTMLMetaElement,ev:HTMLElementEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(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;};interface HTMLMeterElement extends HTMLElement{high:number;readonly labels:NodeListOf;low:number;max:number;min:number;optimum:number;value:number;addEventListener(type:K,listener:(this:HTMLMeterElement,ev:HTMLElementEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(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;};interface HTMLModElement extends HTMLElement{cite:string;dateTime:string;addEventListener(type:K,listener:(this:HTMLModElement,ev:HTMLElementEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(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;};interface HTMLOListElement extends HTMLElement{compact:boolean;reversed:boolean;start:number;type:string;addEventListener(type:K,listener:(this:HTMLOListElement,ev:HTMLElementEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(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;};interface HTMLObjectElement extends HTMLElement{align:string;archive:string;border:string;code:string;codeBase:string;codeType:string;readonly contentDocument:Document|null;readonly contentWindow:WindowProxy|null;data:string;declare:boolean;readonly form:HTMLFormElement|null;height:string;hspace:number;name:string;standby:string;type:string;useMap:string;readonly validationMessage:string;readonly validity:ValidityState;vspace:number;width:string;readonly willValidate:boolean;checkValidity():boolean;getSVGDocument():Document|null;reportValidity():boolean;setCustomValidity(error:string):void;addEventListener(type:K,listener:(this:HTMLObjectElement,ev:HTMLElementEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(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;};interface HTMLOptGroupElement extends HTMLElement{disabled:boolean;label:string;addEventListener(type:K,listener:(this:HTMLOptGroupElement,ev:HTMLElementEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(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;};interface HTMLOptionElement extends HTMLElement{defaultSelected:boolean;disabled:boolean;readonly form:HTMLFormElement|null;readonly index:number;label:string;selected:boolean;text:string;value:string;addEventListener(type:K,listener:(this:HTMLOptionElement,ev:HTMLElementEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(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;};interface HTMLOptionsCollection extends HTMLCollectionOf{length:number;selectedIndex:number;add(element:HTMLOptionElement|HTMLOptGroupElement,before?:HTMLElement|number|null):void;remove(index:number):void;}declare var HTMLOptionsCollection:{prototype:HTMLOptionsCollection;new():HTMLOptionsCollection;};interface HTMLOrSVGElement{autofocus:boolean;readonly dataset:DOMStringMap;nonce?:string;tabIndex:number;blur():void;focus(options?:FocusOptions):void;}interface HTMLOutputElement extends HTMLElement{defaultValue:string;readonly form:HTMLFormElement|null;readonly htmlFor:DOMTokenList;readonly labels:NodeListOf;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(type:K,listener:(this:HTMLOutputElement,ev:HTMLElementEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(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;};interface HTMLParagraphElement extends HTMLElement{align:string;addEventListener(type:K,listener:(this:HTMLParagraphElement,ev:HTMLElementEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(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;};interface HTMLParamElement extends HTMLElement{name:string;type:string;value:string;valueType:string;addEventListener(type:K,listener:(this:HTMLParamElement,ev:HTMLElementEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(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;};interface HTMLPictureElement extends HTMLElement{addEventListener(type:K,listener:(this:HTMLPictureElement,ev:HTMLElementEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(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;};interface HTMLPreElement extends HTMLElement{width:number;addEventListener(type:K,listener:(this:HTMLPreElement,ev:HTMLElementEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(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;};interface HTMLProgressElement extends HTMLElement{readonly labels:NodeListOf;max:number;readonly position:number;value:number;addEventListener(type:K,listener:(this:HTMLProgressElement,ev:HTMLElementEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(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;};interface HTMLQuoteElement extends HTMLElement{cite:string;addEventListener(type:K,listener:(this:HTMLQuoteElement,ev:HTMLElementEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(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;};interface HTMLScriptElement extends HTMLElement{async:boolean;charset:string;crossOrigin:string|null;defer:boolean;event:string;htmlFor:string;integrity:string;noModule:boolean;referrerPolicy:string;src:string;text:string;type:string;addEventListener(type:K,listener:(this:HTMLScriptElement,ev:HTMLElementEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(type:K,listener:(this:HTMLScriptElement,ev:HTMLElementEventMap[K])=>any,options?:boolean|EventListenerOptions):void;removeEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|EventListenerOptions):void;}declare var HTMLScriptElement:{prototype:HTMLScriptElement;new():HTMLScriptElement;supports(type:string):boolean;};interface HTMLSelectElement extends HTMLElement{autocomplete:string;disabled:boolean;readonly form:HTMLFormElement|null;readonly labels:NodeListOf;length:number;multiple:boolean;name:string;readonly options:HTMLOptionsCollection;required:boolean;selectedIndex:number;readonly selectedOptions:HTMLCollectionOf;size:number;readonly type:string;readonly validationMessage:string;readonly validity:ValidityState;value:string;readonly willValidate:boolean;add(element:HTMLOptionElement|HTMLOptGroupElement,before?:HTMLElement|number|null):void;checkValidity():boolean;item(index:number):HTMLOptionElement|null;namedItem(name:string):HTMLOptionElement|null;remove():void;remove(index:number):void;reportValidity():boolean;setCustomValidity(error:string):void;addEventListener(type:K,listener:(this:HTMLSelectElement,ev:HTMLElementEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(type:K,listener:(this:HTMLSelectElement,ev:HTMLElementEventMap[K])=>any,options?:boolean|EventListenerOptions):void;removeEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|EventListenerOptions):void;[name:number]:HTMLOptionElement|HTMLOptGroupElement;}declare var HTMLSelectElement:{prototype:HTMLSelectElement;new():HTMLSelectElement;};interface HTMLSlotElement extends HTMLElement{name:string;assign(...nodes:(Element|Text)[]):void;assignedElements(options?:AssignedNodesOptions):Element[];assignedNodes(options?:AssignedNodesOptions):Node[];addEventListener(type:K,listener:(this:HTMLSlotElement,ev:HTMLElementEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(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;};interface HTMLSourceElement extends HTMLElement{height:number;media:string;sizes:string;src:string;srcset:string;type:string;width:number;addEventListener(type:K,listener:(this:HTMLSourceElement,ev:HTMLElementEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(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;};interface HTMLSpanElement extends HTMLElement{addEventListener(type:K,listener:(this:HTMLSpanElement,ev:HTMLElementEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(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;};interface HTMLStyleElement extends HTMLElement,LinkStyle{disabled:boolean;media:string;type:string;addEventListener(type:K,listener:(this:HTMLStyleElement,ev:HTMLElementEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(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;};interface HTMLTableCaptionElement extends HTMLElement{align:string;addEventListener(type:K,listener:(this:HTMLTableCaptionElement,ev:HTMLElementEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(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;};interface HTMLTableCellElement extends HTMLElement{abbr:string;align:string;axis:string;bgColor:string;readonly cellIndex:number;ch:string;chOff:string;colSpan:number;headers:string;height:string;noWrap:boolean;rowSpan:number;scope:string;vAlign:string;width:string;addEventListener(type:K,listener:(this:HTMLTableCellElement,ev:HTMLElementEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(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;};interface HTMLTableColElement extends HTMLElement{align:string;ch:string;chOff:string;span:number;vAlign:string;width:string;addEventListener(type:K,listener:(this:HTMLTableColElement,ev:HTMLElementEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(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(type:K,listener:(this:HTMLTableDataCellElement,ev:HTMLElementEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(type:K,listener:(this:HTMLTableDataCellElement,ev:HTMLElementEventMap[K])=>any,options?:boolean|EventListenerOptions):void;removeEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|EventListenerOptions):void;}interface HTMLTableElement extends HTMLElement{align:string;bgColor:string;border:string;caption:HTMLTableCaptionElement|null;cellPadding:string;cellSpacing:string;frame:string;readonly rows:HTMLCollectionOf;rules:string;summary:string;readonly tBodies:HTMLCollectionOf;tFoot:HTMLTableSectionElement|null;tHead:HTMLTableSectionElement|null;width:string;createCaption():HTMLTableCaptionElement;createTBody():HTMLTableSectionElement;createTFoot():HTMLTableSectionElement;createTHead():HTMLTableSectionElement;deleteCaption():void;deleteRow(index:number):void;deleteTFoot():void;deleteTHead():void;insertRow(index?:number):HTMLTableRowElement;addEventListener(type:K,listener:(this:HTMLTableElement,ev:HTMLElementEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(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{addEventListener(type:K,listener:(this:HTMLTableHeaderCellElement,ev:HTMLElementEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(type:K,listener:(this:HTMLTableHeaderCellElement,ev:HTMLElementEventMap[K])=>any,options?:boolean|EventListenerOptions):void;removeEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|EventListenerOptions):void;}interface HTMLTableRowElement extends HTMLElement{align:string;bgColor:string;readonly cells:HTMLCollectionOf;ch:string;chOff:string;readonly rowIndex:number;readonly sectionRowIndex:number;vAlign:string;deleteCell(index:number):void;insertCell(index?:number):HTMLTableCellElement;addEventListener(type:K,listener:(this:HTMLTableRowElement,ev:HTMLElementEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(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;};interface HTMLTableSectionElement extends HTMLElement{align:string;ch:string;chOff:string;readonly rows:HTMLCollectionOf;vAlign:string;deleteRow(index:number):void;insertRow(index?:number):HTMLTableRowElement;addEventListener(type:K,listener:(this:HTMLTableSectionElement,ev:HTMLElementEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(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;};interface HTMLTemplateElement extends HTMLElement{readonly content:DocumentFragment;addEventListener(type:K,listener:(this:HTMLTemplateElement,ev:HTMLElementEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(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;};interface HTMLTextAreaElement extends HTMLElement{autocomplete:string;cols:number;defaultValue:string;dirName:string;disabled:boolean;readonly form:HTMLFormElement|null;readonly labels:NodeListOf;maxLength:number;minLength:number;name:string;placeholder:string;readOnly:boolean;required:boolean;rows:number;selectionDirection:"forward"|"backward"|"none";selectionEnd:number;selectionStart:number;readonly textLength:number;readonly type:string;readonly validationMessage:string;readonly validity:ValidityState;value:string;readonly willValidate:boolean;wrap:string;checkValidity():boolean;reportValidity():boolean;select():void;setCustomValidity(error:string):void;setRangeText(replacement:string):void;setRangeText(replacement:string,start:number,end:number,selectionMode?:SelectionMode):void;setSelectionRange(start:number|null,end:number|null,direction?:"forward"|"backward"|"none"):void;addEventListener(type:K,listener:(this:HTMLTextAreaElement,ev:HTMLElementEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(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;};interface HTMLTimeElement extends HTMLElement{dateTime:string;addEventListener(type:K,listener:(this:HTMLTimeElement,ev:HTMLElementEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(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;};interface HTMLTitleElement extends HTMLElement{text:string;addEventListener(type:K,listener:(this:HTMLTitleElement,ev:HTMLElementEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(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;};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(type:K,listener:(this:HTMLTrackElement,ev:HTMLElementEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(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;};interface HTMLUListElement extends HTMLElement{compact:boolean;type:string;addEventListener(type:K,listener:(this:HTMLUListElement,ev:HTMLElementEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(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;};interface HTMLUnknownElement extends HTMLElement{addEventListener(type:K,listener:(this:HTMLUnknownElement,ev:HTMLElementEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(type:K,listener:(this:HTMLUnknownElement,ev:HTMLElementEventMap[K])=>any,options?:boolean|EventListenerOptions):void;removeEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|EventListenerOptions):void;}declare var HTMLUnknownElement:{prototype:HTMLUnknownElement;new():HTMLUnknownElement;};interface HTMLVideoElementEventMap extends HTMLMediaElementEventMap{"enterpictureinpicture":Event;"leavepictureinpicture":Event;}interface HTMLVideoElement extends HTMLMediaElement{disablePictureInPicture:boolean;height:number;onenterpictureinpicture:((this:HTMLVideoElement,ev:Event)=>any)|null;onleavepictureinpicture:((this:HTMLVideoElement,ev:Event)=>any)|null;playsInline:boolean;poster:string;readonly videoHeight:number;readonly videoWidth:number;width:number;cancelVideoFrameCallback(handle:number):void;getVideoPlaybackQuality():VideoPlaybackQuality;requestPictureInPicture():Promise;requestVideoFrameCallback(callback:VideoFrameRequestCallback):number;addEventListener(type:K,listener:(this:HTMLVideoElement,ev:HTMLVideoElementEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(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;};interface HashChangeEvent extends Event{readonly newURL:string;readonly oldURL:string;}declare var HashChangeEvent:{prototype:HashChangeEvent;new(type:string,eventInitDict?:HashChangeEventInit):HashChangeEvent;};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;};interface History{readonly length:number;scrollRestoration:ScrollRestoration;readonly state:any;back():void;forward():void;go(delta?:number):void;pushState(data:any,unused:string,url?:string|URL|null):void;replaceState(data:any,unused:string,url?:string|URL|null):void;}declare var History:{prototype:History;new():History;};interface IDBCursor{readonly direction:IDBCursorDirection;readonly key:IDBValidKey;readonly primaryKey:IDBValidKey;readonly request:IDBRequest;readonly source:IDBObjectStore|IDBIndex;advance(count:number):void;continue(key?:IDBValidKey):void;continuePrimaryKey(key:IDBValidKey,primaryKey:IDBValidKey):void;delete():IDBRequest;update(value:any):IDBRequest;}declare var IDBCursor:{prototype:IDBCursor;new():IDBCursor;};interface IDBCursorWithValue extends IDBCursor{readonly value:any;}declare var IDBCursorWithValue:{prototype:IDBCursorWithValue;new():IDBCursorWithValue;};interface IDBDatabaseEventMap{"abort":Event;"close":Event;"error":Event;"versionchange":IDBVersionChangeEvent;}interface IDBDatabase extends EventTarget{readonly name:string;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;readonly version:number;close():void;createObjectStore(name:string,options?:IDBObjectStoreParameters):IDBObjectStore;deleteObjectStore(name:string):void;transaction(storeNames:string|string[],mode?:IDBTransactionMode,options?:IDBTransactionOptions):IDBTransaction;addEventListener(type:K,listener:(this:IDBDatabase,ev:IDBDatabaseEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(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 IDBFactory{cmp(first:any,second:any):number;databases():Promise;deleteDatabase(name:string):IDBOpenDBRequest;open(name:string,version?:number):IDBOpenDBRequest;}declare var IDBFactory:{prototype:IDBFactory;new():IDBFactory;};interface IDBIndex{readonly keyPath:string|string[];readonly multiEntry:boolean;name:string;readonly objectStore:IDBObjectStore;readonly unique:boolean;count(query?:IDBValidKey|IDBKeyRange):IDBRequest;get(query:IDBValidKey|IDBKeyRange):IDBRequest;getAll(query?:IDBValidKey|IDBKeyRange|null,count?:number):IDBRequest;getAllKeys(query?:IDBValidKey|IDBKeyRange|null,count?:number):IDBRequest;getKey(query:IDBValidKey|IDBKeyRange):IDBRequest;openCursor(query?:IDBValidKey|IDBKeyRange|null,direction?:IDBCursorDirection):IDBRequest;openKeyCursor(query?:IDBValidKey|IDBKeyRange|null,direction?:IDBCursorDirection):IDBRequest;}declare var IDBIndex:{prototype:IDBIndex;new():IDBIndex;};interface IDBKeyRange{readonly lower:any;readonly lowerOpen:boolean;readonly upper:any;readonly upperOpen:boolean;includes(key:any):boolean;}declare var IDBKeyRange:{prototype:IDBKeyRange;new():IDBKeyRange;bound(lower:any,upper:any,lowerOpen?:boolean,upperOpen?:boolean):IDBKeyRange;lowerBound(lower:any,open?:boolean):IDBKeyRange;only(value:any):IDBKeyRange;upperBound(upper:any,open?:boolean):IDBKeyRange;};interface IDBObjectStore{readonly autoIncrement:boolean;readonly indexNames:DOMStringList;readonly keyPath:string|string[];name:string;readonly transaction:IDBTransaction;add(value:any,key?:IDBValidKey):IDBRequest;clear():IDBRequest;count(query?:IDBValidKey|IDBKeyRange):IDBRequest;createIndex(name:string,keyPath:string|string[],options?:IDBIndexParameters):IDBIndex;delete(query:IDBValidKey|IDBKeyRange):IDBRequest;deleteIndex(name:string):void;get(query:IDBValidKey|IDBKeyRange):IDBRequest;getAll(query?:IDBValidKey|IDBKeyRange|null,count?:number):IDBRequest;getAllKeys(query?:IDBValidKey|IDBKeyRange|null,count?:number):IDBRequest;getKey(query:IDBValidKey|IDBKeyRange):IDBRequest;index(name:string):IDBIndex;openCursor(query?:IDBValidKey|IDBKeyRange|null,direction?:IDBCursorDirection):IDBRequest;openKeyCursor(query?:IDBValidKey|IDBKeyRange|null,direction?:IDBCursorDirection):IDBRequest;put(value:any,key?:IDBValidKey):IDBRequest;}declare var IDBObjectStore:{prototype:IDBObjectStore;new():IDBObjectStore;};interface IDBOpenDBRequestEventMap extends IDBRequestEventMap{"blocked":IDBVersionChangeEvent;"upgradeneeded":IDBVersionChangeEvent;}interface IDBOpenDBRequest extends IDBRequest{onblocked:((this:IDBOpenDBRequest,ev:IDBVersionChangeEvent)=>any)|null;onupgradeneeded:((this:IDBOpenDBRequest,ev:IDBVersionChangeEvent)=>any)|null;addEventListener(type:K,listener:(this:IDBOpenDBRequest,ev:IDBOpenDBRequestEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(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;}interface IDBRequestextends EventTarget{readonly error:DOMException|null;onerror:((this:IDBRequest,ev:Event)=>any)|null;onsuccess:((this:IDBRequest,ev:Event)=>any)|null;readonly readyState:IDBRequestReadyState;readonly result:T;readonly source:IDBObjectStore|IDBIndex|IDBCursor;readonly transaction:IDBTransaction|null;addEventListener(type:K,listener:(this:IDBRequest,ev:IDBRequestEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(type:K,listener:(this:IDBRequest,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{readonly db:IDBDatabase;readonly durability:IDBTransactionDurability;readonly error:DOMException|null;readonly mode:IDBTransactionMode;readonly objectStoreNames:DOMStringList;onabort:((this:IDBTransaction,ev:Event)=>any)|null;oncomplete:((this:IDBTransaction,ev:Event)=>any)|null;onerror:((this:IDBTransaction,ev:Event)=>any)|null;abort():void;commit():void;objectStore(name:string):IDBObjectStore;addEventListener(type:K,listener:(this:IDBTransaction,ev:IDBTransactionEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(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;};interface IDBVersionChangeEvent extends Event{readonly newVersion:number|null;readonly oldVersion:number;}declare var IDBVersionChangeEvent:{prototype:IDBVersionChangeEvent;new(type:string,eventInitDict?:IDBVersionChangeEventInit):IDBVersionChangeEvent;};interface IIRFilterNode extends AudioNode{getFrequencyResponse(frequencyHz:Float32Array,magResponse:Float32Array,phaseResponse:Float32Array):void;}declare var IIRFilterNode:{prototype:IIRFilterNode;new(context:BaseAudioContext,options:IIRFilterOptions):IIRFilterNode;};interface IdleDeadline{readonly didTimeout:boolean;timeRemaining():DOMHighResTimeStamp;}declare var IdleDeadline:{prototype:IdleDeadline;new():IdleDeadline;};interface ImageBitmap{readonly height:number;readonly width:number;close():void;}declare var ImageBitmap:{prototype:ImageBitmap;new():ImageBitmap;};interface ImageBitmapRenderingContext{readonly canvas:HTMLCanvasElement|OffscreenCanvas;transferFromImageBitmap(bitmap:ImageBitmap|null):void;}declare var ImageBitmapRenderingContext:{prototype:ImageBitmapRenderingContext;new():ImageBitmapRenderingContext;};interface ImageData{readonly colorSpace:PredefinedColorSpace;readonly data:Uint8ClampedArray;readonly height:number;readonly width:number;}declare var ImageData:{prototype:ImageData;new(sw:number,sh:number,settings?:ImageDataSettings):ImageData;new(data:Uint8ClampedArray,sw:number,sh?:number,settings?:ImageDataSettings):ImageData;};interface InnerHTML{innerHTML:string;}interface InputDeviceInfo extends MediaDeviceInfo{}declare var InputDeviceInfo:{prototype:InputDeviceInfo;new():InputDeviceInfo;};interface InputEvent extends UIEvent{readonly data:string|null;readonly dataTransfer:DataTransfer|null;readonly inputType:string;readonly isComposing:boolean;getTargetRanges():StaticRange[];}declare var InputEvent:{prototype:InputEvent;new(type:string,eventInitDict?:InputEventInit):InputEvent;};interface IntersectionObserver{readonly root:Element|Document|null;readonly rootMargin:string;readonly thresholds:ReadonlyArray;disconnect():void;observe(target:Element):void;takeRecords():IntersectionObserverEntry[];unobserve(target:Element):void;}declare var IntersectionObserver:{prototype:IntersectionObserver;new(callback:IntersectionObserverCallback,options?:IntersectionObserverInit):IntersectionObserver;};interface IntersectionObserverEntry{readonly boundingClientRect:DOMRectReadOnly;readonly intersectionRatio:number;readonly intersectionRect:DOMRectReadOnly;readonly isIntersecting:boolean;readonly rootBounds:DOMRectReadOnly|null;readonly target:Element;readonly time:DOMHighResTimeStamp;}declare var IntersectionObserverEntry:{prototype:IntersectionObserverEntry;new(intersectionObserverEntryInit:IntersectionObserverEntryInit):IntersectionObserverEntry;};interface KHR_parallel_shader_compile{readonly COMPLETION_STATUS_KHR:GLenum;}interface KeyboardEvent extends UIEvent{readonly altKey:boolean;readonly charCode:number;readonly code:string;readonly ctrlKey:boolean;readonly isComposing:boolean;readonly key:string;readonly keyCode:number;readonly location:number;readonly metaKey:boolean;readonly repeat:boolean;readonly shiftKey:boolean;getModifierState(keyArg:string):boolean;initKeyboardEvent(typeArg:string,bubblesArg?:boolean,cancelableArg?:boolean,viewArg?:Window|null,keyArg?:string,locationArg?:number,ctrlKey?:boolean,altKey?:boolean,shiftKey?:boolean,metaKey?:boolean):void;readonly DOM_KEY_LOCATION_LEFT:number;readonly DOM_KEY_LOCATION_NUMPAD:number;readonly DOM_KEY_LOCATION_RIGHT:number;readonly DOM_KEY_LOCATION_STANDARD:number;}declare var KeyboardEvent:{prototype:KeyboardEvent;new(type:string,eventInitDict?:KeyboardEventInit):KeyboardEvent;readonly DOM_KEY_LOCATION_LEFT:number;readonly DOM_KEY_LOCATION_NUMPAD:number;readonly DOM_KEY_LOCATION_RIGHT:number;readonly DOM_KEY_LOCATION_STANDARD:number;};interface KeyframeEffect extends AnimationEffect{composite:CompositeOperation;iterationComposite:IterationCompositeOperation;pseudoElement:string|null;target:Element|null;getKeyframes():ComputedKeyframe[];setKeyframes(keyframes:Keyframe[]|PropertyIndexedKeyframes|null):void;}declare var KeyframeEffect:{prototype:KeyframeEffect;new(target:Element|null,keyframes:Keyframe[]|PropertyIndexedKeyframes|null,options?:number|KeyframeEffectOptions):KeyframeEffect;new(source:KeyframeEffect):KeyframeEffect;};interface LinkStyle{readonly sheet:CSSStyleSheet|null;}interface Location{readonly ancestorOrigins:DOMStringList;hash:string;host:string;hostname:string;href:string;toString():string;readonly origin:string;pathname:string;port:string;protocol:string;search:string;assign(url:string|URL):void;reload():void;replace(url:string|URL):void;}declare var Location:{prototype:Location;new():Location;};interface Lock{readonly mode:LockMode;readonly name:string;}declare var Lock:{prototype:Lock;new():Lock;};interface LockManager{query():Promise;request(name:string,callback:LockGrantedCallback):Promise;request(name:string,options:LockOptions,callback:LockGrantedCallback):Promise;}declare var LockManager:{prototype:LockManager;new():LockManager;};interface MathMLElementEventMap extends ElementEventMap,DocumentAndElementEventHandlersEventMap,GlobalEventHandlersEventMap{}interface MathMLElement extends Element,DocumentAndElementEventHandlers,ElementCSSInlineStyle,GlobalEventHandlers,HTMLOrSVGElement{addEventListener(type:K,listener:(this:MathMLElement,ev:MathMLElementEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(type:K,listener:(this:MathMLElement,ev:MathMLElementEventMap[K])=>any,options?:boolean|EventListenerOptions):void;removeEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|EventListenerOptions):void;}declare var MathMLElement:{prototype:MathMLElement;new():MathMLElement;};interface MediaCapabilities{decodingInfo(configuration:MediaDecodingConfiguration):Promise;encodingInfo(configuration:MediaEncodingConfiguration):Promise;}declare var MediaCapabilities:{prototype:MediaCapabilities;new():MediaCapabilities;};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;}interface MediaDevices extends EventTarget{ondevicechange:((this:MediaDevices,ev:Event)=>any)|null;enumerateDevices():Promise;getDisplayMedia(options?:DisplayMediaStreamOptions):Promise;getSupportedConstraints():MediaTrackSupportedConstraints;getUserMedia(constraints?:MediaStreamConstraints):Promise;addEventListener(type:K,listener:(this:MediaDevices,ev:MediaDevicesEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(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;};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;};interface MediaError{readonly code:number;readonly message:string;readonly MEDIA_ERR_ABORTED:number;readonly MEDIA_ERR_DECODE:number;readonly MEDIA_ERR_NETWORK:number;readonly MEDIA_ERR_SRC_NOT_SUPPORTED:number;}declare var MediaError:{prototype:MediaError;new():MediaError;readonly MEDIA_ERR_ABORTED:number;readonly MEDIA_ERR_DECODE:number;readonly MEDIA_ERR_NETWORK:number;readonly MEDIA_ERR_SRC_NOT_SUPPORTED:number;};interface MediaKeyMessageEvent extends Event{readonly message:ArrayBuffer;readonly messageType:MediaKeyMessageType;}declare var MediaKeyMessageEvent:{prototype:MediaKeyMessageEvent;new(type:string,eventInitDict:MediaKeyMessageEventInit):MediaKeyMessageEvent;};interface MediaKeySessionEventMap{"keystatuseschange":Event;"message":MediaKeyMessageEvent;}interface MediaKeySession extends EventTarget{readonly closed:Promise;readonly expiration:number;readonly keyStatuses:MediaKeyStatusMap;onkeystatuseschange:((this:MediaKeySession,ev:Event)=>any)|null;onmessage:((this:MediaKeySession,ev:MediaKeyMessageEvent)=>any)|null;readonly sessionId:string;close():Promise;generateRequest(initDataType:string,initData:BufferSource):Promise;load(sessionId:string):Promise;remove():Promise;update(response:BufferSource):Promise;addEventListener(type:K,listener:(this:MediaKeySession,ev:MediaKeySessionEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(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;};interface MediaKeyStatusMap{readonly size:number;get(keyId:BufferSource):MediaKeyStatus|undefined;has(keyId:BufferSource):boolean;forEach(callbackfn:(value:MediaKeyStatus,key:BufferSource,parent:MediaKeyStatusMap)=>void,thisArg?:any):void;}declare var MediaKeyStatusMap:{prototype:MediaKeyStatusMap;new():MediaKeyStatusMap;};interface MediaKeySystemAccess{readonly keySystem:string;createMediaKeys():Promise;getConfiguration():MediaKeySystemConfiguration;}declare var MediaKeySystemAccess:{prototype:MediaKeySystemAccess;new():MediaKeySystemAccess;};interface MediaKeys{createSession(sessionType?:MediaKeySessionType):MediaKeySession;setServerCertificate(serverCertificate:BufferSource):Promise;}declare var MediaKeys:{prototype:MediaKeys;new():MediaKeys;};interface MediaList{readonly length:number;mediaText:string;toString():string;appendMedium(medium:string):void;deleteMedium(medium:string):void;item(index:number):string|null;[index:number]:string;}declare var MediaList:{prototype:MediaList;new():MediaList;};interface MediaMetadata{album:string;artist:string;artwork:ReadonlyArray;title:string;}declare var MediaMetadata:{prototype:MediaMetadata;new(init?:MediaMetadataInit):MediaMetadata;};interface MediaQueryListEventMap{"change":MediaQueryListEvent;}interface MediaQueryList extends EventTarget{readonly matches:boolean;readonly media:string;onchange:((this:MediaQueryList,ev:MediaQueryListEvent)=>any)|null;addListener(callback:((this:MediaQueryList,ev:MediaQueryListEvent)=>any)|null):void;removeListener(callback:((this:MediaQueryList,ev:MediaQueryListEvent)=>any)|null):void;addEventListener(type:K,listener:(this:MediaQueryList,ev:MediaQueryListEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(type:K,listener:(this:MediaQueryList,ev:MediaQueryListEventMap[K])=>any,options?:boolean|EventListenerOptions):void;removeEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|EventListenerOptions):void;}declare var MediaQueryList:{prototype:MediaQueryList;new():MediaQueryList;};interface MediaQueryListEvent extends Event{readonly matches:boolean;readonly media:string;}declare var MediaQueryListEvent:{prototype:MediaQueryListEvent;new(type:string,eventInitDict?:MediaQueryListEventInit):MediaQueryListEvent;};interface MediaRecorderEventMap{"dataavailable":BlobEvent;"error":Event;"pause":Event;"resume":Event;"start":Event;"stop":Event;}interface MediaRecorder extends EventTarget{readonly audioBitsPerSecond:number;readonly mimeType:string;ondataavailable:((this:MediaRecorder,ev:BlobEvent)=>any)|null;onerror:((this:MediaRecorder,ev:Event)=>any)|null;onpause:((this:MediaRecorder,ev:Event)=>any)|null;onresume:((this:MediaRecorder,ev:Event)=>any)|null;onstart:((this:MediaRecorder,ev:Event)=>any)|null;onstop:((this:MediaRecorder,ev:Event)=>any)|null;readonly state:RecordingState;readonly stream:MediaStream;readonly videoBitsPerSecond:number;pause():void;requestData():void;resume():void;start(timeslice?:number):void;stop():void;addEventListener(type:K,listener:(this:MediaRecorder,ev:MediaRecorderEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(type:K,listener:(this:MediaRecorder,ev:MediaRecorderEventMap[K])=>any,options?:boolean|EventListenerOptions):void;removeEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|EventListenerOptions):void;}declare var MediaRecorder:{prototype:MediaRecorder;new(stream:MediaStream,options?:MediaRecorderOptions):MediaRecorder;isTypeSupported(type:string):boolean;};interface MediaSession{metadata:MediaMetadata|null;playbackState:MediaSessionPlaybackState;setActionHandler(action:MediaSessionAction,handler:MediaSessionActionHandler|null):void;setPositionState(state?:MediaPositionState):void;}declare var MediaSession:{prototype:MediaSession;new():MediaSession;};interface MediaSourceEventMap{"sourceclose":Event;"sourceended":Event;"sourceopen":Event;}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(type:K,listener:(this:MediaSource,ev:MediaSourceEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(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;}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(type:K,listener:(this:MediaStream,ev:MediaStreamEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(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;};interface MediaStreamAudioSourceNode extends AudioNode{readonly mediaStream:MediaStream;}declare var MediaStreamAudioSourceNode:{prototype:MediaStreamAudioSourceNode;new(context:AudioContext,options:MediaStreamAudioSourceOptions):MediaStreamAudioSourceNode;};interface MediaStreamTrackEventMap{"ended":Event;"mute":Event;"unmute":Event;}interface MediaStreamTrack extends EventTarget{contentHint:string;enabled:boolean;readonly id:string;readonly kind:string;readonly label:string;readonly muted:boolean;onended:((this:MediaStreamTrack,ev:Event)=>any)|null;onmute:((this:MediaStreamTrack,ev:Event)=>any)|null;onunmute:((this:MediaStreamTrack,ev:Event)=>any)|null;readonly readyState:MediaStreamTrackState;applyConstraints(constraints?:MediaTrackConstraints):Promise;clone():MediaStreamTrack;getCapabilities():MediaTrackCapabilities;getConstraints():MediaTrackConstraints;getSettings():MediaTrackSettings;stop():void;addEventListener(type:K,listener:(this:MediaStreamTrack,ev:MediaStreamTrackEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(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 MediaStreamTrackEvent extends Event{readonly track:MediaStreamTrack;}declare var MediaStreamTrackEvent:{prototype:MediaStreamTrackEvent;new(type:string,eventInitDict:MediaStreamTrackEventInit):MediaStreamTrackEvent;};interface MessageChannel{readonly port1:MessagePort;readonly port2:MessagePort;}declare var MessageChannel:{prototype:MessageChannel;new():MessageChannel;};interface MessageEventextends Event{readonly data:T;readonly lastEventId:string;readonly origin:string;readonly ports:ReadonlyArray;readonly source:MessageEventSource|null;initMessageEvent(type:string,bubbles?:boolean,cancelable?:boolean,data?:any,origin?:string,lastEventId?:string,source?:MessageEventSource|null,ports?:MessagePort[]):void;}declare var MessageEvent:{prototype:MessageEvent;new(type:string,eventInitDict?:MessageEventInit):MessageEvent;};interface MessagePortEventMap{"message":MessageEvent;"messageerror":MessageEvent;}interface MessagePort extends EventTarget{onmessage:((this:MessagePort,ev:MessageEvent)=>any)|null;onmessageerror:((this:MessagePort,ev:MessageEvent)=>any)|null;close():void;postMessage(message:any,transfer:Transferable[]):void;postMessage(message:any,options?:StructuredSerializeOptions):void;start():void;addEventListener(type:K,listener:(this:MessagePort,ev:MessagePortEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(type:K,listener:(this:MessagePort,ev:MessagePortEventMap[K])=>any,options?:boolean|EventListenerOptions):void;removeEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|EventListenerOptions):void;}declare var MessagePort:{prototype:MessagePort;new():MessagePort;};interface MimeType{readonly description:string;readonly enabledPlugin:Plugin;readonly suffixes:string;readonly type:string;}declare var MimeType:{prototype:MimeType;new():MimeType;};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;};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;};interface MutationEvent extends Event{readonly attrChange:number;readonly attrName:string;readonly newValue:string;readonly prevValue:string;readonly relatedNode:Node|null;initMutationEvent(typeArg:string,bubblesArg?:boolean,cancelableArg?:boolean,relatedNodeArg?:Node|null,prevValueArg?:string,newValueArg?:string,attrNameArg?:string,attrChangeArg?:number):void;readonly ADDITION:number;readonly MODIFICATION:number;readonly REMOVAL:number;}declare var MutationEvent:{prototype:MutationEvent;new():MutationEvent;readonly ADDITION:number;readonly MODIFICATION:number;readonly REMOVAL:number;};interface MutationObserver{disconnect():void;observe(target:Node,options?:MutationObserverInit):void;takeRecords():MutationRecord[];}declare var MutationObserver:{prototype:MutationObserver;new(callback:MutationCallback):MutationObserver;};interface MutationRecord{readonly addedNodes:NodeList;readonly attributeName:string|null;readonly attributeNamespace:string|null;readonly nextSibling:Node|null;readonly oldValue:string|null;readonly previousSibling:Node|null;readonly removedNodes:NodeList;readonly target:Node;readonly type:MutationRecordType;}declare var MutationRecord:{prototype:MutationRecord;new():MutationRecord;};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;enable():Promise;getState():Promise;setHeaderValue(value:string):Promise;}declare var NavigationPreloadManager:{prototype:NavigationPreloadManager;new():NavigationPreloadManager;};interface Navigator extends NavigatorAutomationInformation,NavigatorConcurrentHardware,NavigatorContentUtils,NavigatorCookies,NavigatorID,NavigatorLanguage,NavigatorLocks,NavigatorOnLine,NavigatorPlugins,NavigatorStorage{readonly clipboard:Clipboard;readonly credentials:CredentialsContainer;readonly doNotTrack:string|null;readonly geolocation:Geolocation;readonly maxTouchPoints:number;readonly mediaCapabilities:MediaCapabilities;readonly mediaDevices:MediaDevices;readonly mediaSession:MediaSession;readonly permissions:Permissions;readonly serviceWorker:ServiceWorkerContainer;canShare(data?:ShareData):boolean;getGamepads():(Gamepad|null)[];requestMediaKeySystemAccess(keySystem:string,supportedConfigurations:MediaKeySystemConfiguration[]):Promise;sendBeacon(url:string|URL,data?:BodyInit|null):boolean;share(data?:ShareData):Promise;vibrate(pattern:VibratePattern):boolean;}declare var Navigator:{prototype:Navigator;new():Navigator;};interface NavigatorAutomationInformation{readonly webdriver:boolean;}interface NavigatorConcurrentHardware{readonly hardwareConcurrency:number;}interface NavigatorContentUtils{registerProtocolHandler(scheme:string,url:string|URL):void;}interface NavigatorCookies{readonly cookieEnabled:boolean;}interface NavigatorID{readonly appCodeName:string;readonly appName:string;readonly appVersion:string;readonly platform:string;readonly product:string;readonly productSub:string;readonly userAgent:string;readonly vendor:string;readonly vendorSub:string;}interface NavigatorLanguage{readonly language:string;readonly languages:ReadonlyArray;}interface NavigatorLocks{readonly locks:LockManager;}interface NavigatorOnLine{readonly onLine:boolean;}interface NavigatorPlugins{readonly mimeTypes:MimeTypeArray;readonly pdfViewerEnabled:boolean;readonly plugins:PluginArray;javaEnabled():boolean;}interface NavigatorStorage{readonly storage:StorageManager;}interface Node extends EventTarget{readonly baseURI:string;readonly childNodes:NodeListOf;readonly firstChild:ChildNode|null;readonly isConnected:boolean;readonly lastChild:ChildNode|null;readonly nextSibling:ChildNode|null;readonly nodeName:string;readonly nodeType:number;nodeValue:string|null;readonly ownerDocument:Document|null;readonly parentElement:HTMLElement|null;readonly parentNode:ParentNode|null;readonly previousSibling:ChildNode|null;textContent:string|null;appendChild(node:T):T;cloneNode(deep?:boolean):Node;compareDocumentPosition(other:Node):number;contains(other:Node|null):boolean;getRootNode(options?:GetRootNodeOptions):Node;hasChildNodes():boolean;insertBefore(node:T,child:Node|null):T;isDefaultNamespace(namespace:string|null):boolean;isEqualNode(otherNode:Node|null):boolean;isSameNode(otherNode:Node|null):boolean;lookupNamespaceURI(prefix:string|null):string|null;lookupPrefix(namespace:string|null):string|null;normalize():void;removeChild(child:T):T;replaceChild(node:Node,child:T):T;readonly ATTRIBUTE_NODE:number;readonly CDATA_SECTION_NODE:number;readonly COMMENT_NODE:number;readonly DOCUMENT_FRAGMENT_NODE:number;readonly DOCUMENT_NODE:number;readonly DOCUMENT_POSITION_CONTAINED_BY:number;readonly DOCUMENT_POSITION_CONTAINS:number;readonly DOCUMENT_POSITION_DISCONNECTED:number;readonly DOCUMENT_POSITION_FOLLOWING:number;readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC:number;readonly DOCUMENT_POSITION_PRECEDING:number;readonly DOCUMENT_TYPE_NODE:number;readonly ELEMENT_NODE:number;readonly ENTITY_NODE:number;readonly ENTITY_REFERENCE_NODE:number;readonly NOTATION_NODE:number;readonly PROCESSING_INSTRUCTION_NODE:number;readonly TEXT_NODE:number;}declare var Node:{prototype:Node;new():Node;readonly ATTRIBUTE_NODE:number;readonly CDATA_SECTION_NODE:number;readonly COMMENT_NODE:number;readonly DOCUMENT_FRAGMENT_NODE:number;readonly DOCUMENT_NODE:number;readonly DOCUMENT_POSITION_CONTAINED_BY:number;readonly DOCUMENT_POSITION_CONTAINS:number;readonly DOCUMENT_POSITION_DISCONNECTED:number;readonly DOCUMENT_POSITION_FOLLOWING:number;readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC:number;readonly DOCUMENT_POSITION_PRECEDING:number;readonly DOCUMENT_TYPE_NODE:number;readonly ELEMENT_NODE:number;readonly ENTITY_NODE:number;readonly ENTITY_REFERENCE_NODE:number;readonly NOTATION_NODE:number;readonly PROCESSING_INSTRUCTION_NODE:number;readonly TEXT_NODE:number;};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;};interface NodeList{readonly length:number;item(index:number):Node|null;forEach(callbackfn:(value:Node,key:number,parent:NodeList)=>void,thisArg?:any):void;[index:number]:Node;}declare var NodeList:{prototype:NodeList;new():NodeList;};interface NodeListOfextends NodeList{item(index:number):TNode;forEach(callbackfn:(value:TNode,key:number,parent:NodeListOf)=>void,thisArg?:any):void;[index:number]:TNode;}interface NonDocumentTypeChildNode{readonly nextElementSibling:Element|null;readonly previousElementSibling:Element|null;}interface NonElementParentNode{getElementById(elementId:string):Element|null;}interface NotificationEventMap{"click":Event;"close":Event;"error":Event;"show":Event;}interface Notification extends EventTarget{readonly body:string;readonly data:any;readonly dir:NotificationDirection;readonly icon:string;readonly lang:string;onclick:((this:Notification,ev:Event)=>any)|null;onclose:((this:Notification,ev:Event)=>any)|null;onerror:((this:Notification,ev:Event)=>any)|null;onshow:((this:Notification,ev:Event)=>any)|null;readonly tag:string;readonly title:string;close():void;addEventListener(type:K,listener:(this:Notification,ev:NotificationEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(type:K,listener:(this:Notification,ev:NotificationEventMap[K])=>any,options?:boolean|EventListenerOptions):void;removeEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|EventListenerOptions):void;}declare var Notification:{prototype:Notification;new(title:string,options?:NotificationOptions):Notification;readonly permission:NotificationPermission;requestPermission(deprecatedCallback?:NotificationPermissionCallback):Promise;};interface OES_draw_buffers_indexed{blendEquationSeparateiOES(buf:GLuint,modeRGB:GLenum,modeAlpha:GLenum):void;blendEquationiOES(buf:GLuint,mode:GLenum):void;blendFuncSeparateiOES(buf:GLuint,srcRGB:GLenum,dstRGB:GLenum,srcAlpha:GLenum,dstAlpha:GLenum):void;blendFunciOES(buf:GLuint,src:GLenum,dst:GLenum):void;colorMaskiOES(buf:GLuint,r:GLboolean,g:GLboolean,b:GLboolean,a:GLboolean):void;disableiOES(target:GLenum,index:GLuint):void;enableiOES(target:GLenum,index:GLuint):void;}interface OES_element_index_uint{}interface OES_fbo_render_mipmap{}interface OES_standard_derivatives{readonly FRAGMENT_SHADER_DERIVATIVE_HINT_OES:GLenum;}interface OES_texture_float{}interface OES_texture_float_linear{}interface OES_texture_half_float{readonly HALF_FLOAT_OES:GLenum;}interface OES_texture_half_float_linear{}interface OES_vertex_array_object{bindVertexArrayOES(arrayObject:WebGLVertexArrayObjectOES|null):void;createVertexArrayOES():WebGLVertexArrayObjectOES|null;deleteVertexArrayOES(arrayObject:WebGLVertexArrayObjectOES|null):void;isVertexArrayOES(arrayObject:WebGLVertexArrayObjectOES|null):GLboolean;readonly VERTEX_ARRAY_BINDING_OES:GLenum;}interface OVR_multiview2{framebufferTextureMultiviewOVR(target:GLenum,attachment:GLenum,texture:WebGLTexture|null,level:GLint,baseViewIndex:GLint,numViews:GLsizei):void;readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_BASE_VIEW_INDEX_OVR:GLenum;readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_NUM_VIEWS_OVR:GLenum;readonly FRAMEBUFFER_INCOMPLETE_VIEW_TARGETS_OVR:GLenum;readonly MAX_VIEWS_OVR:GLenum;}interface OfflineAudioCompletionEvent extends Event{readonly renderedBuffer:AudioBuffer;}declare var OfflineAudioCompletionEvent:{prototype:OfflineAudioCompletionEvent;new(type:string,eventInitDict:OfflineAudioCompletionEventInit):OfflineAudioCompletionEvent;};interface OfflineAudioContextEventMap extends BaseAudioContextEventMap{"complete":OfflineAudioCompletionEvent;}interface OfflineAudioContext extends BaseAudioContext{readonly length:number;oncomplete:((this:OfflineAudioContext,ev:OfflineAudioCompletionEvent)=>any)|null;resume():Promise;startRendering():Promise;suspend(suspendTime:number):Promise;addEventListener(type:K,listener:(this:OfflineAudioContext,ev:OfflineAudioContextEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(type:K,listener:(this:OfflineAudioContext,ev:OfflineAudioContextEventMap[K])=>any,options?:boolean|EventListenerOptions):void;removeEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|EventListenerOptions):void;}declare var OfflineAudioContext:{prototype:OfflineAudioContext;new(contextOptions:OfflineAudioContextOptions):OfflineAudioContext;new(numberOfChannels:number,length:number,sampleRate:number):OfflineAudioContext;};interface OffscreenCanvasEventMap{"contextlost":Event;"contextrestored":Event;}interface OffscreenCanvas extends EventTarget{height:number;oncontextlost:((this:OffscreenCanvas,ev:Event)=>any)|null;oncontextrestored:((this:OffscreenCanvas,ev:Event)=>any)|null;width:number;getContext(contextId:OffscreenRenderingContextId,options?:any):OffscreenRenderingContext|null;transferToImageBitmap():ImageBitmap;addEventListener(type:K,listener:(this:OffscreenCanvas,ev:OffscreenCanvasEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(type:K,listener:(this:OffscreenCanvas,ev:OffscreenCanvasEventMap[K])=>any,options?:boolean|EventListenerOptions):void;removeEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|EventListenerOptions):void;}declare var OffscreenCanvas:{prototype:OffscreenCanvas;new(width:number,height:number):OffscreenCanvas;};interface OffscreenCanvasRenderingContext2D extends CanvasCompositing,CanvasDrawImage,CanvasDrawPath,CanvasFillStrokeStyles,CanvasFilters,CanvasImageData,CanvasImageSmoothing,CanvasPath,CanvasPathDrawingStyles,CanvasRect,CanvasShadowStyles,CanvasState,CanvasText,CanvasTextDrawingStyles,CanvasTransform{readonly canvas:OffscreenCanvas;commit():void;}declare var OffscreenCanvasRenderingContext2D:{prototype:OffscreenCanvasRenderingContext2D;new():OffscreenCanvasRenderingContext2D;};interface OscillatorNode extends AudioScheduledSourceNode{readonly detune:AudioParam;readonly frequency:AudioParam;type:OscillatorType;setPeriodicWave(periodicWave:PeriodicWave):void;addEventListener(type:K,listener:(this:OscillatorNode,ev:AudioScheduledSourceNodeEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(type:K,listener:(this:OscillatorNode,ev:AudioScheduledSourceNodeEventMap[K])=>any,options?:boolean|EventListenerOptions):void;removeEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|EventListenerOptions):void;}declare var OscillatorNode:{prototype:OscillatorNode;new(context:BaseAudioContext,options?:OscillatorOptions):OscillatorNode;};interface OverconstrainedError extends Error{readonly constraint:string;}declare var OverconstrainedError:{prototype:OverconstrainedError;new(constraint:string,message?:string):OverconstrainedError;};interface PageTransitionEvent extends Event{readonly persisted:boolean;}declare var PageTransitionEvent:{prototype:PageTransitionEvent;new(type:string,eventInitDict?:PageTransitionEventInit):PageTransitionEvent;};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;setOrientation(x:number,y:number,z:number):void;setPosition(x:number,y:number,z:number):void;}declare var PannerNode:{prototype:PannerNode;new(context:BaseAudioContext,options?:PannerOptions):PannerNode;};interface ParentNode extends Node{readonly childElementCount:number;readonly children:HTMLCollection;readonly firstElementChild:Element|null;readonly lastElementChild:Element|null;append(...nodes:(Node|string)[]):void;prepend(...nodes:(Node|string)[]):void;querySelector(selectors:K):HTMLElementTagNameMap[K]|null;querySelector(selectors:K):SVGElementTagNameMap[K]|null;querySelector(selectors:string):E|null;querySelectorAll(selectors:K):NodeListOf;querySelectorAll(selectors:K):NodeListOf;querySelectorAll(selectors:string):NodeListOf;replaceChildren(...nodes:(Node|string)[]):void;}interface Path2D extends CanvasPath{addPath(path:Path2D,transform?:DOMMatrix2DInit):void;}declare var Path2D:{prototype:Path2D;new(path?:Path2D|string):Path2D;};interface PaymentMethodChangeEvent extends PaymentRequestUpdateEvent{readonly methodDetails:any;readonly methodName:string;}declare var PaymentMethodChangeEvent:{prototype:PaymentMethodChangeEvent;new(type:string,eventInitDict?:PaymentMethodChangeEventInit):PaymentMethodChangeEvent;};interface PaymentRequestEventMap{"paymentmethodchange":Event;}interface PaymentRequest extends EventTarget{readonly id:string;onpaymentmethodchange:((this:PaymentRequest,ev:Event)=>any)|null;abort():Promise;canMakePayment():Promise;show(detailsPromise?:PaymentDetailsUpdate|PromiseLike):Promise;addEventListener(type:K,listener:(this:PaymentRequest,ev:PaymentRequestEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(type:K,listener:(this:PaymentRequest,ev:PaymentRequestEventMap[K])=>any,options?:boolean|EventListenerOptions):void;removeEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|EventListenerOptions):void;}declare var PaymentRequest:{prototype:PaymentRequest;new(methodData:PaymentMethodData[],details:PaymentDetailsInit):PaymentRequest;};interface PaymentRequestUpdateEvent extends Event{updateWith(detailsPromise:PaymentDetailsUpdate|PromiseLike):void;}declare var PaymentRequestUpdateEvent:{prototype:PaymentRequestUpdateEvent;new(type:string,eventInitDict?:PaymentRequestUpdateEventInit):PaymentRequestUpdateEvent;};interface PaymentResponse extends EventTarget{readonly details:any;readonly methodName:string;readonly requestId:string;complete(result?:PaymentComplete):Promise;retry(errorFields?:PaymentValidationErrors):Promise;toJSON():any;}declare var PaymentResponse:{prototype:PaymentResponse;new():PaymentResponse;};interface PerformanceEventMap{"resourcetimingbufferfull":Event;}interface Performance extends EventTarget{readonly eventCounts:EventCounts;readonly navigation:PerformanceNavigation;onresourcetimingbufferfull:((this:Performance,ev:Event)=>any)|null;readonly timeOrigin:DOMHighResTimeStamp;readonly timing:PerformanceTiming;clearMarks(markName?:string):void;clearMeasures(measureName?:string):void;clearResourceTimings():void;getEntries():PerformanceEntryList;getEntriesByName(name:string,type?:string):PerformanceEntryList;getEntriesByType(type:string):PerformanceEntryList;mark(markName:string,markOptions?:PerformanceMarkOptions):PerformanceMark;measure(measureName:string,startOrMeasureOptions?:string|PerformanceMeasureOptions,endMark?:string):PerformanceMeasure;now():DOMHighResTimeStamp;setResourceTimingBufferSize(maxSize:number):void;toJSON():any;addEventListener(type:K,listener:(this:Performance,ev:PerformanceEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(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;};interface PerformanceEntry{readonly duration:DOMHighResTimeStamp;readonly entryType:string;readonly name:string;readonly startTime:DOMHighResTimeStamp;toJSON():any;}declare var PerformanceEntry:{prototype:PerformanceEntry;new():PerformanceEntry;};interface PerformanceEventTiming extends PerformanceEntry{readonly cancelable:boolean;readonly processingEnd:DOMHighResTimeStamp;readonly processingStart:DOMHighResTimeStamp;readonly target:Node|null;toJSON():any;}declare var PerformanceEventTiming:{prototype:PerformanceEventTiming;new():PerformanceEventTiming;};interface PerformanceMark extends PerformanceEntry{readonly detail:any;}declare var PerformanceMark:{prototype:PerformanceMark;new(markName:string,markOptions?:PerformanceMarkOptions):PerformanceMark;};interface PerformanceMeasure extends PerformanceEntry{readonly detail:any;}declare var PerformanceMeasure:{prototype:PerformanceMeasure;new():PerformanceMeasure;};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;};interface PerformanceNavigationTiming extends PerformanceResourceTiming{readonly domComplete:DOMHighResTimeStamp;readonly domContentLoadedEventEnd:DOMHighResTimeStamp;readonly domContentLoadedEventStart:DOMHighResTimeStamp;readonly domInteractive:DOMHighResTimeStamp;readonly loadEventEnd:DOMHighResTimeStamp;readonly loadEventStart:DOMHighResTimeStamp;readonly redirectCount:number;readonly type:NavigationTimingType;readonly unloadEventEnd:DOMHighResTimeStamp;readonly unloadEventStart:DOMHighResTimeStamp;toJSON():any;}declare var PerformanceNavigationTiming:{prototype:PerformanceNavigationTiming;new():PerformanceNavigationTiming;};interface PerformanceObserver{disconnect():void;observe(options?:PerformanceObserverInit):void;takeRecords():PerformanceEntryList;}declare var PerformanceObserver:{prototype:PerformanceObserver;new(callback:PerformanceObserverCallback):PerformanceObserver;readonly supportedEntryTypes:ReadonlyArray;};interface PerformanceObserverEntryList{getEntries():PerformanceEntryList;getEntriesByName(name:string,type?:string):PerformanceEntryList;getEntriesByType(type:string):PerformanceEntryList;}declare var PerformanceObserverEntryList:{prototype:PerformanceObserverEntryList;new():PerformanceObserverEntryList;};interface PerformancePaintTiming extends PerformanceEntry{}declare var PerformancePaintTiming:{prototype:PerformancePaintTiming;new():PerformancePaintTiming;};interface PerformanceResourceTiming extends PerformanceEntry{readonly connectEnd:DOMHighResTimeStamp;readonly connectStart:DOMHighResTimeStamp;readonly decodedBodySize:number;readonly domainLookupEnd:DOMHighResTimeStamp;readonly domainLookupStart:DOMHighResTimeStamp;readonly encodedBodySize:number;readonly fetchStart:DOMHighResTimeStamp;readonly initiatorType:string;readonly nextHopProtocol:string;readonly redirectEnd:DOMHighResTimeStamp;readonly redirectStart:DOMHighResTimeStamp;readonly requestStart:DOMHighResTimeStamp;readonly responseEnd:DOMHighResTimeStamp;readonly responseStart:DOMHighResTimeStamp;readonly secureConnectionStart:DOMHighResTimeStamp;readonly serverTiming:ReadonlyArray;readonly transferSize:number;readonly workerStart:DOMHighResTimeStamp;toJSON():any;}declare var PerformanceResourceTiming:{prototype:PerformanceResourceTiming;new():PerformanceResourceTiming;};interface PerformanceServerTiming{readonly description:string;readonly duration:DOMHighResTimeStamp;readonly name:string;toJSON():any;}declare var PerformanceServerTiming:{prototype:PerformanceServerTiming;new():PerformanceServerTiming;};interface 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;};interface PeriodicWave{}declare var PeriodicWave:{prototype:PeriodicWave;new(context:BaseAudioContext,options?:PeriodicWaveOptions):PeriodicWave;};interface PermissionStatusEventMap{"change":Event;}interface PermissionStatus extends EventTarget{readonly name:string;onchange:((this:PermissionStatus,ev:Event)=>any)|null;readonly state:PermissionState;addEventListener(type:K,listener:(this:PermissionStatus,ev:PermissionStatusEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(type:K,listener:(this:PermissionStatus,ev:PermissionStatusEventMap[K])=>any,options?:boolean|EventListenerOptions):void;removeEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|EventListenerOptions):void;}declare var PermissionStatus:{prototype:PermissionStatus;new():PermissionStatus;};interface Permissions{query(permissionDesc:PermissionDescriptor):Promise;}declare var Permissions:{prototype:Permissions;new():Permissions;};interface PictureInPictureEvent extends Event{readonly pictureInPictureWindow:PictureInPictureWindow;}declare var PictureInPictureEvent:{prototype:PictureInPictureEvent;new(type:string,eventInitDict:PictureInPictureEventInit):PictureInPictureEvent;};interface PictureInPictureWindowEventMap{"resize":Event;}interface PictureInPictureWindow extends EventTarget{readonly height:number;onresize:((this:PictureInPictureWindow,ev:Event)=>any)|null;readonly width:number;addEventListener(type:K,listener:(this:PictureInPictureWindow,ev:PictureInPictureWindowEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(type:K,listener:(this:PictureInPictureWindow,ev:PictureInPictureWindowEventMap[K])=>any,options?:boolean|EventListenerOptions):void;removeEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|EventListenerOptions):void;}declare var PictureInPictureWindow:{prototype:PictureInPictureWindow;new():PictureInPictureWindow;};interface Plugin{readonly description:string;readonly filename:string;readonly length:number;readonly name:string;item(index:number):MimeType|null;namedItem(name:string):MimeType|null;[index:number]:MimeType;}declare var Plugin:{prototype:Plugin;new():Plugin;};interface PluginArray{readonly length:number;item(index:number):Plugin|null;namedItem(name:string):Plugin|null;refresh():void;[index:number]:Plugin;}declare var PluginArray:{prototype:PluginArray;new():PluginArray;};interface PointerEvent extends MouseEvent{readonly height:number;readonly isPrimary:boolean;readonly pointerId:number;readonly pointerType:string;readonly pressure:number;readonly tangentialPressure:number;readonly tiltX:number;readonly tiltY:number;readonly twist:number;readonly width:number;getCoalescedEvents():PointerEvent[];getPredictedEvents():PointerEvent[];}declare var PointerEvent:{prototype:PointerEvent;new(type:string,eventInitDict?:PointerEventInit):PointerEvent;};interface PopStateEvent extends Event{readonly state:any;}declare var PopStateEvent:{prototype:PopStateEvent;new(type:string,eventInitDict?:PopStateEventInit):PopStateEvent;};interface ProcessingInstruction extends CharacterData,LinkStyle{readonly ownerDocument:Document;readonly target:string;}declare var ProcessingInstruction:{prototype:ProcessingInstruction;new():ProcessingInstruction;};interface ProgressEventextends 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;readonly reason:any;}declare var PromiseRejectionEvent:{prototype:PromiseRejectionEvent;new(type:string,eventInitDict:PromiseRejectionEventInit):PromiseRejectionEvent;};interface PublicKeyCredential extends Credential{readonly authenticatorAttachment:string|null;readonly rawId:ArrayBuffer;readonly response:AuthenticatorResponse;getClientExtensionResults():AuthenticationExtensionsClientOutputs;}declare var PublicKeyCredential:{prototype:PublicKeyCredential;new():PublicKeyCredential;isUserVerifyingPlatformAuthenticatorAvailable():Promise;};interface PushManager{getSubscription():Promise;permissionState(options?:PushSubscriptionOptionsInit):Promise;subscribe(options?:PushSubscriptionOptionsInit):Promise;}declare var PushManager:{prototype:PushManager;new():PushManager;readonly supportedContentEncodings:ReadonlyArray;};interface PushSubscription{readonly endpoint:string;readonly expirationTime:EpochTimeStamp|null;readonly options:PushSubscriptionOptions;getKey(name:PushEncryptionKeyName):ArrayBuffer|null;toJSON():PushSubscriptionJSON;unsubscribe():Promise;}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:EpochTimeStamp;getFingerprints():RTCDtlsFingerprint[];}declare var RTCCertificate:{prototype:RTCCertificate;new():RTCCertificate;};interface RTCDTMFSenderEventMap{"tonechange":RTCDTMFToneChangeEvent;}interface RTCDTMFSender extends EventTarget{readonly canInsertDTMF:boolean;ontonechange:((this:RTCDTMFSender,ev:RTCDTMFToneChangeEvent)=>any)|null;readonly toneBuffer:string;insertDTMF(tones:string,duration?:number,interToneGap?:number):void;addEventListener(type:K,listener:(this:RTCDTMFSender,ev:RTCDTMFSenderEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(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;};interface RTCDTMFToneChangeEvent extends Event{readonly tone:string;}declare var RTCDTMFToneChangeEvent:{prototype:RTCDTMFToneChangeEvent;new(type:string,eventInitDict?:RTCDTMFToneChangeEventInit):RTCDTMFToneChangeEvent;};interface RTCDataChannelEventMap{"bufferedamountlow":Event;"close":Event;"closing":Event;"error":Event;"message":MessageEvent;"open":Event;}interface RTCDataChannel extends EventTarget{binaryType:BinaryType;readonly bufferedAmount:number;bufferedAmountLowThreshold:number;readonly id:number|null;readonly label:string;readonly maxPacketLifeTime:number|null;readonly maxRetransmits:number|null;readonly negotiated:boolean;onbufferedamountlow:((this:RTCDataChannel,ev:Event)=>any)|null;onclose:((this:RTCDataChannel,ev:Event)=>any)|null;onclosing:((this:RTCDataChannel,ev:Event)=>any)|null;onerror:((this:RTCDataChannel,ev:Event)=>any)|null;onmessage:((this:RTCDataChannel,ev:MessageEvent)=>any)|null;onopen:((this:RTCDataChannel,ev:Event)=>any)|null;readonly ordered:boolean;readonly protocol:string;readonly readyState:RTCDataChannelState;close():void;send(data:string):void;send(data:Blob):void;send(data:ArrayBuffer):void;send(data:ArrayBufferView):void;addEventListener(type:K,listener:(this:RTCDataChannel,ev:RTCDataChannelEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(type:K,listener:(this:RTCDataChannel,ev:RTCDataChannelEventMap[K])=>any,options?:boolean|EventListenerOptions):void;removeEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|EventListenerOptions):void;}declare var RTCDataChannel:{prototype:RTCDataChannel;new():RTCDataChannel;};interface RTCDataChannelEvent extends Event{readonly channel:RTCDataChannel;}declare var RTCDataChannelEvent:{prototype:RTCDataChannelEvent;new(type:string,eventInitDict:RTCDataChannelEventInit):RTCDataChannelEvent;};interface RTCDtlsTransportEventMap{"error":Event;"statechange":Event;}interface RTCDtlsTransport extends EventTarget{readonly iceTransport:RTCIceTransport;onerror:((this:RTCDtlsTransport,ev:Event)=>any)|null;onstatechange:((this:RTCDtlsTransport,ev:Event)=>any)|null;readonly state:RTCDtlsTransportState;getRemoteCertificates():ArrayBuffer[];addEventListener(type:K,listener:(this:RTCDtlsTransport,ev:RTCDtlsTransportEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(type:K,listener:(this:RTCDtlsTransport,ev:RTCDtlsTransportEventMap[K])=>any,options?:boolean|EventListenerOptions):void;removeEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|EventListenerOptions):void;}declare var RTCDtlsTransport:{prototype:RTCDtlsTransport;new():RTCDtlsTransport;};interface RTCEncodedAudioFrame{data:ArrayBuffer;readonly timestamp:number;getMetadata():RTCEncodedAudioFrameMetadata;}declare var RTCEncodedAudioFrame:{prototype:RTCEncodedAudioFrame;new():RTCEncodedAudioFrame;};interface RTCEncodedVideoFrame{data:ArrayBuffer;readonly timestamp:number;readonly type:RTCEncodedVideoFrameType;getMetadata():RTCEncodedVideoFrameMetadata;}declare var RTCEncodedVideoFrame:{prototype:RTCEncodedVideoFrame;new():RTCEncodedVideoFrame;};interface RTCError extends DOMException{readonly errorDetail:RTCErrorDetailType;readonly receivedAlert:number|null;readonly sctpCauseCode:number|null;readonly sdpLineNumber:number|null;readonly sentAlert:number|null;}declare var RTCError:{prototype:RTCError;new(init:RTCErrorInit,message?:string):RTCError;};interface RTCErrorEvent extends Event{readonly error:RTCError;}declare var RTCErrorEvent:{prototype:RTCErrorEvent;new(type:string,eventInitDict:RTCErrorEventInit):RTCErrorEvent;};interface RTCIceCandidate{readonly address:string|null;readonly candidate:string;readonly component:RTCIceComponent|null;readonly foundation:string|null;readonly port:number|null;readonly priority:number|null;readonly protocol:RTCIceProtocol|null;readonly relatedAddress:string|null;readonly relatedPort:number|null;readonly sdpMLineIndex:number|null;readonly sdpMid:string|null;readonly tcpType:RTCIceTcpCandidateType|null;readonly type:RTCIceCandidateType|null;readonly usernameFragment:string|null;toJSON():RTCIceCandidateInit;}declare var RTCIceCandidate:{prototype:RTCIceCandidate;new(candidateInitDict?:RTCIceCandidateInit):RTCIceCandidate;};interface RTCIceTransportEventMap{"gatheringstatechange":Event;"statechange":Event;}interface RTCIceTransport extends EventTarget{readonly gatheringState:RTCIceGathererState;ongatheringstatechange:((this:RTCIceTransport,ev:Event)=>any)|null;onstatechange:((this:RTCIceTransport,ev:Event)=>any)|null;readonly state:RTCIceTransportState;addEventListener(type:K,listener:(this:RTCIceTransport,ev:RTCIceTransportEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(type:K,listener:(this:RTCIceTransport,ev:RTCIceTransportEventMap[K])=>any,options?:boolean|EventListenerOptions):void;removeEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|EventListenerOptions):void;}declare var RTCIceTransport:{prototype:RTCIceTransport;new():RTCIceTransport;};interface RTCPeerConnectionEventMap{"connectionstatechange":Event;"datachannel":RTCDataChannelEvent;"icecandidate":RTCPeerConnectionIceEvent;"icecandidateerror":Event;"iceconnectionstatechange":Event;"icegatheringstatechange":Event;"negotiationneeded":Event;"signalingstatechange":Event;"track":RTCTrackEvent;}interface RTCPeerConnection extends EventTarget{readonly canTrickleIceCandidates:boolean|null;readonly connectionState:RTCPeerConnectionState;readonly currentLocalDescription:RTCSessionDescription|null;readonly currentRemoteDescription:RTCSessionDescription|null;readonly iceConnectionState:RTCIceConnectionState;readonly iceGatheringState:RTCIceGatheringState;readonly localDescription:RTCSessionDescription|null;onconnectionstatechange:((this:RTCPeerConnection,ev:Event)=>any)|null;ondatachannel:((this:RTCPeerConnection,ev:RTCDataChannelEvent)=>any)|null;onicecandidate:((this:RTCPeerConnection,ev:RTCPeerConnectionIceEvent)=>any)|null;onicecandidateerror:((this:RTCPeerConnection,ev:Event)=>any)|null;oniceconnectionstatechange:((this:RTCPeerConnection,ev:Event)=>any)|null;onicegatheringstatechange:((this:RTCPeerConnection,ev:Event)=>any)|null;onnegotiationneeded:((this:RTCPeerConnection,ev:Event)=>any)|null;onsignalingstatechange:((this:RTCPeerConnection,ev:Event)=>any)|null;ontrack:((this:RTCPeerConnection,ev:RTCTrackEvent)=>any)|null;readonly pendingLocalDescription:RTCSessionDescription|null;readonly pendingRemoteDescription:RTCSessionDescription|null;readonly remoteDescription:RTCSessionDescription|null;readonly sctp:RTCSctpTransport|null;readonly signalingState:RTCSignalingState;addIceCandidate(candidate?:RTCIceCandidateInit):Promise;addIceCandidate(candidate:RTCIceCandidateInit,successCallback:VoidFunction,failureCallback:RTCPeerConnectionErrorCallback):Promise;addTrack(track:MediaStreamTrack,...streams:MediaStream[]):RTCRtpSender;addTransceiver(trackOrKind:MediaStreamTrack|string,init?:RTCRtpTransceiverInit):RTCRtpTransceiver;close():void;createAnswer(options?:RTCAnswerOptions):Promise;createAnswer(successCallback:RTCSessionDescriptionCallback,failureCallback:RTCPeerConnectionErrorCallback):Promise;createDataChannel(label:string,dataChannelDict?:RTCDataChannelInit):RTCDataChannel;createOffer(options?:RTCOfferOptions):Promise;createOffer(successCallback:RTCSessionDescriptionCallback,failureCallback:RTCPeerConnectionErrorCallback,options?:RTCOfferOptions):Promise;getConfiguration():RTCConfiguration;getReceivers():RTCRtpReceiver[];getSenders():RTCRtpSender[];getStats(selector?:MediaStreamTrack|null):Promise;getTransceivers():RTCRtpTransceiver[];removeTrack(sender:RTCRtpSender):void;restartIce():void;setConfiguration(configuration?:RTCConfiguration):void;setLocalDescription(description?:RTCLocalSessionDescriptionInit):Promise;setLocalDescription(description:RTCLocalSessionDescriptionInit,successCallback:VoidFunction,failureCallback:RTCPeerConnectionErrorCallback):Promise;setRemoteDescription(description:RTCSessionDescriptionInit):Promise;setRemoteDescription(description:RTCSessionDescriptionInit,successCallback:VoidFunction,failureCallback:RTCPeerConnectionErrorCallback):Promise;addEventListener(type:K,listener:(this:RTCPeerConnection,ev:RTCPeerConnectionEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(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;};interface RTCPeerConnectionIceErrorEvent extends Event{readonly address:string|null;readonly errorCode:number;readonly errorText:string;readonly port:number|null;readonly url:string;}declare var RTCPeerConnectionIceErrorEvent:{prototype:RTCPeerConnectionIceErrorEvent;new(type:string,eventInitDict:RTCPeerConnectionIceErrorEventInit):RTCPeerConnectionIceErrorEvent;};interface RTCPeerConnectionIceEvent extends Event{readonly candidate:RTCIceCandidate|null;}declare var RTCPeerConnectionIceEvent:{prototype:RTCPeerConnectionIceEvent;new(type:string,eventInitDict?:RTCPeerConnectionIceEventInit):RTCPeerConnectionIceEvent;};interface RTCRtpReceiver{readonly track:MediaStreamTrack;readonly transport:RTCDtlsTransport|null;getContributingSources():RTCRtpContributingSource[];getParameters():RTCRtpReceiveParameters;getStats():Promise;getSynchronizationSources():RTCRtpSynchronizationSource[];}declare var RTCRtpReceiver:{prototype:RTCRtpReceiver;new():RTCRtpReceiver;getCapabilities(kind:string):RTCRtpCapabilities|null;};interface RTCRtpSender{readonly dtmf:RTCDTMFSender|null;readonly track:MediaStreamTrack|null;readonly transport:RTCDtlsTransport|null;getParameters():RTCRtpSendParameters;getStats():Promise;replaceTrack(withTrack:MediaStreamTrack|null):Promise;setParameters(parameters:RTCRtpSendParameters):Promise;setStreams(...streams:MediaStream[]):void;}declare var RTCRtpSender:{prototype:RTCRtpSender;new():RTCRtpSender;getCapabilities(kind:string):RTCRtpCapabilities|null;};interface RTCRtpTransceiver{readonly currentDirection:RTCRtpTransceiverDirection|null;direction:RTCRtpTransceiverDirection;readonly mid:string|null;readonly receiver:RTCRtpReceiver;readonly sender:RTCRtpSender;setCodecPreferences(codecs:RTCRtpCodecCapability[]):void;stop():void;}declare var RTCRtpTransceiver:{prototype:RTCRtpTransceiver;new():RTCRtpTransceiver;};interface RTCSctpTransportEventMap{"statechange":Event;}interface RTCSctpTransport extends EventTarget{readonly maxChannels:number|null;readonly maxMessageSize:number;onstatechange:((this:RTCSctpTransport,ev:Event)=>any)|null;readonly state:RTCSctpTransportState;readonly transport:RTCDtlsTransport;addEventListener(type:K,listener:(this:RTCSctpTransport,ev:RTCSctpTransportEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(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;};interface RTCSessionDescription{readonly sdp:string;readonly type:RTCSdpType;toJSON():any;}declare var RTCSessionDescription:{prototype:RTCSessionDescription;new(descriptionInitDict:RTCSessionDescriptionInit):RTCSessionDescription;};interface RTCStatsReport{forEach(callbackfn:(value:any,key:string,parent:RTCStatsReport)=>void,thisArg?:any):void;}declare var RTCStatsReport:{prototype:RTCStatsReport;new():RTCStatsReport;};interface RTCTrackEvent extends Event{readonly receiver:RTCRtpReceiver;readonly streams:ReadonlyArray;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 Range extends AbstractRange{readonly commonAncestorContainer:Node;cloneContents():DocumentFragment;cloneRange():Range;collapse(toStart?:boolean):void;compareBoundaryPoints(how:number,sourceRange:Range):number;comparePoint(node:Node,offset:number):number;createContextualFragment(fragment:string):DocumentFragment;deleteContents():void;detach():void;extractContents():DocumentFragment;getBoundingClientRect():DOMRect;getClientRects():DOMRectList;insertNode(node:Node):void;intersectsNode(node:Node):boolean;isPointInRange(node:Node,offset:number):boolean;selectNode(node:Node):void;selectNodeContents(node:Node):void;setEnd(node:Node,offset:number):void;setEndAfter(node:Node):void;setEndBefore(node:Node):void;setStart(node:Node,offset:number):void;setStartAfter(node:Node):void;setStartBefore(node:Node):void;surroundContents(newParent:Node):void;toString():string;readonly END_TO_END:number;readonly END_TO_START:number;readonly START_TO_END:number;readonly START_TO_START:number;}declare var Range:{prototype:Range;new():Range;readonly END_TO_END:number;readonly END_TO_START:number;readonly START_TO_END:number;readonly START_TO_START:number;toString():string;};interface ReadableByteStreamController{readonly byobRequest:ReadableStreamBYOBRequest|null;readonly desiredSize:number|null;close():void;enqueue(chunk:ArrayBufferView):void;error(e?:any):void;}declare var ReadableByteStreamController:{prototype:ReadableByteStreamController;new():ReadableByteStreamController;};interface ReadableStream{readonly locked:boolean;cancel(reason?:any):Promise;getReader(options:{mode:"byob"}):ReadableStreamBYOBReader;getReader():ReadableStreamDefaultReader;getReader(options?:ReadableStreamGetReaderOptions):ReadableStreamReader;pipeThrough(transform:ReadableWritablePair,options?:StreamPipeOptions):ReadableStream;pipeTo(destination:WritableStream,options?:StreamPipeOptions):Promise;tee():[ReadableStream,ReadableStream];}declare var ReadableStream:{prototype:ReadableStream;new(underlyingSource:UnderlyingByteSource,strategy?:{highWaterMark?:number}):ReadableStream;new(underlyingSource:UnderlyingDefaultSource,strategy?:QueuingStrategy):ReadableStream;new(underlyingSource?:UnderlyingSource,strategy?:QueuingStrategy):ReadableStream;};interface ReadableStreamBYOBReader extends ReadableStreamGenericReader{read(view:T):Promise>;releaseLock():void;}declare var ReadableStreamBYOBReader:{prototype:ReadableStreamBYOBReader;new(stream:ReadableStream):ReadableStreamBYOBReader;};interface ReadableStreamBYOBRequest{readonly view:ArrayBufferView|null;respond(bytesWritten:number):void;respondWithNewView(view:ArrayBufferView):void;}declare var ReadableStreamBYOBRequest:{prototype:ReadableStreamBYOBRequest;new():ReadableStreamBYOBRequest;};interface ReadableStreamDefaultController{readonly desiredSize:number|null;close():void;enqueue(chunk?:R):void;error(e?:any):void;}declare var ReadableStreamDefaultController:{prototype:ReadableStreamDefaultController;new():ReadableStreamDefaultController;};interface ReadableStreamDefaultReaderextends ReadableStreamGenericReader{read():Promise>;releaseLock():void;}declare var ReadableStreamDefaultReader:{prototype:ReadableStreamDefaultReader;new(stream:ReadableStream):ReadableStreamDefaultReader;};interface ReadableStreamGenericReader{readonly closed:Promise;cancel(reason?:any):Promise;}interface RemotePlaybackEventMap{"connect":Event;"connecting":Event;"disconnect":Event;}interface RemotePlayback extends EventTarget{onconnect:((this:RemotePlayback,ev:Event)=>any)|null;onconnecting:((this:RemotePlayback,ev:Event)=>any)|null;ondisconnect:((this:RemotePlayback,ev:Event)=>any)|null;readonly state:RemotePlaybackState;cancelWatchAvailability(id?:number):Promise;prompt():Promise;watchAvailability(callback:RemotePlaybackAvailabilityCallback):Promise;addEventListener(type:K,listener:(this:RemotePlayback,ev:RemotePlaybackEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(type:K,listener:(this:RemotePlayback,ev:RemotePlaybackEventMap[K])=>any,options?:boolean|EventListenerOptions):void;removeEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|EventListenerOptions):void;}declare var RemotePlayback:{prototype:RemotePlayback;new():RemotePlayback;};interface Request extends Body{readonly cache:RequestCache;readonly credentials:RequestCredentials;readonly destination:RequestDestination;readonly headers:Headers;readonly integrity:string;readonly keepalive:boolean;readonly method:string;readonly mode:RequestMode;readonly redirect:RequestRedirect;readonly referrer:string;readonly referrerPolicy:ReferrerPolicy;readonly signal:AbortSignal;readonly url:string;clone():Request;}declare var Request:{prototype:Request;new(input:RequestInfo|URL,init?:RequestInit):Request;};interface ResizeObserver{disconnect():void;observe(target:Element,options?:ResizeObserverOptions):void;unobserve(target:Element):void;}declare var ResizeObserver:{prototype:ResizeObserver;new(callback:ResizeObserverCallback):ResizeObserver;};interface ResizeObserverEntry{readonly borderBoxSize:ReadonlyArray;readonly contentBoxSize:ReadonlyArray;readonly contentRect:DOMRectReadOnly;readonly devicePixelContentBoxSize:ReadonlyArray;readonly target:Element;}declare var ResizeObserverEntry:{prototype:ResizeObserverEntry;new():ResizeObserverEntry;};interface ResizeObserverSize{readonly blockSize:number;readonly inlineSize:number;}declare var ResizeObserverSize:{prototype:ResizeObserverSize;new():ResizeObserverSize;};interface Response extends Body{readonly headers:Headers;readonly ok:boolean;readonly redirected:boolean;readonly status:number;readonly statusText:string;readonly type:ResponseType;readonly url:string;clone():Response;}declare var Response:{prototype:Response;new(body?:BodyInit|null,init?:ResponseInit):Response;error():Response;redirect(url:string|URL,status?:number):Response;};interface SVGAElement extends SVGGraphicsElement,SVGURIReference{rel:string;readonly relList:DOMTokenList;readonly target:SVGAnimatedString;addEventListener(type:K,listener:(this:SVGAElement,ev:SVGElementEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(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;};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(type:K,listener:(this:SVGAnimateElement,ev:SVGElementEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(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(type:K,listener:(this:SVGAnimateMotionElement,ev:SVGElementEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(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(type:K,listener:(this:SVGAnimateTransformElement,ev:SVGElementEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(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;};interface SVGAnimatedAngle{readonly animVal:SVGAngle;readonly baseVal:SVGAngle;}declare var SVGAnimatedAngle:{prototype:SVGAnimatedAngle;new():SVGAnimatedAngle;};interface SVGAnimatedBoolean{readonly animVal:boolean;baseVal:boolean;}declare var SVGAnimatedBoolean:{prototype:SVGAnimatedBoolean;new():SVGAnimatedBoolean;};interface SVGAnimatedEnumeration{readonly animVal:number;baseVal:number;}declare var SVGAnimatedEnumeration:{prototype:SVGAnimatedEnumeration;new():SVGAnimatedEnumeration;};interface SVGAnimatedInteger{readonly animVal:number;baseVal:number;}declare var SVGAnimatedInteger:{prototype:SVGAnimatedInteger;new():SVGAnimatedInteger;};interface SVGAnimatedLength{readonly animVal:SVGLength;readonly baseVal:SVGLength;}declare var SVGAnimatedLength:{prototype:SVGAnimatedLength;new():SVGAnimatedLength;};interface SVGAnimatedLengthList{readonly animVal:SVGLengthList;readonly baseVal:SVGLengthList;}declare var SVGAnimatedLengthList:{prototype:SVGAnimatedLengthList;new():SVGAnimatedLengthList;};interface SVGAnimatedNumber{readonly animVal:number;baseVal:number;}declare var SVGAnimatedNumber:{prototype:SVGAnimatedNumber;new():SVGAnimatedNumber;};interface SVGAnimatedNumberList{readonly animVal:SVGNumberList;readonly baseVal:SVGNumberList;}declare var SVGAnimatedNumberList:{prototype:SVGAnimatedNumberList;new():SVGAnimatedNumberList;};interface SVGAnimatedPoints{readonly animatedPoints:SVGPointList;readonly points:SVGPointList;}interface SVGAnimatedPreserveAspectRatio{readonly animVal:SVGPreserveAspectRatio;readonly baseVal:SVGPreserveAspectRatio;}declare var SVGAnimatedPreserveAspectRatio:{prototype:SVGAnimatedPreserveAspectRatio;new():SVGAnimatedPreserveAspectRatio;};interface SVGAnimatedRect{readonly animVal:DOMRectReadOnly;readonly baseVal:DOMRect;}declare var SVGAnimatedRect:{prototype:SVGAnimatedRect;new():SVGAnimatedRect;};interface SVGAnimatedString{readonly animVal:string;baseVal:string;}declare var SVGAnimatedString:{prototype:SVGAnimatedString;new():SVGAnimatedString;};interface SVGAnimatedTransformList{readonly animVal:SVGTransformList;readonly baseVal:SVGTransformList;}declare var SVGAnimatedTransformList:{prototype:SVGAnimatedTransformList;new():SVGAnimatedTransformList;};interface SVGAnimationElement extends SVGElement,SVGTests{readonly targetElement:SVGElement|null;beginElement():void;beginElementAt(offset:number):void;endElement():void;endElementAt(offset:number):void;getCurrentTime():number;getSimpleDuration():number;getStartTime():number;addEventListener(type:K,listener:(this:SVGAnimationElement,ev:SVGElementEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(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;};interface SVGCircleElement extends SVGGeometryElement{readonly cx:SVGAnimatedLength;readonly cy:SVGAnimatedLength;readonly r:SVGAnimatedLength;addEventListener(type:K,listener:(this:SVGCircleElement,ev:SVGElementEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(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;};interface SVGClipPathElement extends SVGElement{readonly clipPathUnits:SVGAnimatedEnumeration;readonly transform:SVGAnimatedTransformList;addEventListener(type:K,listener:(this:SVGClipPathElement,ev:SVGElementEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(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;};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(type:K,listener:(this:SVGComponentTransferFunctionElement,ev:SVGElementEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(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 SVGDefsElement extends SVGGraphicsElement{addEventListener(type:K,listener:(this:SVGDefsElement,ev:SVGElementEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(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;};interface SVGDescElement extends SVGElement{addEventListener(type:K,listener:(this:SVGDescElement,ev:SVGElementEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(type:K,listener:(this:SVGDescElement,ev:SVGElementEventMap[K])=>any,options?:boolean|EventListenerOptions):void;removeEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|EventListenerOptions):void;}declare var SVGDescElement:{prototype:SVGDescElement;new():SVGDescElement;};interface SVGElementEventMap extends ElementEventMap,DocumentAndElementEventHandlersEventMap,GlobalEventHandlersEventMap{}interface SVGElement extends Element,DocumentAndElementEventHandlers,ElementCSSInlineStyle,GlobalEventHandlers,HTMLOrSVGElement{readonly className:any;readonly ownerSVGElement:SVGSVGElement|null;readonly viewportElement:SVGElement|null;addEventListener(type:K,listener:(this:SVGElement,ev:SVGElementEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(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 SVGEllipseElement extends SVGGeometryElement{readonly cx:SVGAnimatedLength;readonly cy:SVGAnimatedLength;readonly rx:SVGAnimatedLength;readonly ry:SVGAnimatedLength;addEventListener(type:K,listener:(this:SVGEllipseElement,ev:SVGElementEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(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;};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(type:K,listener:(this:SVGFEBlendElement,ev:SVGElementEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(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;};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(type:K,listener:(this:SVGFEColorMatrixElement,ev:SVGElementEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(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;};interface SVGFEComponentTransferElement extends SVGElement,SVGFilterPrimitiveStandardAttributes{readonly in1:SVGAnimatedString;addEventListener(type:K,listener:(this:SVGFEComponentTransferElement,ev:SVGElementEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(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;};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(type:K,listener:(this:SVGFECompositeElement,ev:SVGElementEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(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;};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(type:K,listener:(this:SVGFEConvolveMatrixElement,ev:SVGElementEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(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;};interface SVGFEDiffuseLightingElement extends SVGElement,SVGFilterPrimitiveStandardAttributes{readonly diffuseConstant:SVGAnimatedNumber;readonly in1:SVGAnimatedString;readonly kernelUnitLengthX:SVGAnimatedNumber;readonly kernelUnitLengthY:SVGAnimatedNumber;readonly surfaceScale:SVGAnimatedNumber;addEventListener(type:K,listener:(this:SVGFEDiffuseLightingElement,ev:SVGElementEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(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;};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(type:K,listener:(this:SVGFEDisplacementMapElement,ev:SVGElementEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(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;};interface SVGFEDistantLightElement extends SVGElement{readonly azimuth:SVGAnimatedNumber;readonly elevation:SVGAnimatedNumber;addEventListener(type:K,listener:(this:SVGFEDistantLightElement,ev:SVGElementEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(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(type:K,listener:(this:SVGFEDropShadowElement,ev:SVGElementEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(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;};interface SVGFEFloodElement extends SVGElement,SVGFilterPrimitiveStandardAttributes{addEventListener(type:K,listener:(this:SVGFEFloodElement,ev:SVGElementEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(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;};interface SVGFEFuncAElement extends SVGComponentTransferFunctionElement{addEventListener(type:K,listener:(this:SVGFEFuncAElement,ev:SVGElementEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(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;};interface SVGFEFuncBElement extends SVGComponentTransferFunctionElement{addEventListener(type:K,listener:(this:SVGFEFuncBElement,ev:SVGElementEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(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;};interface SVGFEFuncGElement extends SVGComponentTransferFunctionElement{addEventListener(type:K,listener:(this:SVGFEFuncGElement,ev:SVGElementEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(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;};interface SVGFEFuncRElement extends SVGComponentTransferFunctionElement{addEventListener(type:K,listener:(this:SVGFEFuncRElement,ev:SVGElementEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(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;};interface SVGFEGaussianBlurElement extends SVGElement,SVGFilterPrimitiveStandardAttributes{readonly in1:SVGAnimatedString;readonly stdDeviationX:SVGAnimatedNumber;readonly stdDeviationY:SVGAnimatedNumber;setStdDeviation(stdDeviationX:number,stdDeviationY:number):void;addEventListener(type:K,listener:(this:SVGFEGaussianBlurElement,ev:SVGElementEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(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;};interface SVGFEImageElement extends SVGElement,SVGFilterPrimitiveStandardAttributes,SVGURIReference{readonly preserveAspectRatio:SVGAnimatedPreserveAspectRatio;addEventListener(type:K,listener:(this:SVGFEImageElement,ev:SVGElementEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(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;};interface SVGFEMergeElement extends SVGElement,SVGFilterPrimitiveStandardAttributes{addEventListener(type:K,listener:(this:SVGFEMergeElement,ev:SVGElementEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(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;};interface SVGFEMergeNodeElement extends SVGElement{readonly in1:SVGAnimatedString;addEventListener(type:K,listener:(this:SVGFEMergeNodeElement,ev:SVGElementEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(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;};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(type:K,listener:(this:SVGFEMorphologyElement,ev:SVGElementEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(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;};interface SVGFEOffsetElement extends SVGElement,SVGFilterPrimitiveStandardAttributes{readonly dx:SVGAnimatedNumber;readonly dy:SVGAnimatedNumber;readonly in1:SVGAnimatedString;addEventListener(type:K,listener:(this:SVGFEOffsetElement,ev:SVGElementEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(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;};interface SVGFEPointLightElement extends SVGElement{readonly x:SVGAnimatedNumber;readonly y:SVGAnimatedNumber;readonly z:SVGAnimatedNumber;addEventListener(type:K,listener:(this:SVGFEPointLightElement,ev:SVGElementEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(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;};interface SVGFESpecularLightingElement extends SVGElement,SVGFilterPrimitiveStandardAttributes{readonly in1:SVGAnimatedString;readonly kernelUnitLengthX:SVGAnimatedNumber;readonly kernelUnitLengthY:SVGAnimatedNumber;readonly specularConstant:SVGAnimatedNumber;readonly specularExponent:SVGAnimatedNumber;readonly surfaceScale:SVGAnimatedNumber;addEventListener(type:K,listener:(this:SVGFESpecularLightingElement,ev:SVGElementEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(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;};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(type:K,listener:(this:SVGFESpotLightElement,ev:SVGElementEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(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;};interface SVGFETileElement extends SVGElement,SVGFilterPrimitiveStandardAttributes{readonly in1:SVGAnimatedString;addEventListener(type:K,listener:(this:SVGFETileElement,ev:SVGElementEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(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;};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(type:K,listener:(this:SVGFETurbulenceElement,ev:SVGElementEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(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;};interface SVGFilterElement extends SVGElement,SVGURIReference{readonly filterUnits:SVGAnimatedEnumeration;readonly height:SVGAnimatedLength;readonly primitiveUnits:SVGAnimatedEnumeration;readonly width:SVGAnimatedLength;readonly x:SVGAnimatedLength;readonly y:SVGAnimatedLength;addEventListener(type:K,listener:(this:SVGFilterElement,ev:SVGElementEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(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;}interface SVGForeignObjectElement extends SVGGraphicsElement{readonly height:SVGAnimatedLength;readonly width:SVGAnimatedLength;readonly x:SVGAnimatedLength;readonly y:SVGAnimatedLength;addEventListener(type:K,listener:(this:SVGForeignObjectElement,ev:SVGElementEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(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;};interface SVGGElement extends SVGGraphicsElement{addEventListener(type:K,listener:(this:SVGGElement,ev:SVGElementEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(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(type:K,listener:(this:SVGGeometryElement,ev:SVGElementEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(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;};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(type:K,listener:(this:SVGGradientElement,ev:SVGElementEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(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;};interface SVGGraphicsElement extends SVGElement,SVGTests{readonly transform:SVGAnimatedTransformList;getBBox(options?:SVGBoundingBoxOptions):DOMRect;getCTM():DOMMatrix|null;getScreenCTM():DOMMatrix|null;addEventListener(type:K,listener:(this:SVGGraphicsElement,ev:SVGElementEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(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;};interface SVGImageElement extends SVGGraphicsElement,SVGURIReference{readonly height:SVGAnimatedLength;readonly preserveAspectRatio:SVGAnimatedPreserveAspectRatio;readonly width:SVGAnimatedLength;readonly x:SVGAnimatedLength;readonly y:SVGAnimatedLength;addEventListener(type:K,listener:(this:SVGImageElement,ev:SVGElementEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(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;};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;};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;};interface SVGLineElement extends SVGGeometryElement{readonly x1:SVGAnimatedLength;readonly x2:SVGAnimatedLength;readonly y1:SVGAnimatedLength;readonly y2:SVGAnimatedLength;addEventListener(type:K,listener:(this:SVGLineElement,ev:SVGElementEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(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;};interface SVGLinearGradientElement extends SVGGradientElement{readonly x1:SVGAnimatedLength;readonly x2:SVGAnimatedLength;readonly y1:SVGAnimatedLength;readonly y2:SVGAnimatedLength;addEventListener(type:K,listener:(this:SVGLinearGradientElement,ev:SVGElementEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(type:K,listener:(this:SVGLinearGradientElement,ev:SVGElementEventMap[K])=>any,options?:boolean|EventListenerOptions):void;removeEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|EventListenerOptions):void;}declare var SVGLinearGradientElement:{prototype:SVGLinearGradientElement;new():SVGLinearGradientElement;};interface SVGMPathElement extends SVGElement,SVGURIReference{addEventListener(type:K,listener:(this:SVGMPathElement,ev:SVGElementEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(type:K,listener:(this:SVGMPathElement,ev:SVGElementEventMap[K])=>any,options?:boolean|EventListenerOptions):void;removeEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|EventListenerOptions):void;}declare var SVGMPathElement:{prototype:SVGMPathElement;new():SVGMPathElement;};interface SVGMarkerElement extends SVGElement,SVGFitToViewBox{readonly markerHeight:SVGAnimatedLength;readonly markerUnits:SVGAnimatedEnumeration;readonly markerWidth:SVGAnimatedLength;readonly orientAngle:SVGAnimatedAngle;readonly orientType:SVGAnimatedEnumeration;readonly refX:SVGAnimatedLength;readonly refY:SVGAnimatedLength;setOrientToAngle(angle:SVGAngle):void;setOrientToAuto():void;readonly SVG_MARKERUNITS_STROKEWIDTH:number;readonly SVG_MARKERUNITS_UNKNOWN:number;readonly SVG_MARKERUNITS_USERSPACEONUSE:number;readonly SVG_MARKER_ORIENT_ANGLE:number;readonly SVG_MARKER_ORIENT_AUTO:number;readonly SVG_MARKER_ORIENT_UNKNOWN:number;addEventListener(type:K,listener:(this:SVGMarkerElement,ev:SVGElementEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(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;};interface SVGMaskElement extends SVGElement{readonly height:SVGAnimatedLength;readonly maskContentUnits:SVGAnimatedEnumeration;readonly maskUnits:SVGAnimatedEnumeration;readonly width:SVGAnimatedLength;readonly x:SVGAnimatedLength;readonly y:SVGAnimatedLength;addEventListener(type:K,listener:(this:SVGMaskElement,ev:SVGElementEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(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;};interface SVGMetadataElement extends SVGElement{addEventListener(type:K,listener:(this:SVGMetadataElement,ev:SVGElementEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(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;};interface SVGNumber{value:number;}declare var SVGNumber:{prototype:SVGNumber;new():SVGNumber;};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;};interface SVGPathElement extends SVGGeometryElement{addEventListener(type:K,listener:(this:SVGPathElement,ev:SVGElementEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(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 SVGPatternElement extends SVGElement,SVGFitToViewBox,SVGURIReference{readonly height:SVGAnimatedLength;readonly patternContentUnits:SVGAnimatedEnumeration;readonly patternTransform:SVGAnimatedTransformList;readonly patternUnits:SVGAnimatedEnumeration;readonly width:SVGAnimatedLength;readonly x:SVGAnimatedLength;readonly y:SVGAnimatedLength;addEventListener(type:K,listener:(this:SVGPatternElement,ev:SVGElementEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(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;};interface SVGPolygonElement extends SVGGeometryElement,SVGAnimatedPoints{addEventListener(type:K,listener:(this:SVGPolygonElement,ev:SVGElementEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(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;};interface SVGPolylineElement extends SVGGeometryElement,SVGAnimatedPoints{addEventListener(type:K,listener:(this:SVGPolylineElement,ev:SVGElementEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(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;};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;};interface SVGRadialGradientElement extends SVGGradientElement{readonly cx:SVGAnimatedLength;readonly cy:SVGAnimatedLength;readonly fr:SVGAnimatedLength;readonly fx:SVGAnimatedLength;readonly fy:SVGAnimatedLength;readonly r:SVGAnimatedLength;addEventListener(type:K,listener:(this:SVGRadialGradientElement,ev:SVGElementEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(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;};interface SVGRectElement extends SVGGeometryElement{readonly height:SVGAnimatedLength;readonly rx:SVGAnimatedLength;readonly ry:SVGAnimatedLength;readonly width:SVGAnimatedLength;readonly x:SVGAnimatedLength;readonly y:SVGAnimatedLength;addEventListener(type:K,listener:(this:SVGRectElement,ev:SVGElementEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(type:K,listener:(this:SVGRectElement,ev:SVGElementEventMap[K])=>any,options?:boolean|EventListenerOptions):void;removeEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|EventListenerOptions):void;}declare var SVGRectElement:{prototype:SVGRectElement;new():SVGRectElement;};interface SVGSVGElementEventMap extends SVGElementEventMap,WindowEventHandlersEventMap{}interface SVGSVGElement extends SVGGraphicsElement,SVGFitToViewBox,WindowEventHandlers{currentScale:number;readonly currentTranslate:DOMPointReadOnly;readonly height:SVGAnimatedLength;readonly width:SVGAnimatedLength;readonly x:SVGAnimatedLength;readonly y:SVGAnimatedLength;animationsPaused():boolean;checkEnclosure(element:SVGElement,rect:DOMRectReadOnly):boolean;checkIntersection(element:SVGElement,rect:DOMRectReadOnly):boolean;createSVGAngle():SVGAngle;createSVGLength():SVGLength;createSVGMatrix():DOMMatrix;createSVGNumber():SVGNumber;createSVGPoint():DOMPoint;createSVGRect():DOMRect;createSVGTransform():SVGTransform;createSVGTransformFromMatrix(matrix?:DOMMatrix2DInit):SVGTransform;deselectAll():void;forceRedraw():void;getCurrentTime():number;getElementById(elementId:string):Element;getEnclosureList(rect:DOMRectReadOnly,referenceElement:SVGElement|null):NodeListOf;getIntersectionList(rect:DOMRectReadOnly,referenceElement:SVGElement|null):NodeListOf;pauseAnimations():void;setCurrentTime(seconds:number):void;suspendRedraw(maxWaitMilliseconds:number):number;unpauseAnimations():void;unsuspendRedraw(suspendHandleID:number):void;unsuspendRedrawAll():void;addEventListener(type:K,listener:(this:SVGSVGElement,ev:SVGSVGElementEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(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;};interface SVGScriptElement extends SVGElement,SVGURIReference{type:string;addEventListener(type:K,listener:(this:SVGScriptElement,ev:SVGElementEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(type:K,listener:(this:SVGScriptElement,ev:SVGElementEventMap[K])=>any,options?:boolean|EventListenerOptions):void;removeEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|EventListenerOptions):void;}declare var SVGScriptElement:{prototype:SVGScriptElement;new():SVGScriptElement;};interface SVGSetElement extends SVGAnimationElement{addEventListener(type:K,listener:(this:SVGSetElement,ev:SVGElementEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(type:K,listener:(this:SVGSetElement,ev:SVGElementEventMap[K])=>any,options?:boolean|EventListenerOptions):void;removeEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|EventListenerOptions):void;}declare var SVGSetElement:{prototype:SVGSetElement;new():SVGSetElement;};interface SVGStopElement extends SVGElement{readonly offset:SVGAnimatedNumber;addEventListener(type:K,listener:(this:SVGStopElement,ev:SVGElementEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(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;};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;};interface SVGStyleElement extends SVGElement,LinkStyle{disabled:boolean;media:string;title:string;type:string;addEventListener(type:K,listener:(this:SVGStyleElement,ev:SVGElementEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(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;};interface SVGSwitchElement extends SVGGraphicsElement{addEventListener(type:K,listener:(this:SVGSwitchElement,ev:SVGElementEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(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;};interface SVGSymbolElement extends SVGElement,SVGFitToViewBox{addEventListener(type:K,listener:(this:SVGSymbolElement,ev:SVGElementEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(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;};interface SVGTSpanElement extends SVGTextPositioningElement{addEventListener(type:K,listener:(this:SVGTSpanElement,ev:SVGElementEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(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;}interface SVGTextContentElement extends SVGGraphicsElement{readonly lengthAdjust:SVGAnimatedEnumeration;readonly textLength:SVGAnimatedLength;getCharNumAtPosition(point?:DOMPointInit):number;getComputedTextLength():number;getEndPositionOfChar(charnum:number):DOMPoint;getExtentOfChar(charnum:number):DOMRect;getNumberOfChars():number;getRotationOfChar(charnum:number):number;getStartPositionOfChar(charnum:number):DOMPoint;getSubStringLength(charnum:number,nchars:number):number;selectSubString(charnum:number,nchars:number):void;readonly LENGTHADJUST_SPACING:number;readonly LENGTHADJUST_SPACINGANDGLYPHS:number;readonly LENGTHADJUST_UNKNOWN:number;addEventListener(type:K,listener:(this:SVGTextContentElement,ev:SVGElementEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(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;};interface SVGTextElement extends SVGTextPositioningElement{addEventListener(type:K,listener:(this:SVGTextElement,ev:SVGElementEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(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;};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(type:K,listener:(this:SVGTextPathElement,ev:SVGElementEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(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;};interface SVGTextPositioningElement extends SVGTextContentElement{readonly dx:SVGAnimatedLengthList;readonly dy:SVGAnimatedLengthList;readonly rotate:SVGAnimatedNumberList;readonly x:SVGAnimatedLengthList;readonly y:SVGAnimatedLengthList;addEventListener(type:K,listener:(this:SVGTextPositioningElement,ev:SVGElementEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(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;};interface SVGTitleElement extends SVGElement{addEventListener(type:K,listener:(this:SVGTitleElement,ev:SVGElementEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(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;};interface SVGTransform{readonly angle:number;readonly matrix:DOMMatrix;readonly type:number;setMatrix(matrix?:DOMMatrix2DInit):void;setRotate(angle:number,cx:number,cy:number):void;setScale(sx:number,sy:number):void;setSkewX(angle:number):void;setSkewY(angle:number):void;setTranslate(tx:number,ty:number):void;readonly SVG_TRANSFORM_MATRIX:number;readonly SVG_TRANSFORM_ROTATE:number;readonly SVG_TRANSFORM_SCALE:number;readonly SVG_TRANSFORM_SKEWX:number;readonly SVG_TRANSFORM_SKEWY:number;readonly SVG_TRANSFORM_TRANSLATE:number;readonly SVG_TRANSFORM_UNKNOWN:number;}declare var SVGTransform:{prototype:SVGTransform;new():SVGTransform;readonly SVG_TRANSFORM_MATRIX:number;readonly SVG_TRANSFORM_ROTATE:number;readonly SVG_TRANSFORM_SCALE:number;readonly SVG_TRANSFORM_SKEWX:number;readonly SVG_TRANSFORM_SKEWY:number;readonly SVG_TRANSFORM_TRANSLATE:number;readonly SVG_TRANSFORM_UNKNOWN:number;};interface SVGTransformList{readonly length:number;readonly numberOfItems:number;appendItem(newItem:SVGTransform):SVGTransform;clear():void;consolidate():SVGTransform|null;createSVGTransformFromMatrix(matrix?:DOMMatrix2DInit):SVGTransform;getItem(index:number):SVGTransform;initialize(newItem:SVGTransform):SVGTransform;insertItemBefore(newItem:SVGTransform,index:number):SVGTransform;removeItem(index:number):SVGTransform;replaceItem(newItem:SVGTransform,index:number):SVGTransform;[index:number]:SVGTransform;}declare var SVGTransformList:{prototype:SVGTransformList;new():SVGTransformList;};interface SVGURIReference{readonly href:SVGAnimatedString;}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;};interface SVGUseElement extends SVGGraphicsElement,SVGURIReference{readonly height:SVGAnimatedLength;readonly width:SVGAnimatedLength;readonly x:SVGAnimatedLength;readonly y:SVGAnimatedLength;addEventListener(type:K,listener:(this:SVGUseElement,ev:SVGElementEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(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;};interface SVGViewElement extends SVGElement,SVGFitToViewBox{addEventListener(type:K,listener:(this:SVGViewElement,ev:SVGElementEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(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;};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;unlock():void;addEventListener(type:K,listener:(this:ScreenOrientation,ev:ScreenOrientationEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(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;}interface ScriptProcessorNode extends AudioNode{readonly bufferSize:number;onaudioprocess:((this:ScriptProcessorNode,ev:AudioProcessingEvent)=>any)|null;addEventListener(type:K,listener:(this:ScriptProcessorNode,ev:ScriptProcessorNodeEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(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;};interface SecurityPolicyViolationEvent extends Event{readonly blockedURI:string;readonly columnNumber:number;readonly disposition:SecurityPolicyViolationEventDisposition;readonly documentURI:string;readonly effectiveDirective:string;readonly lineNumber:number;readonly originalPolicy:string;readonly referrer:string;readonly sample:string;readonly sourceFile:string;readonly statusCode:number;readonly violatedDirective:string;}declare var SecurityPolicyViolationEvent:{prototype:SecurityPolicyViolationEvent;new(type:string,eventInitDict?:SecurityPolicyViolationEventInit):SecurityPolicyViolationEvent;};interface Selection{readonly anchorNode:Node|null;readonly anchorOffset:number;readonly focusNode:Node|null;readonly focusOffset:number;readonly isCollapsed:boolean;readonly rangeCount:number;readonly type:string;addRange(range:Range):void;collapse(node:Node|null,offset?:number):void;collapseToEnd():void;collapseToStart():void;containsNode(node:Node,allowPartialContainment?:boolean):boolean;deleteFromDocument():void;empty():void;extend(node:Node,offset?:number):void;getRangeAt(index:number):Range;modify(alter?:string,direction?:string,granularity?:string):void;removeAllRanges():void;removeRange(range:Range):void;selectAllChildren(node:Node):void;setBaseAndExtent(anchorNode:Node,anchorOffset:number,focusNode:Node,focusOffset:number):void;setPosition(node:Node|null,offset?:number):void;toString():string;}declare var Selection:{prototype:Selection;new():Selection;toString():string;};interface ServiceWorkerEventMap extends AbstractWorkerEventMap{"statechange":Event;}interface ServiceWorker extends EventTarget,AbstractWorker{onstatechange:((this:ServiceWorker,ev:Event)=>any)|null;readonly scriptURL:string;readonly state:ServiceWorkerState;postMessage(message:any,transfer:Transferable[]):void;postMessage(message:any,options?:StructuredSerializeOptions):void;addEventListener(type:K,listener:(this:ServiceWorker,ev:ServiceWorkerEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(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;}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;getRegistration(clientURL?:string|URL):Promise;getRegistrations():Promise>;register(scriptURL:string|URL,options?:RegistrationOptions):Promise;startMessages():void;addEventListener(type:K,listener:(this:ServiceWorkerContainer,ev:ServiceWorkerContainerEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(type:K,listener:(this:ServiceWorkerContainer,ev:ServiceWorkerContainerEventMap[K])=>any,options?:boolean|EventListenerOptions):void;removeEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|EventListenerOptions):void;}declare var ServiceWorkerContainer:{prototype:ServiceWorkerContainer;new():ServiceWorkerContainer;};interface ServiceWorkerRegistrationEventMap{"updatefound":Event;}interface ServiceWorkerRegistration extends EventTarget{readonly active:ServiceWorker|null;readonly installing:ServiceWorker|null;readonly navigationPreload:NavigationPreloadManager;onupdatefound:((this:ServiceWorkerRegistration,ev:Event)=>any)|null;readonly pushManager:PushManager;readonly scope:string;readonly updateViaCache:ServiceWorkerUpdateViaCache;readonly waiting:ServiceWorker|null;getNotifications(filter?:GetNotificationOptions):Promise;showNotification(title:string,options?:NotificationOptions):Promise;unregister():Promise;update():Promise;addEventListener(type:K,listener:(this:ServiceWorkerRegistration,ev:ServiceWorkerRegistrationEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(type:K,listener:(this:ServiceWorkerRegistration,ev:ServiceWorkerRegistrationEventMap[K])=>any,options?:boolean|EventListenerOptions):void;removeEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|EventListenerOptions):void;}declare var ServiceWorkerRegistration:{prototype:ServiceWorkerRegistration;new():ServiceWorkerRegistration;};interface ShadowRootEventMap{"slotchange":Event;}interface ShadowRoot extends DocumentFragment,DocumentOrShadowRoot,InnerHTML{readonly delegatesFocus:boolean;readonly host:Element;readonly mode:ShadowRootMode;onslotchange:((this:ShadowRoot,ev:Event)=>any)|null;readonly slotAssignment:SlotAssignmentMode;addEventListener(type:K,listener:(this:ShadowRoot,ev:ShadowRootEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(type:K,listener:(this:ShadowRoot,ev:ShadowRootEventMap[K])=>any,options?:boolean|EventListenerOptions):void;removeEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|EventListenerOptions):void;}declare var ShadowRoot:{prototype:ShadowRoot;new():ShadowRoot;};interface SharedWorker extends EventTarget,AbstractWorker{readonly port:MessagePort;addEventListener(type:K,listener:(this:SharedWorker,ev:AbstractWorkerEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(type:K,listener:(this:SharedWorker,ev:AbstractWorkerEventMap[K])=>any,options?:boolean|EventListenerOptions):void;removeEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|EventListenerOptions):void;}declare var SharedWorker:{prototype:SharedWorker;new(scriptURL:string|URL,options?:string|WorkerOptions):SharedWorker;};interface Slottable{readonly assignedSlot:HTMLSlotElement|null;}interface SourceBufferEventMap{"abort":Event;"error":Event;"update":Event;"updateend":Event;"updatestart":Event;}interface SourceBuffer extends EventTarget{appendWindowEnd:number;appendWindowStart:number;readonly buffered:TimeRanges;mode:AppendMode;onabort:((this:SourceBuffer,ev:Event)=>any)|null;onerror:((this:SourceBuffer,ev:Event)=>any)|null;onupdate:((this:SourceBuffer,ev:Event)=>any)|null;onupdateend:((this:SourceBuffer,ev:Event)=>any)|null;onupdatestart:((this:SourceBuffer,ev:Event)=>any)|null;timestampOffset:number;readonly updating:boolean;abort():void;appendBuffer(data:BufferSource):void;changeType(type:string):void;remove(start:number,end:number):void;addEventListener(type:K,listener:(this:SourceBuffer,ev:SourceBufferEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(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;}interface SourceBufferList extends EventTarget{readonly length:number;onaddsourcebuffer:((this:SourceBufferList,ev:Event)=>any)|null;onremovesourcebuffer:((this:SourceBufferList,ev:Event)=>any)|null;addEventListener(type:K,listener:(this:SourceBufferList,ev:SourceBufferListEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(type:K,listener:(this:SourceBufferList,ev:SourceBufferListEventMap[K])=>any,options?:boolean|EventListenerOptions):void;removeEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|EventListenerOptions):void;[index:number]:SourceBuffer;}declare var SourceBufferList:{prototype:SourceBufferList;new():SourceBufferList;};interface SpeechRecognitionAlternative{readonly confidence:number;readonly transcript:string;}declare var SpeechRecognitionAlternative:{prototype:SpeechRecognitionAlternative;new():SpeechRecognitionAlternative;};interface SpeechRecognitionResult{readonly isFinal:boolean;readonly length:number;item(index:number):SpeechRecognitionAlternative;[index:number]:SpeechRecognitionAlternative;}declare var SpeechRecognitionResult:{prototype:SpeechRecognitionResult;new():SpeechRecognitionResult;};interface SpeechRecognitionResultList{readonly length:number;item(index:number):SpeechRecognitionResult;[index:number]:SpeechRecognitionResult;}declare var SpeechRecognitionResultList:{prototype:SpeechRecognitionResultList;new():SpeechRecognitionResultList;};interface SpeechSynthesisEventMap{"voiceschanged":Event;}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(type:K,listener:(this:SpeechSynthesis,ev:SpeechSynthesisEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(type:K,listener:(this:SpeechSynthesis,ev:SpeechSynthesisEventMap[K])=>any,options?:boolean|EventListenerOptions):void;removeEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|EventListenerOptions):void;}declare var SpeechSynthesis:{prototype:SpeechSynthesis;new():SpeechSynthesis;};interface SpeechSynthesisErrorEvent extends SpeechSynthesisEvent{readonly error:SpeechSynthesisErrorCode;}declare var SpeechSynthesisErrorEvent:{prototype:SpeechSynthesisErrorEvent;new(type:string,eventInitDict:SpeechSynthesisErrorEventInit):SpeechSynthesisErrorEvent;};interface SpeechSynthesisEvent extends Event{readonly charIndex:number;readonly charLength:number;readonly elapsedTime:number;readonly name:string;readonly utterance:SpeechSynthesisUtterance;}declare var SpeechSynthesisEvent:{prototype:SpeechSynthesisEvent;new(type:string,eventInitDict:SpeechSynthesisEventInit):SpeechSynthesisEvent;};interface SpeechSynthesisUtteranceEventMap{"boundary":SpeechSynthesisEvent;"end":SpeechSynthesisEvent;"error":SpeechSynthesisErrorEvent;"mark":SpeechSynthesisEvent;"pause":SpeechSynthesisEvent;"resume":SpeechSynthesisEvent;"start":SpeechSynthesisEvent;}interface SpeechSynthesisUtterance extends EventTarget{lang:string;onboundary:((this:SpeechSynthesisUtterance,ev:SpeechSynthesisEvent)=>any)|null;onend:((this:SpeechSynthesisUtterance,ev:SpeechSynthesisEvent)=>any)|null;onerror:((this:SpeechSynthesisUtterance,ev:SpeechSynthesisErrorEvent)=>any)|null;onmark:((this:SpeechSynthesisUtterance,ev:SpeechSynthesisEvent)=>any)|null;onpause:((this:SpeechSynthesisUtterance,ev:SpeechSynthesisEvent)=>any)|null;onresume:((this:SpeechSynthesisUtterance,ev:SpeechSynthesisEvent)=>any)|null;onstart:((this:SpeechSynthesisUtterance,ev:SpeechSynthesisEvent)=>any)|null;pitch:number;rate:number;text:string;voice:SpeechSynthesisVoice|null;volume:number;addEventListener(type:K,listener:(this:SpeechSynthesisUtterance,ev:SpeechSynthesisUtteranceEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(type:K,listener:(this:SpeechSynthesisUtterance,ev:SpeechSynthesisUtteranceEventMap[K])=>any,options?:boolean|EventListenerOptions):void;removeEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|EventListenerOptions):void;}declare var SpeechSynthesisUtterance:{prototype:SpeechSynthesisUtterance;new(text?:string):SpeechSynthesisUtterance;};interface SpeechSynthesisVoice{readonly default:boolean;readonly lang:string;readonly localService:boolean;readonly name:string;readonly voiceURI:string;}declare var SpeechSynthesisVoice:{prototype:SpeechSynthesisVoice;new():SpeechSynthesisVoice;};interface StaticRange extends AbstractRange{}declare var StaticRange:{prototype:StaticRange;new(init:StaticRangeInit):StaticRange;};interface StereoPannerNode extends AudioNode{readonly pan:AudioParam;}declare var StereoPannerNode:{prototype:StereoPannerNode;new(context:BaseAudioContext,options?:StereoPannerOptions):StereoPannerNode;};interface Storage{readonly length:number;clear():void;getItem(key:string):string|null;key(index:number):string|null;removeItem(key:string):void;setItem(key:string,value:string):void;[name:string]:any;}declare var Storage:{prototype:Storage;new():Storage;};interface StorageEvent extends Event{readonly key:string|null;readonly newValue:string|null;readonly oldValue:string|null;readonly storageArea:Storage|null;readonly url:string;initStorageEvent(type:string,bubbles?:boolean,cancelable?:boolean,key?:string|null,oldValue?:string|null,newValue?:string|null,url?:string|URL,storageArea?:Storage|null):void;}declare var StorageEvent:{prototype:StorageEvent;new(type:string,eventInitDict?:StorageEventInit):StorageEvent;};interface StorageManager{estimate():Promise;getDirectory():Promise;persist():Promise;persisted():Promise;}declare var StorageManager:{prototype:StorageManager;new():StorageManager;};interface StyleMedia{type:string;matchMedium(mediaquery:string):boolean;}interface StyleSheet{disabled:boolean;readonly href:string|null;readonly media:MediaList;readonly ownerNode:Element|ProcessingInstruction|null;readonly parentStyleSheet:CSSStyleSheet|null;readonly title:string|null;readonly type:string;}declare var StyleSheet:{prototype:StyleSheet;new():StyleSheet;};interface StyleSheetList{readonly length:number;item(index:number):CSSStyleSheet|null;[index:number]:CSSStyleSheet;}declare var StyleSheetList:{prototype:StyleSheetList;new():StyleSheetList;};interface SubmitEvent extends Event{readonly submitter:HTMLElement|null;}declare var SubmitEvent:{prototype:SubmitEvent;new(type:string,eventInitDict?:SubmitEventInit):SubmitEvent;};interface SubtleCrypto{decrypt(algorithm:AlgorithmIdentifier|RsaOaepParams|AesCtrParams|AesCbcParams|AesGcmParams,key:CryptoKey,data:BufferSource):Promise;deriveBits(algorithm:AlgorithmIdentifier|EcdhKeyDeriveParams|HkdfParams|Pbkdf2Params,baseKey:CryptoKey,length:number):Promise;deriveKey(algorithm:AlgorithmIdentifier|EcdhKeyDeriveParams|HkdfParams|Pbkdf2Params,baseKey:CryptoKey,derivedKeyType:AlgorithmIdentifier|AesDerivedKeyParams|HmacImportParams|HkdfParams|Pbkdf2Params,extractable:boolean,keyUsages:KeyUsage[]):Promise;digest(algorithm:AlgorithmIdentifier,data:BufferSource):Promise;encrypt(algorithm:AlgorithmIdentifier|RsaOaepParams|AesCtrParams|AesCbcParams|AesGcmParams,key:CryptoKey,data:BufferSource):Promise;exportKey(format:"jwk",key:CryptoKey):Promise;exportKey(format:Exclude,key:CryptoKey):Promise;generateKey(algorithm:RsaHashedKeyGenParams|EcKeyGenParams,extractable:boolean,keyUsages:ReadonlyArray):Promise;generateKey(algorithm:AesKeyGenParams|HmacKeyGenParams|Pbkdf2Params,extractable:boolean,keyUsages:ReadonlyArray):Promise;generateKey(algorithm:AlgorithmIdentifier,extractable:boolean,keyUsages:KeyUsage[]):Promise;importKey(format:"jwk",keyData:JsonWebKey,algorithm:AlgorithmIdentifier|RsaHashedImportParams|EcKeyImportParams|HmacImportParams|AesKeyAlgorithm,extractable:boolean,keyUsages:ReadonlyArray):Promise;importKey(format:Exclude,keyData:BufferSource,algorithm:AlgorithmIdentifier|RsaHashedImportParams|EcKeyImportParams|HmacImportParams|AesKeyAlgorithm,extractable:boolean,keyUsages:KeyUsage[]):Promise;sign(algorithm:AlgorithmIdentifier|RsaPssParams|EcdsaParams,key:CryptoKey,data:BufferSource):Promise;unwrapKey(format:KeyFormat,wrappedKey:BufferSource,unwrappingKey:CryptoKey,unwrapAlgorithm:AlgorithmIdentifier|RsaOaepParams|AesCtrParams|AesCbcParams|AesGcmParams,unwrappedKeyAlgorithm:AlgorithmIdentifier|RsaHashedImportParams|EcKeyImportParams|HmacImportParams|AesKeyAlgorithm,extractable:boolean,keyUsages:KeyUsage[]):Promise;verify(algorithm:AlgorithmIdentifier|RsaPssParams|EcdsaParams,key:CryptoKey,signature:BufferSource,data:BufferSource):Promise;wrapKey(format:KeyFormat,key:CryptoKey,wrappingKey:CryptoKey,wrapAlgorithm:AlgorithmIdentifier|RsaOaepParams|AesCtrParams|AesCbcParams|AesGcmParams):Promise;}declare var SubtleCrypto:{prototype:SubtleCrypto;new():SubtleCrypto;};interface Text extends CharacterData,Slottable{readonly wholeText:string;splitText(offset:number):Text;}declare var Text:{prototype:Text;new(data?:string):Text;};interface TextDecoder extends TextDecoderCommon{decode(input?:BufferSource,options?:TextDecodeOptions):string;}declare var TextDecoder:{prototype:TextDecoder;new(label?:string,options?:TextDecoderOptions):TextDecoder;};interface TextDecoderCommon{readonly encoding:string;readonly fatal:boolean;readonly ignoreBOM:boolean;}interface TextDecoderStream extends GenericTransformStream,TextDecoderCommon{readonly readable:ReadableStream;readonly writable:WritableStream;}declare var TextDecoderStream:{prototype:TextDecoderStream;new(label?:string,options?:TextDecoderOptions):TextDecoderStream;};interface TextEncoder extends TextEncoderCommon{encode(input?:string):Uint8Array;encodeInto(source:string,destination:Uint8Array):TextEncoderEncodeIntoResult;}declare var TextEncoder:{prototype:TextEncoder;new():TextEncoder;};interface TextEncoderCommon{readonly encoding:string;}interface TextEncoderStream extends GenericTransformStream,TextEncoderCommon{readonly readable:ReadableStream;readonly writable:WritableStream;}declare var TextEncoderStream:{prototype:TextEncoderStream;new():TextEncoderStream;};interface TextMetrics{readonly actualBoundingBoxAscent:number;readonly actualBoundingBoxDescent:number;readonly actualBoundingBoxLeft:number;readonly actualBoundingBoxRight:number;readonly fontBoundingBoxAscent:number;readonly fontBoundingBoxDescent:number;readonly width:number;}declare var TextMetrics:{prototype:TextMetrics;new():TextMetrics;};interface TextTrackEventMap{"cuechange":Event;}interface TextTrack extends EventTarget{readonly activeCues:TextTrackCueList|null;readonly cues:TextTrackCueList|null;readonly id:string;readonly inBandMetadataTrackDispatchType:string;readonly kind:TextTrackKind;readonly label:string;readonly language:string;mode:TextTrackMode;oncuechange:((this:TextTrack,ev:Event)=>any)|null;addCue(cue:TextTrackCue):void;removeCue(cue:TextTrackCue):void;addEventListener(type:K,listener:(this:TextTrack,ev:TextTrackEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(type:K,listener:(this:TextTrack,ev:TextTrackEventMap[K])=>any,options?:boolean|EventListenerOptions):void;removeEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|EventListenerOptions):void;}declare var TextTrack:{prototype:TextTrack;new():TextTrack;};interface TextTrackCueEventMap{"enter":Event;"exit":Event;}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;readonly track:TextTrack|null;addEventListener(type:K,listener:(this:TextTrackCue,ev:TextTrackCueEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(type:K,listener:(this:TextTrackCue,ev:TextTrackCueEventMap[K])=>any,options?:boolean|EventListenerOptions):void;removeEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|EventListenerOptions):void;}declare var TextTrackCue:{prototype:TextTrackCue;new():TextTrackCue;};interface TextTrackCueList{readonly length:number;getCueById(id:string):TextTrackCue|null;[index:number]:TextTrackCue;}declare var TextTrackCueList:{prototype:TextTrackCueList;new():TextTrackCueList;};interface TextTrackListEventMap{"addtrack":TrackEvent;"change":Event;"removetrack":TrackEvent;}interface TextTrackList extends EventTarget{readonly length:number;onaddtrack:((this:TextTrackList,ev:TrackEvent)=>any)|null;onchange:((this:TextTrackList,ev:Event)=>any)|null;onremovetrack:((this:TextTrackList,ev:TrackEvent)=>any)|null;getTrackById(id:string):TextTrack|null;addEventListener(type:K,listener:(this:TextTrackList,ev:TextTrackListEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(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;};interface TimeRanges{readonly length:number;end(index:number):number;start(index:number):number;}declare var TimeRanges:{prototype:TimeRanges;new():TimeRanges;};interface Touch{readonly clientX:number;readonly clientY:number;readonly force:number;readonly identifier:number;readonly pageX:number;readonly pageY:number;readonly radiusX:number;readonly radiusY:number;readonly rotationAngle:number;readonly screenX:number;readonly screenY:number;readonly target:EventTarget;}declare var Touch:{prototype:Touch;new(touchInitDict:TouchInit):Touch;};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;};interface TouchList{readonly length:number;item(index:number):Touch|null;[index:number]:Touch;}declare var TouchList:{prototype:TouchList;new():TouchList;};interface TrackEvent extends Event{readonly track:TextTrack|null;}declare var TrackEvent:{prototype:TrackEvent;new(type:string,eventInitDict?:TrackEventInit):TrackEvent;};interface TransformStream{readonly readable:ReadableStream;readonly writable:WritableStream;}declare var TransformStream:{prototype:TransformStream;new(transformer?:Transformer,writableStrategy?:QueuingStrategy,readableStrategy?:QueuingStrategy):TransformStream;};interface TransformStreamDefaultController{readonly desiredSize:number|null;enqueue(chunk?:O):void;error(reason?:any):void;terminate():void;}declare var TransformStreamDefaultController:{prototype:TransformStreamDefaultController;new():TransformStreamDefaultController;};interface TransitionEvent extends Event{readonly elapsedTime:number;readonly propertyName:string;readonly pseudoElement:string;}declare var TransitionEvent:{prototype:TransitionEvent;new(type:string,transitionEventInitDict?:TransitionEventInit):TransitionEvent;};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;};interface UIEvent extends Event{readonly detail:number;readonly view:Window|null;readonly which:number;initUIEvent(typeArg:string,bubblesArg?:boolean,cancelableArg?:boolean,viewArg?:Window|null,detailArg?:number):void;}declare var UIEvent:{prototype:UIEvent;new(type:string,eventInitDict?:UIEventInit):UIEvent;};interface URL{hash:string;host:string;hostname:string;href:string;toString():string;readonly origin:string;password:string;pathname:string;port:string;protocol:string;search:string;readonly searchParams:URLSearchParams;username:string;toJSON():string;}declare var URL:{prototype:URL;new(url:string|URL,base?:string|URL):URL;createObjectURL(obj:Blob|MediaSource):string;revokeObjectURL(url:string):void;};type webkitURL=URL;declare var webkitURL:typeof URL;interface URLSearchParams{append(name:string,value:string):void;delete(name:string):void;get(name:string):string|null;getAll(name:string):string[];has(name:string):boolean;set(name:string,value:string):void;sort():void;toString():string;forEach(callbackfn:(value:string,key:string,parent:URLSearchParams)=>void,thisArg?:any):void;}declare var URLSearchParams:{prototype:URLSearchParams;new(init?:string[][]|Record|string|URLSearchParams):URLSearchParams;toString():string;};interface VTTCue extends TextTrackCue{align:AlignSetting;line:LineAndPositionSetting;lineAlign:LineAlignSetting;position:LineAndPositionSetting;positionAlign:PositionAlignSetting;region:VTTRegion|null;size:number;snapToLines:boolean;text:string;vertical:DirectionSetting;getCueAsHTML():DocumentFragment;addEventListener(type:K,listener:(this:VTTCue,ev:TextTrackCueEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(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;};interface ValidityState{readonly badInput:boolean;readonly customError:boolean;readonly patternMismatch:boolean;readonly rangeOverflow:boolean;readonly rangeUnderflow:boolean;readonly stepMismatch:boolean;readonly tooLong:boolean;readonly tooShort:boolean;readonly typeMismatch:boolean;readonly valid:boolean;readonly valueMissing:boolean;}declare var ValidityState:{prototype:ValidityState;new():ValidityState;};interface VideoColorSpace{readonly fullRange:boolean|null;readonly matrix:VideoMatrixCoefficients|null;readonly primaries:VideoColorPrimaries|null;readonly transfer:VideoTransferCharacteristics|null;toJSON():VideoColorSpaceInit;}declare var VideoColorSpace:{prototype:VideoColorSpace;new(init?:VideoColorSpaceInit):VideoColorSpace;};interface VideoPlaybackQuality{readonly corruptedVideoFrames:number;readonly creationTime:DOMHighResTimeStamp;readonly droppedVideoFrames:number;readonly totalVideoFrames:number;}declare var VideoPlaybackQuality:{prototype:VideoPlaybackQuality;new():VideoPlaybackQuality;};interface VisualViewportEventMap{"resize":Event;"scroll":Event;}interface VisualViewport extends EventTarget{readonly height:number;readonly offsetLeft:number;readonly offsetTop:number;onresize:((this:VisualViewport,ev:Event)=>any)|null;onscroll:((this:VisualViewport,ev:Event)=>any)|null;readonly pageLeft:number;readonly pageTop:number;readonly scale:number;readonly width:number;addEventListener(type:K,listener:(this:VisualViewport,ev:VisualViewportEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(type:K,listener:(this:VisualViewport,ev:VisualViewportEventMap[K])=>any,options?:boolean|EventListenerOptions):void;removeEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|EventListenerOptions):void;}declare var VisualViewport:{prototype:VisualViewport;new():VisualViewport;};interface WEBGL_color_buffer_float{readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT:GLenum;readonly RGBA32F_EXT:GLenum;readonly UNSIGNED_NORMALIZED_EXT:GLenum;}interface WEBGL_compressed_texture_astc{getSupportedProfiles():string[];readonly COMPRESSED_RGBA_ASTC_10x10_KHR:GLenum;readonly COMPRESSED_RGBA_ASTC_10x5_KHR:GLenum;readonly COMPRESSED_RGBA_ASTC_10x6_KHR:GLenum;readonly COMPRESSED_RGBA_ASTC_10x8_KHR:GLenum;readonly COMPRESSED_RGBA_ASTC_12x10_KHR:GLenum;readonly COMPRESSED_RGBA_ASTC_12x12_KHR:GLenum;readonly COMPRESSED_RGBA_ASTC_4x4_KHR:GLenum;readonly COMPRESSED_RGBA_ASTC_5x4_KHR:GLenum;readonly COMPRESSED_RGBA_ASTC_5x5_KHR:GLenum;readonly COMPRESSED_RGBA_ASTC_6x5_KHR:GLenum;readonly COMPRESSED_RGBA_ASTC_6x6_KHR:GLenum;readonly COMPRESSED_RGBA_ASTC_8x5_KHR:GLenum;readonly COMPRESSED_RGBA_ASTC_8x6_KHR:GLenum;readonly COMPRESSED_RGBA_ASTC_8x8_KHR:GLenum;readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR:GLenum;readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR:GLenum;readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR:GLenum;readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR:GLenum;readonly COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR:GLenum;readonly COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR:GLenum;readonly COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR:GLenum;readonly COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR:GLenum;readonly COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR:GLenum;readonly COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR:GLenum;readonly COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR:GLenum;readonly COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR:GLenum;readonly COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR:GLenum;readonly COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR:GLenum;}interface WEBGL_compressed_texture_etc{readonly COMPRESSED_R11_EAC:GLenum;readonly COMPRESSED_RG11_EAC:GLenum;readonly COMPRESSED_RGB8_ETC2:GLenum;readonly COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2:GLenum;readonly COMPRESSED_RGBA8_ETC2_EAC:GLenum;readonly COMPRESSED_SIGNED_R11_EAC:GLenum;readonly COMPRESSED_SIGNED_RG11_EAC:GLenum;readonly COMPRESSED_SRGB8_ALPHA8_ETC2_EAC:GLenum;readonly COMPRESSED_SRGB8_ETC2:GLenum;readonly COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2:GLenum;}interface WEBGL_compressed_texture_etc1{readonly COMPRESSED_RGB_ETC1_WEBGL:GLenum;}interface WEBGL_compressed_texture_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;}interface WEBGL_debug_renderer_info{readonly UNMASKED_RENDERER_WEBGL:GLenum;readonly UNMASKED_VENDOR_WEBGL:GLenum;}interface WEBGL_debug_shaders{getTranslatedShaderSource(shader:WebGLShader):string;}interface WEBGL_depth_texture{readonly UNSIGNED_INT_24_8_WEBGL:GLenum;}interface WEBGL_draw_buffers{drawBuffersWEBGL(buffers:GLenum[]):void;readonly COLOR_ATTACHMENT0_WEBGL:GLenum;readonly COLOR_ATTACHMENT10_WEBGL:GLenum;readonly COLOR_ATTACHMENT11_WEBGL:GLenum;readonly COLOR_ATTACHMENT12_WEBGL:GLenum;readonly COLOR_ATTACHMENT13_WEBGL:GLenum;readonly COLOR_ATTACHMENT14_WEBGL:GLenum;readonly COLOR_ATTACHMENT15_WEBGL:GLenum;readonly COLOR_ATTACHMENT1_WEBGL:GLenum;readonly COLOR_ATTACHMENT2_WEBGL:GLenum;readonly COLOR_ATTACHMENT3_WEBGL:GLenum;readonly COLOR_ATTACHMENT4_WEBGL:GLenum;readonly COLOR_ATTACHMENT5_WEBGL:GLenum;readonly COLOR_ATTACHMENT6_WEBGL:GLenum;readonly COLOR_ATTACHMENT7_WEBGL:GLenum;readonly COLOR_ATTACHMENT8_WEBGL:GLenum;readonly COLOR_ATTACHMENT9_WEBGL:GLenum;readonly DRAW_BUFFER0_WEBGL:GLenum;readonly DRAW_BUFFER10_WEBGL:GLenum;readonly DRAW_BUFFER11_WEBGL:GLenum;readonly DRAW_BUFFER12_WEBGL:GLenum;readonly DRAW_BUFFER13_WEBGL:GLenum;readonly DRAW_BUFFER14_WEBGL:GLenum;readonly DRAW_BUFFER15_WEBGL:GLenum;readonly DRAW_BUFFER1_WEBGL:GLenum;readonly DRAW_BUFFER2_WEBGL:GLenum;readonly DRAW_BUFFER3_WEBGL:GLenum;readonly DRAW_BUFFER4_WEBGL:GLenum;readonly DRAW_BUFFER5_WEBGL:GLenum;readonly DRAW_BUFFER6_WEBGL:GLenum;readonly DRAW_BUFFER7_WEBGL:GLenum;readonly DRAW_BUFFER8_WEBGL:GLenum;readonly DRAW_BUFFER9_WEBGL:GLenum;readonly MAX_COLOR_ATTACHMENTS_WEBGL:GLenum;readonly MAX_DRAW_BUFFERS_WEBGL:GLenum;}interface WEBGL_lose_context{loseContext():void;restoreContext():void;}interface WEBGL_multi_draw{multiDrawArraysInstancedWEBGL(mode:GLenum,firstsList:Int32Array|GLint[],firstsOffset:GLuint,countsList:Int32Array|GLsizei[],countsOffset:GLuint,instanceCountsList:Int32Array|GLsizei[],instanceCountsOffset:GLuint,drawcount:GLsizei):void;multiDrawArraysWEBGL(mode:GLenum,firstsList:Int32Array|GLint[],firstsOffset:GLuint,countsList:Int32Array|GLsizei[],countsOffset:GLuint,drawcount:GLsizei):void;multiDrawElementsInstancedWEBGL(mode:GLenum,countsList:Int32Array|GLsizei[],countsOffset:GLuint,type:GLenum,offsetsList:Int32Array|GLsizei[],offsetsOffset:GLuint,instanceCountsList:Int32Array|GLsizei[],instanceCountsOffset:GLuint,drawcount:GLsizei):void;multiDrawElementsWEBGL(mode:GLenum,countsList:Int32Array|GLsizei[],countsOffset:GLuint,type:GLenum,offsetsList:Int32Array|GLsizei[],offsetsOffset:GLuint,drawcount:GLsizei):void;}interface WaveShaperNode extends AudioNode{curve:Float32Array|null;oversample:OverSampleType;}declare var WaveShaperNode:{prototype:WaveShaperNode;new(context:BaseAudioContext,options?:WaveShaperOptions):WaveShaperNode;};interface WebGL2RenderingContext extends WebGL2RenderingContextBase,WebGL2RenderingContextOverloads,WebGLRenderingContextBase{}declare var WebGL2RenderingContext:{prototype:WebGL2RenderingContext;new():WebGL2RenderingContext;readonly ACTIVE_UNIFORM_BLOCKS:GLenum;readonly ALREADY_SIGNALED:GLenum;readonly ANY_SAMPLES_PASSED:GLenum;readonly ANY_SAMPLES_PASSED_CONSERVATIVE:GLenum;readonly COLOR:GLenum;readonly COLOR_ATTACHMENT1:GLenum;readonly COLOR_ATTACHMENT10:GLenum;readonly COLOR_ATTACHMENT11:GLenum;readonly COLOR_ATTACHMENT12:GLenum;readonly COLOR_ATTACHMENT13:GLenum;readonly COLOR_ATTACHMENT14:GLenum;readonly COLOR_ATTACHMENT15:GLenum;readonly COLOR_ATTACHMENT2:GLenum;readonly COLOR_ATTACHMENT3:GLenum;readonly COLOR_ATTACHMENT4:GLenum;readonly COLOR_ATTACHMENT5:GLenum;readonly COLOR_ATTACHMENT6:GLenum;readonly COLOR_ATTACHMENT7:GLenum;readonly COLOR_ATTACHMENT8:GLenum;readonly COLOR_ATTACHMENT9:GLenum;readonly COMPARE_REF_TO_TEXTURE:GLenum;readonly CONDITION_SATISFIED:GLenum;readonly COPY_READ_BUFFER:GLenum;readonly COPY_READ_BUFFER_BINDING:GLenum;readonly COPY_WRITE_BUFFER:GLenum;readonly COPY_WRITE_BUFFER_BINDING:GLenum;readonly CURRENT_QUERY:GLenum;readonly DEPTH:GLenum;readonly DEPTH24_STENCIL8:GLenum;readonly DEPTH32F_STENCIL8:GLenum;readonly DEPTH_COMPONENT24:GLenum;readonly DEPTH_COMPONENT32F:GLenum;readonly DRAW_BUFFER0:GLenum;readonly DRAW_BUFFER1:GLenum;readonly DRAW_BUFFER10:GLenum;readonly DRAW_BUFFER11:GLenum;readonly DRAW_BUFFER12:GLenum;readonly DRAW_BUFFER13:GLenum;readonly DRAW_BUFFER14:GLenum;readonly DRAW_BUFFER15:GLenum;readonly DRAW_BUFFER2:GLenum;readonly DRAW_BUFFER3:GLenum;readonly DRAW_BUFFER4:GLenum;readonly DRAW_BUFFER5:GLenum;readonly DRAW_BUFFER6:GLenum;readonly DRAW_BUFFER7:GLenum;readonly DRAW_BUFFER8:GLenum;readonly DRAW_BUFFER9:GLenum;readonly DRAW_FRAMEBUFFER:GLenum;readonly DRAW_FRAMEBUFFER_BINDING:GLenum;readonly DYNAMIC_COPY:GLenum;readonly DYNAMIC_READ:GLenum;readonly FLOAT_32_UNSIGNED_INT_24_8_REV:GLenum;readonly FLOAT_MAT2x3:GLenum;readonly FLOAT_MAT2x4:GLenum;readonly FLOAT_MAT3x2:GLenum;readonly FLOAT_MAT3x4:GLenum;readonly FLOAT_MAT4x2:GLenum;readonly FLOAT_MAT4x3:GLenum;readonly FRAGMENT_SHADER_DERIVATIVE_HINT:GLenum;readonly FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE:GLenum;readonly FRAMEBUFFER_ATTACHMENT_BLUE_SIZE:GLenum;readonly FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING:GLenum;readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE:GLenum;readonly FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE:GLenum;readonly FRAMEBUFFER_ATTACHMENT_GREEN_SIZE:GLenum;readonly FRAMEBUFFER_ATTACHMENT_RED_SIZE:GLenum;readonly FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE:GLenum;readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER:GLenum;readonly FRAMEBUFFER_DEFAULT:GLenum;readonly FRAMEBUFFER_INCOMPLETE_MULTISAMPLE:GLenum;readonly HALF_FLOAT:GLenum;readonly INTERLEAVED_ATTRIBS:GLenum;readonly INT_2_10_10_10_REV:GLenum;readonly INT_SAMPLER_2D:GLenum;readonly INT_SAMPLER_2D_ARRAY:GLenum;readonly INT_SAMPLER_3D:GLenum;readonly INT_SAMPLER_CUBE:GLenum;readonly INVALID_INDEX:GLenum;readonly MAX:GLenum;readonly MAX_3D_TEXTURE_SIZE:GLenum;readonly MAX_ARRAY_TEXTURE_LAYERS:GLenum;readonly MAX_CLIENT_WAIT_TIMEOUT_WEBGL:GLenum;readonly MAX_COLOR_ATTACHMENTS:GLenum;readonly MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS:GLenum;readonly MAX_COMBINED_UNIFORM_BLOCKS:GLenum;readonly MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS:GLenum;readonly MAX_DRAW_BUFFERS:GLenum;readonly MAX_ELEMENTS_INDICES:GLenum;readonly MAX_ELEMENTS_VERTICES:GLenum;readonly MAX_ELEMENT_INDEX:GLenum;readonly MAX_FRAGMENT_INPUT_COMPONENTS:GLenum;readonly MAX_FRAGMENT_UNIFORM_BLOCKS:GLenum;readonly MAX_FRAGMENT_UNIFORM_COMPONENTS:GLenum;readonly MAX_PROGRAM_TEXEL_OFFSET:GLenum;readonly MAX_SAMPLES:GLenum;readonly MAX_SERVER_WAIT_TIMEOUT:GLenum;readonly MAX_TEXTURE_LOD_BIAS:GLenum;readonly MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS:GLenum;readonly MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS:GLenum;readonly MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS:GLenum;readonly MAX_UNIFORM_BLOCK_SIZE:GLenum;readonly MAX_UNIFORM_BUFFER_BINDINGS:GLenum;readonly MAX_VARYING_COMPONENTS:GLenum;readonly MAX_VERTEX_OUTPUT_COMPONENTS:GLenum;readonly MAX_VERTEX_UNIFORM_BLOCKS:GLenum;readonly MAX_VERTEX_UNIFORM_COMPONENTS:GLenum;readonly MIN:GLenum;readonly MIN_PROGRAM_TEXEL_OFFSET:GLenum;readonly OBJECT_TYPE:GLenum;readonly PACK_ROW_LENGTH:GLenum;readonly PACK_SKIP_PIXELS:GLenum;readonly PACK_SKIP_ROWS:GLenum;readonly PIXEL_PACK_BUFFER:GLenum;readonly PIXEL_PACK_BUFFER_BINDING:GLenum;readonly PIXEL_UNPACK_BUFFER:GLenum;readonly PIXEL_UNPACK_BUFFER_BINDING:GLenum;readonly QUERY_RESULT:GLenum;readonly QUERY_RESULT_AVAILABLE:GLenum;readonly R11F_G11F_B10F:GLenum;readonly R16F:GLenum;readonly R16I:GLenum;readonly R16UI:GLenum;readonly R32F:GLenum;readonly R32I:GLenum;readonly R32UI:GLenum;readonly R8:GLenum;readonly R8I:GLenum;readonly R8UI:GLenum;readonly R8_SNORM:GLenum;readonly RASTERIZER_DISCARD:GLenum;readonly READ_BUFFER:GLenum;readonly READ_FRAMEBUFFER:GLenum;readonly READ_FRAMEBUFFER_BINDING:GLenum;readonly RED:GLenum;readonly RED_INTEGER:GLenum;readonly RENDERBUFFER_SAMPLES:GLenum;readonly RG:GLenum;readonly RG16F:GLenum;readonly RG16I:GLenum;readonly RG16UI:GLenum;readonly RG32F:GLenum;readonly RG32I:GLenum;readonly RG32UI:GLenum;readonly RG8:GLenum;readonly RG8I:GLenum;readonly RG8UI:GLenum;readonly RG8_SNORM:GLenum;readonly RGB10_A2:GLenum;readonly RGB10_A2UI:GLenum;readonly RGB16F:GLenum;readonly RGB16I:GLenum;readonly RGB16UI:GLenum;readonly RGB32F:GLenum;readonly RGB32I:GLenum;readonly RGB32UI:GLenum;readonly RGB8:GLenum;readonly RGB8I:GLenum;readonly RGB8UI:GLenum;readonly RGB8_SNORM:GLenum;readonly RGB9_E5:GLenum;readonly RGBA16F:GLenum;readonly RGBA16I:GLenum;readonly RGBA16UI:GLenum;readonly RGBA32F:GLenum;readonly RGBA32I:GLenum;readonly RGBA32UI:GLenum;readonly RGBA8:GLenum;readonly RGBA8I:GLenum;readonly RGBA8UI:GLenum;readonly RGBA8_SNORM:GLenum;readonly RGBA_INTEGER:GLenum;readonly RGB_INTEGER:GLenum;readonly RG_INTEGER:GLenum;readonly SAMPLER_2D_ARRAY:GLenum;readonly SAMPLER_2D_ARRAY_SHADOW:GLenum;readonly SAMPLER_2D_SHADOW:GLenum;readonly SAMPLER_3D:GLenum;readonly SAMPLER_BINDING:GLenum;readonly SAMPLER_CUBE_SHADOW:GLenum;readonly SEPARATE_ATTRIBS:GLenum;readonly SIGNALED:GLenum;readonly SIGNED_NORMALIZED:GLenum;readonly SRGB:GLenum;readonly SRGB8:GLenum;readonly SRGB8_ALPHA8:GLenum;readonly STATIC_COPY:GLenum;readonly STATIC_READ:GLenum;readonly STENCIL:GLenum;readonly STREAM_COPY:GLenum;readonly STREAM_READ:GLenum;readonly SYNC_CONDITION:GLenum;readonly SYNC_FENCE:GLenum;readonly SYNC_FLAGS:GLenum;readonly SYNC_FLUSH_COMMANDS_BIT:GLenum;readonly SYNC_GPU_COMMANDS_COMPLETE:GLenum;readonly SYNC_STATUS:GLenum;readonly TEXTURE_2D_ARRAY:GLenum;readonly TEXTURE_3D:GLenum;readonly TEXTURE_BASE_LEVEL:GLenum;readonly TEXTURE_BINDING_2D_ARRAY:GLenum;readonly TEXTURE_BINDING_3D:GLenum;readonly TEXTURE_COMPARE_FUNC:GLenum;readonly TEXTURE_COMPARE_MODE:GLenum;readonly TEXTURE_IMMUTABLE_FORMAT:GLenum;readonly TEXTURE_IMMUTABLE_LEVELS:GLenum;readonly TEXTURE_MAX_LEVEL:GLenum;readonly TEXTURE_MAX_LOD:GLenum;readonly TEXTURE_MIN_LOD:GLenum;readonly TEXTURE_WRAP_R:GLenum;readonly TIMEOUT_EXPIRED:GLenum;readonly TIMEOUT_IGNORED:GLint64;readonly TRANSFORM_FEEDBACK:GLenum;readonly TRANSFORM_FEEDBACK_ACTIVE:GLenum;readonly TRANSFORM_FEEDBACK_BINDING:GLenum;readonly TRANSFORM_FEEDBACK_BUFFER:GLenum;readonly TRANSFORM_FEEDBACK_BUFFER_BINDING:GLenum;readonly TRANSFORM_FEEDBACK_BUFFER_MODE:GLenum;readonly TRANSFORM_FEEDBACK_BUFFER_SIZE:GLenum;readonly TRANSFORM_FEEDBACK_BUFFER_START:GLenum;readonly TRANSFORM_FEEDBACK_PAUSED:GLenum;readonly TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN:GLenum;readonly TRANSFORM_FEEDBACK_VARYINGS:GLenum;readonly UNIFORM_ARRAY_STRIDE:GLenum;readonly UNIFORM_BLOCK_ACTIVE_UNIFORMS:GLenum;readonly UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES:GLenum;readonly UNIFORM_BLOCK_BINDING:GLenum;readonly UNIFORM_BLOCK_DATA_SIZE:GLenum;readonly UNIFORM_BLOCK_INDEX:GLenum;readonly UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER:GLenum;readonly UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER:GLenum;readonly UNIFORM_BUFFER:GLenum;readonly UNIFORM_BUFFER_BINDING:GLenum;readonly UNIFORM_BUFFER_OFFSET_ALIGNMENT:GLenum;readonly UNIFORM_BUFFER_SIZE:GLenum;readonly UNIFORM_BUFFER_START:GLenum;readonly UNIFORM_IS_ROW_MAJOR:GLenum;readonly UNIFORM_MATRIX_STRIDE:GLenum;readonly UNIFORM_OFFSET:GLenum;readonly UNIFORM_SIZE:GLenum;readonly UNIFORM_TYPE:GLenum;readonly UNPACK_IMAGE_HEIGHT:GLenum;readonly UNPACK_ROW_LENGTH:GLenum;readonly UNPACK_SKIP_IMAGES:GLenum;readonly UNPACK_SKIP_PIXELS:GLenum;readonly UNPACK_SKIP_ROWS:GLenum;readonly UNSIGNALED:GLenum;readonly UNSIGNED_INT_10F_11F_11F_REV:GLenum;readonly UNSIGNED_INT_24_8:GLenum;readonly UNSIGNED_INT_2_10_10_10_REV:GLenum;readonly UNSIGNED_INT_5_9_9_9_REV:GLenum;readonly UNSIGNED_INT_SAMPLER_2D:GLenum;readonly UNSIGNED_INT_SAMPLER_2D_ARRAY:GLenum;readonly UNSIGNED_INT_SAMPLER_3D:GLenum;readonly UNSIGNED_INT_SAMPLER_CUBE:GLenum;readonly UNSIGNED_INT_VEC2:GLenum;readonly UNSIGNED_INT_VEC3:GLenum;readonly UNSIGNED_INT_VEC4:GLenum;readonly UNSIGNED_NORMALIZED:GLenum;readonly VERTEX_ARRAY_BINDING:GLenum;readonly VERTEX_ATTRIB_ARRAY_DIVISOR:GLenum;readonly VERTEX_ATTRIB_ARRAY_INTEGER:GLenum;readonly WAIT_FAILED:GLenum;readonly ACTIVE_ATTRIBUTES:GLenum;readonly ACTIVE_TEXTURE:GLenum;readonly ACTIVE_UNIFORMS:GLenum;readonly ALIASED_LINE_WIDTH_RANGE:GLenum;readonly ALIASED_POINT_SIZE_RANGE:GLenum;readonly ALPHA:GLenum;readonly ALPHA_BITS:GLenum;readonly ALWAYS:GLenum;readonly ARRAY_BUFFER:GLenum;readonly ARRAY_BUFFER_BINDING:GLenum;readonly ATTACHED_SHADERS:GLenum;readonly BACK:GLenum;readonly BLEND:GLenum;readonly BLEND_COLOR:GLenum;readonly BLEND_DST_ALPHA:GLenum;readonly BLEND_DST_RGB:GLenum;readonly BLEND_EQUATION:GLenum;readonly BLEND_EQUATION_ALPHA:GLenum;readonly BLEND_EQUATION_RGB:GLenum;readonly BLEND_SRC_ALPHA:GLenum;readonly BLEND_SRC_RGB:GLenum;readonly BLUE_BITS:GLenum;readonly BOOL:GLenum;readonly BOOL_VEC2:GLenum;readonly BOOL_VEC3:GLenum;readonly BOOL_VEC4:GLenum;readonly BROWSER_DEFAULT_WEBGL:GLenum;readonly BUFFER_SIZE:GLenum;readonly BUFFER_USAGE:GLenum;readonly BYTE:GLenum;readonly CCW:GLenum;readonly CLAMP_TO_EDGE:GLenum;readonly COLOR_ATTACHMENT0:GLenum;readonly COLOR_BUFFER_BIT:GLenum;readonly COLOR_CLEAR_VALUE:GLenum;readonly COLOR_WRITEMASK:GLenum;readonly COMPILE_STATUS:GLenum;readonly COMPRESSED_TEXTURE_FORMATS:GLenum;readonly CONSTANT_ALPHA:GLenum;readonly CONSTANT_COLOR:GLenum;readonly CONTEXT_LOST_WEBGL:GLenum;readonly CULL_FACE:GLenum;readonly CULL_FACE_MODE:GLenum;readonly CURRENT_PROGRAM:GLenum;readonly CURRENT_VERTEX_ATTRIB:GLenum;readonly CW:GLenum;readonly DECR:GLenum;readonly DECR_WRAP:GLenum;readonly DELETE_STATUS:GLenum;readonly DEPTH_ATTACHMENT:GLenum;readonly DEPTH_BITS:GLenum;readonly DEPTH_BUFFER_BIT:GLenum;readonly DEPTH_CLEAR_VALUE:GLenum;readonly DEPTH_COMPONENT:GLenum;readonly DEPTH_COMPONENT16:GLenum;readonly DEPTH_FUNC:GLenum;readonly DEPTH_RANGE:GLenum;readonly DEPTH_STENCIL:GLenum;readonly DEPTH_STENCIL_ATTACHMENT:GLenum;readonly DEPTH_TEST:GLenum;readonly DEPTH_WRITEMASK:GLenum;readonly DITHER:GLenum;readonly DONT_CARE:GLenum;readonly DST_ALPHA:GLenum;readonly DST_COLOR:GLenum;readonly DYNAMIC_DRAW:GLenum;readonly ELEMENT_ARRAY_BUFFER:GLenum;readonly ELEMENT_ARRAY_BUFFER_BINDING:GLenum;readonly EQUAL:GLenum;readonly FASTEST:GLenum;readonly FLOAT:GLenum;readonly FLOAT_MAT2:GLenum;readonly FLOAT_MAT3:GLenum;readonly FLOAT_MAT4:GLenum;readonly FLOAT_VEC2:GLenum;readonly FLOAT_VEC3:GLenum;readonly FLOAT_VEC4:GLenum;readonly FRAGMENT_SHADER:GLenum;readonly FRAMEBUFFER:GLenum;readonly FRAMEBUFFER_ATTACHMENT_OBJECT_NAME:GLenum;readonly FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE:GLenum;readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE:GLenum;readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL:GLenum;readonly FRAMEBUFFER_BINDING:GLenum;readonly FRAMEBUFFER_COMPLETE:GLenum;readonly FRAMEBUFFER_INCOMPLETE_ATTACHMENT:GLenum;readonly FRAMEBUFFER_INCOMPLETE_DIMENSIONS:GLenum;readonly FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT:GLenum;readonly FRAMEBUFFER_UNSUPPORTED:GLenum;readonly FRONT:GLenum;readonly FRONT_AND_BACK:GLenum;readonly FRONT_FACE:GLenum;readonly FUNC_ADD:GLenum;readonly FUNC_REVERSE_SUBTRACT:GLenum;readonly FUNC_SUBTRACT:GLenum;readonly GENERATE_MIPMAP_HINT:GLenum;readonly GEQUAL:GLenum;readonly GREATER:GLenum;readonly GREEN_BITS:GLenum;readonly HIGH_FLOAT:GLenum;readonly HIGH_INT:GLenum;readonly IMPLEMENTATION_COLOR_READ_FORMAT:GLenum;readonly IMPLEMENTATION_COLOR_READ_TYPE:GLenum;readonly INCR:GLenum;readonly INCR_WRAP:GLenum;readonly INT:GLenum;readonly INT_VEC2:GLenum;readonly INT_VEC3:GLenum;readonly INT_VEC4:GLenum;readonly INVALID_ENUM:GLenum;readonly INVALID_FRAMEBUFFER_OPERATION:GLenum;readonly INVALID_OPERATION:GLenum;readonly INVALID_VALUE:GLenum;readonly INVERT:GLenum;readonly KEEP:GLenum;readonly LEQUAL:GLenum;readonly LESS:GLenum;readonly LINEAR:GLenum;readonly LINEAR_MIPMAP_LINEAR:GLenum;readonly LINEAR_MIPMAP_NEAREST:GLenum;readonly LINES:GLenum;readonly LINE_LOOP:GLenum;readonly LINE_STRIP:GLenum;readonly LINE_WIDTH:GLenum;readonly LINK_STATUS:GLenum;readonly LOW_FLOAT:GLenum;readonly LOW_INT:GLenum;readonly LUMINANCE:GLenum;readonly LUMINANCE_ALPHA:GLenum;readonly MAX_COMBINED_TEXTURE_IMAGE_UNITS:GLenum;readonly MAX_CUBE_MAP_TEXTURE_SIZE:GLenum;readonly MAX_FRAGMENT_UNIFORM_VECTORS:GLenum;readonly MAX_RENDERBUFFER_SIZE:GLenum;readonly MAX_TEXTURE_IMAGE_UNITS:GLenum;readonly MAX_TEXTURE_SIZE:GLenum;readonly MAX_VARYING_VECTORS:GLenum;readonly MAX_VERTEX_ATTRIBS:GLenum;readonly MAX_VERTEX_TEXTURE_IMAGE_UNITS:GLenum;readonly MAX_VERTEX_UNIFORM_VECTORS:GLenum;readonly MAX_VIEWPORT_DIMS:GLenum;readonly MEDIUM_FLOAT:GLenum;readonly MEDIUM_INT:GLenum;readonly MIRRORED_REPEAT:GLenum;readonly NEAREST:GLenum;readonly NEAREST_MIPMAP_LINEAR:GLenum;readonly NEAREST_MIPMAP_NEAREST:GLenum;readonly NEVER:GLenum;readonly NICEST:GLenum;readonly NONE:GLenum;readonly NOTEQUAL:GLenum;readonly NO_ERROR:GLenum;readonly ONE:GLenum;readonly ONE_MINUS_CONSTANT_ALPHA:GLenum;readonly ONE_MINUS_CONSTANT_COLOR:GLenum;readonly ONE_MINUS_DST_ALPHA:GLenum;readonly ONE_MINUS_DST_COLOR:GLenum;readonly ONE_MINUS_SRC_ALPHA:GLenum;readonly ONE_MINUS_SRC_COLOR:GLenum;readonly OUT_OF_MEMORY:GLenum;readonly PACK_ALIGNMENT:GLenum;readonly POINTS:GLenum;readonly POLYGON_OFFSET_FACTOR:GLenum;readonly POLYGON_OFFSET_FILL:GLenum;readonly POLYGON_OFFSET_UNITS:GLenum;readonly RED_BITS:GLenum;readonly RENDERBUFFER:GLenum;readonly RENDERBUFFER_ALPHA_SIZE:GLenum;readonly RENDERBUFFER_BINDING:GLenum;readonly RENDERBUFFER_BLUE_SIZE:GLenum;readonly RENDERBUFFER_DEPTH_SIZE:GLenum;readonly RENDERBUFFER_GREEN_SIZE:GLenum;readonly RENDERBUFFER_HEIGHT:GLenum;readonly RENDERBUFFER_INTERNAL_FORMAT:GLenum;readonly RENDERBUFFER_RED_SIZE:GLenum;readonly RENDERBUFFER_STENCIL_SIZE:GLenum;readonly RENDERBUFFER_WIDTH:GLenum;readonly RENDERER:GLenum;readonly REPEAT:GLenum;readonly REPLACE:GLenum;readonly RGB:GLenum;readonly RGB565:GLenum;readonly RGB5_A1:GLenum;readonly RGBA:GLenum;readonly RGBA4:GLenum;readonly SAMPLER_2D:GLenum;readonly SAMPLER_CUBE:GLenum;readonly SAMPLES:GLenum;readonly SAMPLE_ALPHA_TO_COVERAGE:GLenum;readonly SAMPLE_BUFFERS:GLenum;readonly SAMPLE_COVERAGE:GLenum;readonly SAMPLE_COVERAGE_INVERT:GLenum;readonly SAMPLE_COVERAGE_VALUE:GLenum;readonly SCISSOR_BOX:GLenum;readonly SCISSOR_TEST:GLenum;readonly SHADER_TYPE:GLenum;readonly SHADING_LANGUAGE_VERSION:GLenum;readonly SHORT:GLenum;readonly SRC_ALPHA:GLenum;readonly SRC_ALPHA_SATURATE:GLenum;readonly SRC_COLOR:GLenum;readonly STATIC_DRAW:GLenum;readonly STENCIL_ATTACHMENT:GLenum;readonly STENCIL_BACK_FAIL:GLenum;readonly STENCIL_BACK_FUNC:GLenum;readonly STENCIL_BACK_PASS_DEPTH_FAIL:GLenum;readonly STENCIL_BACK_PASS_DEPTH_PASS:GLenum;readonly STENCIL_BACK_REF:GLenum;readonly STENCIL_BACK_VALUE_MASK:GLenum;readonly STENCIL_BACK_WRITEMASK:GLenum;readonly STENCIL_BITS:GLenum;readonly STENCIL_BUFFER_BIT:GLenum;readonly STENCIL_CLEAR_VALUE:GLenum;readonly STENCIL_FAIL:GLenum;readonly STENCIL_FUNC:GLenum;readonly STENCIL_INDEX8:GLenum;readonly STENCIL_PASS_DEPTH_FAIL:GLenum;readonly STENCIL_PASS_DEPTH_PASS:GLenum;readonly STENCIL_REF:GLenum;readonly STENCIL_TEST:GLenum;readonly STENCIL_VALUE_MASK:GLenum;readonly STENCIL_WRITEMASK:GLenum;readonly STREAM_DRAW:GLenum;readonly SUBPIXEL_BITS:GLenum;readonly TEXTURE:GLenum;readonly TEXTURE0:GLenum;readonly TEXTURE1:GLenum;readonly TEXTURE10:GLenum;readonly TEXTURE11:GLenum;readonly TEXTURE12:GLenum;readonly TEXTURE13:GLenum;readonly TEXTURE14:GLenum;readonly TEXTURE15:GLenum;readonly TEXTURE16:GLenum;readonly TEXTURE17:GLenum;readonly TEXTURE18:GLenum;readonly TEXTURE19:GLenum;readonly TEXTURE2:GLenum;readonly TEXTURE20:GLenum;readonly TEXTURE21:GLenum;readonly TEXTURE22:GLenum;readonly TEXTURE23:GLenum;readonly TEXTURE24:GLenum;readonly TEXTURE25:GLenum;readonly TEXTURE26:GLenum;readonly TEXTURE27:GLenum;readonly TEXTURE28:GLenum;readonly TEXTURE29:GLenum;readonly TEXTURE3:GLenum;readonly TEXTURE30:GLenum;readonly TEXTURE31:GLenum;readonly TEXTURE4:GLenum;readonly TEXTURE5:GLenum;readonly TEXTURE6:GLenum;readonly TEXTURE7:GLenum;readonly TEXTURE8:GLenum;readonly TEXTURE9:GLenum;readonly TEXTURE_2D:GLenum;readonly TEXTURE_BINDING_2D:GLenum;readonly TEXTURE_BINDING_CUBE_MAP:GLenum;readonly TEXTURE_CUBE_MAP:GLenum;readonly TEXTURE_CUBE_MAP_NEGATIVE_X:GLenum;readonly TEXTURE_CUBE_MAP_NEGATIVE_Y:GLenum;readonly TEXTURE_CUBE_MAP_NEGATIVE_Z:GLenum;readonly TEXTURE_CUBE_MAP_POSITIVE_X:GLenum;readonly TEXTURE_CUBE_MAP_POSITIVE_Y:GLenum;readonly TEXTURE_CUBE_MAP_POSITIVE_Z:GLenum;readonly TEXTURE_MAG_FILTER:GLenum;readonly TEXTURE_MIN_FILTER:GLenum;readonly TEXTURE_WRAP_S:GLenum;readonly TEXTURE_WRAP_T:GLenum;readonly TRIANGLES:GLenum;readonly TRIANGLE_FAN:GLenum;readonly TRIANGLE_STRIP:GLenum;readonly UNPACK_ALIGNMENT:GLenum;readonly UNPACK_COLORSPACE_CONVERSION_WEBGL:GLenum;readonly UNPACK_FLIP_Y_WEBGL:GLenum;readonly UNPACK_PREMULTIPLY_ALPHA_WEBGL:GLenum;readonly UNSIGNED_BYTE:GLenum;readonly UNSIGNED_INT:GLenum;readonly UNSIGNED_SHORT:GLenum;readonly UNSIGNED_SHORT_4_4_4_4:GLenum;readonly UNSIGNED_SHORT_5_5_5_1:GLenum;readonly UNSIGNED_SHORT_5_6_5:GLenum;readonly VALIDATE_STATUS:GLenum;readonly VENDOR:GLenum;readonly VERSION:GLenum;readonly VERTEX_ATTRIB_ARRAY_BUFFER_BINDING:GLenum;readonly VERTEX_ATTRIB_ARRAY_ENABLED:GLenum;readonly VERTEX_ATTRIB_ARRAY_NORMALIZED:GLenum;readonly VERTEX_ATTRIB_ARRAY_POINTER:GLenum;readonly VERTEX_ATTRIB_ARRAY_SIZE:GLenum;readonly VERTEX_ATTRIB_ARRAY_STRIDE:GLenum;readonly VERTEX_ATTRIB_ARRAY_TYPE:GLenum;readonly VERTEX_SHADER:GLenum;readonly VIEWPORT:GLenum;readonly ZERO:GLenum;};interface WebGL2RenderingContextBase{beginQuery(target:GLenum,query:WebGLQuery):void;beginTransformFeedback(primitiveMode:GLenum):void;bindBufferBase(target:GLenum,index:GLuint,buffer:WebGLBuffer|null):void;bindBufferRange(target:GLenum,index:GLuint,buffer:WebGLBuffer|null,offset:GLintptr,size:GLsizeiptr):void;bindSampler(unit:GLuint,sampler:WebGLSampler|null):void;bindTransformFeedback(target:GLenum,tf:WebGLTransformFeedback|null):void;bindVertexArray(array:WebGLVertexArrayObject|null):void;blitFramebuffer(srcX0:GLint,srcY0:GLint,srcX1:GLint,srcY1:GLint,dstX0:GLint,dstY0:GLint,dstX1:GLint,dstY1:GLint,mask:GLbitfield,filter:GLenum):void;clearBufferfi(buffer:GLenum,drawbuffer:GLint,depth:GLfloat,stencil:GLint):void;clearBufferfv(buffer:GLenum,drawbuffer:GLint,values:Float32List,srcOffset?:GLuint):void;clearBufferiv(buffer:GLenum,drawbuffer:GLint,values:Int32List,srcOffset?:GLuint):void;clearBufferuiv(buffer:GLenum,drawbuffer:GLint,values:Uint32List,srcOffset?:GLuint):void;clientWaitSync(sync:WebGLSync,flags:GLbitfield,timeout:GLuint64):GLenum;compressedTexImage3D(target:GLenum,level:GLint,internalformat:GLenum,width:GLsizei,height:GLsizei,depth:GLsizei,border:GLint,imageSize:GLsizei,offset:GLintptr):void;compressedTexImage3D(target:GLenum,level:GLint,internalformat:GLenum,width:GLsizei,height:GLsizei,depth:GLsizei,border:GLint,srcData:ArrayBufferView,srcOffset?:GLuint,srcLengthOverride?:GLuint):void;compressedTexSubImage3D(target:GLenum,level:GLint,xoffset:GLint,yoffset:GLint,zoffset:GLint,width:GLsizei,height:GLsizei,depth:GLsizei,format:GLenum,imageSize:GLsizei,offset:GLintptr):void;compressedTexSubImage3D(target:GLenum,level:GLint,xoffset:GLint,yoffset:GLint,zoffset:GLint,width:GLsizei,height:GLsizei,depth:GLsizei,format:GLenum,srcData:ArrayBufferView,srcOffset?:GLuint,srcLengthOverride?:GLuint):void;copyBufferSubData(readTarget:GLenum,writeTarget:GLenum,readOffset:GLintptr,writeOffset:GLintptr,size:GLsizeiptr):void;copyTexSubImage3D(target:GLenum,level:GLint,xoffset:GLint,yoffset:GLint,zoffset:GLint,x:GLint,y:GLint,width:GLsizei,height:GLsizei):void;createQuery():WebGLQuery|null;createSampler():WebGLSampler|null;createTransformFeedback():WebGLTransformFeedback|null;createVertexArray():WebGLVertexArrayObject|null;deleteQuery(query:WebGLQuery|null):void;deleteSampler(sampler:WebGLSampler|null):void;deleteSync(sync:WebGLSync|null):void;deleteTransformFeedback(tf:WebGLTransformFeedback|null):void;deleteVertexArray(vertexArray:WebGLVertexArrayObject|null):void;drawArraysInstanced(mode:GLenum,first:GLint,count:GLsizei,instanceCount:GLsizei):void;drawBuffers(buffers:GLenum[]):void;drawElementsInstanced(mode:GLenum,count:GLsizei,type:GLenum,offset:GLintptr,instanceCount:GLsizei):void;drawRangeElements(mode:GLenum,start:GLuint,end:GLuint,count:GLsizei,type:GLenum,offset:GLintptr):void;endQuery(target:GLenum):void;endTransformFeedback():void;fenceSync(condition:GLenum,flags:GLbitfield):WebGLSync|null;framebufferTextureLayer(target:GLenum,attachment:GLenum,texture:WebGLTexture|null,level:GLint,layer:GLint):void;getActiveUniformBlockName(program:WebGLProgram,uniformBlockIndex:GLuint):string|null;getActiveUniformBlockParameter(program:WebGLProgram,uniformBlockIndex:GLuint,pname:GLenum):any;getActiveUniforms(program:WebGLProgram,uniformIndices:GLuint[],pname:GLenum):any;getBufferSubData(target:GLenum,srcByteOffset:GLintptr,dstBuffer:ArrayBufferView,dstOffset?:GLuint,length?:GLuint):void;getFragDataLocation(program:WebGLProgram,name:string):GLint;getIndexedParameter(target:GLenum,index:GLuint):any;getInternalformatParameter(target:GLenum,internalformat:GLenum,pname:GLenum):any;getQuery(target:GLenum,pname:GLenum):WebGLQuery|null;getQueryParameter(query:WebGLQuery,pname:GLenum):any;getSamplerParameter(sampler:WebGLSampler,pname:GLenum):any;getSyncParameter(sync:WebGLSync,pname:GLenum):any;getTransformFeedbackVarying(program:WebGLProgram,index:GLuint):WebGLActiveInfo|null;getUniformBlockIndex(program:WebGLProgram,uniformBlockName:string):GLuint;getUniformIndices(program:WebGLProgram,uniformNames:string[]):GLuint[]|null;invalidateFramebuffer(target:GLenum,attachments:GLenum[]):void;invalidateSubFramebuffer(target:GLenum,attachments:GLenum[],x:GLint,y:GLint,width:GLsizei,height:GLsizei):void;isQuery(query:WebGLQuery|null):GLboolean;isSampler(sampler:WebGLSampler|null):GLboolean;isSync(sync:WebGLSync|null):GLboolean;isTransformFeedback(tf:WebGLTransformFeedback|null):GLboolean;isVertexArray(vertexArray:WebGLVertexArrayObject|null):GLboolean;pauseTransformFeedback():void;readBuffer(src:GLenum):void;renderbufferStorageMultisample(target:GLenum,samples:GLsizei,internalformat:GLenum,width:GLsizei,height:GLsizei):void;resumeTransformFeedback():void;samplerParameterf(sampler:WebGLSampler,pname:GLenum,param:GLfloat):void;samplerParameteri(sampler:WebGLSampler,pname:GLenum,param:GLint):void;texImage3D(target:GLenum,level:GLint,internalformat:GLint,width:GLsizei,height:GLsizei,depth:GLsizei,border:GLint,format:GLenum,type:GLenum,pboOffset:GLintptr):void;texImage3D(target:GLenum,level:GLint,internalformat:GLint,width:GLsizei,height:GLsizei,depth:GLsizei,border:GLint,format:GLenum,type:GLenum,source:TexImageSource):void;texImage3D(target:GLenum,level:GLint,internalformat:GLint,width:GLsizei,height:GLsizei,depth:GLsizei,border:GLint,format:GLenum,type:GLenum,srcData:ArrayBufferView|null):void;texImage3D(target:GLenum,level:GLint,internalformat:GLint,width:GLsizei,height:GLsizei,depth:GLsizei,border:GLint,format:GLenum,type:GLenum,srcData:ArrayBufferView,srcOffset:GLuint):void;texStorage2D(target:GLenum,levels:GLsizei,internalformat:GLenum,width:GLsizei,height:GLsizei):void;texStorage3D(target:GLenum,levels:GLsizei,internalformat:GLenum,width:GLsizei,height:GLsizei,depth:GLsizei):void;texSubImage3D(target:GLenum,level:GLint,xoffset:GLint,yoffset:GLint,zoffset:GLint,width:GLsizei,height:GLsizei,depth:GLsizei,format:GLenum,type:GLenum,pboOffset:GLintptr):void;texSubImage3D(target:GLenum,level:GLint,xoffset:GLint,yoffset:GLint,zoffset:GLint,width:GLsizei,height:GLsizei,depth:GLsizei,format:GLenum,type:GLenum,source:TexImageSource):void;texSubImage3D(target:GLenum,level:GLint,xoffset:GLint,yoffset:GLint,zoffset:GLint,width:GLsizei,height:GLsizei,depth:GLsizei,format:GLenum,type:GLenum,srcData:ArrayBufferView|null,srcOffset?:GLuint):void;transformFeedbackVaryings(program:WebGLProgram,varyings:string[],bufferMode:GLenum):void;uniform1ui(location:WebGLUniformLocation|null,v0:GLuint):void;uniform1uiv(location:WebGLUniformLocation|null,data:Uint32List,srcOffset?:GLuint,srcLength?:GLuint):void;uniform2ui(location:WebGLUniformLocation|null,v0:GLuint,v1:GLuint):void;uniform2uiv(location:WebGLUniformLocation|null,data:Uint32List,srcOffset?:GLuint,srcLength?:GLuint):void;uniform3ui(location:WebGLUniformLocation|null,v0:GLuint,v1:GLuint,v2:GLuint):void;uniform3uiv(location:WebGLUniformLocation|null,data:Uint32List,srcOffset?:GLuint,srcLength?:GLuint):void;uniform4ui(location:WebGLUniformLocation|null,v0:GLuint,v1:GLuint,v2:GLuint,v3:GLuint):void;uniform4uiv(location:WebGLUniformLocation|null,data:Uint32List,srcOffset?:GLuint,srcLength?:GLuint):void;uniformBlockBinding(program:WebGLProgram,uniformBlockIndex:GLuint,uniformBlockBinding:GLuint):void;uniformMatrix2x3fv(location:WebGLUniformLocation|null,transpose:GLboolean,data:Float32List,srcOffset?:GLuint,srcLength?:GLuint):void;uniformMatrix2x4fv(location:WebGLUniformLocation|null,transpose:GLboolean,data:Float32List,srcOffset?:GLuint,srcLength?:GLuint):void;uniformMatrix3x2fv(location:WebGLUniformLocation|null,transpose:GLboolean,data:Float32List,srcOffset?:GLuint,srcLength?:GLuint):void;uniformMatrix3x4fv(location:WebGLUniformLocation|null,transpose:GLboolean,data:Float32List,srcOffset?:GLuint,srcLength?:GLuint):void;uniformMatrix4x2fv(location:WebGLUniformLocation|null,transpose:GLboolean,data:Float32List,srcOffset?:GLuint,srcLength?:GLuint):void;uniformMatrix4x3fv(location:WebGLUniformLocation|null,transpose:GLboolean,data:Float32List,srcOffset?:GLuint,srcLength?:GLuint):void;vertexAttribDivisor(index:GLuint,divisor:GLuint):void;vertexAttribI4i(index:GLuint,x:GLint,y:GLint,z:GLint,w:GLint):void;vertexAttribI4iv(index:GLuint,values:Int32List):void;vertexAttribI4ui(index:GLuint,x:GLuint,y:GLuint,z:GLuint,w:GLuint):void;vertexAttribI4uiv(index:GLuint,values:Uint32List):void;vertexAttribIPointer(index:GLuint,size:GLint,type:GLenum,stride:GLsizei,offset:GLintptr):void;waitSync(sync:WebGLSync,flags:GLbitfield,timeout:GLint64):void;readonly ACTIVE_UNIFORM_BLOCKS:GLenum;readonly ALREADY_SIGNALED:GLenum;readonly ANY_SAMPLES_PASSED:GLenum;readonly ANY_SAMPLES_PASSED_CONSERVATIVE:GLenum;readonly COLOR:GLenum;readonly COLOR_ATTACHMENT1:GLenum;readonly COLOR_ATTACHMENT10:GLenum;readonly COLOR_ATTACHMENT11:GLenum;readonly COLOR_ATTACHMENT12:GLenum;readonly COLOR_ATTACHMENT13:GLenum;readonly COLOR_ATTACHMENT14:GLenum;readonly COLOR_ATTACHMENT15:GLenum;readonly COLOR_ATTACHMENT2:GLenum;readonly COLOR_ATTACHMENT3:GLenum;readonly COLOR_ATTACHMENT4:GLenum;readonly COLOR_ATTACHMENT5:GLenum;readonly COLOR_ATTACHMENT6:GLenum;readonly COLOR_ATTACHMENT7:GLenum;readonly COLOR_ATTACHMENT8:GLenum;readonly COLOR_ATTACHMENT9:GLenum;readonly COMPARE_REF_TO_TEXTURE:GLenum;readonly CONDITION_SATISFIED:GLenum;readonly COPY_READ_BUFFER:GLenum;readonly COPY_READ_BUFFER_BINDING:GLenum;readonly COPY_WRITE_BUFFER:GLenum;readonly COPY_WRITE_BUFFER_BINDING:GLenum;readonly CURRENT_QUERY:GLenum;readonly DEPTH:GLenum;readonly DEPTH24_STENCIL8:GLenum;readonly DEPTH32F_STENCIL8:GLenum;readonly DEPTH_COMPONENT24:GLenum;readonly DEPTH_COMPONENT32F:GLenum;readonly DRAW_BUFFER0:GLenum;readonly DRAW_BUFFER1:GLenum;readonly DRAW_BUFFER10:GLenum;readonly DRAW_BUFFER11:GLenum;readonly DRAW_BUFFER12:GLenum;readonly DRAW_BUFFER13:GLenum;readonly DRAW_BUFFER14:GLenum;readonly DRAW_BUFFER15:GLenum;readonly DRAW_BUFFER2:GLenum;readonly DRAW_BUFFER3:GLenum;readonly DRAW_BUFFER4:GLenum;readonly DRAW_BUFFER5:GLenum;readonly DRAW_BUFFER6:GLenum;readonly DRAW_BUFFER7:GLenum;readonly DRAW_BUFFER8:GLenum;readonly DRAW_BUFFER9:GLenum;readonly DRAW_FRAMEBUFFER:GLenum;readonly DRAW_FRAMEBUFFER_BINDING:GLenum;readonly DYNAMIC_COPY:GLenum;readonly DYNAMIC_READ:GLenum;readonly FLOAT_32_UNSIGNED_INT_24_8_REV:GLenum;readonly FLOAT_MAT2x3:GLenum;readonly FLOAT_MAT2x4:GLenum;readonly FLOAT_MAT3x2:GLenum;readonly FLOAT_MAT3x4:GLenum;readonly FLOAT_MAT4x2:GLenum;readonly FLOAT_MAT4x3:GLenum;readonly FRAGMENT_SHADER_DERIVATIVE_HINT:GLenum;readonly FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE:GLenum;readonly FRAMEBUFFER_ATTACHMENT_BLUE_SIZE:GLenum;readonly FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING:GLenum;readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE:GLenum;readonly FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE:GLenum;readonly FRAMEBUFFER_ATTACHMENT_GREEN_SIZE:GLenum;readonly FRAMEBUFFER_ATTACHMENT_RED_SIZE:GLenum;readonly FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE:GLenum;readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER:GLenum;readonly FRAMEBUFFER_DEFAULT:GLenum;readonly FRAMEBUFFER_INCOMPLETE_MULTISAMPLE:GLenum;readonly HALF_FLOAT:GLenum;readonly INTERLEAVED_ATTRIBS:GLenum;readonly INT_2_10_10_10_REV:GLenum;readonly INT_SAMPLER_2D:GLenum;readonly INT_SAMPLER_2D_ARRAY:GLenum;readonly INT_SAMPLER_3D:GLenum;readonly INT_SAMPLER_CUBE:GLenum;readonly INVALID_INDEX:GLenum;readonly MAX:GLenum;readonly MAX_3D_TEXTURE_SIZE:GLenum;readonly MAX_ARRAY_TEXTURE_LAYERS:GLenum;readonly MAX_CLIENT_WAIT_TIMEOUT_WEBGL:GLenum;readonly MAX_COLOR_ATTACHMENTS:GLenum;readonly MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS:GLenum;readonly MAX_COMBINED_UNIFORM_BLOCKS:GLenum;readonly MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS:GLenum;readonly MAX_DRAW_BUFFERS:GLenum;readonly MAX_ELEMENTS_INDICES:GLenum;readonly MAX_ELEMENTS_VERTICES:GLenum;readonly MAX_ELEMENT_INDEX:GLenum;readonly MAX_FRAGMENT_INPUT_COMPONENTS:GLenum;readonly MAX_FRAGMENT_UNIFORM_BLOCKS:GLenum;readonly MAX_FRAGMENT_UNIFORM_COMPONENTS:GLenum;readonly MAX_PROGRAM_TEXEL_OFFSET:GLenum;readonly MAX_SAMPLES:GLenum;readonly MAX_SERVER_WAIT_TIMEOUT:GLenum;readonly MAX_TEXTURE_LOD_BIAS:GLenum;readonly MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS:GLenum;readonly MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS:GLenum;readonly MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS:GLenum;readonly MAX_UNIFORM_BLOCK_SIZE:GLenum;readonly MAX_UNIFORM_BUFFER_BINDINGS:GLenum;readonly MAX_VARYING_COMPONENTS:GLenum;readonly MAX_VERTEX_OUTPUT_COMPONENTS:GLenum;readonly MAX_VERTEX_UNIFORM_BLOCKS:GLenum;readonly MAX_VERTEX_UNIFORM_COMPONENTS:GLenum;readonly MIN:GLenum;readonly MIN_PROGRAM_TEXEL_OFFSET:GLenum;readonly OBJECT_TYPE:GLenum;readonly PACK_ROW_LENGTH:GLenum;readonly PACK_SKIP_PIXELS:GLenum;readonly PACK_SKIP_ROWS:GLenum;readonly PIXEL_PACK_BUFFER:GLenum;readonly PIXEL_PACK_BUFFER_BINDING:GLenum;readonly PIXEL_UNPACK_BUFFER:GLenum;readonly PIXEL_UNPACK_BUFFER_BINDING:GLenum;readonly QUERY_RESULT:GLenum;readonly QUERY_RESULT_AVAILABLE:GLenum;readonly R11F_G11F_B10F:GLenum;readonly R16F:GLenum;readonly R16I:GLenum;readonly R16UI:GLenum;readonly R32F:GLenum;readonly R32I:GLenum;readonly R32UI:GLenum;readonly R8:GLenum;readonly R8I:GLenum;readonly R8UI:GLenum;readonly R8_SNORM:GLenum;readonly RASTERIZER_DISCARD:GLenum;readonly READ_BUFFER:GLenum;readonly READ_FRAMEBUFFER:GLenum;readonly READ_FRAMEBUFFER_BINDING:GLenum;readonly RED:GLenum;readonly RED_INTEGER:GLenum;readonly RENDERBUFFER_SAMPLES:GLenum;readonly RG:GLenum;readonly RG16F:GLenum;readonly RG16I:GLenum;readonly RG16UI:GLenum;readonly RG32F:GLenum;readonly RG32I:GLenum;readonly RG32UI:GLenum;readonly RG8:GLenum;readonly RG8I:GLenum;readonly RG8UI:GLenum;readonly RG8_SNORM:GLenum;readonly RGB10_A2:GLenum;readonly RGB10_A2UI:GLenum;readonly RGB16F:GLenum;readonly RGB16I:GLenum;readonly RGB16UI:GLenum;readonly RGB32F:GLenum;readonly RGB32I:GLenum;readonly RGB32UI:GLenum;readonly RGB8:GLenum;readonly RGB8I:GLenum;readonly RGB8UI:GLenum;readonly RGB8_SNORM:GLenum;readonly RGB9_E5:GLenum;readonly RGBA16F:GLenum;readonly RGBA16I:GLenum;readonly RGBA16UI:GLenum;readonly RGBA32F:GLenum;readonly RGBA32I:GLenum;readonly RGBA32UI:GLenum;readonly RGBA8:GLenum;readonly RGBA8I:GLenum;readonly RGBA8UI:GLenum;readonly RGBA8_SNORM:GLenum;readonly RGBA_INTEGER:GLenum;readonly RGB_INTEGER:GLenum;readonly RG_INTEGER:GLenum;readonly SAMPLER_2D_ARRAY:GLenum;readonly SAMPLER_2D_ARRAY_SHADOW:GLenum;readonly SAMPLER_2D_SHADOW:GLenum;readonly SAMPLER_3D:GLenum;readonly SAMPLER_BINDING:GLenum;readonly SAMPLER_CUBE_SHADOW:GLenum;readonly SEPARATE_ATTRIBS:GLenum;readonly SIGNALED:GLenum;readonly SIGNED_NORMALIZED:GLenum;readonly SRGB:GLenum;readonly SRGB8:GLenum;readonly SRGB8_ALPHA8:GLenum;readonly STATIC_COPY:GLenum;readonly STATIC_READ:GLenum;readonly STENCIL:GLenum;readonly STREAM_COPY:GLenum;readonly STREAM_READ:GLenum;readonly SYNC_CONDITION:GLenum;readonly SYNC_FENCE:GLenum;readonly SYNC_FLAGS:GLenum;readonly SYNC_FLUSH_COMMANDS_BIT:GLenum;readonly SYNC_GPU_COMMANDS_COMPLETE:GLenum;readonly SYNC_STATUS:GLenum;readonly TEXTURE_2D_ARRAY:GLenum;readonly TEXTURE_3D:GLenum;readonly TEXTURE_BASE_LEVEL:GLenum;readonly TEXTURE_BINDING_2D_ARRAY:GLenum;readonly TEXTURE_BINDING_3D:GLenum;readonly TEXTURE_COMPARE_FUNC:GLenum;readonly TEXTURE_COMPARE_MODE:GLenum;readonly TEXTURE_IMMUTABLE_FORMAT:GLenum;readonly TEXTURE_IMMUTABLE_LEVELS:GLenum;readonly TEXTURE_MAX_LEVEL:GLenum;readonly TEXTURE_MAX_LOD:GLenum;readonly TEXTURE_MIN_LOD:GLenum;readonly TEXTURE_WRAP_R:GLenum;readonly TIMEOUT_EXPIRED:GLenum;readonly TIMEOUT_IGNORED:GLint64;readonly TRANSFORM_FEEDBACK:GLenum;readonly TRANSFORM_FEEDBACK_ACTIVE:GLenum;readonly TRANSFORM_FEEDBACK_BINDING:GLenum;readonly TRANSFORM_FEEDBACK_BUFFER:GLenum;readonly TRANSFORM_FEEDBACK_BUFFER_BINDING:GLenum;readonly TRANSFORM_FEEDBACK_BUFFER_MODE:GLenum;readonly TRANSFORM_FEEDBACK_BUFFER_SIZE:GLenum;readonly TRANSFORM_FEEDBACK_BUFFER_START:GLenum;readonly TRANSFORM_FEEDBACK_PAUSED:GLenum;readonly TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN:GLenum;readonly TRANSFORM_FEEDBACK_VARYINGS:GLenum;readonly UNIFORM_ARRAY_STRIDE:GLenum;readonly UNIFORM_BLOCK_ACTIVE_UNIFORMS:GLenum;readonly UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES:GLenum;readonly UNIFORM_BLOCK_BINDING:GLenum;readonly UNIFORM_BLOCK_DATA_SIZE:GLenum;readonly UNIFORM_BLOCK_INDEX:GLenum;readonly UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER:GLenum;readonly UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER:GLenum;readonly UNIFORM_BUFFER:GLenum;readonly UNIFORM_BUFFER_BINDING:GLenum;readonly UNIFORM_BUFFER_OFFSET_ALIGNMENT:GLenum;readonly UNIFORM_BUFFER_SIZE:GLenum;readonly UNIFORM_BUFFER_START:GLenum;readonly UNIFORM_IS_ROW_MAJOR:GLenum;readonly UNIFORM_MATRIX_STRIDE:GLenum;readonly UNIFORM_OFFSET:GLenum;readonly UNIFORM_SIZE:GLenum;readonly UNIFORM_TYPE:GLenum;readonly UNPACK_IMAGE_HEIGHT:GLenum;readonly UNPACK_ROW_LENGTH:GLenum;readonly UNPACK_SKIP_IMAGES:GLenum;readonly UNPACK_SKIP_PIXELS:GLenum;readonly UNPACK_SKIP_ROWS:GLenum;readonly UNSIGNALED:GLenum;readonly UNSIGNED_INT_10F_11F_11F_REV:GLenum;readonly UNSIGNED_INT_24_8:GLenum;readonly UNSIGNED_INT_2_10_10_10_REV:GLenum;readonly UNSIGNED_INT_5_9_9_9_REV:GLenum;readonly UNSIGNED_INT_SAMPLER_2D:GLenum;readonly UNSIGNED_INT_SAMPLER_2D_ARRAY:GLenum;readonly UNSIGNED_INT_SAMPLER_3D:GLenum;readonly UNSIGNED_INT_SAMPLER_CUBE:GLenum;readonly UNSIGNED_INT_VEC2:GLenum;readonly UNSIGNED_INT_VEC3:GLenum;readonly UNSIGNED_INT_VEC4:GLenum;readonly UNSIGNED_NORMALIZED:GLenum;readonly VERTEX_ARRAY_BINDING:GLenum;readonly VERTEX_ATTRIB_ARRAY_DIVISOR:GLenum;readonly VERTEX_ATTRIB_ARRAY_INTEGER:GLenum;readonly WAIT_FAILED:GLenum;}interface WebGL2RenderingContextOverloads{bufferData(target:GLenum,size:GLsizeiptr,usage:GLenum):void;bufferData(target:GLenum,srcData:BufferSource|null,usage:GLenum):void;bufferData(target:GLenum,srcData:ArrayBufferView,usage:GLenum,srcOffset:GLuint,length?:GLuint):void;bufferSubData(target:GLenum,dstByteOffset:GLintptr,srcData:BufferSource):void;bufferSubData(target:GLenum,dstByteOffset:GLintptr,srcData:ArrayBufferView,srcOffset:GLuint,length?:GLuint):void;compressedTexImage2D(target:GLenum,level:GLint,internalformat:GLenum,width:GLsizei,height:GLsizei,border:GLint,imageSize:GLsizei,offset:GLintptr):void;compressedTexImage2D(target:GLenum,level:GLint,internalformat:GLenum,width:GLsizei,height:GLsizei,border:GLint,srcData:ArrayBufferView,srcOffset?:GLuint,srcLengthOverride?:GLuint):void;compressedTexSubImage2D(target:GLenum,level:GLint,xoffset:GLint,yoffset:GLint,width:GLsizei,height:GLsizei,format:GLenum,imageSize:GLsizei,offset:GLintptr):void;compressedTexSubImage2D(target:GLenum,level:GLint,xoffset:GLint,yoffset:GLint,width:GLsizei,height:GLsizei,format:GLenum,srcData:ArrayBufferView,srcOffset?:GLuint,srcLengthOverride?:GLuint):void;readPixels(x:GLint,y:GLint,width:GLsizei,height:GLsizei,format:GLenum,type:GLenum,dstData:ArrayBufferView|null):void;readPixels(x:GLint,y:GLint,width:GLsizei,height:GLsizei,format:GLenum,type:GLenum,offset:GLintptr):void;readPixels(x:GLint,y:GLint,width:GLsizei,height:GLsizei,format:GLenum,type:GLenum,dstData:ArrayBufferView,dstOffset:GLuint):void;texImage2D(target:GLenum,level:GLint,internalformat:GLint,width:GLsizei,height:GLsizei,border:GLint,format:GLenum,type:GLenum,pixels:ArrayBufferView|null):void;texImage2D(target:GLenum,level:GLint,internalformat:GLint,format:GLenum,type:GLenum,source:TexImageSource):void;texImage2D(target:GLenum,level:GLint,internalformat:GLint,width:GLsizei,height:GLsizei,border:GLint,format:GLenum,type:GLenum,pboOffset:GLintptr):void;texImage2D(target:GLenum,level:GLint,internalformat:GLint,width:GLsizei,height:GLsizei,border:GLint,format:GLenum,type:GLenum,source:TexImageSource):void;texImage2D(target:GLenum,level:GLint,internalformat:GLint,width:GLsizei,height:GLsizei,border:GLint,format:GLenum,type:GLenum,srcData:ArrayBufferView,srcOffset:GLuint):void;texSubImage2D(target:GLenum,level:GLint,xoffset:GLint,yoffset:GLint,width:GLsizei,height:GLsizei,format:GLenum,type:GLenum,pixels:ArrayBufferView|null):void;texSubImage2D(target:GLenum,level:GLint,xoffset:GLint,yoffset:GLint,format:GLenum,type:GLenum,source:TexImageSource):void;texSubImage2D(target:GLenum,level:GLint,xoffset:GLint,yoffset:GLint,width:GLsizei,height:GLsizei,format:GLenum,type:GLenum,pboOffset:GLintptr):void;texSubImage2D(target:GLenum,level:GLint,xoffset:GLint,yoffset:GLint,width:GLsizei,height:GLsizei,format:GLenum,type:GLenum,source:TexImageSource):void;texSubImage2D(target:GLenum,level:GLint,xoffset:GLint,yoffset:GLint,width:GLsizei,height:GLsizei,format:GLenum,type:GLenum,srcData:ArrayBufferView,srcOffset:GLuint):void;uniform1fv(location:WebGLUniformLocation|null,data:Float32List,srcOffset?:GLuint,srcLength?:GLuint):void;uniform1iv(location:WebGLUniformLocation|null,data:Int32List,srcOffset?:GLuint,srcLength?:GLuint):void;uniform2fv(location:WebGLUniformLocation|null,data:Float32List,srcOffset?:GLuint,srcLength?:GLuint):void;uniform2iv(location:WebGLUniformLocation|null,data:Int32List,srcOffset?:GLuint,srcLength?:GLuint):void;uniform3fv(location:WebGLUniformLocation|null,data:Float32List,srcOffset?:GLuint,srcLength?:GLuint):void;uniform3iv(location:WebGLUniformLocation|null,data:Int32List,srcOffset?:GLuint,srcLength?:GLuint):void;uniform4fv(location:WebGLUniformLocation|null,data:Float32List,srcOffset?:GLuint,srcLength?:GLuint):void;uniform4iv(location:WebGLUniformLocation|null,data:Int32List,srcOffset?:GLuint,srcLength?:GLuint):void;uniformMatrix2fv(location:WebGLUniformLocation|null,transpose:GLboolean,data:Float32List,srcOffset?:GLuint,srcLength?:GLuint):void;uniformMatrix3fv(location:WebGLUniformLocation|null,transpose:GLboolean,data:Float32List,srcOffset?:GLuint,srcLength?:GLuint):void;uniformMatrix4fv(location:WebGLUniformLocation|null,transpose:GLboolean,data:Float32List,srcOffset?:GLuint,srcLength?:GLuint):void;}interface WebGLActiveInfo{readonly name:string;readonly size:GLint;readonly type:GLenum;}declare var WebGLActiveInfo:{prototype:WebGLActiveInfo;new():WebGLActiveInfo;};interface WebGLBuffer{}declare var WebGLBuffer:{prototype:WebGLBuffer;new():WebGLBuffer;};interface WebGLContextEvent extends Event{readonly statusMessage:string;}declare var WebGLContextEvent:{prototype:WebGLContextEvent;new(type:string,eventInit?:WebGLContextEventInit):WebGLContextEvent;};interface WebGLFramebuffer{}declare var WebGLFramebuffer:{prototype:WebGLFramebuffer;new():WebGLFramebuffer;};interface WebGLProgram{}declare var WebGLProgram:{prototype:WebGLProgram;new():WebGLProgram;};interface WebGLQuery{}declare var WebGLQuery:{prototype:WebGLQuery;new():WebGLQuery;};interface WebGLRenderbuffer{}declare var WebGLRenderbuffer:{prototype:WebGLRenderbuffer;new():WebGLRenderbuffer;};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:"ANGLE_instanced_arrays"):ANGLE_instanced_arrays|null;getExtension(extensionName:"EXT_blend_minmax"):EXT_blend_minmax|null;getExtension(extensionName:"EXT_color_buffer_float"):EXT_color_buffer_float|null;getExtension(extensionName:"EXT_color_buffer_half_float"):EXT_color_buffer_half_float|null;getExtension(extensionName:"EXT_float_blend"):EXT_float_blend|null;getExtension(extensionName:"EXT_frag_depth"):EXT_frag_depth|null;getExtension(extensionName:"EXT_sRGB"):EXT_sRGB|null;getExtension(extensionName:"EXT_shader_texture_lod"):EXT_shader_texture_lod|null;getExtension(extensionName:"EXT_texture_compression_bptc"):EXT_texture_compression_bptc|null;getExtension(extensionName:"EXT_texture_compression_rgtc"):EXT_texture_compression_rgtc|null;getExtension(extensionName:"EXT_texture_filter_anisotropic"):EXT_texture_filter_anisotropic|null;getExtension(extensionName:"KHR_parallel_shader_compile"):KHR_parallel_shader_compile|null;getExtension(extensionName:"OES_element_index_uint"):OES_element_index_uint|null;getExtension(extensionName:"OES_fbo_render_mipmap"):OES_fbo_render_mipmap|null;getExtension(extensionName:"OES_standard_derivatives"):OES_standard_derivatives|null;getExtension(extensionName:"OES_texture_float"):OES_texture_float|null;getExtension(extensionName:"OES_texture_float_linear"):OES_texture_float_linear|null;getExtension(extensionName:"OES_texture_half_float"):OES_texture_half_float|null;getExtension(extensionName:"OES_texture_half_float_linear"):OES_texture_half_float_linear|null;getExtension(extensionName:"OES_vertex_array_object"):OES_vertex_array_object|null;getExtension(extensionName:"OVR_multiview2"):OVR_multiview2|null;getExtension(extensionName:"WEBGL_color_buffer_float"):WEBGL_color_buffer_float|null;getExtension(extensionName:"WEBGL_compressed_texture_astc"):WEBGL_compressed_texture_astc|null;getExtension(extensionName:"WEBGL_compressed_texture_etc"):WEBGL_compressed_texture_etc|null;getExtension(extensionName:"WEBGL_compressed_texture_etc1"):WEBGL_compressed_texture_etc1|null;getExtension(extensionName:"WEBGL_compressed_texture_s3tc"):WEBGL_compressed_texture_s3tc|null;getExtension(extensionName:"WEBGL_compressed_texture_s3tc_srgb"):WEBGL_compressed_texture_s3tc_srgb|null;getExtension(extensionName:"WEBGL_debug_renderer_info"):WEBGL_debug_renderer_info|null;getExtension(extensionName:"WEBGL_debug_shaders"):WEBGL_debug_shaders|null;getExtension(extensionName:"WEBGL_depth_texture"):WEBGL_depth_texture|null;getExtension(extensionName:"WEBGL_draw_buffers"):WEBGL_draw_buffers|null;getExtension(extensionName:"WEBGL_lose_context"):WEBGL_lose_context|null;getExtension(extensionName:"WEBGL_multi_draw"):WEBGL_multi_draw|null;getExtension(name:string):any;getFramebufferAttachmentParameter(target:GLenum,attachment:GLenum,pname:GLenum):any;getParameter(pname:GLenum):any;getProgramInfoLog(program:WebGLProgram):string|null;getProgramParameter(program:WebGLProgram,pname:GLenum):any;getRenderbufferParameter(target:GLenum,pname:GLenum):any;getShaderInfoLog(shader:WebGLShader):string|null;getShaderParameter(shader:WebGLShader,pname:GLenum):any;getShaderPrecisionFormat(shadertype:GLenum,precisiontype:GLenum):WebGLShaderPrecisionFormat|null;getShaderSource(shader:WebGLShader):string|null;getSupportedExtensions():string[]|null;getTexParameter(target:GLenum,pname:GLenum):any;getUniform(program:WebGLProgram,location:WebGLUniformLocation):any;getUniformLocation(program:WebGLProgram,name:string):WebGLUniformLocation|null;getVertexAttrib(index:GLuint,pname:GLenum):any;getVertexAttribOffset(index:GLuint,pname:GLenum):GLintptr;hint(target:GLenum,mode:GLenum):void;isBuffer(buffer:WebGLBuffer|null):GLboolean;isContextLost():boolean;isEnabled(cap:GLenum):GLboolean;isFramebuffer(framebuffer:WebGLFramebuffer|null):GLboolean;isProgram(program:WebGLProgram|null):GLboolean;isRenderbuffer(renderbuffer:WebGLRenderbuffer|null):GLboolean;isShader(shader:WebGLShader|null):GLboolean;isTexture(texture:WebGLTexture|null):GLboolean;lineWidth(width:GLfloat):void;linkProgram(program:WebGLProgram):void;pixelStorei(pname:GLenum,param:GLint|GLboolean):void;polygonOffset(factor:GLfloat,units:GLfloat):void;renderbufferStorage(target:GLenum,internalformat:GLenum,width:GLsizei,height:GLsizei):void;sampleCoverage(value:GLclampf,invert:GLboolean):void;scissor(x:GLint,y:GLint,width:GLsizei,height:GLsizei):void;shaderSource(shader:WebGLShader,source:string):void;stencilFunc(func:GLenum,ref:GLint,mask:GLuint):void;stencilFuncSeparate(face:GLenum,func:GLenum,ref:GLint,mask:GLuint):void;stencilMask(mask:GLuint):void;stencilMaskSeparate(face:GLenum,mask:GLuint):void;stencilOp(fail:GLenum,zfail:GLenum,zpass:GLenum):void;stencilOpSeparate(face:GLenum,fail:GLenum,zfail:GLenum,zpass:GLenum):void;texParameterf(target:GLenum,pname:GLenum,param:GLfloat):void;texParameteri(target:GLenum,pname:GLenum,param:GLint):void;uniform1f(location:WebGLUniformLocation|null,x:GLfloat):void;uniform1i(location:WebGLUniformLocation|null,x:GLint):void;uniform2f(location:WebGLUniformLocation|null,x:GLfloat,y:GLfloat):void;uniform2i(location:WebGLUniformLocation|null,x:GLint,y:GLint):void;uniform3f(location:WebGLUniformLocation|null,x:GLfloat,y:GLfloat,z:GLfloat):void;uniform3i(location:WebGLUniformLocation|null,x:GLint,y:GLint,z:GLint):void;uniform4f(location:WebGLUniformLocation|null,x:GLfloat,y:GLfloat,z:GLfloat,w:GLfloat):void;uniform4i(location:WebGLUniformLocation|null,x:GLint,y:GLint,z:GLint,w:GLint):void;useProgram(program:WebGLProgram|null):void;validateProgram(program:WebGLProgram):void;vertexAttrib1f(index:GLuint,x:GLfloat):void;vertexAttrib1fv(index:GLuint,values:Float32List):void;vertexAttrib2f(index:GLuint,x:GLfloat,y:GLfloat):void;vertexAttrib2fv(index:GLuint,values:Float32List):void;vertexAttrib3f(index:GLuint,x:GLfloat,y:GLfloat,z:GLfloat):void;vertexAttrib3fv(index:GLuint,values:Float32List):void;vertexAttrib4f(index:GLuint,x:GLfloat,y:GLfloat,z:GLfloat,w:GLfloat):void;vertexAttrib4fv(index:GLuint,values:Float32List):void;vertexAttribPointer(index:GLuint,size:GLint,type:GLenum,normalized:GLboolean,stride:GLsizei,offset:GLintptr):void;viewport(x:GLint,y:GLint,width:GLsizei,height:GLsizei):void;readonly ACTIVE_ATTRIBUTES:GLenum;readonly ACTIVE_TEXTURE:GLenum;readonly ACTIVE_UNIFORMS:GLenum;readonly ALIASED_LINE_WIDTH_RANGE:GLenum;readonly ALIASED_POINT_SIZE_RANGE:GLenum;readonly ALPHA:GLenum;readonly ALPHA_BITS:GLenum;readonly ALWAYS:GLenum;readonly ARRAY_BUFFER:GLenum;readonly ARRAY_BUFFER_BINDING:GLenum;readonly ATTACHED_SHADERS:GLenum;readonly BACK:GLenum;readonly BLEND:GLenum;readonly BLEND_COLOR:GLenum;readonly BLEND_DST_ALPHA:GLenum;readonly BLEND_DST_RGB:GLenum;readonly BLEND_EQUATION:GLenum;readonly BLEND_EQUATION_ALPHA:GLenum;readonly BLEND_EQUATION_RGB:GLenum;readonly BLEND_SRC_ALPHA:GLenum;readonly BLEND_SRC_RGB:GLenum;readonly BLUE_BITS:GLenum;readonly BOOL:GLenum;readonly BOOL_VEC2:GLenum;readonly BOOL_VEC3:GLenum;readonly BOOL_VEC4:GLenum;readonly BROWSER_DEFAULT_WEBGL:GLenum;readonly BUFFER_SIZE:GLenum;readonly BUFFER_USAGE:GLenum;readonly BYTE:GLenum;readonly CCW:GLenum;readonly CLAMP_TO_EDGE:GLenum;readonly COLOR_ATTACHMENT0:GLenum;readonly COLOR_BUFFER_BIT:GLenum;readonly COLOR_CLEAR_VALUE:GLenum;readonly COLOR_WRITEMASK:GLenum;readonly COMPILE_STATUS:GLenum;readonly COMPRESSED_TEXTURE_FORMATS:GLenum;readonly CONSTANT_ALPHA:GLenum;readonly CONSTANT_COLOR:GLenum;readonly CONTEXT_LOST_WEBGL:GLenum;readonly CULL_FACE:GLenum;readonly CULL_FACE_MODE:GLenum;readonly CURRENT_PROGRAM:GLenum;readonly CURRENT_VERTEX_ATTRIB:GLenum;readonly CW:GLenum;readonly DECR:GLenum;readonly DECR_WRAP:GLenum;readonly DELETE_STATUS:GLenum;readonly DEPTH_ATTACHMENT:GLenum;readonly DEPTH_BITS:GLenum;readonly DEPTH_BUFFER_BIT:GLenum;readonly DEPTH_CLEAR_VALUE:GLenum;readonly DEPTH_COMPONENT:GLenum;readonly DEPTH_COMPONENT16:GLenum;readonly DEPTH_FUNC:GLenum;readonly DEPTH_RANGE:GLenum;readonly DEPTH_STENCIL:GLenum;readonly DEPTH_STENCIL_ATTACHMENT:GLenum;readonly DEPTH_TEST:GLenum;readonly DEPTH_WRITEMASK:GLenum;readonly DITHER:GLenum;readonly DONT_CARE:GLenum;readonly DST_ALPHA:GLenum;readonly DST_COLOR:GLenum;readonly DYNAMIC_DRAW:GLenum;readonly ELEMENT_ARRAY_BUFFER:GLenum;readonly ELEMENT_ARRAY_BUFFER_BINDING:GLenum;readonly EQUAL:GLenum;readonly FASTEST:GLenum;readonly FLOAT:GLenum;readonly FLOAT_MAT2:GLenum;readonly FLOAT_MAT3:GLenum;readonly FLOAT_MAT4:GLenum;readonly FLOAT_VEC2:GLenum;readonly FLOAT_VEC3:GLenum;readonly FLOAT_VEC4:GLenum;readonly FRAGMENT_SHADER:GLenum;readonly FRAMEBUFFER:GLenum;readonly FRAMEBUFFER_ATTACHMENT_OBJECT_NAME:GLenum;readonly FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE:GLenum;readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE:GLenum;readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL:GLenum;readonly FRAMEBUFFER_BINDING:GLenum;readonly FRAMEBUFFER_COMPLETE:GLenum;readonly FRAMEBUFFER_INCOMPLETE_ATTACHMENT:GLenum;readonly FRAMEBUFFER_INCOMPLETE_DIMENSIONS:GLenum;readonly FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT:GLenum;readonly FRAMEBUFFER_UNSUPPORTED:GLenum;readonly FRONT:GLenum;readonly FRONT_AND_BACK:GLenum;readonly FRONT_FACE:GLenum;readonly FUNC_ADD:GLenum;readonly FUNC_REVERSE_SUBTRACT:GLenum;readonly FUNC_SUBTRACT:GLenum;readonly GENERATE_MIPMAP_HINT:GLenum;readonly GEQUAL:GLenum;readonly GREATER:GLenum;readonly GREEN_BITS:GLenum;readonly HIGH_FLOAT:GLenum;readonly HIGH_INT:GLenum;readonly IMPLEMENTATION_COLOR_READ_FORMAT:GLenum;readonly IMPLEMENTATION_COLOR_READ_TYPE:GLenum;readonly INCR:GLenum;readonly INCR_WRAP:GLenum;readonly INT:GLenum;readonly INT_VEC2:GLenum;readonly INT_VEC3:GLenum;readonly INT_VEC4:GLenum;readonly INVALID_ENUM:GLenum;readonly INVALID_FRAMEBUFFER_OPERATION:GLenum;readonly INVALID_OPERATION:GLenum;readonly INVALID_VALUE:GLenum;readonly INVERT:GLenum;readonly KEEP:GLenum;readonly LEQUAL:GLenum;readonly LESS:GLenum;readonly LINEAR:GLenum;readonly LINEAR_MIPMAP_LINEAR:GLenum;readonly LINEAR_MIPMAP_NEAREST:GLenum;readonly LINES:GLenum;readonly LINE_LOOP:GLenum;readonly LINE_STRIP:GLenum;readonly LINE_WIDTH:GLenum;readonly LINK_STATUS:GLenum;readonly LOW_FLOAT:GLenum;readonly LOW_INT:GLenum;readonly LUMINANCE:GLenum;readonly LUMINANCE_ALPHA:GLenum;readonly MAX_COMBINED_TEXTURE_IMAGE_UNITS:GLenum;readonly MAX_CUBE_MAP_TEXTURE_SIZE:GLenum;readonly MAX_FRAGMENT_UNIFORM_VECTORS:GLenum;readonly MAX_RENDERBUFFER_SIZE:GLenum;readonly MAX_TEXTURE_IMAGE_UNITS:GLenum;readonly MAX_TEXTURE_SIZE:GLenum;readonly MAX_VARYING_VECTORS:GLenum;readonly MAX_VERTEX_ATTRIBS:GLenum;readonly MAX_VERTEX_TEXTURE_IMAGE_UNITS:GLenum;readonly MAX_VERTEX_UNIFORM_VECTORS:GLenum;readonly MAX_VIEWPORT_DIMS:GLenum;readonly MEDIUM_FLOAT:GLenum;readonly MEDIUM_INT:GLenum;readonly MIRRORED_REPEAT:GLenum;readonly NEAREST:GLenum;readonly NEAREST_MIPMAP_LINEAR:GLenum;readonly NEAREST_MIPMAP_NEAREST:GLenum;readonly NEVER:GLenum;readonly NICEST:GLenum;readonly NONE:GLenum;readonly NOTEQUAL:GLenum;readonly NO_ERROR:GLenum;readonly ONE:GLenum;readonly ONE_MINUS_CONSTANT_ALPHA:GLenum;readonly ONE_MINUS_CONSTANT_COLOR:GLenum;readonly ONE_MINUS_DST_ALPHA:GLenum;readonly ONE_MINUS_DST_COLOR:GLenum;readonly ONE_MINUS_SRC_ALPHA:GLenum;readonly ONE_MINUS_SRC_COLOR:GLenum;readonly OUT_OF_MEMORY:GLenum;readonly PACK_ALIGNMENT:GLenum;readonly POINTS:GLenum;readonly POLYGON_OFFSET_FACTOR:GLenum;readonly POLYGON_OFFSET_FILL:GLenum;readonly POLYGON_OFFSET_UNITS:GLenum;readonly RED_BITS:GLenum;readonly RENDERBUFFER:GLenum;readonly RENDERBUFFER_ALPHA_SIZE:GLenum;readonly RENDERBUFFER_BINDING:GLenum;readonly RENDERBUFFER_BLUE_SIZE:GLenum;readonly RENDERBUFFER_DEPTH_SIZE:GLenum;readonly RENDERBUFFER_GREEN_SIZE:GLenum;readonly RENDERBUFFER_HEIGHT:GLenum;readonly RENDERBUFFER_INTERNAL_FORMAT:GLenum;readonly RENDERBUFFER_RED_SIZE:GLenum;readonly RENDERBUFFER_STENCIL_SIZE:GLenum;readonly RENDERBUFFER_WIDTH:GLenum;readonly RENDERER:GLenum;readonly REPEAT:GLenum;readonly REPLACE:GLenum;readonly RGB:GLenum;readonly RGB565:GLenum;readonly RGB5_A1:GLenum;readonly RGBA:GLenum;readonly RGBA4:GLenum;readonly SAMPLER_2D:GLenum;readonly SAMPLER_CUBE:GLenum;readonly SAMPLES:GLenum;readonly SAMPLE_ALPHA_TO_COVERAGE:GLenum;readonly SAMPLE_BUFFERS:GLenum;readonly SAMPLE_COVERAGE:GLenum;readonly SAMPLE_COVERAGE_INVERT:GLenum;readonly SAMPLE_COVERAGE_VALUE:GLenum;readonly SCISSOR_BOX:GLenum;readonly SCISSOR_TEST:GLenum;readonly SHADER_TYPE:GLenum;readonly SHADING_LANGUAGE_VERSION:GLenum;readonly SHORT:GLenum;readonly SRC_ALPHA:GLenum;readonly SRC_ALPHA_SATURATE:GLenum;readonly SRC_COLOR:GLenum;readonly STATIC_DRAW:GLenum;readonly STENCIL_ATTACHMENT:GLenum;readonly STENCIL_BACK_FAIL:GLenum;readonly STENCIL_BACK_FUNC:GLenum;readonly STENCIL_BACK_PASS_DEPTH_FAIL:GLenum;readonly STENCIL_BACK_PASS_DEPTH_PASS:GLenum;readonly STENCIL_BACK_REF:GLenum;readonly STENCIL_BACK_VALUE_MASK:GLenum;readonly STENCIL_BACK_WRITEMASK:GLenum;readonly STENCIL_BITS:GLenum;readonly STENCIL_BUFFER_BIT:GLenum;readonly STENCIL_CLEAR_VALUE:GLenum;readonly STENCIL_FAIL:GLenum;readonly STENCIL_FUNC:GLenum;readonly STENCIL_INDEX8:GLenum;readonly STENCIL_PASS_DEPTH_FAIL:GLenum;readonly STENCIL_PASS_DEPTH_PASS:GLenum;readonly STENCIL_REF:GLenum;readonly STENCIL_TEST:GLenum;readonly STENCIL_VALUE_MASK:GLenum;readonly STENCIL_WRITEMASK:GLenum;readonly STREAM_DRAW:GLenum;readonly SUBPIXEL_BITS:GLenum;readonly TEXTURE:GLenum;readonly TEXTURE0:GLenum;readonly TEXTURE1:GLenum;readonly TEXTURE10:GLenum;readonly TEXTURE11:GLenum;readonly TEXTURE12:GLenum;readonly TEXTURE13:GLenum;readonly TEXTURE14:GLenum;readonly TEXTURE15:GLenum;readonly TEXTURE16:GLenum;readonly TEXTURE17:GLenum;readonly TEXTURE18:GLenum;readonly TEXTURE19:GLenum;readonly TEXTURE2:GLenum;readonly TEXTURE20:GLenum;readonly TEXTURE21:GLenum;readonly TEXTURE22:GLenum;readonly TEXTURE23:GLenum;readonly TEXTURE24:GLenum;readonly TEXTURE25:GLenum;readonly TEXTURE26:GLenum;readonly TEXTURE27:GLenum;readonly TEXTURE28:GLenum;readonly TEXTURE29:GLenum;readonly TEXTURE3:GLenum;readonly TEXTURE30:GLenum;readonly TEXTURE31:GLenum;readonly TEXTURE4:GLenum;readonly TEXTURE5:GLenum;readonly TEXTURE6:GLenum;readonly TEXTURE7:GLenum;readonly TEXTURE8:GLenum;readonly TEXTURE9:GLenum;readonly TEXTURE_2D:GLenum;readonly TEXTURE_BINDING_2D:GLenum;readonly TEXTURE_BINDING_CUBE_MAP:GLenum;readonly TEXTURE_CUBE_MAP:GLenum;readonly TEXTURE_CUBE_MAP_NEGATIVE_X:GLenum;readonly TEXTURE_CUBE_MAP_NEGATIVE_Y:GLenum;readonly TEXTURE_CUBE_MAP_NEGATIVE_Z:GLenum;readonly TEXTURE_CUBE_MAP_POSITIVE_X:GLenum;readonly TEXTURE_CUBE_MAP_POSITIVE_Y:GLenum;readonly TEXTURE_CUBE_MAP_POSITIVE_Z:GLenum;readonly TEXTURE_MAG_FILTER:GLenum;readonly TEXTURE_MIN_FILTER:GLenum;readonly TEXTURE_WRAP_S:GLenum;readonly TEXTURE_WRAP_T:GLenum;readonly TRIANGLES:GLenum;readonly TRIANGLE_FAN:GLenum;readonly TRIANGLE_STRIP:GLenum;readonly UNPACK_ALIGNMENT:GLenum;readonly UNPACK_COLORSPACE_CONVERSION_WEBGL:GLenum;readonly UNPACK_FLIP_Y_WEBGL:GLenum;readonly UNPACK_PREMULTIPLY_ALPHA_WEBGL:GLenum;readonly UNSIGNED_BYTE:GLenum;readonly UNSIGNED_INT:GLenum;readonly UNSIGNED_SHORT:GLenum;readonly UNSIGNED_SHORT_4_4_4_4:GLenum;readonly UNSIGNED_SHORT_5_5_5_1:GLenum;readonly UNSIGNED_SHORT_5_6_5:GLenum;readonly VALIDATE_STATUS:GLenum;readonly VENDOR:GLenum;readonly VERSION:GLenum;readonly VERTEX_ATTRIB_ARRAY_BUFFER_BINDING:GLenum;readonly VERTEX_ATTRIB_ARRAY_ENABLED:GLenum;readonly VERTEX_ATTRIB_ARRAY_NORMALIZED:GLenum;readonly VERTEX_ATTRIB_ARRAY_POINTER:GLenum;readonly VERTEX_ATTRIB_ARRAY_SIZE:GLenum;readonly VERTEX_ATTRIB_ARRAY_STRIDE:GLenum;readonly VERTEX_ATTRIB_ARRAY_TYPE:GLenum;readonly VERTEX_SHADER:GLenum;readonly VIEWPORT:GLenum;readonly ZERO:GLenum;}interface WebGLRenderingContextOverloads{bufferData(target:GLenum,size:GLsizeiptr,usage:GLenum):void;bufferData(target:GLenum,data:BufferSource|null,usage:GLenum):void;bufferSubData(target:GLenum,offset:GLintptr,data:BufferSource):void;compressedTexImage2D(target:GLenum,level:GLint,internalformat:GLenum,width:GLsizei,height:GLsizei,border:GLint,data:ArrayBufferView):void;compressedTexSubImage2D(target:GLenum,level:GLint,xoffset:GLint,yoffset:GLint,width:GLsizei,height:GLsizei,format:GLenum,data:ArrayBufferView):void;readPixels(x:GLint,y:GLint,width:GLsizei,height:GLsizei,format:GLenum,type:GLenum,pixels:ArrayBufferView|null):void;texImage2D(target:GLenum,level:GLint,internalformat:GLint,width:GLsizei,height:GLsizei,border:GLint,format:GLenum,type:GLenum,pixels:ArrayBufferView|null):void;texImage2D(target:GLenum,level:GLint,internalformat:GLint,format:GLenum,type:GLenum,source:TexImageSource):void;texSubImage2D(target:GLenum,level:GLint,xoffset:GLint,yoffset:GLint,width:GLsizei,height:GLsizei,format:GLenum,type:GLenum,pixels:ArrayBufferView|null):void;texSubImage2D(target:GLenum,level:GLint,xoffset:GLint,yoffset:GLint,format:GLenum,type:GLenum,source:TexImageSource):void;uniform1fv(location:WebGLUniformLocation|null,v:Float32List):void;uniform1iv(location:WebGLUniformLocation|null,v:Int32List):void;uniform2fv(location:WebGLUniformLocation|null,v:Float32List):void;uniform2iv(location:WebGLUniformLocation|null,v:Int32List):void;uniform3fv(location:WebGLUniformLocation|null,v:Float32List):void;uniform3iv(location:WebGLUniformLocation|null,v:Int32List):void;uniform4fv(location:WebGLUniformLocation|null,v:Float32List):void;uniform4iv(location:WebGLUniformLocation|null,v:Int32List):void;uniformMatrix2fv(location:WebGLUniformLocation|null,transpose:GLboolean,value:Float32List):void;uniformMatrix3fv(location:WebGLUniformLocation|null,transpose:GLboolean,value:Float32List):void;uniformMatrix4fv(location:WebGLUniformLocation|null,transpose:GLboolean,value:Float32List):void;}interface WebGLSampler{}declare var WebGLSampler:{prototype:WebGLSampler;new():WebGLSampler;};interface WebGLShader{}declare var WebGLShader:{prototype:WebGLShader;new():WebGLShader;};interface WebGLShaderPrecisionFormat{readonly precision:GLint;readonly rangeMax:GLint;readonly rangeMin:GLint;}declare var WebGLShaderPrecisionFormat:{prototype:WebGLShaderPrecisionFormat;new():WebGLShaderPrecisionFormat;};interface WebGLSync{}declare var WebGLSync:{prototype:WebGLSync;new():WebGLSync;};interface WebGLTexture{}declare var WebGLTexture:{prototype:WebGLTexture;new():WebGLTexture;};interface WebGLTransformFeedback{}declare var WebGLTransformFeedback:{prototype:WebGLTransformFeedback;new():WebGLTransformFeedback;};interface WebGLUniformLocation{}declare var WebGLUniformLocation:{prototype:WebGLUniformLocation;new():WebGLUniformLocation;};interface WebGLVertexArrayObject{}declare var WebGLVertexArrayObject:{prototype:WebGLVertexArrayObject;new():WebGLVertexArrayObject;};interface WebGLVertexArrayObjectOES{}interface WebSocketEventMap{"close":CloseEvent;"error":Event;"message":MessageEvent;"open":Event;}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(type:K,listener:(this:WebSocket,ev:WebSocketEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(type:K,listener:(this:WebSocket,ev:WebSocketEventMap[K])=>any,options?:boolean|EventListenerOptions):void;removeEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|EventListenerOptions):void;}declare var WebSocket:{prototype:WebSocket;new(url:string|URL,protocols?:string|string[]):WebSocket;readonly CLOSED:number;readonly CLOSING:number;readonly CONNECTING:number;readonly OPEN:number;};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{"DOMContentLoaded":Event;"devicemotion":DeviceMotionEvent;"deviceorientation":DeviceOrientationEvent;"gamepadconnected":GamepadEvent;"gamepaddisconnected":GamepadEvent;"orientationchange":Event;}interface Window extends EventTarget,AnimationFrameProvider,GlobalEventHandlers,WindowEventHandlers,WindowLocalStorage,WindowOrWorkerGlobalScope,WindowSessionStorage{readonly clientInformation:Navigator;readonly closed:boolean;readonly customElements:CustomElementRegistry;readonly devicePixelRatio:number;readonly document:Document;readonly event:Event|undefined;readonly external:External;readonly frameElement:Element|null;readonly frames:WindowProxy;readonly history:History;readonly innerHeight:number;readonly innerWidth:number;readonly length:number;get location():Location;set location(href:string|Location);readonly locationbar:BarProp;readonly menubar:BarProp;name:string;readonly navigator:Navigator;ondevicemotion:((this:Window,ev:DeviceMotionEvent)=>any)|null;ondeviceorientation:((this:Window,ev:DeviceOrientationEvent)=>any)|null;onorientationchange:((this:Window,ev:Event)=>any)|null;opener:any;readonly orientation:number;readonly outerHeight:number;readonly outerWidth:number;readonly pageXOffset:number;readonly pageYOffset:number;readonly parent:WindowProxy;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 toolbar:BarProp;readonly top:WindowProxy|null;readonly visualViewport:VisualViewport|null;readonly window:Window&typeof globalThis;alert(message?:any):void;blur():void;cancelIdleCallback(handle:number):void;captureEvents():void;close():void;confirm(message?:string):boolean;focus():void;getComputedStyle(elt:Element,pseudoElt?:string|null):CSSStyleDeclaration;getSelection():Selection|null;matchMedia(query:string):MediaQueryList;moveBy(x:number,y:number):void;moveTo(x:number,y:number):void;open(url?:string|URL,target?:string,features?:string):WindowProxy|null;postMessage(message:any,targetOrigin:string,transfer?:Transferable[]):void;postMessage(message:any,options?:WindowPostMessageOptions):void;print():void;prompt(message?:string,_default?:string):string|null;releaseEvents():void;requestIdleCallback(callback:IdleRequestCallback,options?:IdleRequestOptions):number;resizeBy(x:number,y:number):void;resizeTo(width:number,height:number):void;scroll(options?:ScrollToOptions):void;scroll(x:number,y:number):void;scrollBy(options?:ScrollToOptions):void;scrollBy(x:number,y:number):void;scrollTo(options?:ScrollToOptions):void;scrollTo(x:number,y:number):void;stop():void;addEventListener(type:K,listener:(this:Window,ev:WindowEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(type:K,listener:(this:Window,ev:WindowEventMap[K])=>any,options?:boolean|EventListenerOptions):void;removeEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|EventListenerOptions):void;[index:number]:Window;}declare var Window:{prototype:Window;new():Window;};interface WindowEventHandlersEventMap{"afterprint":Event;"beforeprint":Event;"beforeunload":BeforeUnloadEvent;"gamepadconnected":GamepadEvent;"gamepaddisconnected":GamepadEvent;"hashchange":HashChangeEvent;"languagechange":Event;"message":MessageEvent;"messageerror":MessageEvent;"offline":Event;"online":Event;"pagehide":PageTransitionEvent;"pageshow":PageTransitionEvent;"popstate":PopStateEvent;"rejectionhandled":PromiseRejectionEvent;"storage":StorageEvent;"unhandledrejection":PromiseRejectionEvent;"unload":Event;}interface WindowEventHandlers{onafterprint:((this:WindowEventHandlers,ev:Event)=>any)|null;onbeforeprint:((this:WindowEventHandlers,ev:Event)=>any)|null;onbeforeunload:((this:WindowEventHandlers,ev:BeforeUnloadEvent)=>any)|null;ongamepadconnected:((this:WindowEventHandlers,ev:GamepadEvent)=>any)|null;ongamepaddisconnected:((this:WindowEventHandlers,ev:GamepadEvent)=>any)|null;onhashchange:((this:WindowEventHandlers,ev:HashChangeEvent)=>any)|null;onlanguagechange:((this:WindowEventHandlers,ev:Event)=>any)|null;onmessage:((this:WindowEventHandlers,ev:MessageEvent)=>any)|null;onmessageerror:((this:WindowEventHandlers,ev:MessageEvent)=>any)|null;onoffline:((this:WindowEventHandlers,ev:Event)=>any)|null;ononline:((this:WindowEventHandlers,ev:Event)=>any)|null;onpagehide:((this:WindowEventHandlers,ev:PageTransitionEvent)=>any)|null;onpageshow:((this:WindowEventHandlers,ev:PageTransitionEvent)=>any)|null;onpopstate:((this:WindowEventHandlers,ev:PopStateEvent)=>any)|null;onrejectionhandled:((this:WindowEventHandlers,ev:PromiseRejectionEvent)=>any)|null;onstorage:((this:WindowEventHandlers,ev:StorageEvent)=>any)|null;onunhandledrejection:((this:WindowEventHandlers,ev:PromiseRejectionEvent)=>any)|null;onunload:((this:WindowEventHandlers,ev:Event)=>any)|null;addEventListener(type:K,listener:(this:WindowEventHandlers,ev:WindowEventHandlersEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(type:K,listener:(this:WindowEventHandlers,ev:WindowEventHandlersEventMap[K])=>any,options?:boolean|EventListenerOptions):void;removeEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|EventListenerOptions):void;}interface WindowLocalStorage{readonly localStorage:Storage;}interface WindowOrWorkerGlobalScope{readonly caches:CacheStorage;readonly crossOriginIsolated:boolean;readonly crypto:Crypto;readonly indexedDB:IDBFactory;readonly isSecureContext:boolean;readonly origin:string;readonly performance:Performance;atob(data:string):string;btoa(data:string):string;clearInterval(id:number|undefined):void;clearTimeout(id:number|undefined):void;createImageBitmap(image:ImageBitmapSource,options?:ImageBitmapOptions):Promise;createImageBitmap(image:ImageBitmapSource,sx:number,sy:number,sw:number,sh:number,options?:ImageBitmapOptions):Promise;fetch(input:RequestInfo|URL,init?:RequestInit):Promise;queueMicrotask(callback:VoidFunction):void;reportError(e:any):void;setInterval(handler:TimerHandler,timeout?:number,...arguments:any[]):number;setTimeout(handler:TimerHandler,timeout?:number,...arguments:any[]):number;structuredClone(value:any,options?:StructuredSerializeOptions):any;}interface WindowSessionStorage{readonly sessionStorage:Storage;}interface WorkerEventMap extends AbstractWorkerEventMap{"message":MessageEvent;"messageerror":MessageEvent;}interface Worker extends EventTarget,AbstractWorker{onmessage:((this:Worker,ev:MessageEvent)=>any)|null;onmessageerror:((this:Worker,ev:MessageEvent)=>any)|null;postMessage(message:any,transfer:Transferable[]):void;postMessage(message:any,options?:StructuredSerializeOptions):void;terminate():void;addEventListener(type:K,listener:(this:Worker,ev:WorkerEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(type:K,listener:(this:Worker,ev:WorkerEventMap[K])=>any,options?:boolean|EventListenerOptions):void;removeEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|EventListenerOptions):void;}declare var Worker:{prototype:Worker;new(scriptURL:string|URL,options?:WorkerOptions):Worker;};interface Worklet{addModule(moduleURL:string|URL,options?:WorkletOptions):Promise;}declare var Worklet:{prototype:Worklet;new():Worklet;};interface WritableStream{readonly locked:boolean;abort(reason?:any):Promise;close():Promise;getWriter():WritableStreamDefaultWriter;}declare var WritableStream:{prototype:WritableStream;new(underlyingSink?:UnderlyingSink,strategy?:QueuingStrategy):WritableStream;};interface WritableStreamDefaultController{readonly signal:AbortSignal;error(e?:any):void;}declare var WritableStreamDefaultController:{prototype:WritableStreamDefaultController;new():WritableStreamDefaultController;};interface WritableStreamDefaultWriter{readonly closed:Promise;readonly desiredSize:number|null;readonly ready:Promise;abort(reason?:any):Promise;close():Promise;releaseLock():void;write(chunk?:W):Promise;}declare var WritableStreamDefaultWriter:{prototype:WritableStreamDefaultWriter;new(stream:WritableStream):WritableStreamDefaultWriter;};interface XMLDocument extends Document{addEventListener(type:K,listener:(this:XMLDocument,ev:DocumentEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(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;}interface XMLHttpRequest extends XMLHttpRequestEventTarget{onreadystatechange:((this:XMLHttpRequest,ev:Event)=>any)|null;readonly readyState:number;readonly response:any;readonly responseText:string;responseType:XMLHttpRequestResponseType;readonly responseURL:string;readonly responseXML:Document|null;readonly status:number;readonly statusText:string;timeout:number;readonly upload:XMLHttpRequestUpload;withCredentials:boolean;abort():void;getAllResponseHeaders():string;getResponseHeader(name:string):string|null;open(method:string,url:string|URL):void;open(method:string,url:string|URL,async:boolean,username?:string|null,password?:string|null):void;overrideMimeType(mime:string):void;send(body?:Document|XMLHttpRequestBodyInit|null):void;setRequestHeader(name:string,value:string):void;readonly DONE:number;readonly HEADERS_RECEIVED:number;readonly LOADING:number;readonly OPENED:number;readonly UNSENT:number;addEventListener(type:K,listener:(this:XMLHttpRequest,ev:XMLHttpRequestEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(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;"error":ProgressEvent;"load":ProgressEvent;"loadend":ProgressEvent;"loadstart":ProgressEvent;"progress":ProgressEvent;"timeout":ProgressEvent;}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(type:K,listener:(this:XMLHttpRequestEventTarget,ev:XMLHttpRequestEventTargetEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(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(type:K,listener:(this:XMLHttpRequestUpload,ev:XMLHttpRequestEventTargetEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(type:K,listener:(this:XMLHttpRequestUpload,ev:XMLHttpRequestEventTargetEventMap[K])=>any,options?:boolean|EventListenerOptions):void;removeEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|EventListenerOptions):void;}declare var XMLHttpRequestUpload:{prototype:XMLHttpRequestUpload;new():XMLHttpRequestUpload;};interface XMLSerializer{serializeToString(root:Node):string;}declare var XMLSerializer:{prototype:XMLSerializer;new():XMLSerializer;};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;}interface XPathExpression{evaluate(contextNode:Node,type?:number,result?:XPathResult|null):XPathResult;}declare var XPathExpression:{prototype:XPathExpression;new():XPathExpression;};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;};interface XSLTProcessor{clearParameters():void;getParameter(namespaceURI:string|null,localName:string):any;importStylesheet(style:Node):void;removeParameter(namespaceURI:string|null,localName:string):void;reset():void;setParameter(namespaceURI:string|null,localName:string,value:any):void;transformToDocument(source:Node):Document;transformToFragment(source:Node,output:Document):DocumentFragment;}declare var XSLTProcessor:{prototype:XSLTProcessor;new():XSLTProcessor;};interface Console{assert(condition?:boolean,...data:any[]):void;clear():void;count(label?:string):void;countReset(label?:string):void;debug(...data:any[]):void;dir(item?:any,options?:any):void;dirxml(...data:any[]):void;error(...data:any[]):void;group(...data:any[]):void;groupCollapsed(...data:any[]):void;groupEnd():void;info(...data:any[]):void;log(...data:any[]):void;table(tabularData?:any,properties?:string[]):void;time(label?:string):void;timeEnd(label?:string):void;timeLog(label?:string,...data:any[]):void;timeStamp(label?:string):void;trace(...data:any[]):void;warn(...data:any[]):void;}declare var console:Console;declare namespace CSS{function escape(ident:string):string;function supports(property:string,value:string):boolean;function supports(conditionText:string):boolean;}declare namespace WebAssembly{interface CompileError extends Error{}var CompileError:{prototype:CompileError;new(message?:string):CompileError;(message?:string):CompileError;};interface Global{value:any;valueOf():any;}var Global:{prototype:Global;new(descriptor:GlobalDescriptor,v?:any):Global;};interface Instance{readonly exports:Exports;}var Instance:{prototype:Instance;new(module:Module,importObject?:Imports):Instance;};interface LinkError extends Error{}var LinkError:{prototype:LinkError;new(message?:string):LinkError;(message?:string):LinkError;};interface Memory{readonly buffer:ArrayBuffer;grow(delta:number):number;}var Memory:{prototype:Memory;new(descriptor:MemoryDescriptor):Memory;};interface Module{}var Module:{prototype:Module;new(bytes:BufferSource):Module;customSections(moduleObject:Module,sectionName:string):ArrayBuffer[];exports(moduleObject:Module):ModuleExportDescriptor[];imports(moduleObject:Module):ModuleImportDescriptor[];};interface RuntimeError extends Error{}var RuntimeError:{prototype:RuntimeError;new(message?:string):RuntimeError;(message?:string):RuntimeError;};interface Table{readonly length:number;get(index:number):any;grow(delta:number,value?:any):number;set(index:number,value?:any):void;}var Table:{prototype:Table;new(descriptor:TableDescriptor,value?:any):Table;};interface GlobalDescriptor{mutable?:boolean;value:ValueType;}interface MemoryDescriptor{initial:number;maximum?:number;shared?:boolean;}interface ModuleExportDescriptor{kind:ImportExportKind;name:string;}interface ModuleImportDescriptor{kind:ImportExportKind;module:string;name:string;}interface TableDescriptor{element:TableKind;initial:number;maximum?:number;}interface WebAssemblyInstantiatedSource{instance:Instance;module:Module;}type ImportExportKind="function"|"global"|"memory"|"table";type TableKind="anyfunc"|"externref";type ValueType="anyfunc"|"externref"|"f32"|"f64"|"i32"|"i64"|"v128";type ExportValue=Function|Global|Memory|Table;type Exports=Record;type ImportValue=ExportValue|number;type Imports=Record;type ModuleImports=Record;function compile(bytes:BufferSource):Promise;function compileStreaming(source:Response|PromiseLike):Promise;function instantiate(bytes:BufferSource,importObject?:Imports):Promise;function instantiate(moduleObject:Module,importObject?:Imports):Promise;function instantiateStreaming(source:Response|PromiseLike,importObject?:Imports):Promise;function validate(bytes:BufferSource):boolean;}interface BlobCallback{(blob:Blob|null):void;}interface CustomElementConstructor{new(...params:any[]):HTMLElement;}interface DecodeErrorCallback{(error:DOMException):void;}interface DecodeSuccessCallback{(decodedData:AudioBuffer):void;}interface ErrorCallback{(err:DOMException):void;}interface FileCallback{(file:File):void;}interface FileSystemEntriesCallback{(entries:FileSystemEntry[]):void;}interface FileSystemEntryCallback{(entry:FileSystemEntry):void;}interface FrameRequestCallback{(time:DOMHighResTimeStamp):void;}interface FunctionStringCallback{(data:string):void;}interface IdleRequestCallback{(deadline:IdleDeadline):void;}interface IntersectionObserverCallback{(entries:IntersectionObserverEntry[],observer:IntersectionObserver):void;}interface LockGrantedCallback{(lock:Lock|null):any;}interface MediaSessionActionHandler{(details:MediaSessionActionDetails):void;}interface MutationCallback{(mutations:MutationRecord[],observer:MutationObserver):void;}interface NotificationPermissionCallback{(permission:NotificationPermission):void;}interface OnBeforeUnloadEventHandlerNonNull{(event:Event):string|null;}interface OnErrorEventHandlerNonNull{(event:Event|string,source?:string,lineno?:number,colno?:number,error?:Error):any;}interface PerformanceObserverCallback{(entries:PerformanceObserverEntryList,observer:PerformanceObserver):void;}interface PositionCallback{(position:GeolocationPosition):void;}interface PositionErrorCallback{(positionError:GeolocationPositionError):void;}interface QueuingStrategySize{(chunk:T):number;}interface RTCPeerConnectionErrorCallback{(error:DOMException):void;}interface RTCSessionDescriptionCallback{(description:RTCSessionDescriptionInit):void;}interface RemotePlaybackAvailabilityCallback{(available:boolean):void;}interface ResizeObserverCallback{(entries:ResizeObserverEntry[],observer:ResizeObserver):void;}interface TransformerFlushCallback{(controller:TransformStreamDefaultController):void|PromiseLike;}interface TransformerStartCallback{(controller:TransformStreamDefaultController):any;}interface TransformerTransformCallback{(chunk:I,controller:TransformStreamDefaultController):void|PromiseLike;}interface UnderlyingSinkAbortCallback{(reason?:any):void|PromiseLike;}interface UnderlyingSinkCloseCallback{():void|PromiseLike;}interface UnderlyingSinkStartCallback{(controller:WritableStreamDefaultController):any;}interface UnderlyingSinkWriteCallback{(chunk:W,controller:WritableStreamDefaultController):void|PromiseLike;}interface UnderlyingSourceCancelCallback{(reason?:any):void|PromiseLike;}interface UnderlyingSourcePullCallback{(controller:ReadableStreamController):void|PromiseLike;}interface UnderlyingSourceStartCallback{(controller:ReadableStreamController):any;}interface VideoFrameRequestCallback{(now:DOMHighResTimeStamp,metadata:VideoFrameCallbackMetadata):void;}interface VoidFunction{():void;}interface HTMLElementTagNameMap{"a":HTMLAnchorElement;"abbr":HTMLElement;"address":HTMLElement;"area":HTMLAreaElement;"article":HTMLElement;"aside":HTMLElement;"audio":HTMLAudioElement;"b":HTMLElement;"base":HTMLBaseElement;"bdi":HTMLElement;"bdo":HTMLElement;"blockquote":HTMLQuoteElement;"body":HTMLBodyElement;"br":HTMLBRElement;"button":HTMLButtonElement;"canvas":HTMLCanvasElement;"caption":HTMLTableCaptionElement;"cite":HTMLElement;"code":HTMLElement;"col":HTMLTableColElement;"colgroup":HTMLTableColElement;"data":HTMLDataElement;"datalist":HTMLDataListElement;"dd":HTMLElement;"del":HTMLModElement;"details":HTMLDetailsElement;"dfn":HTMLElement;"dialog":HTMLDialogElement;"div":HTMLDivElement;"dl":HTMLDListElement;"dt":HTMLElement;"em":HTMLElement;"embed":HTMLEmbedElement;"fieldset":HTMLFieldSetElement;"figcaption":HTMLElement;"figure":HTMLElement;"footer":HTMLElement;"form":HTMLFormElement;"h1":HTMLHeadingElement;"h2":HTMLHeadingElement;"h3":HTMLHeadingElement;"h4":HTMLHeadingElement;"h5":HTMLHeadingElement;"h6":HTMLHeadingElement;"head":HTMLHeadElement;"header":HTMLElement;"hgroup":HTMLElement;"hr":HTMLHRElement;"html":HTMLHtmlElement;"i":HTMLElement;"iframe":HTMLIFrameElement;"img":HTMLImageElement;"input":HTMLInputElement;"ins":HTMLModElement;"kbd":HTMLElement;"label":HTMLLabelElement;"legend":HTMLLegendElement;"li":HTMLLIElement;"link":HTMLLinkElement;"main":HTMLElement;"map":HTMLMapElement;"mark":HTMLElement;"menu":HTMLMenuElement;"meta":HTMLMetaElement;"meter":HTMLMeterElement;"nav":HTMLElement;"noscript":HTMLElement;"object":HTMLObjectElement;"ol":HTMLOListElement;"optgroup":HTMLOptGroupElement;"option":HTMLOptionElement;"output":HTMLOutputElement;"p":HTMLParagraphElement;"picture":HTMLPictureElement;"pre":HTMLPreElement;"progress":HTMLProgressElement;"q":HTMLQuoteElement;"rp":HTMLElement;"rt":HTMLElement;"ruby":HTMLElement;"s":HTMLElement;"samp":HTMLElement;"script":HTMLScriptElement;"section":HTMLElement;"select":HTMLSelectElement;"slot":HTMLSlotElement;"small":HTMLElement;"source":HTMLSourceElement;"span":HTMLSpanElement;"strong":HTMLElement;"style":HTMLStyleElement;"sub":HTMLElement;"summary":HTMLElement;"sup":HTMLElement;"table":HTMLTableElement;"tbody":HTMLTableSectionElement;"td":HTMLTableCellElement;"template":HTMLTemplateElement;"textarea":HTMLTextAreaElement;"tfoot":HTMLTableSectionElement;"th":HTMLTableCellElement;"thead":HTMLTableSectionElement;"time":HTMLTimeElement;"title":HTMLTitleElement;"tr":HTMLTableRowElement;"track":HTMLTrackElement;"u":HTMLElement;"ul":HTMLUListElement;"var":HTMLElement;"video":HTMLVideoElement;"wbr":HTMLElement;}interface HTMLElementDeprecatedTagNameMap{"acronym":HTMLElement;"applet":HTMLUnknownElement;"basefont":HTMLElement;"bgsound":HTMLUnknownElement;"big":HTMLElement;"blink":HTMLUnknownElement;"center":HTMLElement;"dir":HTMLDirectoryElement;"font":HTMLFontElement;"frame":HTMLFrameElement;"frameset":HTMLFrameSetElement;"isindex":HTMLUnknownElement;"keygen":HTMLUnknownElement;"listing":HTMLPreElement;"marquee":HTMLMarqueeElement;"menuitem":HTMLElement;"multicol":HTMLUnknownElement;"nextid":HTMLUnknownElement;"nobr":HTMLElement;"noembed":HTMLElement;"noframes":HTMLElement;"param":HTMLParamElement;"plaintext":HTMLElement;"rb":HTMLElement;"rtc":HTMLElement;"spacer":HTMLUnknownElement;"strike":HTMLElement;"tt":HTMLElement;"xmp":HTMLPreElement;}interface SVGElementTagNameMap{"a":SVGAElement;"animate":SVGAnimateElement;"animateMotion":SVGAnimateMotionElement;"animateTransform":SVGAnimateTransformElement;"circle":SVGCircleElement;"clipPath":SVGClipPathElement;"defs":SVGDefsElement;"desc":SVGDescElement;"ellipse":SVGEllipseElement;"feBlend":SVGFEBlendElement;"feColorMatrix":SVGFEColorMatrixElement;"feComponentTransfer":SVGFEComponentTransferElement;"feComposite":SVGFECompositeElement;"feConvolveMatrix":SVGFEConvolveMatrixElement;"feDiffuseLighting":SVGFEDiffuseLightingElement;"feDisplacementMap":SVGFEDisplacementMapElement;"feDistantLight":SVGFEDistantLightElement;"feDropShadow":SVGFEDropShadowElement;"feFlood":SVGFEFloodElement;"feFuncA":SVGFEFuncAElement;"feFuncB":SVGFEFuncBElement;"feFuncG":SVGFEFuncGElement;"feFuncR":SVGFEFuncRElement;"feGaussianBlur":SVGFEGaussianBlurElement;"feImage":SVGFEImageElement;"feMerge":SVGFEMergeElement;"feMergeNode":SVGFEMergeNodeElement;"feMorphology":SVGFEMorphologyElement;"feOffset":SVGFEOffsetElement;"fePointLight":SVGFEPointLightElement;"feSpecularLighting":SVGFESpecularLightingElement;"feSpotLight":SVGFESpotLightElement;"feTile":SVGFETileElement;"feTurbulence":SVGFETurbulenceElement;"filter":SVGFilterElement;"foreignObject":SVGForeignObjectElement;"g":SVGGElement;"image":SVGImageElement;"line":SVGLineElement;"linearGradient":SVGLinearGradientElement;"marker":SVGMarkerElement;"mask":SVGMaskElement;"metadata":SVGMetadataElement;"mpath":SVGMPathElement;"path":SVGPathElement;"pattern":SVGPatternElement;"polygon":SVGPolygonElement;"polyline":SVGPolylineElement;"radialGradient":SVGRadialGradientElement;"rect":SVGRectElement;"script":SVGScriptElement;"set":SVGSetElement;"stop":SVGStopElement;"style":SVGStyleElement;"svg":SVGSVGElement;"switch":SVGSwitchElement;"symbol":SVGSymbolElement;"text":SVGTextElement;"textPath":SVGTextPathElement;"title":SVGTitleElement;"tspan":SVGTSpanElement;"use":SVGUseElement;"view":SVGViewElement;}type ElementTagNameMap=HTMLElementTagNameMap&Pick>;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 clientInformation:Navigator;declare var closed:boolean;declare var customElements:CustomElementRegistry;declare var devicePixelRatio:number;declare var document:Document;declare var event:Event|undefined;declare var external:External;declare var frameElement:Element|null;declare var frames:WindowProxy;declare var history:History;declare var innerHeight:number;declare var innerWidth:number;declare var length:number;declare var location:Location;declare var locationbar:BarProp;declare var menubar:BarProp;declare const name:void;declare var navigator:Navigator;declare var ondevicemotion:((this:Window,ev:DeviceMotionEvent)=>any)|null;declare var ondeviceorientation:((this:Window,ev:DeviceOrientationEvent)=>any)|null;declare var onorientationchange:((this:Window,ev:Event)=>any)|null;declare var opener:any;declare var orientation:number;declare var outerHeight:number;declare var outerWidth:number;declare var pageXOffset:number;declare var pageYOffset:number;declare var parent:WindowProxy;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 toolbar:BarProp;declare var top:WindowProxy|null;declare var visualViewport:VisualViewport|null;declare var window:Window&typeof globalThis;declare function alert(message?:any):void;declare function blur():void;declare function cancelIdleCallback(handle:number):void;declare function captureEvents():void;declare function close():void;declare function confirm(message?:string):boolean;declare function focus():void;declare function getComputedStyle(elt:Element,pseudoElt?:string|null):CSSStyleDeclaration;declare function getSelection():Selection|null;declare function matchMedia(query:string):MediaQueryList;declare function moveBy(x:number,y:number):void;declare function moveTo(x:number,y:number):void;declare function open(url?:string|URL,target?:string,features?:string):WindowProxy|null;declare function postMessage(message:any,targetOrigin:string,transfer?:Transferable[]):void;declare function postMessage(message:any,options?:WindowPostMessageOptions):void;declare function print():void;declare function prompt(message?:string,_default?:string):string|null;declare function releaseEvents():void;declare function requestIdleCallback(callback:IdleRequestCallback,options?:IdleRequestOptions):number;declare function resizeBy(x:number,y:number):void;declare function resizeTo(width:number,height:number):void;declare function scroll(options?:ScrollToOptions):void;declare function scroll(x:number,y:number):void;declare function scrollBy(options?:ScrollToOptions):void;declare function scrollBy(x:number,y:number):void;declare function scrollTo(options?:ScrollToOptions):void;declare function scrollTo(x:number,y:number):void;declare function stop():void;declare function toString():string;declare function dispatchEvent(event:Event):boolean;declare function cancelAnimationFrame(handle:number):void;declare function requestAnimationFrame(callback:FrameRequestCallback):number;declare var onabort:((this:Window,ev:UIEvent)=>any)|null;declare var onanimationcancel:((this:Window,ev:AnimationEvent)=>any)|null;declare var onanimationend:((this:Window,ev:AnimationEvent)=>any)|null;declare var onanimationiteration:((this:Window,ev:AnimationEvent)=>any)|null;declare var onanimationstart:((this:Window,ev:AnimationEvent)=>any)|null;declare var onauxclick:((this:Window,ev:MouseEvent)=>any)|null;declare var onbeforeinput:((this:Window,ev:InputEvent)=>any)|null;declare var onblur:((this:Window,ev:FocusEvent)=>any)|null;declare var oncancel:((this:Window,ev:Event)=>any)|null;declare var oncanplay:((this:Window,ev:Event)=>any)|null;declare var oncanplaythrough:((this:Window,ev:Event)=>any)|null;declare var onchange:((this:Window,ev:Event)=>any)|null;declare var onclick:((this:Window,ev:MouseEvent)=>any)|null;declare var onclose:((this:Window,ev:Event)=>any)|null;declare var oncontextmenu:((this:Window,ev:MouseEvent)=>any)|null;declare var oncuechange:((this:Window,ev:Event)=>any)|null;declare var ondblclick:((this:Window,ev:MouseEvent)=>any)|null;declare var ondrag:((this:Window,ev:DragEvent)=>any)|null;declare var ondragend:((this:Window,ev:DragEvent)=>any)|null;declare var ondragenter:((this:Window,ev:DragEvent)=>any)|null;declare var ondragleave:((this:Window,ev:DragEvent)=>any)|null;declare var ondragover:((this:Window,ev:DragEvent)=>any)|null;declare var ondragstart:((this:Window,ev:DragEvent)=>any)|null;declare var ondrop:((this:Window,ev:DragEvent)=>any)|null;declare var ondurationchange:((this:Window,ev:Event)=>any)|null;declare var onemptied:((this:Window,ev:Event)=>any)|null;declare var onended:((this:Window,ev:Event)=>any)|null;declare var onerror:OnErrorEventHandler;declare var onfocus:((this:Window,ev:FocusEvent)=>any)|null;declare var onformdata:((this:Window,ev:FormDataEvent)=>any)|null;declare var ongotpointercapture:((this:Window,ev:PointerEvent)=>any)|null;declare var oninput:((this:Window,ev:Event)=>any)|null;declare var oninvalid:((this:Window,ev:Event)=>any)|null;declare var onkeydown:((this:Window,ev:KeyboardEvent)=>any)|null;declare var onkeypress:((this:Window,ev:KeyboardEvent)=>any)|null;declare var onkeyup:((this:Window,ev:KeyboardEvent)=>any)|null;declare var onload:((this:Window,ev:Event)=>any)|null;declare var onloadeddata:((this:Window,ev:Event)=>any)|null;declare var onloadedmetadata:((this:Window,ev:Event)=>any)|null;declare var onloadstart:((this:Window,ev:Event)=>any)|null;declare var onlostpointercapture:((this:Window,ev:PointerEvent)=>any)|null;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;declare var onmousemove:((this:Window,ev:MouseEvent)=>any)|null;declare var onmouseout:((this:Window,ev:MouseEvent)=>any)|null;declare var onmouseover:((this:Window,ev:MouseEvent)=>any)|null;declare var onmouseup:((this:Window,ev:MouseEvent)=>any)|null;declare var onpause:((this:Window,ev:Event)=>any)|null;declare var onplay:((this:Window,ev:Event)=>any)|null;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;declare var onprogress:((this:Window,ev:ProgressEvent)=>any)|null;declare var onratechange:((this:Window,ev:Event)=>any)|null;declare var onreset:((this:Window,ev:Event)=>any)|null;declare var onresize:((this:Window,ev:UIEvent)=>any)|null;declare var onscroll:((this:Window,ev:Event)=>any)|null;declare var onsecuritypolicyviolation:((this:Window,ev:SecurityPolicyViolationEvent)=>any)|null;declare var onseeked:((this:Window,ev:Event)=>any)|null;declare var onseeking:((this:Window,ev:Event)=>any)|null;declare var onselect:((this:Window,ev:Event)=>any)|null;declare var onselectionchange:((this:Window,ev:Event)=>any)|null;declare var onselectstart:((this:Window,ev:Event)=>any)|null;declare var onslotchange:((this:Window,ev:Event)=>any)|null;declare var onstalled:((this:Window,ev:Event)=>any)|null;declare var onsubmit:((this:Window,ev:SubmitEvent)=>any)|null;declare var onsuspend:((this:Window,ev:Event)=>any)|null;declare var ontimeupdate:((this:Window,ev:Event)=>any)|null;declare var ontoggle:((this:Window,ev:Event)=>any)|null;declare var ontouchcancel:((this:Window,ev:TouchEvent)=>any)|null|undefined;declare var ontouchend:((this:Window,ev:TouchEvent)=>any)|null|undefined;declare var ontouchmove:((this:Window,ev:TouchEvent)=>any)|null|undefined;declare var ontouchstart:((this:Window,ev:TouchEvent)=>any)|null|undefined;declare var ontransitioncancel:((this:Window,ev:TransitionEvent)=>any)|null;declare var ontransitionend:((this:Window,ev:TransitionEvent)=>any)|null;declare var ontransitionrun:((this:Window,ev:TransitionEvent)=>any)|null;declare var ontransitionstart:((this:Window,ev:TransitionEvent)=>any)|null;declare var onvolumechange:((this:Window,ev:Event)=>any)|null;declare var onwaiting:((this:Window,ev:Event)=>any)|null;declare var onwebkitanimationend:((this:Window,ev:Event)=>any)|null;declare var onwebkitanimationiteration:((this:Window,ev:Event)=>any)|null;declare var onwebkitanimationstart:((this:Window,ev:Event)=>any)|null;declare var onwebkittransitionend:((this:Window,ev:Event)=>any)|null;declare var onwheel:((this:Window,ev:WheelEvent)=>any)|null;declare var onafterprint:((this:Window,ev:Event)=>any)|null;declare var onbeforeprint:((this:Window,ev:Event)=>any)|null;declare var onbeforeunload:((this:Window,ev:BeforeUnloadEvent)=>any)|null;declare var ongamepadconnected:((this:Window,ev:GamepadEvent)=>any)|null;declare var ongamepaddisconnected:((this:Window,ev:GamepadEvent)=>any)|null;declare var onhashchange:((this:Window,ev:HashChangeEvent)=>any)|null;declare var onlanguagechange:((this:Window,ev:Event)=>any)|null;declare var onmessage:((this:Window,ev:MessageEvent)=>any)|null;declare var onmessageerror:((this:Window,ev:MessageEvent)=>any)|null;declare var onoffline:((this:Window,ev:Event)=>any)|null;declare var ononline:((this:Window,ev:Event)=>any)|null;declare var onpagehide:((this:Window,ev:PageTransitionEvent)=>any)|null;declare var onpageshow:((this:Window,ev:PageTransitionEvent)=>any)|null;declare var onpopstate:((this:Window,ev:PopStateEvent)=>any)|null;declare var onrejectionhandled:((this:Window,ev:PromiseRejectionEvent)=>any)|null;declare var onstorage:((this:Window,ev:StorageEvent)=>any)|null;declare var onunhandledrejection:((this:Window,ev:PromiseRejectionEvent)=>any)|null;declare var onunload:((this:Window,ev:Event)=>any)|null;declare var localStorage:Storage;declare var caches:CacheStorage;declare var crossOriginIsolated:boolean;declare var crypto:Crypto;declare var indexedDB:IDBFactory;declare var isSecureContext:boolean;declare var origin:string;declare var performance:Performance;declare function atob(data:string):string;declare function btoa(data:string):string;declare function clearInterval(id:number|undefined):void;declare function clearTimeout(id:number|undefined):void;declare function createImageBitmap(image:ImageBitmapSource,options?:ImageBitmapOptions):Promise;declare function createImageBitmap(image:ImageBitmapSource,sx:number,sy:number,sw:number,sh:number,options?:ImageBitmapOptions):Promise;declare function fetch(input:RequestInfo|URL,init?:RequestInit):Promise;declare function queueMicrotask(callback:VoidFunction):void;declare function reportError(e:any):void;declare function setInterval(handler:TimerHandler,timeout?:number,...arguments:any[]):number;declare function setTimeout(handler:TimerHandler,timeout?:number,...arguments:any[]):number;declare function structuredClone(value:any,options?:StructuredSerializeOptions):any;declare var sessionStorage:Storage;declare function addEventListener(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(type:K,listener:(this:Window,ev:WindowEventMap[K])=>any,options?:boolean|EventListenerOptions):void;declare function removeEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|EventListenerOptions):void;type AlgorithmIdentifier=Algorithm|string;type BigInteger=Uint8Array;type BinaryData=ArrayBuffer|ArrayBufferView;type BlobPart=BufferSource|Blob|string;type BodyInit=ReadableStream|XMLHttpRequestBodyInit;type BufferSource=ArrayBufferView|ArrayBuffer;type COSEAlgorithmIdentifier=number;type CSSNumberish=number;type CanvasImageSource=HTMLOrSVGImageElement|HTMLVideoElement|HTMLCanvasElement|ImageBitmap|OffscreenCanvas;type ClipboardItemData=Promise;type ClipboardItems=ClipboardItem[];type ConstrainBoolean=boolean|ConstrainBooleanParameters;type ConstrainDOMString=string|string[]|ConstrainDOMStringParameters;type ConstrainDouble=number|ConstrainDoubleRange;type ConstrainULong=number|ConstrainULongRange;type DOMHighResTimeStamp=number;type EpochTimeStamp=number;type EventListenerOrEventListenerObject=EventListener|EventListenerObject;type Float32List=Float32Array|GLfloat[];type FormDataEntryValue=File|string;type GLbitfield=number;type GLboolean=boolean;type GLclampf=number;type GLenum=number;type GLfloat=number;type GLint=number;type GLint64=number;type GLintptr=number;type GLsizei=number;type GLsizeiptr=number;type GLuint=number;type GLuint64=number;type HTMLOrSVGImageElement=HTMLImageElement|SVGImageElement;type HTMLOrSVGScriptElement=HTMLScriptElement|SVGScriptElement;type HashAlgorithmIdentifier=AlgorithmIdentifier;type HeadersInit=[string,string][]|Record|Headers;type IDBValidKey=number|string|Date|BufferSource|IDBValidKey[];type ImageBitmapSource=CanvasImageSource|Blob|ImageData;type InsertPosition="beforebegin"|"afterbegin"|"beforeend"|"afterend";type Int32List=Int32Array|GLint[];type LineAndPositionSetting=number|AutoKeyword;type MediaProvider=MediaStream|MediaSource|Blob;type MessageEventSource=WindowProxy|MessagePort|ServiceWorker;type MutationRecordType="attributes"|"characterData"|"childList";type NamedCurve=string;type OffscreenRenderingContext=OffscreenCanvasRenderingContext2D|ImageBitmapRenderingContext|WebGLRenderingContext|WebGL2RenderingContext;type OnBeforeUnloadEventHandler=OnBeforeUnloadEventHandlerNonNull|null;type OnErrorEventHandler=OnErrorEventHandlerNonNull|null;type PerformanceEntryList=PerformanceEntry[];type ReadableStreamController=ReadableStreamDefaultController|ReadableByteStreamController;type ReadableStreamReadResult=ReadableStreamReadValueResult|ReadableStreamReadDoneResult;type ReadableStreamReader=ReadableStreamDefaultReader|ReadableStreamBYOBReader;type RenderingContext=CanvasRenderingContext2D|ImageBitmapRenderingContext|WebGLRenderingContext|WebGL2RenderingContext;type RequestInfo=Request|string;type TexImageSource=ImageBitmap|ImageData|HTMLImageElement|HTMLCanvasElement|HTMLVideoElement|OffscreenCanvas;type TimerHandler=string|Function;type Transferable=OffscreenCanvas|ImageBitmap|MessagePort|ReadableStream|WritableStream|TransformStream|ArrayBuffer;type Uint32List=Uint32Array|GLuint[];type VibratePattern=number|number[];type WindowProxy=Window;type XMLHttpRequestBodyInit=Blob|BufferSource|FormData|URLSearchParams|string;type AlignSetting="center"|"end"|"left"|"right"|"start";type AnimationPlayState="finished"|"idle"|"paused"|"running";type AnimationReplaceState="active"|"persisted"|"removed";type AppendMode="segments"|"sequence";type AttestationConveyancePreference="direct"|"enterprise"|"indirect"|"none";type AudioContextLatencyCategory="balanced"|"interactive"|"playback";type AudioContextState="closed"|"running"|"suspended";type AuthenticatorAttachment="cross-platform"|"platform";type AuthenticatorTransport="ble"|"hybrid"|"internal"|"nfc"|"usb";type AutoKeyword="auto";type AutomationRate="a-rate"|"k-rate";type BinaryType="arraybuffer"|"blob";type BiquadFilterType="allpass"|"bandpass"|"highpass"|"highshelf"|"lowpass"|"lowshelf"|"notch"|"peaking";type CanPlayTypeResult=""|"maybe"|"probably";type CanvasDirection="inherit"|"ltr"|"rtl";type CanvasFillRule="evenodd"|"nonzero";type CanvasFontKerning="auto"|"none"|"normal";type CanvasFontStretch="condensed"|"expanded"|"extra-condensed"|"extra-expanded"|"normal"|"semi-condensed"|"semi-expanded"|"ultra-condensed"|"ultra-expanded";type CanvasFontVariantCaps="all-petite-caps"|"all-small-caps"|"normal"|"petite-caps"|"small-caps"|"titling-caps"|"unicase";type CanvasLineCap="butt"|"round"|"square";type CanvasLineJoin="bevel"|"miter"|"round";type CanvasTextAlign="center"|"end"|"left"|"right"|"start";type CanvasTextBaseline="alphabetic"|"bottom"|"hanging"|"ideographic"|"middle"|"top";type CanvasTextRendering="auto"|"geometricPrecision"|"optimizeLegibility"|"optimizeSpeed";type ChannelCountMode="clamped-max"|"explicit"|"max";type ChannelInterpretation="discrete"|"speakers";type ClientTypes="all"|"sharedworker"|"window"|"worker";type ColorGamut="p3"|"rec2020"|"srgb";type ColorSpaceConversion="default"|"none";type CompositeOperation="accumulate"|"add"|"replace";type CompositeOperationOrAuto="accumulate"|"add"|"auto"|"replace";type CredentialMediationRequirement="optional"|"required"|"silent";type DOMParserSupportedType="application/xhtml+xml"|"application/xml"|"image/svg+xml"|"text/html"|"text/xml";type DirectionSetting=""|"lr"|"rl";type DisplayCaptureSurfaceType="browser"|"monitor"|"window";type DistanceModelType="exponential"|"inverse"|"linear";type DocumentReadyState="complete"|"interactive"|"loading";type DocumentVisibilityState="hidden"|"visible";type EndOfStreamError="decode"|"network";type EndingType="native"|"transparent";type FileSystemHandleKind="directory"|"file";type FillMode="auto"|"backwards"|"both"|"forwards"|"none";type FontFaceLoadStatus="error"|"loaded"|"loading"|"unloaded";type FontFaceSetLoadStatus="loaded"|"loading";type FullscreenNavigationUI="auto"|"hide"|"show";type GamepadHapticActuatorType="vibration";type GamepadMappingType=""|"standard"|"xr-standard";type GlobalCompositeOperation="color"|"color-burn"|"color-dodge"|"copy"|"darken"|"destination-atop"|"destination-in"|"destination-out"|"destination-over"|"difference"|"exclusion"|"hard-light"|"hue"|"lighten"|"lighter"|"luminosity"|"multiply"|"overlay"|"saturation"|"screen"|"soft-light"|"source-atop"|"source-in"|"source-out"|"source-over"|"xor";type HdrMetadataType="smpteSt2086"|"smpteSt2094-10"|"smpteSt2094-40";type IDBCursorDirection="next"|"nextunique"|"prev"|"prevunique";type IDBRequestReadyState="done"|"pending";type IDBTransactionDurability="default"|"relaxed"|"strict";type IDBTransactionMode="readonly"|"readwrite"|"versionchange";type ImageOrientation="flipY"|"none";type ImageSmoothingQuality="high"|"low"|"medium";type IterationCompositeOperation="accumulate"|"replace";type KeyFormat="jwk"|"pkcs8"|"raw"|"spki";type KeyType="private"|"public"|"secret";type KeyUsage="decrypt"|"deriveBits"|"deriveKey"|"encrypt"|"sign"|"unwrapKey"|"verify"|"wrapKey";type LineAlignSetting="center"|"end"|"start";type LockMode="exclusive"|"shared";type MediaDecodingType="file"|"media-source"|"webrtc";type MediaDeviceKind="audioinput"|"audiooutput"|"videoinput";type MediaEncodingType="record"|"webrtc";type MediaKeyMessageType="individualization-request"|"license-release"|"license-renewal"|"license-request";type MediaKeySessionClosedReason="closed-by-application"|"hardware-context-reset"|"internal-error"|"release-acknowledged"|"resource-evicted";type MediaKeySessionType="persistent-license"|"temporary";type MediaKeyStatus="expired"|"internal-error"|"output-downscaled"|"output-restricted"|"released"|"status-pending"|"usable"|"usable-in-future";type MediaKeysRequirement="not-allowed"|"optional"|"required";type MediaSessionAction="nexttrack"|"pause"|"play"|"previoustrack"|"seekbackward"|"seekforward"|"seekto"|"skipad"|"stop";type MediaSessionPlaybackState="none"|"paused"|"playing";type MediaStreamTrackState="ended"|"live";type NavigationTimingType="back_forward"|"navigate"|"prerender"|"reload";type NotificationDirection="auto"|"ltr"|"rtl";type NotificationPermission="default"|"denied"|"granted";type OffscreenRenderingContextId="2d"|"bitmaprenderer"|"webgl"|"webgl2"|"webgpu";type OrientationLockType="any"|"landscape"|"landscape-primary"|"landscape-secondary"|"natural"|"portrait"|"portrait-primary"|"portrait-secondary";type OrientationType="landscape-primary"|"landscape-secondary"|"portrait-primary"|"portrait-secondary";type OscillatorType="custom"|"sawtooth"|"sine"|"square"|"triangle";type OverSampleType="2x"|"4x"|"none";type PanningModelType="HRTF"|"equalpower";type PaymentComplete="fail"|"success"|"unknown";type PermissionName="geolocation"|"notifications"|"persistent-storage"|"push"|"screen-wake-lock"|"xr-spatial-tracking";type PermissionState="denied"|"granted"|"prompt";type PlaybackDirection="alternate"|"alternate-reverse"|"normal"|"reverse";type PositionAlignSetting="auto"|"center"|"line-left"|"line-right";type PredefinedColorSpace="display-p3"|"srgb";type PremultiplyAlpha="default"|"none"|"premultiply";type PresentationStyle="attachment"|"inline"|"unspecified";type PublicKeyCredentialType="public-key";type PushEncryptionKeyName="auth"|"p256dh";type RTCBundlePolicy="balanced"|"max-bundle"|"max-compat";type RTCDataChannelState="closed"|"closing"|"connecting"|"open";type RTCDegradationPreference="balanced"|"maintain-framerate"|"maintain-resolution";type RTCDtlsTransportState="closed"|"connected"|"connecting"|"failed"|"new";type RTCEncodedVideoFrameType="delta"|"empty"|"key";type RTCErrorDetailType="data-channel-failure"|"dtls-failure"|"fingerprint-failure"|"hardware-encoder-error"|"hardware-encoder-not-available"|"sctp-failure"|"sdp-syntax-error";type RTCIceCandidateType="host"|"prflx"|"relay"|"srflx";type RTCIceComponent="rtcp"|"rtp";type RTCIceConnectionState="checking"|"closed"|"completed"|"connected"|"disconnected"|"failed"|"new";type RTCIceGathererState="complete"|"gathering"|"new";type RTCIceGatheringState="complete"|"gathering"|"new";type RTCIceProtocol="tcp"|"udp";type RTCIceTcpCandidateType="active"|"passive"|"so";type RTCIceTransportPolicy="all"|"relay";type RTCIceTransportState="checking"|"closed"|"completed"|"connected"|"disconnected"|"failed"|"new";type RTCPeerConnectionState="closed"|"connected"|"connecting"|"disconnected"|"failed"|"new";type RTCPriorityType="high"|"low"|"medium"|"very-low";type RTCRtcpMuxPolicy="require";type RTCRtpTransceiverDirection="inactive"|"recvonly"|"sendonly"|"sendrecv"|"stopped";type RTCSctpTransportState="closed"|"connected"|"connecting";type RTCSdpType="answer"|"offer"|"pranswer"|"rollback";type RTCSignalingState="closed"|"have-local-offer"|"have-local-pranswer"|"have-remote-offer"|"have-remote-pranswer"|"stable";type RTCStatsIceCandidatePairState="failed"|"frozen"|"in-progress"|"inprogress"|"succeeded"|"waiting";type RTCStatsType="candidate-pair"|"certificate"|"codec"|"data-channel"|"inbound-rtp"|"local-candidate"|"media-source"|"outbound-rtp"|"peer-connection"|"remote-candidate"|"remote-inbound-rtp"|"remote-outbound-rtp"|"track"|"transport";type ReadableStreamReaderMode="byob";type ReadableStreamType="bytes";type ReadyState="closed"|"ended"|"open";type RecordingState="inactive"|"paused"|"recording";type ReferrerPolicy=""|"no-referrer"|"no-referrer-when-downgrade"|"origin"|"origin-when-cross-origin"|"same-origin"|"strict-origin"|"strict-origin-when-cross-origin"|"unsafe-url";type RemotePlaybackState="connected"|"connecting"|"disconnected";type RequestCache="default"|"force-cache"|"no-cache"|"no-store"|"only-if-cached"|"reload";type RequestCredentials="include"|"omit"|"same-origin";type RequestDestination=""|"audio"|"audioworklet"|"document"|"embed"|"font"|"frame"|"iframe"|"image"|"manifest"|"object"|"paintworklet"|"report"|"script"|"sharedworker"|"style"|"track"|"video"|"worker"|"xslt";type RequestMode="cors"|"navigate"|"no-cors"|"same-origin";type RequestRedirect="error"|"follow"|"manual";type ResidentKeyRequirement="discouraged"|"preferred"|"required";type ResizeObserverBoxOptions="border-box"|"content-box"|"device-pixel-content-box";type ResizeQuality="high"|"low"|"medium"|"pixelated";type ResponseType="basic"|"cors"|"default"|"error"|"opaque"|"opaqueredirect";type ScrollBehavior="auto"|"smooth";type ScrollLogicalPosition="center"|"end"|"nearest"|"start";type ScrollRestoration="auto"|"manual";type ScrollSetting=""|"up";type SecurityPolicyViolationEventDisposition="enforce"|"report";type SelectionMode="end"|"preserve"|"select"|"start";type ServiceWorkerState="activated"|"activating"|"installed"|"installing"|"parsed"|"redundant";type ServiceWorkerUpdateViaCache="all"|"imports"|"none";type ShadowRootMode="closed"|"open";type SlotAssignmentMode="manual"|"named";type SpeechSynthesisErrorCode="audio-busy"|"audio-hardware"|"canceled"|"interrupted"|"invalid-argument"|"language-unavailable"|"network"|"not-allowed"|"synthesis-failed"|"synthesis-unavailable"|"text-too-long"|"voice-unavailable";type TextTrackKind="captions"|"chapters"|"descriptions"|"metadata"|"subtitles";type TextTrackMode="disabled"|"hidden"|"showing";type TouchType="direct"|"stylus";type TransferFunction="hlg"|"pq"|"srgb";type UserVerificationRequirement="discouraged"|"preferred"|"required";type VideoColorPrimaries="bt470bg"|"bt709"|"smpte170m";type VideoFacingModeEnum="environment"|"left"|"right"|"user";type VideoMatrixCoefficients="bt470bg"|"bt709"|"rgb"|"smpte170m";type VideoTransferCharacteristics="bt709"|"iec61966-2-1"|"smpte170m";type WebGLPowerPreference="default"|"high-performance"|"low-power";type WorkerType="classic"|"module";type XMLHttpRequestResponseType=""|"arraybuffer"|"blob"|"document"|"json"|"text";'},{fileName:"lib.dom.iterable.d.ts",text:'/// \ninterface AudioParam{setValueCurveAtTime(values:Iterable,startTime:number,duration:number):AudioParam;}interface AudioParamMap extends ReadonlyMap{}interface BaseAudioContext{createIIRFilter(feedforward:Iterable,feedback:Iterable):IIRFilterNode;createPeriodicWave(real:Iterable,imag:Iterable,constraints?:PeriodicWaveConstraints):PeriodicWave;}interface CSSRuleList{[Symbol.iterator]():IterableIterator;}interface CSSStyleDeclaration{[Symbol.iterator]():IterableIterator;}interface Cache{addAll(requests:Iterable):Promise;}interface CanvasPath{roundRect(x:number,y:number,w:number,h:number,radii?:number|DOMPointInit|Iterable):void;}interface CanvasPathDrawingStyles{setLineDash(segments:Iterable):void;}interface DOMRectList{[Symbol.iterator]():IterableIterator;}interface DOMStringList{[Symbol.iterator]():IterableIterator;}interface DOMTokenList{[Symbol.iterator]():IterableIterator;entries():IterableIterator<[number,string]>;keys():IterableIterator;values():IterableIterator;}interface DataTransferItemList{[Symbol.iterator]():IterableIterator;}interface EventCounts extends ReadonlyMap{}interface FileList{[Symbol.iterator]():IterableIterator;}interface FontFaceSet extends Set{}interface FormData{[Symbol.iterator]():IterableIterator<[string,FormDataEntryValue]>;entries():IterableIterator<[string,FormDataEntryValue]>;keys():IterableIterator;values():IterableIterator;}interface HTMLAllCollection{[Symbol.iterator]():IterableIterator;}interface HTMLCollectionBase{[Symbol.iterator]():IterableIterator;}interface HTMLCollectionOf{[Symbol.iterator]():IterableIterator;}interface HTMLFormElement{[Symbol.iterator]():IterableIterator;}interface HTMLSelectElement{[Symbol.iterator]():IterableIterator;}interface Headers{[Symbol.iterator]():IterableIterator<[string,string]>;entries():IterableIterator<[string,string]>;keys():IterableIterator;values():IterableIterator;}interface IDBDatabase{transaction(storeNames:string|Iterable,mode?:IDBTransactionMode,options?:IDBTransactionOptions):IDBTransaction;}interface IDBObjectStore{createIndex(name:string,keyPath:string|Iterable,options?:IDBIndexParameters):IDBIndex;}interface MediaKeyStatusMap{[Symbol.iterator]():IterableIterator<[BufferSource,MediaKeyStatus]>;entries():IterableIterator<[BufferSource,MediaKeyStatus]>;keys():IterableIterator;values():IterableIterator;}interface MediaList{[Symbol.iterator]():IterableIterator;}interface MessageEvent{initMessageEvent(type:string,bubbles?:boolean,cancelable?:boolean,data?:any,origin?:string,lastEventId?:string,source?:MessageEventSource|null,ports?:Iterable):void;}interface MimeTypeArray{[Symbol.iterator]():IterableIterator;}interface NamedNodeMap{[Symbol.iterator]():IterableIterator;}interface Navigator{requestMediaKeySystemAccess(keySystem:string,supportedConfigurations:Iterable):Promise;vibrate(pattern:Iterable):boolean;}interface NodeList{[Symbol.iterator]():IterableIterator;entries():IterableIterator<[number,Node]>;keys():IterableIterator;values():IterableIterator;}interface NodeListOf{[Symbol.iterator]():IterableIterator;entries():IterableIterator<[number,TNode]>;keys():IterableIterator;values():IterableIterator;}interface Plugin{[Symbol.iterator]():IterableIterator;}interface PluginArray{[Symbol.iterator]():IterableIterator;}interface RTCRtpTransceiver{setCodecPreferences(codecs:Iterable):void;}interface RTCStatsReport extends ReadonlyMap{}interface SVGLengthList{[Symbol.iterator]():IterableIterator;}interface SVGNumberList{[Symbol.iterator]():IterableIterator;}interface SVGPointList{[Symbol.iterator]():IterableIterator;}interface SVGStringList{[Symbol.iterator]():IterableIterator;}interface SVGTransformList{[Symbol.iterator]():IterableIterator;}interface SourceBufferList{[Symbol.iterator]():IterableIterator;}interface SpeechRecognitionResult{[Symbol.iterator]():IterableIterator;}interface SpeechRecognitionResultList{[Symbol.iterator]():IterableIterator;}interface StyleSheetList{[Symbol.iterator]():IterableIterator;}interface SubtleCrypto{deriveKey(algorithm:AlgorithmIdentifier|EcdhKeyDeriveParams|HkdfParams|Pbkdf2Params,baseKey:CryptoKey,derivedKeyType:AlgorithmIdentifier|AesDerivedKeyParams|HmacImportParams|HkdfParams|Pbkdf2Params,extractable:boolean,keyUsages:Iterable):Promise;generateKey(algorithm:RsaHashedKeyGenParams|EcKeyGenParams,extractable:boolean,keyUsages:ReadonlyArray):Promise;generateKey(algorithm:AesKeyGenParams|HmacKeyGenParams|Pbkdf2Params,extractable:boolean,keyUsages:ReadonlyArray):Promise;generateKey(algorithm:AlgorithmIdentifier,extractable:boolean,keyUsages:Iterable):Promise;importKey(format:"jwk",keyData:JsonWebKey,algorithm:AlgorithmIdentifier|RsaHashedImportParams|EcKeyImportParams|HmacImportParams|AesKeyAlgorithm,extractable:boolean,keyUsages:ReadonlyArray):Promise;importKey(format:Exclude,keyData:BufferSource,algorithm:AlgorithmIdentifier|RsaHashedImportParams|EcKeyImportParams|HmacImportParams|AesKeyAlgorithm,extractable:boolean,keyUsages:Iterable):Promise;unwrapKey(format:KeyFormat,wrappedKey:BufferSource,unwrappingKey:CryptoKey,unwrapAlgorithm:AlgorithmIdentifier|RsaOaepParams|AesCtrParams|AesCbcParams|AesGcmParams,unwrappedKeyAlgorithm:AlgorithmIdentifier|RsaHashedImportParams|EcKeyImportParams|HmacImportParams|AesKeyAlgorithm,extractable:boolean,keyUsages:Iterable):Promise;}interface TextTrackCueList{[Symbol.iterator]():IterableIterator;}interface TextTrackList{[Symbol.iterator]():IterableIterator;}interface TouchList{[Symbol.iterator]():IterableIterator;}interface URLSearchParams{[Symbol.iterator]():IterableIterator<[string,string]>;entries():IterableIterator<[string,string]>;keys():IterableIterator;values():IterableIterator;}interface WEBGL_draw_buffers{drawBuffersWEBGL(buffers:Iterable):void;}interface WEBGL_multi_draw{multiDrawArraysInstancedWEBGL(mode:GLenum,firstsList:Int32Array|Iterable,firstsOffset:GLuint,countsList:Int32Array|Iterable,countsOffset:GLuint,instanceCountsList:Int32Array|Iterable,instanceCountsOffset:GLuint,drawcount:GLsizei):void;multiDrawArraysWEBGL(mode:GLenum,firstsList:Int32Array|Iterable,firstsOffset:GLuint,countsList:Int32Array|Iterable,countsOffset:GLuint,drawcount:GLsizei):void;multiDrawElementsInstancedWEBGL(mode:GLenum,countsList:Int32Array|Iterable,countsOffset:GLuint,type:GLenum,offsetsList:Int32Array|Iterable,offsetsOffset:GLuint,instanceCountsList:Int32Array|Iterable,instanceCountsOffset:GLuint,drawcount:GLsizei):void;multiDrawElementsWEBGL(mode:GLenum,countsList:Int32Array|Iterable,countsOffset:GLuint,type:GLenum,offsetsList:Int32Array|Iterable,offsetsOffset:GLuint,drawcount:GLsizei):void;}interface WebGL2RenderingContextBase{clearBufferfv(buffer:GLenum,drawbuffer:GLint,values:Iterable,srcOffset?:GLuint):void;clearBufferiv(buffer:GLenum,drawbuffer:GLint,values:Iterable,srcOffset?:GLuint):void;clearBufferuiv(buffer:GLenum,drawbuffer:GLint,values:Iterable,srcOffset?:GLuint):void;drawBuffers(buffers:Iterable):void;getActiveUniforms(program:WebGLProgram,uniformIndices:Iterable,pname:GLenum):any;getUniformIndices(program:WebGLProgram,uniformNames:Iterable):Iterable|null;invalidateFramebuffer(target:GLenum,attachments:Iterable):void;invalidateSubFramebuffer(target:GLenum,attachments:Iterable,x:GLint,y:GLint,width:GLsizei,height:GLsizei):void;transformFeedbackVaryings(program:WebGLProgram,varyings:Iterable,bufferMode:GLenum):void;uniform1uiv(location:WebGLUniformLocation|null,data:Iterable,srcOffset?:GLuint,srcLength?:GLuint):void;uniform2uiv(location:WebGLUniformLocation|null,data:Iterable,srcOffset?:GLuint,srcLength?:GLuint):void;uniform3uiv(location:WebGLUniformLocation|null,data:Iterable,srcOffset?:GLuint,srcLength?:GLuint):void;uniform4uiv(location:WebGLUniformLocation|null,data:Iterable,srcOffset?:GLuint,srcLength?:GLuint):void;uniformMatrix2x3fv(location:WebGLUniformLocation|null,transpose:GLboolean,data:Iterable,srcOffset?:GLuint,srcLength?:GLuint):void;uniformMatrix2x4fv(location:WebGLUniformLocation|null,transpose:GLboolean,data:Iterable,srcOffset?:GLuint,srcLength?:GLuint):void;uniformMatrix3x2fv(location:WebGLUniformLocation|null,transpose:GLboolean,data:Iterable,srcOffset?:GLuint,srcLength?:GLuint):void;uniformMatrix3x4fv(location:WebGLUniformLocation|null,transpose:GLboolean,data:Iterable,srcOffset?:GLuint,srcLength?:GLuint):void;uniformMatrix4x2fv(location:WebGLUniformLocation|null,transpose:GLboolean,data:Iterable,srcOffset?:GLuint,srcLength?:GLuint):void;uniformMatrix4x3fv(location:WebGLUniformLocation|null,transpose:GLboolean,data:Iterable,srcOffset?:GLuint,srcLength?:GLuint):void;vertexAttribI4iv(index:GLuint,values:Iterable):void;vertexAttribI4uiv(index:GLuint,values:Iterable):void;}interface WebGL2RenderingContextOverloads{uniform1fv(location:WebGLUniformLocation|null,data:Iterable,srcOffset?:GLuint,srcLength?:GLuint):void;uniform1iv(location:WebGLUniformLocation|null,data:Iterable,srcOffset?:GLuint,srcLength?:GLuint):void;uniform2fv(location:WebGLUniformLocation|null,data:Iterable,srcOffset?:GLuint,srcLength?:GLuint):void;uniform2iv(location:WebGLUniformLocation|null,data:Iterable,srcOffset?:GLuint,srcLength?:GLuint):void;uniform3fv(location:WebGLUniformLocation|null,data:Iterable,srcOffset?:GLuint,srcLength?:GLuint):void;uniform3iv(location:WebGLUniformLocation|null,data:Iterable,srcOffset?:GLuint,srcLength?:GLuint):void;uniform4fv(location:WebGLUniformLocation|null,data:Iterable,srcOffset?:GLuint,srcLength?:GLuint):void;uniform4iv(location:WebGLUniformLocation|null,data:Iterable,srcOffset?:GLuint,srcLength?:GLuint):void;uniformMatrix2fv(location:WebGLUniformLocation|null,transpose:GLboolean,data:Iterable,srcOffset?:GLuint,srcLength?:GLuint):void;uniformMatrix3fv(location:WebGLUniformLocation|null,transpose:GLboolean,data:Iterable,srcOffset?:GLuint,srcLength?:GLuint):void;uniformMatrix4fv(location:WebGLUniformLocation|null,transpose:GLboolean,data:Iterable,srcOffset?:GLuint,srcLength?:GLuint):void;}interface WebGLRenderingContextBase{vertexAttrib1fv(index:GLuint,values:Iterable):void;vertexAttrib2fv(index:GLuint,values:Iterable):void;vertexAttrib3fv(index:GLuint,values:Iterable):void;vertexAttrib4fv(index:GLuint,values:Iterable):void;}interface WebGLRenderingContextOverloads{uniform1fv(location:WebGLUniformLocation|null,v:Iterable):void;uniform1iv(location:WebGLUniformLocation|null,v:Iterable):void;uniform2fv(location:WebGLUniformLocation|null,v:Iterable):void;uniform2iv(location:WebGLUniformLocation|null,v:Iterable):void;uniform3fv(location:WebGLUniformLocation|null,v:Iterable):void;uniform3iv(location:WebGLUniformLocation|null,v:Iterable):void;uniform4fv(location:WebGLUniformLocation|null,v:Iterable):void;uniform4iv(location:WebGLUniformLocation|null,v:Iterable):void;uniformMatrix2fv(location:WebGLUniformLocation|null,transpose:GLboolean,value:Iterable):void;uniformMatrix3fv(location:WebGLUniformLocation|null,transpose:GLboolean,value:Iterable):void;uniformMatrix4fv(location:WebGLUniformLocation|null,transpose:GLboolean,value:Iterable):void;}'},{fileName:"lib.es2015.collection.d.ts",text:'/// \ninterface Map{clear():void;delete(key:K):boolean;forEach(callbackfn:(value:V,key:K,map:Map)=>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;new(entries?:readonly(readonly[K,V])[]|null):Map;readonly prototype:Map;}declare var Map:MapConstructor;interface ReadonlyMap{forEach(callbackfn:(value:V,key:K,map:ReadonlyMap)=>void,thisArg?:any):void;get(key:K):V|undefined;has(key:K):boolean;readonly size:number;}interface WeakMap{delete(key:K):boolean;get(key:K):V|undefined;has(key:K):boolean;set(key:K,value:V):this;}interface WeakMapConstructor{new(entries?:readonly[K,V][]|null):WeakMap;readonly prototype:WeakMap;}declare var WeakMap:WeakMapConstructor;interface Set{add(value:T):this;clear():void;delete(value:T):boolean;forEach(callbackfn:(value:T,value2:T,set:Set)=>void,thisArg?:any):void;has(value:T):boolean;readonly size:number;}interface SetConstructor{new(values?:readonly T[]|null):Set;readonly prototype:Set;}declare var Set:SetConstructor;interface ReadonlySet{forEach(callbackfn:(value:T,value2:T,set:ReadonlySet)=>void,thisArg?:any):void;has(value:T):boolean;readonly size:number;}interface WeakSet{add(value:T):this;delete(value:T):boolean;has(value:T):boolean;}interface WeakSetConstructor{new(values?:readonly T[]|null):WeakSet;readonly prototype:WeakSet;}declare var WeakSet:WeakSetConstructor;'},{fileName:"lib.es2015.core.d.ts",text:'/// \ninterface Array{find(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;findIndex(predicate:(value:T,index:number,obj:T[])=>unknown,thisArg?:any):number;fill(value:T,start?:number,end?:number):this;copyWithin(target:number,start:number,end?:number):this;}interface ArrayConstructor{from(arrayLike:ArrayLike):T[];from(arrayLike:ArrayLike,mapfn:(v:T,k:number)=>U,thisArg?:any):U[];of(...items:T[]):T[];}interface DateConstructor{new(value:number|string|Date):Date;}interface Function{readonly name:string;}interface Math{clz32(x:number):number;imul(x:number,y:number):number;sign(x:number):number;log10(x:number):number;log2(x:number):number;log1p(x:number):number;expm1(x:number):number;cosh(x:number):number;sinh(x:number):number;tanh(x:number):number;acosh(x:number):number;asinh(x:number):number;atanh(x:number):number;hypot(...values:number[]):number;trunc(x:number):number;fround(x:number):number;cbrt(x:number):number;}interface NumberConstructor{readonly EPSILON:number;isFinite(number:unknown):boolean;isInteger(number:unknown):boolean;isNaN(number:unknown):boolean;isSafeInteger(number:unknown):boolean;readonly MAX_SAFE_INTEGER:number;readonly MIN_SAFE_INTEGER:number;parseFloat(string:string):number;parseInt(string:string,radix?:number):number;}interface ObjectConstructor{assign(target:T,source:U):T&U;assign(target:T,source1:U,source2:V):T&U&V;assign(target:T,source1:U,source2:V,source3:W):T&U&V&W;assign(target:object,...sources:any[]):any;getOwnPropertySymbols(o:any):symbol[];keys(o:{}):string[];is(value1:any,value2:any):boolean;setPrototypeOf(o:any,proto:object|null):any;}interface ReadonlyArray{find(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;findIndex(predicate:(value:T,index:number,obj:readonly T[])=>unknown,thisArg?:any):number;}interface RegExp{readonly flags:string;readonly sticky:boolean;readonly unicode:boolean;}interface RegExpConstructor{new(pattern:RegExp|string,flags?:string):RegExp;(pattern:RegExp|string,flags?:string):RegExp;}interface String{codePointAt(pos:number):number|undefined;includes(searchString:string,position?:number):boolean;endsWith(searchString:string,endPosition?:number):boolean;normalize(form:"NFC"|"NFD"|"NFKC"|"NFKD"):string;normalize(form?:string):string;repeat(count:number):string;startsWith(searchString:string,position?:number):boolean;anchor(name:string):string;big():string;blink():string;bold():string;fixed():string;fontcolor(color:string):string;fontsize(size:number):string;fontsize(size:string):string;italics():string;link(url:string):string;small():string;strike():string;sub():string;sup():string;}interface StringConstructor{fromCodePoint(...codePoints:number[]):string;raw(template:{raw:readonly string[]|ArrayLike},...substitutions:any[]):string;}'},{fileName:"lib.es2015.d.ts",text:'/// \n/// \n/// \n/// \n/// \n/// \n/// \n/// \n/// \n/// \n/// \n'},{fileName:"lib.es2015.generator.d.ts",text:'/// \n/// \ninterface Generatorextends Iterator{next(...args:[]|[TNext]):IteratorResult;return(value:TReturn):IteratorResult;throw(e:any):IteratorResult;[Symbol.iterator]():Generator;}interface GeneratorFunction{new(...args:any[]):Generator;(...args:any[]):Generator;readonly length:number;readonly name:string;readonly prototype:Generator;}interface GeneratorFunctionConstructor{new(...args:string[]):GeneratorFunction;(...args:string[]):GeneratorFunction;readonly length:number;readonly name:string;readonly prototype:GeneratorFunction;}'},{fileName:"lib.es2015.iterable.d.ts",text:'/// \n/// \ninterface SymbolConstructor{readonly iterator:unique symbol;}interface IteratorYieldResult{done?:false;value:TYield;}interface IteratorReturnResult{done:true;value:TReturn;}type IteratorResult=IteratorYieldResult|IteratorReturnResult;interface Iterator{next(...args:[]|[TNext]):IteratorResult;return?(value?:TReturn):IteratorResult;throw?(e?:any):IteratorResult;}interface Iterable{[Symbol.iterator]():Iterator;}interface IterableIteratorextends Iterator{[Symbol.iterator]():IterableIterator;}interface Array{[Symbol.iterator]():IterableIterator;entries():IterableIterator<[number,T]>;keys():IterableIterator;values():IterableIterator;}interface ArrayConstructor{from(iterable:Iterable|ArrayLike):T[];from(iterable:Iterable|ArrayLike,mapfn:(v:T,k:number)=>U,thisArg?:any):U[];}interface ReadonlyArray{[Symbol.iterator]():IterableIterator;entries():IterableIterator<[number,T]>;keys():IterableIterator;values():IterableIterator;}interface IArguments{[Symbol.iterator]():IterableIterator;}interface Map{[Symbol.iterator]():IterableIterator<[K,V]>;entries():IterableIterator<[K,V]>;keys():IterableIterator;values():IterableIterator;}interface ReadonlyMap{[Symbol.iterator]():IterableIterator<[K,V]>;entries():IterableIterator<[K,V]>;keys():IterableIterator;values():IterableIterator;}interface MapConstructor{new():Map;new(iterable?:Iterable|null):Map;}interface WeakMap{}interface WeakMapConstructor{new(iterable:Iterable):WeakMap;}interface Set{[Symbol.iterator]():IterableIterator;entries():IterableIterator<[T,T]>;keys():IterableIterator;values():IterableIterator;}interface ReadonlySet{[Symbol.iterator]():IterableIterator;entries():IterableIterator<[T,T]>;keys():IterableIterator;values():IterableIterator;}interface SetConstructor{new(iterable?:Iterable|null):Set;}interface WeakSet{}interface WeakSetConstructor{new(iterable:Iterable):WeakSet;}interface Promise{}interface PromiseConstructor{all(values:Iterable>):Promise[]>;race(values:Iterable>):Promise>;}interface String{[Symbol.iterator]():IterableIterator;}interface Int8Array{[Symbol.iterator]():IterableIterator;entries():IterableIterator<[number,number]>;keys():IterableIterator;values():IterableIterator;}interface Int8ArrayConstructor{new(elements:Iterable):Int8Array;from(arrayLike:Iterable,mapfn?:(v:number,k:number)=>number,thisArg?:any):Int8Array;}interface Uint8Array{[Symbol.iterator]():IterableIterator;entries():IterableIterator<[number,number]>;keys():IterableIterator;values():IterableIterator;}interface Uint8ArrayConstructor{new(elements:Iterable):Uint8Array;from(arrayLike:Iterable,mapfn?:(v:number,k:number)=>number,thisArg?:any):Uint8Array;}interface Uint8ClampedArray{[Symbol.iterator]():IterableIterator;entries():IterableIterator<[number,number]>;keys():IterableIterator;values():IterableIterator;}interface Uint8ClampedArrayConstructor{new(elements:Iterable):Uint8ClampedArray;from(arrayLike:Iterable,mapfn?:(v:number,k:number)=>number,thisArg?:any):Uint8ClampedArray;}interface Int16Array{[Symbol.iterator]():IterableIterator;entries():IterableIterator<[number,number]>;keys():IterableIterator;values():IterableIterator;}interface Int16ArrayConstructor{new(elements:Iterable):Int16Array;from(arrayLike:Iterable,mapfn?:(v:number,k:number)=>number,thisArg?:any):Int16Array;}interface Uint16Array{[Symbol.iterator]():IterableIterator;entries():IterableIterator<[number,number]>;keys():IterableIterator;values():IterableIterator;}interface Uint16ArrayConstructor{new(elements:Iterable):Uint16Array;from(arrayLike:Iterable,mapfn?:(v:number,k:number)=>number,thisArg?:any):Uint16Array;}interface Int32Array{[Symbol.iterator]():IterableIterator;entries():IterableIterator<[number,number]>;keys():IterableIterator;values():IterableIterator;}interface Int32ArrayConstructor{new(elements:Iterable):Int32Array;from(arrayLike:Iterable,mapfn?:(v:number,k:number)=>number,thisArg?:any):Int32Array;}interface Uint32Array{[Symbol.iterator]():IterableIterator;entries():IterableIterator<[number,number]>;keys():IterableIterator;values():IterableIterator;}interface Uint32ArrayConstructor{new(elements:Iterable):Uint32Array;from(arrayLike:Iterable,mapfn?:(v:number,k:number)=>number,thisArg?:any):Uint32Array;}interface Float32Array{[Symbol.iterator]():IterableIterator;entries():IterableIterator<[number,number]>;keys():IterableIterator;values():IterableIterator;}interface Float32ArrayConstructor{new(elements:Iterable):Float32Array;from(arrayLike:Iterable,mapfn?:(v:number,k:number)=>number,thisArg?:any):Float32Array;}interface Float64Array{[Symbol.iterator]():IterableIterator;entries():IterableIterator<[number,number]>;keys():IterableIterator;values():IterableIterator;}interface Float64ArrayConstructor{new(elements:Iterable):Float64Array;from(arrayLike:Iterable,mapfn?:(v:number,k:number)=>number,thisArg?:any):Float64Array;}'},{fileName:"lib.es2015.promise.d.ts",text:'/// \ninterface PromiseConstructor{readonly prototype:Promise;new(executor:(resolve:(value:T|PromiseLike)=>void,reject:(reason?:any)=>void)=>void):Promise;all(values:T):Promise<{-readonly[P in keyof T]:Awaited}>;race(values:T):Promise>;reject(reason?:any):Promise;resolve():Promise;resolve(value:T):Promise>;resolve(value:T|PromiseLike):Promise>;}declare var Promise:PromiseConstructor;'},{fileName:"lib.es2015.proxy.d.ts",text:'/// \ninterface ProxyHandler{apply?(target:T,thisArg:any,argArray:any[]):any;construct?(target:T,argArray:any[],newTarget:Function):object;defineProperty?(target:T,property:string|symbol,attributes:PropertyDescriptor):boolean;deleteProperty?(target:T,p:string|symbol):boolean;get?(target:T,p:string|symbol,receiver:any):any;getOwnPropertyDescriptor?(target:T,p:string|symbol):PropertyDescriptor|undefined;getPrototypeOf?(target:T):object|null;has?(target:T,p:string|symbol):boolean;isExtensible?(target:T):boolean;ownKeys?(target:T):ArrayLike;preventExtensions?(target:T):boolean;set?(target:T,p:string|symbol,newValue:any,receiver:any):boolean;setPrototypeOf?(target:T,v:object|null):boolean;}interface ProxyConstructor{revocable(target:T,handler:ProxyHandler):{proxy:T;revoke:()=>void;};new(target:T,handler:ProxyHandler):T;}declare var Proxy:ProxyConstructor;'},{fileName:"lib.es2015.reflect.d.ts",text:'/// \ndeclare namespace Reflect{function apply(target:(this:T,...args:A)=>R,thisArgument:T,argumentsList:Readonly,):R;function apply(target:Function,thisArgument:any,argumentsList:ArrayLike):any;function construct(target:new(...args:A)=>R,argumentsList:Readonly,newTarget?:new(...args:any)=>any,):R;function construct(target:Function,argumentsList:ArrayLike,newTarget?:Function):any;function defineProperty(target:object,propertyKey:PropertyKey,attributes:PropertyDescriptor&ThisType):boolean;function deleteProperty(target:object,propertyKey:PropertyKey):boolean;function get(target:T,propertyKey:P,receiver?:unknown,):P extends keyof T?T[P]:any;function getOwnPropertyDescriptor(target:T,propertyKey:P,):TypedPropertyDescriptor

|undefined;function getPrototypeOf(target:object):object|null;function has(target:object,propertyKey:PropertyKey):boolean;function isExtensible(target:object):boolean;function ownKeys(target:object):(string|symbol)[];function preventExtensions(target:object):boolean;function set(target:T,propertyKey:P,value:P extends keyof T?T[P]:any,receiver?:any,):boolean;function set(target:object,propertyKey:PropertyKey,value:any,receiver?:any):boolean;function setPrototypeOf(target:object,proto:object|null):boolean;}'},{fileName:"lib.es2015.symbol.d.ts",text:'/// \ninterface SymbolConstructor{readonly prototype:Symbol;(description?:string|number):symbol;for(key:string):symbol;keyFor(sym:symbol):string|undefined;}declare var Symbol:SymbolConstructor;'},{fileName:"lib.es2015.symbol.wellknown.d.ts",text:'/// \n/// \ninterface SymbolConstructor{readonly hasInstance:unique symbol;readonly isConcatSpreadable:unique symbol;readonly match:unique symbol;readonly replace:unique symbol;readonly search:unique symbol;readonly species:unique symbol;readonly split:unique symbol;readonly toPrimitive:unique symbol;readonly toStringTag:unique symbol;readonly unscopables:unique symbol;}interface Symbol{[Symbol.toPrimitive](hint:string):symbol;readonly[Symbol.toStringTag]:string;}interface Array{[Symbol.unscopables]():{copyWithin:boolean;entries:boolean;fill:boolean;find:boolean;findIndex:boolean;keys:boolean;values:boolean;};}interface Date{[Symbol.toPrimitive](hint:"default"):string;[Symbol.toPrimitive](hint:"string"):string;[Symbol.toPrimitive](hint:"number"):number;[Symbol.toPrimitive](hint:string):string|number;}interface Map{readonly[Symbol.toStringTag]:string;}interface WeakMap{readonly[Symbol.toStringTag]:string;}interface Set{readonly[Symbol.toStringTag]:string;}interface WeakSet{readonly[Symbol.toStringTag]:string;}interface JSON{readonly[Symbol.toStringTag]:string;}interface Function{[Symbol.hasInstance](value:any):boolean;}interface GeneratorFunction{readonly[Symbol.toStringTag]:string;}interface Math{readonly[Symbol.toStringTag]:string;}interface Promise{readonly[Symbol.toStringTag]:string;}interface PromiseConstructor{readonly[Symbol.species]:PromiseConstructor;}interface RegExp{[Symbol.match](string:string):RegExpMatchArray|null;[Symbol.replace](string:string,replaceValue:string):string;[Symbol.replace](string:string,replacer:(substring:string,...args:any[])=>string):string;[Symbol.search](string:string):number;[Symbol.split](string:string,limit?:number):string[];}interface RegExpConstructor{readonly[Symbol.species]:RegExpConstructor;}interface String{match(matcher:{[Symbol.match](string:string):RegExpMatchArray|null;}):RegExpMatchArray|null;replace(searchValue:{[Symbol.replace](string:string,replaceValue:string):string;},replaceValue:string):string;replace(searchValue:{[Symbol.replace](string:string,replacer:(substring:string,...args:any[])=>string):string;},replacer:(substring:string,...args:any[])=>string):string;search(searcher:{[Symbol.search](string:string):number;}):number;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;}'},{fileName:"lib.es2016.array.include.d.ts",text:'/// \ninterface Array{includes(searchElement:T,fromIndex?:number):boolean;}interface ReadonlyArray{includes(searchElement:T,fromIndex?:number):boolean;}interface Int8Array{includes(searchElement:number,fromIndex?:number):boolean;}interface Uint8Array{includes(searchElement:number,fromIndex?:number):boolean;}interface Uint8ClampedArray{includes(searchElement:number,fromIndex?:number):boolean;}interface Int16Array{includes(searchElement:number,fromIndex?:number):boolean;}interface Uint16Array{includes(searchElement:number,fromIndex?:number):boolean;}interface Int32Array{includes(searchElement:number,fromIndex?:number):boolean;}interface Uint32Array{includes(searchElement:number,fromIndex?:number):boolean;}interface Float32Array{includes(searchElement:number,fromIndex?:number):boolean;}interface Float64Array{includes(searchElement:number,fromIndex?:number):boolean;}'},{fileName:"lib.es2016.d.ts",text:'/// \n/// \n/// '},{fileName:"lib.es2016.full.d.ts",text:'/// \n/// \n/// \n/// \n/// \n/// '},{fileName:"lib.es2017.d.ts",text:'/// \n/// \n/// \n/// \n/// \n/// \n/// \n'},{fileName:"lib.es2017.full.d.ts",text:'/// \n/// \n/// \n/// \n/// \n/// '},{fileName:"lib.es2017.intl.d.ts",text:'/// \ndeclare namespace Intl{interface DateTimeFormatPartTypesRegistry{day:any\ndayPeriod:any\nera:any\nhour:any\nliteral:any\nminute:any\nmonth:any\nsecond:any\ntimeZoneName:any\nweekday:any\nyear:any}type DateTimeFormatPartTypes=keyof DateTimeFormatPartTypesRegistry;interface DateTimeFormatPart{type:DateTimeFormatPartTypes;value:string;}interface DateTimeFormat{formatToParts(date?:Date|number):DateTimeFormatPart[];}}'},{fileName:"lib.es2017.object.d.ts",text:'/// \ninterface ObjectConstructor{values(o:{[s:string]:T}|ArrayLike):T[];values(o:{}):any[];entries(o:{[s:string]:T}|ArrayLike):[string,T][];entries(o:{}):[string,any][];getOwnPropertyDescriptors(o:T):{[P in keyof T]:TypedPropertyDescriptor}&{[x:string]:PropertyDescriptor};}'},{fileName:"lib.es2017.sharedmemory.d.ts",text:'/// \n/// \n/// \ninterface SharedArrayBuffer{readonly byteLength:number;slice(begin:number,end?:number):SharedArrayBuffer;readonly[Symbol.species]:SharedArrayBuffer;readonly[Symbol.toStringTag]:"SharedArrayBuffer";}interface SharedArrayBufferConstructor{readonly prototype:SharedArrayBuffer;new(byteLength:number):SharedArrayBuffer;}declare var SharedArrayBuffer:SharedArrayBufferConstructor;interface ArrayBufferTypes{SharedArrayBuffer:SharedArrayBuffer;}interface Atomics{add(typedArray:Int8Array|Uint8Array|Int16Array|Uint16Array|Int32Array|Uint32Array,index:number,value:number):number;and(typedArray:Int8Array|Uint8Array|Int16Array|Uint16Array|Int32Array|Uint32Array,index:number,value:number):number;compareExchange(typedArray:Int8Array|Uint8Array|Int16Array|Uint16Array|Int32Array|Uint32Array,index:number,expectedValue:number,replacementValue:number):number;exchange(typedArray:Int8Array|Uint8Array|Int16Array|Uint16Array|Int32Array|Uint32Array,index:number,value:number):number;isLockFree(size:number):boolean;load(typedArray:Int8Array|Uint8Array|Int16Array|Uint16Array|Int32Array|Uint32Array,index:number):number;or(typedArray:Int8Array|Uint8Array|Int16Array|Uint16Array|Int32Array|Uint32Array,index:number,value:number):number;store(typedArray:Int8Array|Uint8Array|Int16Array|Uint16Array|Int32Array|Uint32Array,index:number,value:number):number;sub(typedArray:Int8Array|Uint8Array|Int16Array|Uint16Array|Int32Array|Uint32Array,index:number,value:number):number;wait(typedArray:Int32Array,index:number,value:number,timeout?:number):"ok"|"not-equal"|"timed-out";notify(typedArray:Int32Array,index:number,count?:number):number;xor(typedArray:Int8Array|Uint8Array|Int16Array|Uint16Array|Int32Array|Uint32Array,index:number,value:number):number;readonly[Symbol.toStringTag]:"Atomics";}declare var Atomics:Atomics;'},{fileName:"lib.es2017.string.d.ts",text:'/// \ninterface String{padStart(maxLength:number,fillString?:string):string;padEnd(maxLength:number,fillString?:string):string;}'},{fileName:"lib.es2017.typedarrays.d.ts",text:'/// \ninterface Int8ArrayConstructor{new():Int8Array;}interface Uint8ArrayConstructor{new():Uint8Array;}interface Uint8ClampedArrayConstructor{new():Uint8ClampedArray;}interface Int16ArrayConstructor{new():Int16Array;}interface Uint16ArrayConstructor{new():Uint16Array;}interface Int32ArrayConstructor{new():Int32Array;}interface Uint32ArrayConstructor{new():Uint32Array;}interface Float32ArrayConstructor{new():Float32Array;}interface Float64ArrayConstructor{new():Float64Array;}'},{fileName:"lib.es2018.asyncgenerator.d.ts",text:'/// \n/// \ninterface AsyncGeneratorextends AsyncIterator{next(...args:[]|[TNext]):Promise>;return(value:TReturn|PromiseLike):Promise>;throw(e:any):Promise>;[Symbol.asyncIterator]():AsyncGenerator;}interface AsyncGeneratorFunction{new(...args:any[]):AsyncGenerator;(...args:any[]):AsyncGenerator;readonly length:number;readonly name:string;readonly prototype:AsyncGenerator;}interface AsyncGeneratorFunctionConstructor{new(...args:string[]):AsyncGeneratorFunction;(...args:string[]):AsyncGeneratorFunction;readonly length:number;readonly name:string;readonly prototype:AsyncGeneratorFunction;}'},{fileName:"lib.es2018.asynciterable.d.ts",text:'/// \n/// \n/// \ninterface SymbolConstructor{readonly asyncIterator:unique symbol;}interface AsyncIterator{next(...args:[]|[TNext]):Promise>;return?(value?:TReturn|PromiseLike):Promise>;throw?(e?:any):Promise>;}interface AsyncIterable{[Symbol.asyncIterator]():AsyncIterator;}interface AsyncIterableIteratorextends AsyncIterator{[Symbol.asyncIterator]():AsyncIterableIterator;}'},{fileName:"lib.es2018.d.ts",text:'/// \n/// \n/// \n/// \n/// \n/// \n/// \n'},{fileName:"lib.es2018.full.d.ts",text:'/// \n/// \n/// \n/// \n/// \n/// '},{fileName:"lib.es2018.intl.d.ts",text:'/// \ndeclare namespace Intl{type LDMLPluralRule="zero"|"one"|"two"|"few"|"many"|"other";type PluralRuleType="cardinal"|"ordinal";interface PluralRulesOptions{localeMatcher?:"lookup"|"best fit"|undefined;type?:PluralRuleType|undefined;minimumIntegerDigits?:number|undefined;minimumFractionDigits?:number|undefined;maximumFractionDigits?:number|undefined;minimumSignificantDigits?:number|undefined;maximumSignificantDigits?:number|undefined;}interface ResolvedPluralRulesOptions{locale:string;pluralCategories:LDMLPluralRule[];type:PluralRuleType;minimumIntegerDigits:number;minimumFractionDigits:number;maximumFractionDigits:number;minimumSignificantDigits?:number;maximumSignificantDigits?:number;}interface PluralRules{resolvedOptions():ResolvedPluralRulesOptions;select(n:number):LDMLPluralRule;}const PluralRules:{new(locales?:string|string[],options?:PluralRulesOptions):PluralRules;(locales?:string|string[],options?:PluralRulesOptions):PluralRules;supportedLocalesOf(locales:string|string[],options?:{localeMatcher?:"lookup"|"best fit"}):string[];};type ES2018NumberFormatPartType="literal"|"nan"|"infinity"|"percent"|"integer"|"group"|"decimal"|"fraction"|"plusSign"|"minusSign"|"percentSign"|"currency"|"code"|"symbol"|"name";type ES2020NumberFormatPartType="compact"|"exponentInteger"|"exponentMinusSign"|"exponentSeparator"|"unit"|"unknown";type NumberFormatPartTypes=ES2018NumberFormatPartType|ES2020NumberFormatPartType;interface NumberFormatPart{type:NumberFormatPartTypes;value:string;}interface NumberFormat{formatToParts(number?:number|bigint):NumberFormatPart[];}}'},{fileName:"lib.es2018.promise.d.ts",text:'/// \ninterface Promise{finally(onfinally?:(()=>void)|undefined|null):Promise}'},{fileName:"lib.es2018.regexp.d.ts",text:'/// \ninterface RegExpMatchArray{groups?:{[key:string]:string}}interface RegExpExecArray{groups?:{[key:string]:string}}interface RegExp{readonly dotAll:boolean;}'},{fileName:"lib.es2019.array.d.ts",text:'/// \ntype FlatArray={"done":Arr,"recur":Arr extends ReadonlyArray?FlatArray:Arr}[Depth extends-1?"done":"recur"];interface ReadonlyArray{flatMap(callback:(this:This,value:T,index:number,array:T[])=>U|ReadonlyArray,thisArg?:This):U[]\nflat(this:A,depth?:D):FlatArray[]}interface Array{flatMap(callback:(this:This,value:T,index:number,array:T[])=>U|ReadonlyArray,thisArg?:This):U[]\nflat(this:A,depth?:D):FlatArray[]}'},{fileName:"lib.es2019.d.ts",text:'/// \n/// \n/// \n/// \n/// \n/// \n/// \n'},{fileName:"lib.es2019.full.d.ts",text:'/// \n/// \n/// \n/// \n/// \n/// \n'},{fileName:"lib.es2019.intl.d.ts",text:'/// \ndeclare namespace Intl{interface DateTimeFormatPartTypesRegistry{unknown:any}}'},{fileName:"lib.es2019.object.d.ts",text:'/// \n/// \ninterface ObjectConstructor{fromEntries(entries:Iterable):{[k:string]:T};fromEntries(entries:Iterable):any;}'},{fileName:"lib.es2019.string.d.ts",text:'/// \ninterface String{trimEnd():string;trimStart():string;trimLeft():string;trimRight():string;}'},{fileName:"lib.es2019.symbol.d.ts",text:'/// \ninterface Symbol{readonly description:string|undefined;}'},{fileName:"lib.es2020.bigint.d.ts",text:'/// \n/// \ninterface BigIntToLocaleStringOptions{localeMatcher?:string;style?:string;numberingSystem?:string;unit?:string;unitDisplay?:string;currency?:string;currencyDisplay?:string;useGrouping?:boolean;minimumIntegerDigits?:1|2|3|4|5|6|7|8|9|10|11|12|13|14|15|16|17|18|19|20|21;minimumFractionDigits?:0|1|2|3|4|5|6|7|8|9|10|11|12|13|14|15|16|17|18|19|20;maximumFractionDigits?:0|1|2|3|4|5|6|7|8|9|10|11|12|13|14|15|16|17|18|19|20;minimumSignificantDigits?:1|2|3|4|5|6|7|8|9|10|11|12|13|14|15|16|17|18|19|20|21;maximumSignificantDigits?:1|2|3|4|5|6|7|8|9|10|11|12|13|14|15|16|17|18|19|20|21;notation?:string;compactDisplay?:string;}interface BigInt{toString(radix?:number):string;toLocaleString(locales?:Intl.LocalesArgument,options?:BigIntToLocaleStringOptions):string;valueOf():bigint;readonly[Symbol.toStringTag]:"BigInt";}interface BigIntConstructor{(value:bigint|boolean|number|string):bigint;readonly prototype:BigInt;asIntN(bits:number,int:bigint):bigint;asUintN(bits:number,int:bigint):bigint;}declare var BigInt:BigIntConstructor;interface BigInt64Array{readonly BYTES_PER_ELEMENT:number;readonly buffer:ArrayBufferLike;readonly byteLength:number;readonly byteOffset:number;copyWithin(target:number,start:number,end?:number):this;entries():IterableIterator<[number,bigint]>;every(predicate:(value:bigint,index:number,array:BigInt64Array)=>boolean,thisArg?:any):boolean;fill(value:bigint,start?:number,end?:number):this;filter(predicate:(value:bigint,index:number,array:BigInt64Array)=>any,thisArg?:any):BigInt64Array;find(predicate:(value:bigint,index:number,array:BigInt64Array)=>boolean,thisArg?:any):bigint|undefined;findIndex(predicate:(value:bigint,index:number,array:BigInt64Array)=>boolean,thisArg?:any):number;forEach(callbackfn:(value:bigint,index:number,array:BigInt64Array)=>void,thisArg?:any):void;includes(searchElement:bigint,fromIndex?:number):boolean;indexOf(searchElement:bigint,fromIndex?:number):number;join(separator?:string):string;keys():IterableIterator;lastIndexOf(searchElement:bigint,fromIndex?:number):number;readonly length:number;map(callbackfn:(value:bigint,index:number,array:BigInt64Array)=>bigint,thisArg?:any):BigInt64Array;reduce(callbackfn:(previousValue:bigint,currentValue:bigint,currentIndex:number,array:BigInt64Array)=>bigint):bigint;reduce(callbackfn:(previousValue:U,currentValue:bigint,currentIndex:number,array:BigInt64Array)=>U,initialValue:U):U;reduceRight(callbackfn:(previousValue:bigint,currentValue:bigint,currentIndex:number,array:BigInt64Array)=>bigint):bigint;reduceRight(callbackfn:(previousValue:U,currentValue:bigint,currentIndex:number,array:BigInt64Array)=>U,initialValue:U):U;reverse():this;set(array:ArrayLike,offset?:number):void;slice(start?:number,end?:number):BigInt64Array;some(predicate:(value:bigint,index:number,array:BigInt64Array)=>boolean,thisArg?:any):boolean;sort(compareFn?:(a:bigint,b:bigint)=>number|bigint):this;subarray(begin?:number,end?:number):BigInt64Array;toLocaleString():string;toString():string;valueOf():BigInt64Array;values():IterableIterator;[Symbol.iterator]():IterableIterator;readonly[Symbol.toStringTag]:"BigInt64Array";[index:number]:bigint;}interface BigInt64ArrayConstructor{readonly prototype:BigInt64Array;new(length?:number):BigInt64Array;new(array:Iterable):BigInt64Array;new(buffer:ArrayBufferLike,byteOffset?:number,length?:number):BigInt64Array;readonly BYTES_PER_ELEMENT:number;of(...items:bigint[]):BigInt64Array;from(arrayLike:ArrayLike):BigInt64Array;from(arrayLike:ArrayLike,mapfn:(v:U,k:number)=>bigint,thisArg?:any):BigInt64Array;}declare var BigInt64Array:BigInt64ArrayConstructor;interface BigUint64Array{readonly BYTES_PER_ELEMENT:number;readonly buffer:ArrayBufferLike;readonly byteLength:number;readonly byteOffset:number;copyWithin(target:number,start:number,end?:number):this;entries():IterableIterator<[number,bigint]>;every(predicate:(value:bigint,index:number,array:BigUint64Array)=>boolean,thisArg?:any):boolean;fill(value:bigint,start?:number,end?:number):this;filter(predicate:(value:bigint,index:number,array:BigUint64Array)=>any,thisArg?:any):BigUint64Array;find(predicate:(value:bigint,index:number,array:BigUint64Array)=>boolean,thisArg?:any):bigint|undefined;findIndex(predicate:(value:bigint,index:number,array:BigUint64Array)=>boolean,thisArg?:any):number;forEach(callbackfn:(value:bigint,index:number,array:BigUint64Array)=>void,thisArg?:any):void;includes(searchElement:bigint,fromIndex?:number):boolean;indexOf(searchElement:bigint,fromIndex?:number):number;join(separator?:string):string;keys():IterableIterator;lastIndexOf(searchElement:bigint,fromIndex?:number):number;readonly length:number;map(callbackfn:(value:bigint,index:number,array:BigUint64Array)=>bigint,thisArg?:any):BigUint64Array;reduce(callbackfn:(previousValue:bigint,currentValue:bigint,currentIndex:number,array:BigUint64Array)=>bigint):bigint;reduce(callbackfn:(previousValue:U,currentValue:bigint,currentIndex:number,array:BigUint64Array)=>U,initialValue:U):U;reduceRight(callbackfn:(previousValue:bigint,currentValue:bigint,currentIndex:number,array:BigUint64Array)=>bigint):bigint;reduceRight(callbackfn:(previousValue:U,currentValue:bigint,currentIndex:number,array:BigUint64Array)=>U,initialValue:U):U;reverse():this;set(array:ArrayLike,offset?:number):void;slice(start?:number,end?:number):BigUint64Array;some(predicate:(value:bigint,index:number,array:BigUint64Array)=>boolean,thisArg?:any):boolean;sort(compareFn?:(a:bigint,b:bigint)=>number|bigint):this;subarray(begin?:number,end?:number):BigUint64Array;toLocaleString():string;toString():string;valueOf():BigUint64Array;values():IterableIterator;[Symbol.iterator]():IterableIterator;readonly[Symbol.toStringTag]:"BigUint64Array";[index:number]:bigint;}interface BigUint64ArrayConstructor{readonly prototype:BigUint64Array;new(length?:number):BigUint64Array;new(array:Iterable):BigUint64Array;new(buffer:ArrayBufferLike,byteOffset?:number,length?:number):BigUint64Array;readonly BYTES_PER_ELEMENT:number;of(...items:bigint[]):BigUint64Array;from(arrayLike:ArrayLike):BigUint64Array;from(arrayLike:ArrayLike,mapfn:(v:U,k:number)=>bigint,thisArg?:any):BigUint64Array;}declare var BigUint64Array:BigUint64ArrayConstructor;interface DataView{getBigInt64(byteOffset:number,littleEndian?:boolean):bigint;getBigUint64(byteOffset:number,littleEndian?:boolean):bigint;setBigInt64(byteOffset:number,value:bigint,littleEndian?:boolean):void;setBigUint64(byteOffset:number,value:bigint,littleEndian?:boolean):void;}declare namespace Intl{interface NumberFormat{format(value:number|bigint):string;resolvedOptions():ResolvedNumberFormatOptions;}}'},{fileName:"lib.es2020.d.ts",text:'/// \n/// \n/// \n/// \n/// \n/// \n/// \n/// \n/// \n/// \n'},{fileName:"lib.es2020.date.d.ts",text:'/// \n/// \ninterface Date{toLocaleString(locales?:Intl.LocalesArgument,options?:Intl.DateTimeFormatOptions):string;toLocaleDateString(locales?:Intl.LocalesArgument,options?:Intl.DateTimeFormatOptions):string;toLocaleTimeString(locales?:Intl.LocalesArgument,options?:Intl.DateTimeFormatOptions):string;}'},{fileName:"lib.es2020.full.d.ts",text:'/// \n/// \n/// \n/// \n/// \n/// \n'},{fileName:"lib.es2020.intl.d.ts",text:'/// \n/// \ndeclare namespace Intl{type UnicodeBCP47LocaleIdentifier=string;type RelativeTimeFormatUnit=|"year"|"years"|"quarter"|"quarters"|"month"|"months"|"week"|"weeks"|"day"|"days"|"hour"|"hours"|"minute"|"minutes"|"second"|"seconds";type RelativeTimeFormatUnitSingular=|"year"|"quarter"|"month"|"week"|"day"|"hour"|"minute"|"second";type RelativeTimeFormatLocaleMatcher="lookup"|"best fit";type RelativeTimeFormatNumeric="always"|"auto";type RelativeTimeFormatStyle="long"|"short"|"narrow";type BCP47LanguageTag=string;type LocalesArgument=UnicodeBCP47LocaleIdentifier|Locale|readonly(UnicodeBCP47LocaleIdentifier|Locale)[]|undefined;interface RelativeTimeFormatOptions{localeMatcher?:RelativeTimeFormatLocaleMatcher;numeric?:RelativeTimeFormatNumeric;style?:RelativeTimeFormatStyle;}interface ResolvedRelativeTimeFormatOptions{locale:UnicodeBCP47LocaleIdentifier;style:RelativeTimeFormatStyle;numeric:RelativeTimeFormatNumeric;numberingSystem:string;}type RelativeTimeFormatPart=|{type:"literal";value:string;}|{type:Exclude;value:string;unit:RelativeTimeFormatUnitSingular;};interface RelativeTimeFormat{format(value:number,unit:RelativeTimeFormatUnit):string;formatToParts(value:number,unit:RelativeTimeFormatUnit):RelativeTimeFormatPart[];resolvedOptions():ResolvedRelativeTimeFormatOptions;}const RelativeTimeFormat:{new(locales?:UnicodeBCP47LocaleIdentifier|UnicodeBCP47LocaleIdentifier[],options?:RelativeTimeFormatOptions,):RelativeTimeFormat;supportedLocalesOf(locales?:UnicodeBCP47LocaleIdentifier|UnicodeBCP47LocaleIdentifier[],options?:RelativeTimeFormatOptions,):UnicodeBCP47LocaleIdentifier[];};interface NumberFormatOptions{compactDisplay?:"short"|"long"|undefined;notation?:"standard"|"scientific"|"engineering"|"compact"|undefined;signDisplay?:"auto"|"never"|"always"|"exceptZero"|undefined;unit?:string|undefined;unitDisplay?:"short"|"long"|"narrow"|undefined;currencyDisplay?:string|undefined;currencySign?:string|undefined;}interface ResolvedNumberFormatOptions{compactDisplay?:"short"|"long";notation?:"standard"|"scientific"|"engineering"|"compact";signDisplay?:"auto"|"never"|"always"|"exceptZero";unit?:string;unitDisplay?:"short"|"long"|"narrow";currencyDisplay?:string;currencySign?:string;}interface DateTimeFormatOptions{calendar?:string|undefined;dayPeriod?:"narrow"|"short"|"long"|undefined;numberingSystem?:string|undefined;dateStyle?:"full"|"long"|"medium"|"short"|undefined;timeStyle?:"full"|"long"|"medium"|"short"|undefined;hourCycle?:"h11"|"h12"|"h23"|"h24"|undefined;}type LocaleHourCycleKey="h12"|"h23"|"h11"|"h24";type LocaleCollationCaseFirst="upper"|"lower"|"false";interface LocaleOptions{baseName?:string;calendar?:string;caseFirst?:LocaleCollationCaseFirst;collation?:string;hourCycle?:LocaleHourCycleKey;language?:string;numberingSystem?:string;numeric?:boolean;region?:string;script?:string;}interface Locale extends LocaleOptions{baseName:string;language:string;maximize():Locale;minimize():Locale;toString():BCP47LanguageTag;}const Locale:{new(tag:BCP47LanguageTag|Locale,options?:LocaleOptions):Locale;};type DisplayNamesFallback=|"code"|"none";type DisplayNamesType=|"language"|"region"|"script"|"calendar"|"dateTimeField"|"currency";type DisplayNamesLanguageDisplay=|"dialect"|"standard";interface DisplayNamesOptions{localeMatcher?:RelativeTimeFormatLocaleMatcher;style?:RelativeTimeFormatStyle;type:DisplayNamesType;languageDisplay?:DisplayNamesLanguageDisplay;fallback?:DisplayNamesFallback;}interface ResolvedDisplayNamesOptions{locale:UnicodeBCP47LocaleIdentifier;style:RelativeTimeFormatStyle;type:DisplayNamesType;fallback:DisplayNamesFallback;languageDisplay?:DisplayNamesLanguageDisplay;}interface DisplayNames{of(code:string):string|undefined;resolvedOptions():ResolvedDisplayNamesOptions;}const DisplayNames:{prototype:DisplayNames;new(locales:LocalesArgument,options:DisplayNamesOptions):DisplayNames;supportedLocalesOf(locales?:LocalesArgument,options?:{localeMatcher?:RelativeTimeFormatLocaleMatcher}):BCP47LanguageTag[];};}'},{fileName:"lib.es2020.number.d.ts",text:'/// \n/// \ninterface Number{toLocaleString(locales?:Intl.LocalesArgument,options?:Intl.NumberFormatOptions):string;}'},{fileName:"lib.es2020.promise.d.ts",text:'/// \ninterface PromiseFulfilledResult{status:"fulfilled";value:T;}interface PromiseRejectedResult{status:"rejected";reason:any;}type PromiseSettledResult=PromiseFulfilledResult|PromiseRejectedResult;interface PromiseConstructor{allSettled(values:T):Promise<{-readonly[P in keyof T]:PromiseSettledResult>}>;allSettled(values:Iterable>):Promise>[]>;}'},{fileName:"lib.es2020.sharedmemory.d.ts",text:'/// \ninterface Atomics{add(typedArray:BigInt64Array|BigUint64Array,index:number,value:bigint):bigint;and(typedArray:BigInt64Array|BigUint64Array,index:number,value:bigint):bigint;compareExchange(typedArray:BigInt64Array|BigUint64Array,index:number,expectedValue:bigint,replacementValue:bigint):bigint;exchange(typedArray:BigInt64Array|BigUint64Array,index:number,value:bigint):bigint;load(typedArray:BigInt64Array|BigUint64Array,index:number):bigint;or(typedArray:BigInt64Array|BigUint64Array,index:number,value:bigint):bigint;store(typedArray:BigInt64Array|BigUint64Array,index:number,value:bigint):bigint;sub(typedArray:BigInt64Array|BigUint64Array,index:number,value:bigint):bigint;wait(typedArray:BigInt64Array,index:number,value:bigint,timeout?:number):"ok"|"not-equal"|"timed-out";notify(typedArray:BigInt64Array,index:number,count?:number):number;xor(typedArray:BigInt64Array|BigUint64Array,index:number,value:bigint):bigint;}'},{fileName:"lib.es2020.string.d.ts",text:'/// \n/// \ninterface String{matchAll(regexp:RegExp):IterableIterator;}'},{fileName:"lib.es2020.symbol.wellknown.d.ts",text:'/// \n/// \n/// \ninterface SymbolConstructor{readonly matchAll:unique symbol;}interface RegExp{[Symbol.matchAll](str:string):IterableIterator;}'},{fileName:"lib.es2021.d.ts",text:'/// \n/// \n/// \n/// \n/// \n/// \n'},{fileName:"lib.es2021.full.d.ts",text:'/// \n/// \n/// \n/// \n/// \n/// \n'},{fileName:"lib.es2021.intl.d.ts",text:'/// \ndeclare namespace Intl{interface DateTimeFormatPartTypesRegistry{fractionalSecond:any}interface DateTimeFormatOptions{formatMatcher?:"basic"|"best fit"|"best fit"|undefined;dateStyle?:"full"|"long"|"medium"|"short"|undefined;timeStyle?:"full"|"long"|"medium"|"short"|undefined;dayPeriod?:"narrow"|"short"|"long"|undefined;fractionalSecondDigits?:1|2|3|undefined;}interface DateTimeRangeFormatPart extends DateTimeFormatPart{source:"startRange"|"endRange"|"shared"}interface DateTimeFormat{formatRange(startDate:Date|number|bigint,endDate:Date|number|bigint):string;formatRangeToParts(startDate:Date|number|bigint,endDate:Date|number|bigint):DateTimeRangeFormatPart[];}interface ResolvedDateTimeFormatOptions{formatMatcher?:"basic"|"best fit"|"best fit";dateStyle?:"full"|"long"|"medium"|"short";timeStyle?:"full"|"long"|"medium"|"short";hourCycle?:"h11"|"h12"|"h23"|"h24";dayPeriod?:"narrow"|"short"|"long";fractionalSecondDigits?:1|2|3;}type ListFormatLocaleMatcher="lookup"|"best fit";type ListFormatType="conjunction"|"disjunction"|"unit";type ListFormatStyle="long"|"short"|"narrow";interface ListFormatOptions{localeMatcher?:ListFormatLocaleMatcher|undefined;type?:ListFormatType|undefined;style?:ListFormatStyle|undefined;}interface ListFormat{format(list:Iterable):string;formatToParts(list:Iterable):{type:"element"|"literal",value:string;}[];}const ListFormat:{prototype:ListFormat;new(locales?:BCP47LanguageTag|BCP47LanguageTag[],options?:ListFormatOptions):ListFormat;supportedLocalesOf(locales:BCP47LanguageTag|BCP47LanguageTag[],options?:Pick):BCP47LanguageTag[];};}'},{fileName:"lib.es2021.promise.d.ts",text:'/// \ninterface AggregateError extends Error{errors:any[]}interface AggregateErrorConstructor{new(errors:Iterable,message?:string):AggregateError;(errors:Iterable,message?:string):AggregateError;readonly prototype:AggregateError;}declare var AggregateError:AggregateErrorConstructor;interface PromiseConstructor{any(values:T):Promise>;any(values:Iterable>):Promise>}'},{fileName:"lib.es2021.string.d.ts",text:'/// \ninterface String{replaceAll(searchValue:string|RegExp,replaceValue:string):string;replaceAll(searchValue:string|RegExp,replacer:(substring:string,...args:any[])=>string):string;}'},{fileName:"lib.es2021.weakref.d.ts",text:'/// \ninterface WeakRef{readonly[Symbol.toStringTag]:"WeakRef";deref():T|undefined;}interface WeakRefConstructor{readonly prototype:WeakRef;new(target:T):WeakRef;}declare var WeakRef:WeakRefConstructor;interface FinalizationRegistry{readonly[Symbol.toStringTag]:"FinalizationRegistry";register(target:object,heldValue:T,unregisterToken?:object):void;unregister(unregisterToken:object):void;}interface FinalizationRegistryConstructor{readonly prototype:FinalizationRegistry;new(cleanupCallback:(heldValue:T)=>void):FinalizationRegistry;}declare var FinalizationRegistry:FinalizationRegistryConstructor;'},{fileName:"lib.es2022.array.d.ts",text:'/// \ninterface Array{at(index:number):T|undefined;}interface ReadonlyArray{at(index:number):T|undefined;}interface Int8Array{at(index:number):number|undefined;}interface Uint8Array{at(index:number):number|undefined;}interface Uint8ClampedArray{at(index:number):number|undefined;}interface Int16Array{at(index:number):number|undefined;}interface Uint16Array{at(index:number):number|undefined;}interface Int32Array{at(index:number):number|undefined;}interface Uint32Array{at(index:number):number|undefined;}interface Float32Array{at(index:number):number|undefined;}interface Float64Array{at(index:number):number|undefined;}interface BigInt64Array{at(index:number):bigint|undefined;}interface BigUint64Array{at(index:number):bigint|undefined;}'},{fileName:"lib.es2022.d.ts",text:'/// \n/// \n/// \n/// \n/// \n/// \n/// \n/// \n'},{fileName:"lib.es2022.error.d.ts",text:'/// \ninterface ErrorOptions{cause?:unknown;}interface Error{cause?:unknown;}interface ErrorConstructor{new(message?:string,options?:ErrorOptions):Error;(message?:string,options?:ErrorOptions):Error;}interface EvalErrorConstructor{new(message?:string,options?:ErrorOptions):EvalError;(message?:string,options?:ErrorOptions):EvalError;}interface RangeErrorConstructor{new(message?:string,options?:ErrorOptions):RangeError;(message?:string,options?:ErrorOptions):RangeError;}interface ReferenceErrorConstructor{new(message?:string,options?:ErrorOptions):ReferenceError;(message?:string,options?:ErrorOptions):ReferenceError;}interface SyntaxErrorConstructor{new(message?:string,options?:ErrorOptions):SyntaxError;(message?:string,options?:ErrorOptions):SyntaxError;}interface TypeErrorConstructor{new(message?:string,options?:ErrorOptions):TypeError;(message?:string,options?:ErrorOptions):TypeError;}interface URIErrorConstructor{new(message?:string,options?:ErrorOptions):URIError;(message?:string,options?:ErrorOptions):URIError;}interface AggregateErrorConstructor{new(errors:Iterable,message?:string,options?:ErrorOptions):AggregateError;(errors:Iterable,message?:string,options?:ErrorOptions):AggregateError;}'},{fileName:"lib.es2022.full.d.ts",text:'/// \n/// \n/// \n/// \n/// \n/// \n'},{fileName:"lib.es2022.intl.d.ts",text:'/// \ndeclare namespace Intl{interface SegmenterOptions{localeMatcher?:"best fit"|"lookup"|undefined;granularity?:"grapheme"|"word"|"sentence"|undefined;}interface Segmenter{segment(input:string):Segments;resolvedOptions():ResolvedSegmenterOptions;}interface ResolvedSegmenterOptions{locale:string;granularity:"grapheme"|"word"|"sentence";}interface Segments{containing(codeUnitIndex?:number):SegmentData;[Symbol.iterator]():IterableIterator;}interface SegmentData{segment:string;index:number;input:string;isWordLike?:boolean;}const Segmenter:{prototype:Segmenter;new(locales?:BCP47LanguageTag|BCP47LanguageTag[],options?:SegmenterOptions):Segmenter;supportedLocalesOf(locales:BCP47LanguageTag|BCP47LanguageTag[],options?:Pick):BCP47LanguageTag[];};}'},{fileName:"lib.es2022.object.d.ts",text:'/// \ninterface ObjectConstructor{hasOwn(o:object,v:PropertyKey):boolean;}'},{fileName:"lib.es2022.sharedmemory.d.ts",text:'/// \ninterface Atomics{waitAsync(typedArray:BigInt64Array|Int32Array,index:number,value:bigint,timeout?:number):{async:false,value:"ok"|"not-equal"|"timed-out"}|{async:true,value:Promise<"ok"|"not-equal"|"timed-out">};}'},{fileName:"lib.es2022.string.d.ts",text:'/// \ninterface String{at(index:number):string|undefined;}'},{fileName:"lib.es5.d.ts",text:'/// \ndeclare var NaN:number;declare var Infinity:number;declare function eval(x:string):any;declare function parseInt(string:string,radix?:number):number;declare function parseFloat(string:string):number;declare function isNaN(number:number):boolean;declare function isFinite(number:number):boolean;declare function decodeURI(encodedURI:string):string;declare function decodeURIComponent(encodedURIComponent:string):string;declare function encodeURI(uri:string):string;declare function encodeURIComponent(uriComponent:string|number|boolean):string;declare function escape(string:string):string;declare function unescape(string:string):string;interface Symbol{toString():string;valueOf():symbol;}declare type PropertyKey=string|number|symbol;interface PropertyDescriptor{configurable?:boolean;enumerable?:boolean;value?:any;writable?:boolean;get?():any;set?(v:any):void;}interface PropertyDescriptorMap{[key:PropertyKey]:PropertyDescriptor;}interface Object{constructor:Function;toString():string;toLocaleString():string;valueOf():Object;hasOwnProperty(v:PropertyKey):boolean;isPrototypeOf(v:Object):boolean;propertyIsEnumerable(v:PropertyKey):boolean;}interface ObjectConstructor{new(value?:any):Object;():any;(value:any):any;readonly prototype:Object;getPrototypeOf(o:any):any;getOwnPropertyDescriptor(o:any,p:PropertyKey):PropertyDescriptor|undefined;getOwnPropertyNames(o:any):string[];create(o:object|null):any;create(o:object|null,properties:PropertyDescriptorMap&ThisType):any;defineProperty(o:T,p:PropertyKey,attributes:PropertyDescriptor&ThisType):T;defineProperties(o:T,properties:PropertyDescriptorMap&ThisType):T;seal(o:T):T;freeze(f:T):T;freeze(o:T):Readonly;freeze(o:T):Readonly;preventExtensions(o:T):T;isSealed(o:any):boolean;isFrozen(o:any):boolean;isExtensible(o:any):boolean;keys(o:object):string[];}declare var Object:ObjectConstructor;interface Function{apply(this:Function,thisArg:any,argArray?:any):any;call(this:Function,thisArg:any,...argArray:any[]):any;bind(this:Function,thisArg:any,...argArray:any[]):any;toString():string;prototype:any;readonly length:number;arguments:any;caller:Function;}interface FunctionConstructor{new(...args:string[]):Function;(...args:string[]):Function;readonly prototype:Function;}declare var Function:FunctionConstructor;type ThisParameterType=T extends(this:infer U,...args:never)=>any?U:unknown;type OmitThisParameter=unknown extends ThisParameterType?T:T extends(...args:infer A)=>infer R?(...args:A)=>R:T;interface CallableFunction extends Function{apply(this:(this:T)=>R,thisArg:T):R;apply(this:(this:T,...args:A)=>R,thisArg:T,args:A):R;call(this:(this:T,...args:A)=>R,thisArg:T,...args:A):R;bind(this:T,thisArg:ThisParameterType):OmitThisParameter;bind(this:(this:T,arg0:A0,...args:A)=>R,thisArg:T,arg0:A0):(...args:A)=>R;bind(this:(this:T,arg0:A0,arg1:A1,...args:A)=>R,thisArg:T,arg0:A0,arg1:A1):(...args:A)=>R;bind(this:(this:T,arg0:A0,arg1:A1,arg2:A2,...args:A)=>R,thisArg:T,arg0:A0,arg1:A1,arg2:A2):(...args:A)=>R;bind(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(this:(this:T,...args:AX[])=>R,thisArg:T,...args:AX[]):(...args:AX[])=>R;}interface NewableFunction extends Function{apply(this:new()=>T,thisArg:T):void;apply(this:new(...args:A)=>T,thisArg:T,args:A):void;call(this:new(...args:A)=>T,thisArg:T,...args:A):void;bind(this:T,thisArg:any):T;bind(this:new(arg0:A0,...args:A)=>R,thisArg:any,arg0:A0):new(...args:A)=>R;bind(this:new(arg0:A0,arg1:A1,...args:A)=>R,thisArg:any,arg0:A0,arg1:A1):new(...args:A)=>R;bind(this:new(arg0:A0,arg1:A1,arg2:A2,...args:A)=>R,thisArg:any,arg0:A0,arg1:A1,arg2:A2):new(...args:A)=>R;bind(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(this:new(...args:AX[])=>R,thisArg:any,...args:AX[]):new(...args:AX[])=>R;}interface IArguments{[index:number]:any;length:number;callee:Function;}interface String{toString():string;charAt(pos:number):string;charCodeAt(index:number):number;concat(...strings:string[]):string;indexOf(searchString:string,position?:number):number;lastIndexOf(searchString:string,position?:number):number;localeCompare(that:string):number;match(regexp:string|RegExp):RegExpMatchArray|null;replace(searchValue:string|RegExp,replaceValue:string):string;replace(searchValue:string|RegExp,replacer:(substring:string,...args:any[])=>string):string;search(regexp:string|RegExp):number;slice(start?:number,end?:number):string;split(separator:string|RegExp,limit?:number):string[];substring(start:number,end?:number):string;toLowerCase():string;toLocaleLowerCase(locales?:string|string[]):string;toUpperCase():string;toLocaleUpperCase(locales?:string|string[]):string;trim():string;readonly length:number;substr(from:number,length?:number):string;valueOf():string;readonly[index:number]:string;}interface StringConstructor{new(value?:any):String;(value?:any):string;readonly prototype:String;fromCharCode(...codes:number[]):string;}declare var String:StringConstructor;interface Boolean{valueOf():boolean;}interface BooleanConstructor{new(value?:any):Boolean;(value?:T):boolean;readonly prototype:Boolean;}declare var Boolean:BooleanConstructor;interface Number{toString(radix?:number):string;toFixed(fractionDigits?:number):string;toExponential(fractionDigits?:number):string;toPrecision(precision?:number):string;valueOf():number;}interface NumberConstructor{new(value?:any):Number;(value?:any):number;readonly prototype:Number;readonly MAX_VALUE:number;readonly MIN_VALUE:number;readonly NaN:number;readonly NEGATIVE_INFINITY:number;readonly POSITIVE_INFINITY:number;}declare var Number:NumberConstructor;interface TemplateStringsArray extends ReadonlyArray{readonly raw:readonly string[];}interface ImportMeta{}interface ImportCallOptions{assert?:ImportAssertions;}interface ImportAssertions{[key:string]:string;}interface Math{readonly E:number;readonly LN10:number;readonly LN2:number;readonly LOG2E:number;readonly LOG10E:number;readonly PI:number;readonly SQRT1_2:number;readonly SQRT2:number;abs(x:number):number;acos(x:number):number;asin(x:number):number;atan(x:number):number;atan2(y:number,x:number):number;ceil(x:number):number;cos(x:number):number;exp(x:number):number;floor(x:number):number;log(x:number):number;max(...values:number[]):number;min(...values:number[]):number;pow(x:number,y:number):number;random():number;round(x:number):number;sin(x:number):number;sqrt(x:number):number;tan(x:number):number;}declare var Math:Math;interface Date{toString():string;toDateString():string;toTimeString():string;toLocaleString():string;toLocaleDateString():string;toLocaleTimeString():string;valueOf():number;getTime():number;getFullYear():number;getUTCFullYear():number;getMonth():number;getUTCMonth():number;getDate():number;getUTCDate():number;getDay():number;getUTCDay():number;getHours():number;getUTCHours():number;getMinutes():number;getUTCMinutes():number;getSeconds():number;getUTCSeconds():number;getMilliseconds():number;getUTCMilliseconds():number;getTimezoneOffset():number;setTime(time:number):number;setMilliseconds(ms:number):number;setUTCMilliseconds(ms:number):number;setSeconds(sec:number,ms?:number):number;setUTCSeconds(sec:number,ms?:number):number;setMinutes(min:number,sec?:number,ms?:number):number;setUTCMinutes(min:number,sec?:number,ms?:number):number;setHours(hours:number,min?:number,sec?:number,ms?:number):number;setUTCHours(hours:number,min?:number,sec?:number,ms?:number):number;setDate(date:number):number;setUTCDate(date:number):number;setMonth(month:number,date?:number):number;setUTCMonth(month:number,date?:number):number;setFullYear(year:number,month?:number,date?:number):number;setUTCFullYear(year:number,month?:number,date?:number):number;toUTCString():string;toISOString():string;toJSON(key?:any):string;}interface DateConstructor{new():Date;new(value:number|string):Date;new(year:number,monthIndex:number,date?:number,hours?:number,minutes?:number,seconds?:number,ms?:number):Date;():string;readonly prototype:Date;parse(s:string):number;UTC(year:number,monthIndex:number,date?:number,hours?:number,minutes?:number,seconds?:number,ms?:number):number;now():number;}declare var Date:DateConstructor;interface RegExpMatchArray extends Array{index?:number;input?:string;0:string;}interface RegExpExecArray extends Array{index:number;input:string;0:string;}interface RegExp{exec(string:string):RegExpExecArray|null;test(string:string):boolean;readonly source:string;readonly global:boolean;readonly ignoreCase:boolean;readonly multiline:boolean;lastIndex:number;compile(pattern:string,flags?:string):this;}interface RegExpConstructor{new(pattern:RegExp|string):RegExp;new(pattern:string,flags?:string):RegExp;(pattern:RegExp|string):RegExp;(pattern:string,flags?:string):RegExp;readonly prototype:RegExp;$1:string;$2:string;$3:string;$4:string;$5:string;$6:string;$7:string;$8:string;$9:string;input:string;$_:string;lastMatch:string;"$&":string;lastParen:string;"$+":string;leftContext:string;"$`":string;rightContext:string;"$\'":string;}declare var RegExp:RegExpConstructor;interface Error{name:string;message:string;stack?:string;}interface ErrorConstructor{new(message?:string):Error;(message?:string):Error;readonly prototype:Error;}declare var Error:ErrorConstructor;interface EvalError extends Error{}interface EvalErrorConstructor extends ErrorConstructor{new(message?:string):EvalError;(message?:string):EvalError;readonly prototype:EvalError;}declare var EvalError:EvalErrorConstructor;interface RangeError extends Error{}interface RangeErrorConstructor extends ErrorConstructor{new(message?:string):RangeError;(message?:string):RangeError;readonly prototype:RangeError;}declare var RangeError:RangeErrorConstructor;interface ReferenceError extends Error{}interface ReferenceErrorConstructor extends ErrorConstructor{new(message?:string):ReferenceError;(message?:string):ReferenceError;readonly prototype:ReferenceError;}declare var ReferenceError:ReferenceErrorConstructor;interface SyntaxError extends Error{}interface SyntaxErrorConstructor extends ErrorConstructor{new(message?:string):SyntaxError;(message?:string):SyntaxError;readonly prototype:SyntaxError;}declare var SyntaxError:SyntaxErrorConstructor;interface TypeError extends Error{}interface TypeErrorConstructor extends ErrorConstructor{new(message?:string):TypeError;(message?:string):TypeError;readonly prototype:TypeError;}declare var TypeError:TypeErrorConstructor;interface URIError extends Error{}interface URIErrorConstructor extends ErrorConstructor{new(message?:string):URIError;(message?:string):URIError;readonly prototype:URIError;}declare var URIError:URIErrorConstructor;interface JSON{parse(text:string,reviver?:(this:any,key:string,value:any)=>any):any;stringify(value:any,replacer?:(this:any,key:string,value:any)=>any,space?:string|number):string;stringify(value:any,replacer?:(number|string)[]|null,space?:string|number):string;}declare var JSON:JSON;interface ReadonlyArray{readonly length:number;toString():string;toLocaleString():string;concat(...items:ConcatArray[]):T[];concat(...items:(T|ConcatArray)[]):T[];join(separator?:string):string;slice(start?:number,end?:number):T[];indexOf(searchElement:T,fromIndex?:number):number;lastIndexOf(searchElement:T,fromIndex?:number):number;every(predicate:(value:T,index:number,array:readonly T[])=>value is S,thisArg?:any):this is readonly S[];every(predicate:(value:T,index:number,array:readonly T[])=>unknown,thisArg?:any):boolean;some(predicate:(value:T,index:number,array:readonly T[])=>unknown,thisArg?:any):boolean;forEach(callbackfn:(value:T,index:number,array:readonly T[])=>void,thisArg?:any):void;map(callbackfn:(value:T,index:number,array:readonly T[])=>U,thisArg?:any):U[];filter(predicate:(value:T,index:number,array:readonly T[])=>value is S,thisArg?:any):S[];filter(predicate:(value:T,index:number,array:readonly T[])=>unknown,thisArg?:any):T[];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;reduce(callbackfn:(previousValue:U,currentValue:T,currentIndex:number,array:readonly T[])=>U,initialValue:U):U;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;reduceRight(callbackfn:(previousValue:U,currentValue:T,currentIndex:number,array:readonly T[])=>U,initialValue:U):U;readonly[n:number]:T;}interface ConcatArray{readonly length:number;readonly[n:number]:T;join(separator?:string):string;slice(start?:number,end?:number):T[];}interface Array{length:number;toString():string;toLocaleString():string;pop():T|undefined;push(...items:T[]):number;concat(...items:ConcatArray[]):T[];concat(...items:(T|ConcatArray)[]):T[];join(separator?:string):string;reverse():T[];shift():T|undefined;slice(start?:number,end?:number):T[];sort(compareFn?:(a:T,b:T)=>number):this;splice(start:number,deleteCount?:number):T[];splice(start:number,deleteCount:number,...items:T[]):T[];unshift(...items:T[]):number;indexOf(searchElement:T,fromIndex?:number):number;lastIndexOf(searchElement:T,fromIndex?:number):number;every(predicate:(value:T,index:number,array:T[])=>value is S,thisArg?:any):this is S[];every(predicate:(value:T,index:number,array:T[])=>unknown,thisArg?:any):boolean;some(predicate:(value:T,index:number,array:T[])=>unknown,thisArg?:any):boolean;forEach(callbackfn:(value:T,index:number,array:T[])=>void,thisArg?:any):void;map(callbackfn:(value:T,index:number,array:T[])=>U,thisArg?:any):U[];filter(predicate:(value:T,index:number,array:T[])=>value is S,thisArg?:any):S[];filter(predicate:(value:T,index:number,array:T[])=>unknown,thisArg?:any):T[];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;reduce(callbackfn:(previousValue:U,currentValue:T,currentIndex:number,array:T[])=>U,initialValue:U):U;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;reduceRight(callbackfn:(previousValue:U,currentValue:T,currentIndex:number,array:T[])=>U,initialValue:U):U;[n:number]:T;}interface ArrayConstructor{new(arrayLength?:number):any[];new(arrayLength:number):T[];new(...items:T[]):T[];(arrayLength?:number):any[];(arrayLength:number):T[];(...items:T[]):T[];isArray(arg:any):arg is any[];readonly prototype:any[];}declare var Array:ArrayConstructor;interface TypedPropertyDescriptor{enumerable?:boolean;configurable?:boolean;writable?:boolean;value?:T;get?:()=>T;set?:(value:T)=>void;}declare type ClassDecorator=(target:TFunction)=>TFunction|void;declare type PropertyDecorator=(target:Object,propertyKey:string|symbol)=>void;declare type MethodDecorator=(target:Object,propertyKey:string|symbol,descriptor:TypedPropertyDescriptor)=>TypedPropertyDescriptor|void;declare type ParameterDecorator=(target:Object,propertyKey:string|symbol,parameterIndex:number)=>void;declare type PromiseConstructorLike=new(executor:(resolve:(value:T|PromiseLike)=>void,reject:(reason?:any)=>void)=>void)=>PromiseLike;interface PromiseLike{then(onfulfilled?:((value:T)=>TResult1|PromiseLike)|undefined|null,onrejected?:((reason:any)=>TResult2|PromiseLike)|undefined|null):PromiseLike;}interface Promise{then(onfulfilled?:((value:T)=>TResult1|PromiseLike)|undefined|null,onrejected?:((reason:any)=>TResult2|PromiseLike)|undefined|null):Promise;catch(onrejected?:((reason:any)=>TResult|PromiseLike)|undefined|null):Promise;}type Awaited=\nT extends null|undefined?T:T extends object&{then(onfulfilled:infer F,...args:infer _):any}?\nF extends((value:infer V,...args:infer _)=>any)?\nAwaited:never:T;interface ArrayLike{readonly length:number;readonly[n:number]:T;}type Partial={[P in keyof T]?:T[P];};type Required={[P in keyof T]-?:T[P];};type Readonly={readonly[P in keyof T]:T[P];};type Pick={[P in K]:T[P];};type Record={[P in K]:T;};type Exclude=T extends U?never:T;type Extract=T extends U?T:never;type Omit=Pick>;type NonNullable=T&{};type Parametersany>=T extends(...args:infer P)=>any?P:never;type ConstructorParametersany>=T extends abstract new(...args:infer P)=>any?P:never;type ReturnTypeany>=T extends(...args:any)=>infer R?R:any;type InstanceTypeany>=T extends abstract new(...args:any)=>infer R?R:any;type Uppercase=intrinsic;type Lowercase=intrinsic;type Capitalize=intrinsic;type Uncapitalize=intrinsic;interface ThisType{}interface ArrayBuffer{readonly byteLength:number;slice(begin:number,end?:number):ArrayBuffer;}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{buffer:ArrayBufferLike;byteLength:number;byteOffset:number;}interface DataView{readonly buffer:ArrayBuffer;readonly byteLength:number;readonly byteOffset:number;getFloat32(byteOffset:number,littleEndian?:boolean):number;getFloat64(byteOffset:number,littleEndian?:boolean):number;getInt8(byteOffset:number):number;getInt16(byteOffset:number,littleEndian?:boolean):number;getInt32(byteOffset:number,littleEndian?:boolean):number;getUint8(byteOffset:number):number;getUint16(byteOffset:number,littleEndian?:boolean):number;getUint32(byteOffset:number,littleEndian?:boolean):number;setFloat32(byteOffset:number,value:number,littleEndian?:boolean):void;setFloat64(byteOffset:number,value:number,littleEndian?:boolean):void;setInt8(byteOffset:number,value:number):void;setInt16(byteOffset:number,value:number,littleEndian?:boolean):void;setInt32(byteOffset:number,value:number,littleEndian?:boolean):void;setUint8(byteOffset:number,value:number):void;setUint16(byteOffset:number,value:number,littleEndian?:boolean):void;setUint32(byteOffset:number,value:number,littleEndian?:boolean):void;}interface DataViewConstructor{readonly prototype:DataView;new(buffer:ArrayBufferLike,byteOffset?:number,byteLength?:number):DataView;}declare var DataView:DataViewConstructor;interface Int8Array{readonly BYTES_PER_ELEMENT:number;readonly buffer:ArrayBufferLike;readonly byteLength:number;readonly byteOffset:number;copyWithin(target:number,start:number,end?:number):this;every(predicate:(value:number,index:number,array:Int8Array)=>unknown,thisArg?:any):boolean;fill(value:number,start?:number,end?:number):this;filter(predicate:(value:number,index:number,array:Int8Array)=>any,thisArg?:any):Int8Array;find(predicate:(value:number,index:number,obj:Int8Array)=>boolean,thisArg?:any):number|undefined;findIndex(predicate:(value:number,index:number,obj:Int8Array)=>boolean,thisArg?:any):number;forEach(callbackfn:(value:number,index:number,array:Int8Array)=>void,thisArg?:any):void;indexOf(searchElement:number,fromIndex?:number):number;join(separator?:string):string;lastIndexOf(searchElement:number,fromIndex?:number):number;readonly length:number;map(callbackfn:(value:number,index:number,array:Int8Array)=>number,thisArg?:any):Int8Array;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;reduce(callbackfn:(previousValue:U,currentValue:number,currentIndex:number,array:Int8Array)=>U,initialValue:U):U;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;reduceRight(callbackfn:(previousValue:U,currentValue:number,currentIndex:number,array:Int8Array)=>U,initialValue:U):U;reverse():Int8Array;set(array:ArrayLike,offset?:number):void;slice(start?:number,end?:number):Int8Array;some(predicate:(value:number,index:number,array:Int8Array)=>unknown,thisArg?:any):boolean;sort(compareFn?:(a:number,b:number)=>number):this;subarray(begin?:number,end?:number):Int8Array;toLocaleString():string;toString():string;valueOf():Int8Array;[index:number]:number;}interface Int8ArrayConstructor{readonly prototype:Int8Array;new(length:number):Int8Array;new(array:ArrayLike|ArrayBufferLike):Int8Array;new(buffer:ArrayBufferLike,byteOffset?:number,length?:number):Int8Array;readonly BYTES_PER_ELEMENT:number;of(...items:number[]):Int8Array;from(arrayLike:ArrayLike):Int8Array;from(arrayLike:ArrayLike,mapfn:(v:T,k:number)=>number,thisArg?:any):Int8Array;}declare var Int8Array:Int8ArrayConstructor;interface Uint8Array{readonly BYTES_PER_ELEMENT:number;readonly buffer:ArrayBufferLike;readonly byteLength:number;readonly byteOffset:number;copyWithin(target:number,start:number,end?:number):this;every(predicate:(value:number,index:number,array:Uint8Array)=>unknown,thisArg?:any):boolean;fill(value:number,start?:number,end?:number):this;filter(predicate:(value:number,index:number,array:Uint8Array)=>any,thisArg?:any):Uint8Array;find(predicate:(value:number,index:number,obj:Uint8Array)=>boolean,thisArg?:any):number|undefined;findIndex(predicate:(value:number,index:number,obj:Uint8Array)=>boolean,thisArg?:any):number;forEach(callbackfn:(value:number,index:number,array:Uint8Array)=>void,thisArg?:any):void;indexOf(searchElement:number,fromIndex?:number):number;join(separator?:string):string;lastIndexOf(searchElement:number,fromIndex?:number):number;readonly length:number;map(callbackfn:(value:number,index:number,array:Uint8Array)=>number,thisArg?:any):Uint8Array;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;reduce(callbackfn:(previousValue:U,currentValue:number,currentIndex:number,array:Uint8Array)=>U,initialValue:U):U;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;reduceRight(callbackfn:(previousValue:U,currentValue:number,currentIndex:number,array:Uint8Array)=>U,initialValue:U):U;reverse():Uint8Array;set(array:ArrayLike,offset?:number):void;slice(start?:number,end?:number):Uint8Array;some(predicate:(value:number,index:number,array:Uint8Array)=>unknown,thisArg?:any):boolean;sort(compareFn?:(a:number,b:number)=>number):this;subarray(begin?:number,end?:number):Uint8Array;toLocaleString():string;toString():string;valueOf():Uint8Array;[index:number]:number;}interface Uint8ArrayConstructor{readonly prototype:Uint8Array;new(length:number):Uint8Array;new(array:ArrayLike|ArrayBufferLike):Uint8Array;new(buffer:ArrayBufferLike,byteOffset?:number,length?:number):Uint8Array;readonly BYTES_PER_ELEMENT:number;of(...items:number[]):Uint8Array;from(arrayLike:ArrayLike):Uint8Array;from(arrayLike:ArrayLike,mapfn:(v:T,k:number)=>number,thisArg?:any):Uint8Array;}declare var Uint8Array:Uint8ArrayConstructor;interface Uint8ClampedArray{readonly BYTES_PER_ELEMENT:number;readonly buffer:ArrayBufferLike;readonly byteLength:number;readonly byteOffset:number;copyWithin(target:number,start:number,end?:number):this;every(predicate:(value:number,index:number,array:Uint8ClampedArray)=>unknown,thisArg?:any):boolean;fill(value:number,start?:number,end?:number):this;filter(predicate:(value:number,index:number,array:Uint8ClampedArray)=>any,thisArg?:any):Uint8ClampedArray;find(predicate:(value:number,index:number,obj:Uint8ClampedArray)=>boolean,thisArg?:any):number|undefined;findIndex(predicate:(value:number,index:number,obj:Uint8ClampedArray)=>boolean,thisArg?:any):number;forEach(callbackfn:(value:number,index:number,array:Uint8ClampedArray)=>void,thisArg?:any):void;indexOf(searchElement:number,fromIndex?:number):number;join(separator?:string):string;lastIndexOf(searchElement:number,fromIndex?:number):number;readonly length:number;map(callbackfn:(value:number,index:number,array:Uint8ClampedArray)=>number,thisArg?:any):Uint8ClampedArray;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;reduce(callbackfn:(previousValue:U,currentValue:number,currentIndex:number,array:Uint8ClampedArray)=>U,initialValue:U):U;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;reduceRight(callbackfn:(previousValue:U,currentValue:number,currentIndex:number,array:Uint8ClampedArray)=>U,initialValue:U):U;reverse():Uint8ClampedArray;set(array:ArrayLike,offset?:number):void;slice(start?:number,end?:number):Uint8ClampedArray;some(predicate:(value:number,index:number,array:Uint8ClampedArray)=>unknown,thisArg?:any):boolean;sort(compareFn?:(a:number,b:number)=>number):this;subarray(begin?:number,end?:number):Uint8ClampedArray;toLocaleString():string;toString():string;valueOf():Uint8ClampedArray;[index:number]:number;}interface Uint8ClampedArrayConstructor{readonly prototype:Uint8ClampedArray;new(length:number):Uint8ClampedArray;new(array:ArrayLike|ArrayBufferLike):Uint8ClampedArray;new(buffer:ArrayBufferLike,byteOffset?:number,length?:number):Uint8ClampedArray;readonly BYTES_PER_ELEMENT:number;of(...items:number[]):Uint8ClampedArray;from(arrayLike:ArrayLike):Uint8ClampedArray;from(arrayLike:ArrayLike,mapfn:(v:T,k:number)=>number,thisArg?:any):Uint8ClampedArray;}declare var Uint8ClampedArray:Uint8ClampedArrayConstructor;interface Int16Array{readonly BYTES_PER_ELEMENT:number;readonly buffer:ArrayBufferLike;readonly byteLength:number;readonly byteOffset:number;copyWithin(target:number,start:number,end?:number):this;every(predicate:(value:number,index:number,array:Int16Array)=>unknown,thisArg?:any):boolean;fill(value:number,start?:number,end?:number):this;filter(predicate:(value:number,index:number,array:Int16Array)=>any,thisArg?:any):Int16Array;find(predicate:(value:number,index:number,obj:Int16Array)=>boolean,thisArg?:any):number|undefined;findIndex(predicate:(value:number,index:number,obj:Int16Array)=>boolean,thisArg?:any):number;forEach(callbackfn:(value:number,index:number,array:Int16Array)=>void,thisArg?:any):void;indexOf(searchElement:number,fromIndex?:number):number;join(separator?:string):string;lastIndexOf(searchElement:number,fromIndex?:number):number;readonly length:number;map(callbackfn:(value:number,index:number,array:Int16Array)=>number,thisArg?:any):Int16Array;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;reduce(callbackfn:(previousValue:U,currentValue:number,currentIndex:number,array:Int16Array)=>U,initialValue:U):U;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;reduceRight(callbackfn:(previousValue:U,currentValue:number,currentIndex:number,array:Int16Array)=>U,initialValue:U):U;reverse():Int16Array;set(array:ArrayLike,offset?:number):void;slice(start?:number,end?:number):Int16Array;some(predicate:(value:number,index:number,array:Int16Array)=>unknown,thisArg?:any):boolean;sort(compareFn?:(a:number,b:number)=>number):this;subarray(begin?:number,end?:number):Int16Array;toLocaleString():string;toString():string;valueOf():Int16Array;[index:number]:number;}interface Int16ArrayConstructor{readonly prototype:Int16Array;new(length:number):Int16Array;new(array:ArrayLike|ArrayBufferLike):Int16Array;new(buffer:ArrayBufferLike,byteOffset?:number,length?:number):Int16Array;readonly BYTES_PER_ELEMENT:number;of(...items:number[]):Int16Array;from(arrayLike:ArrayLike):Int16Array;from(arrayLike:ArrayLike,mapfn:(v:T,k:number)=>number,thisArg?:any):Int16Array;}declare var Int16Array:Int16ArrayConstructor;interface Uint16Array{readonly BYTES_PER_ELEMENT:number;readonly buffer:ArrayBufferLike;readonly byteLength:number;readonly byteOffset:number;copyWithin(target:number,start:number,end?:number):this;every(predicate:(value:number,index:number,array:Uint16Array)=>unknown,thisArg?:any):boolean;fill(value:number,start?:number,end?:number):this;filter(predicate:(value:number,index:number,array:Uint16Array)=>any,thisArg?:any):Uint16Array;find(predicate:(value:number,index:number,obj:Uint16Array)=>boolean,thisArg?:any):number|undefined;findIndex(predicate:(value:number,index:number,obj:Uint16Array)=>boolean,thisArg?:any):number;forEach(callbackfn:(value:number,index:number,array:Uint16Array)=>void,thisArg?:any):void;indexOf(searchElement:number,fromIndex?:number):number;join(separator?:string):string;lastIndexOf(searchElement:number,fromIndex?:number):number;readonly length:number;map(callbackfn:(value:number,index:number,array:Uint16Array)=>number,thisArg?:any):Uint16Array;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;reduce(callbackfn:(previousValue:U,currentValue:number,currentIndex:number,array:Uint16Array)=>U,initialValue:U):U;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;reduceRight(callbackfn:(previousValue:U,currentValue:number,currentIndex:number,array:Uint16Array)=>U,initialValue:U):U;reverse():Uint16Array;set(array:ArrayLike,offset?:number):void;slice(start?:number,end?:number):Uint16Array;some(predicate:(value:number,index:number,array:Uint16Array)=>unknown,thisArg?:any):boolean;sort(compareFn?:(a:number,b:number)=>number):this;subarray(begin?:number,end?:number):Uint16Array;toLocaleString():string;toString():string;valueOf():Uint16Array;[index:number]:number;}interface Uint16ArrayConstructor{readonly prototype:Uint16Array;new(length:number):Uint16Array;new(array:ArrayLike|ArrayBufferLike):Uint16Array;new(buffer:ArrayBufferLike,byteOffset?:number,length?:number):Uint16Array;readonly BYTES_PER_ELEMENT:number;of(...items:number[]):Uint16Array;from(arrayLike:ArrayLike):Uint16Array;from(arrayLike:ArrayLike,mapfn:(v:T,k:number)=>number,thisArg?:any):Uint16Array;}declare var Uint16Array:Uint16ArrayConstructor;interface Int32Array{readonly BYTES_PER_ELEMENT:number;readonly buffer:ArrayBufferLike;readonly byteLength:number;readonly byteOffset:number;copyWithin(target:number,start:number,end?:number):this;every(predicate:(value:number,index:number,array:Int32Array)=>unknown,thisArg?:any):boolean;fill(value:number,start?:number,end?:number):this;filter(predicate:(value:number,index:number,array:Int32Array)=>any,thisArg?:any):Int32Array;find(predicate:(value:number,index:number,obj:Int32Array)=>boolean,thisArg?:any):number|undefined;findIndex(predicate:(value:number,index:number,obj:Int32Array)=>boolean,thisArg?:any):number;forEach(callbackfn:(value:number,index:number,array:Int32Array)=>void,thisArg?:any):void;indexOf(searchElement:number,fromIndex?:number):number;join(separator?:string):string;lastIndexOf(searchElement:number,fromIndex?:number):number;readonly length:number;map(callbackfn:(value:number,index:number,array:Int32Array)=>number,thisArg?:any):Int32Array;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;reduce(callbackfn:(previousValue:U,currentValue:number,currentIndex:number,array:Int32Array)=>U,initialValue:U):U;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;reduceRight(callbackfn:(previousValue:U,currentValue:number,currentIndex:number,array:Int32Array)=>U,initialValue:U):U;reverse():Int32Array;set(array:ArrayLike,offset?:number):void;slice(start?:number,end?:number):Int32Array;some(predicate:(value:number,index:number,array:Int32Array)=>unknown,thisArg?:any):boolean;sort(compareFn?:(a:number,b:number)=>number):this;subarray(begin?:number,end?:number):Int32Array;toLocaleString():string;toString():string;valueOf():Int32Array;[index:number]:number;}interface Int32ArrayConstructor{readonly prototype:Int32Array;new(length:number):Int32Array;new(array:ArrayLike|ArrayBufferLike):Int32Array;new(buffer:ArrayBufferLike,byteOffset?:number,length?:number):Int32Array;readonly BYTES_PER_ELEMENT:number;of(...items:number[]):Int32Array;from(arrayLike:ArrayLike):Int32Array;from(arrayLike:ArrayLike,mapfn:(v:T,k:number)=>number,thisArg?:any):Int32Array;}declare var Int32Array:Int32ArrayConstructor;interface Uint32Array{readonly BYTES_PER_ELEMENT:number;readonly buffer:ArrayBufferLike;readonly byteLength:number;readonly byteOffset:number;copyWithin(target:number,start:number,end?:number):this;every(predicate:(value:number,index:number,array:Uint32Array)=>unknown,thisArg?:any):boolean;fill(value:number,start?:number,end?:number):this;filter(predicate:(value:number,index:number,array:Uint32Array)=>any,thisArg?:any):Uint32Array;find(predicate:(value:number,index:number,obj:Uint32Array)=>boolean,thisArg?:any):number|undefined;findIndex(predicate:(value:number,index:number,obj:Uint32Array)=>boolean,thisArg?:any):number;forEach(callbackfn:(value:number,index:number,array:Uint32Array)=>void,thisArg?:any):void;indexOf(searchElement:number,fromIndex?:number):number;join(separator?:string):string;lastIndexOf(searchElement:number,fromIndex?:number):number;readonly length:number;map(callbackfn:(value:number,index:number,array:Uint32Array)=>number,thisArg?:any):Uint32Array;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;reduce(callbackfn:(previousValue:U,currentValue:number,currentIndex:number,array:Uint32Array)=>U,initialValue:U):U;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;reduceRight(callbackfn:(previousValue:U,currentValue:number,currentIndex:number,array:Uint32Array)=>U,initialValue:U):U;reverse():Uint32Array;set(array:ArrayLike,offset?:number):void;slice(start?:number,end?:number):Uint32Array;some(predicate:(value:number,index:number,array:Uint32Array)=>unknown,thisArg?:any):boolean;sort(compareFn?:(a:number,b:number)=>number):this;subarray(begin?:number,end?:number):Uint32Array;toLocaleString():string;toString():string;valueOf():Uint32Array;[index:number]:number;}interface Uint32ArrayConstructor{readonly prototype:Uint32Array;new(length:number):Uint32Array;new(array:ArrayLike|ArrayBufferLike):Uint32Array;new(buffer:ArrayBufferLike,byteOffset?:number,length?:number):Uint32Array;readonly BYTES_PER_ELEMENT:number;of(...items:number[]):Uint32Array;from(arrayLike:ArrayLike):Uint32Array;from(arrayLike:ArrayLike,mapfn:(v:T,k:number)=>number,thisArg?:any):Uint32Array;}declare var Uint32Array:Uint32ArrayConstructor;interface Float32Array{readonly BYTES_PER_ELEMENT:number;readonly buffer:ArrayBufferLike;readonly byteLength:number;readonly byteOffset:number;copyWithin(target:number,start:number,end?:number):this;every(predicate:(value:number,index:number,array:Float32Array)=>unknown,thisArg?:any):boolean;fill(value:number,start?:number,end?:number):this;filter(predicate:(value:number,index:number,array:Float32Array)=>any,thisArg?:any):Float32Array;find(predicate:(value:number,index:number,obj:Float32Array)=>boolean,thisArg?:any):number|undefined;findIndex(predicate:(value:number,index:number,obj:Float32Array)=>boolean,thisArg?:any):number;forEach(callbackfn:(value:number,index:number,array:Float32Array)=>void,thisArg?:any):void;indexOf(searchElement:number,fromIndex?:number):number;join(separator?:string):string;lastIndexOf(searchElement:number,fromIndex?:number):number;readonly length:number;map(callbackfn:(value:number,index:number,array:Float32Array)=>number,thisArg?:any):Float32Array;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;reduce(callbackfn:(previousValue:U,currentValue:number,currentIndex:number,array:Float32Array)=>U,initialValue:U):U;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;reduceRight(callbackfn:(previousValue:U,currentValue:number,currentIndex:number,array:Float32Array)=>U,initialValue:U):U;reverse():Float32Array;set(array:ArrayLike,offset?:number):void;slice(start?:number,end?:number):Float32Array;some(predicate:(value:number,index:number,array:Float32Array)=>unknown,thisArg?:any):boolean;sort(compareFn?:(a:number,b:number)=>number):this;subarray(begin?:number,end?:number):Float32Array;toLocaleString():string;toString():string;valueOf():Float32Array;[index:number]:number;}interface Float32ArrayConstructor{readonly prototype:Float32Array;new(length:number):Float32Array;new(array:ArrayLike|ArrayBufferLike):Float32Array;new(buffer:ArrayBufferLike,byteOffset?:number,length?:number):Float32Array;readonly BYTES_PER_ELEMENT:number;of(...items:number[]):Float32Array;from(arrayLike:ArrayLike):Float32Array;from(arrayLike:ArrayLike,mapfn:(v:T,k:number)=>number,thisArg?:any):Float32Array;}declare var Float32Array:Float32ArrayConstructor;interface Float64Array{readonly BYTES_PER_ELEMENT:number;readonly buffer:ArrayBufferLike;readonly byteLength:number;readonly byteOffset:number;copyWithin(target:number,start:number,end?:number):this;every(predicate:(value:number,index:number,array:Float64Array)=>unknown,thisArg?:any):boolean;fill(value:number,start?:number,end?:number):this;filter(predicate:(value:number,index:number,array:Float64Array)=>any,thisArg?:any):Float64Array;find(predicate:(value:number,index:number,obj:Float64Array)=>boolean,thisArg?:any):number|undefined;findIndex(predicate:(value:number,index:number,obj:Float64Array)=>boolean,thisArg?:any):number;forEach(callbackfn:(value:number,index:number,array:Float64Array)=>void,thisArg?:any):void;indexOf(searchElement:number,fromIndex?:number):number;join(separator?:string):string;lastIndexOf(searchElement:number,fromIndex?:number):number;readonly length:number;map(callbackfn:(value:number,index:number,array:Float64Array)=>number,thisArg?:any):Float64Array;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;reduce(callbackfn:(previousValue:U,currentValue:number,currentIndex:number,array:Float64Array)=>U,initialValue:U):U;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;reduceRight(callbackfn:(previousValue:U,currentValue:number,currentIndex:number,array:Float64Array)=>U,initialValue:U):U;reverse():Float64Array;set(array:ArrayLike,offset?:number):void;slice(start?:number,end?:number):Float64Array;some(predicate:(value:number,index:number,array:Float64Array)=>unknown,thisArg?:any):boolean;sort(compareFn?:(a:number,b:number)=>number):this;subarray(begin?:number,end?:number):Float64Array;toString():string;valueOf():Float64Array;[index:number]:number;}interface Float64ArrayConstructor{readonly prototype:Float64Array;new(length:number):Float64Array;new(array:ArrayLike|ArrayBufferLike):Float64Array;new(buffer:ArrayBufferLike,byteOffset?:number,length?:number):Float64Array;readonly BYTES_PER_ELEMENT:number;of(...items:number[]):Float64Array;from(arrayLike:ArrayLike):Float64Array;from(arrayLike:ArrayLike,mapfn:(v:T,k:number)=>number,thisArg?:any):Float64Array;}declare var Float64Array:Float64ArrayConstructor;declare namespace Intl{interface CollatorOptions{usage?:string|undefined;localeMatcher?:string|undefined;numeric?:boolean|undefined;caseFirst?:string|undefined;sensitivity?:string|undefined;ignorePunctuation?:boolean|undefined;}interface ResolvedCollatorOptions{locale:string;usage:string;sensitivity:string;ignorePunctuation:boolean;collation:string;caseFirst:string;numeric:boolean;}interface Collator{compare(x:string,y:string):number;resolvedOptions():ResolvedCollatorOptions;}var Collator:{new(locales?:string|string[],options?:CollatorOptions):Collator;(locales?:string|string[],options?:CollatorOptions):Collator;supportedLocalesOf(locales:string|string[],options?:CollatorOptions):string[];};interface NumberFormatOptions{localeMatcher?:string|undefined;style?:string|undefined;currency?:string|undefined;currencySign?:string|undefined;useGrouping?:boolean|undefined;minimumIntegerDigits?:number|undefined;minimumFractionDigits?:number|undefined;maximumFractionDigits?:number|undefined;minimumSignificantDigits?:number|undefined;maximumSignificantDigits?:number|undefined;}interface ResolvedNumberFormatOptions{locale:string;numberingSystem:string;style:string;currency?:string;minimumIntegerDigits:number;minimumFractionDigits:number;maximumFractionDigits:number;minimumSignificantDigits?:number;maximumSignificantDigits?:number;useGrouping:boolean;}interface NumberFormat{format(value:number):string;resolvedOptions():ResolvedNumberFormatOptions;}var NumberFormat:{new(locales?:string|string[],options?:NumberFormatOptions):NumberFormat;(locales?:string|string[],options?:NumberFormatOptions):NumberFormat;supportedLocalesOf(locales:string|string[],options?:NumberFormatOptions):string[];readonly prototype:NumberFormat;};interface DateTimeFormatOptions{localeMatcher?:"best fit"|"lookup"|undefined;weekday?:"long"|"short"|"narrow"|undefined;era?:"long"|"short"|"narrow"|undefined;year?:"numeric"|"2-digit"|undefined;month?:"numeric"|"2-digit"|"long"|"short"|"narrow"|undefined;day?:"numeric"|"2-digit"|undefined;hour?:"numeric"|"2-digit"|undefined;minute?:"numeric"|"2-digit"|undefined;second?:"numeric"|"2-digit"|undefined;timeZoneName?:"short"|"long"|"shortOffset"|"longOffset"|"shortGeneric"|"longGeneric"|undefined;formatMatcher?:"best fit"|"basic"|undefined;hour12?:boolean|undefined;timeZone?:string|undefined;}interface ResolvedDateTimeFormatOptions{locale:string;calendar:string;numberingSystem:string;timeZone:string;hour12?:boolean;weekday?:string;era?:string;year?:string;month?:string;day?:string;hour?:string;minute?:string;second?:string;timeZoneName?:string;}interface DateTimeFormat{format(date?:Date|number):string;resolvedOptions():ResolvedDateTimeFormatOptions;}var DateTimeFormat:{new(locales?:string|string[],options?:DateTimeFormatOptions):DateTimeFormat;(locales?:string|string[],options?:DateTimeFormatOptions):DateTimeFormat;supportedLocalesOf(locales:string|string[],options?:DateTimeFormatOptions):string[];readonly prototype:DateTimeFormat;};}interface String{localeCompare(that:string,locales?:string|string[],options?:Intl.CollatorOptions):number;}interface Number{toLocaleString(locales?:string|string[],options?:Intl.NumberFormatOptions):string;}interface Date{toLocaleString(locales?:string|string[],options?:Intl.DateTimeFormatOptions):string;toLocaleDateString(locales?:string|string[],options?:Intl.DateTimeFormatOptions):string;toLocaleTimeString(locales?:string|string[],options?:Intl.DateTimeFormatOptions):string;}'},{fileName:"lib.es6.d.ts",text:'/// \n/// \n/// \n/// \n/// \n/// \n'},{fileName:"lib.esnext.d.ts",text:'/// \n/// \n/// \n'},{fileName:"lib.esnext.full.d.ts",text:'/// \n/// \n/// \n/// \n/// \n/// '},{fileName:"lib.esnext.intl.d.ts",text:'/// \ndeclare namespace Intl{interface NumberRangeFormatPart extends NumberFormatPart{source:"startRange"|"endRange"|"shared"}interface NumberFormat{formatRange(start:number|bigint,end:number|bigint):string;formatRangeToParts(start:number|bigint,end:number|bigint):NumberRangeFormatPart[];}}'},{fileName:"lib.esnext.promise.d.ts",text:'/// \ninterface AggregateError extends Error{errors:any[]}interface AggregateErrorConstructor{new(errors:Iterable,message?:string):AggregateError;(errors:Iterable,message?:string):AggregateError;readonly prototype:AggregateError;}declare var AggregateError:AggregateErrorConstructor;interface PromiseConstructor{any(values:(T|PromiseLike)[]|Iterable>):Promise}'},{fileName:"lib.esnext.string.d.ts",text:'/// \ninterface String{replaceAll(searchValue:string|RegExp,replaceValue:string):string;replaceAll(searchValue:string|RegExp,replacer:(substring:string,...args:any[])=>string):string;}'},{fileName:"lib.esnext.weakref.d.ts",text:'/// \ninterface WeakRef{readonly[Symbol.toStringTag]:"WeakRef";deref():T|undefined;}interface WeakRefConstructor{readonly prototype:WeakRef;new(target?:T):WeakRef;}declare var WeakRef:WeakRefConstructor;interface FinalizationRegistry{readonly[Symbol.toStringTag]:"FinalizationRegistry";register(target:object,heldValue:any,unregisterToken?:object):void;unregister(unregisterToken:object):void;}interface FinalizationRegistryConstructor{readonly prototype:FinalizationRegistry;new(cleanupCallback:(heldValue:any)=>void):FinalizationRegistry;}declare var FinalizationRegistry:FinalizationRegistryConstructor;'},{fileName:"lib.scripthost.d.ts",text:'/// \ninterface ActiveXObject{new(s:string):any;}declare var ActiveXObject:ActiveXObject;interface ITextWriter{Write(s:string):void;WriteLine(s:string):void;Close():void;}interface TextStreamBase{Column:number;Line:number;Close():void;}interface TextStreamWriter extends TextStreamBase{Write(s:string):void;WriteBlankLines(intLines:number):void;WriteLine(s:string):void;}interface TextStreamReader extends TextStreamBase{Read(characters:number):string;ReadAll():string;ReadLine():string;Skip(characters:number):void;SkipLine():void;AtEndOfLine:boolean;AtEndOfStream:boolean;}declare var WScript:{Echo(s:any):void;StdErr:TextStreamWriter;StdOut:TextStreamWriter;Arguments:{length:number;Item(n:number):string;};ScriptFullName:string;Quit(exitCode?:number):number;BuildVersion:number;FullName:string;Interactive:boolean;Name:string;Path:string;ScriptName:string;StdIn:TextStreamReader;Version:string;ConnectObject(objEventSource:any,strPrefix:string):void;CreateObject(strProgID:string,strPrefix?:string):any;DisconnectObject(obj:any):void;GetObject(strPathname:string,strProgID?:string,strPrefix?:string):any;Sleep(intTime:number):void;};declare var WSH:typeof WScript;declare class SafeArray{private constructor();private SafeArray_typekey:SafeArray;}interface Enumerator{atEnd():boolean;item():T;moveFirst():void;moveNext():void;}interface EnumeratorConstructor{new(safearray:SafeArray):Enumerator;new(collection:{Item(index:any):T}):Enumerator;new(collection:any):Enumerator;}declare var Enumerator:EnumeratorConstructor;interface VBArray{dimensions():number;getItem(dimension1Index:number,...dimensionNIndexes:number[]):T;lbound(dimension?:number):number;ubound(dimension?:number):number;toArray():T[];}interface VBArrayConstructor{new(safeArray:SafeArray):VBArray;}declare var VBArray:VBArrayConstructor;declare class VarDate{private constructor();private VarDate_typekey:VarDate;}interface DateConstructor{new(vd:VarDate):Date;}interface Date{getVarDate:()=>VarDate;}'},{fileName:"lib.webworker.d.ts",text:'/// \ninterface AddEventListenerOptions extends EventListenerOptions{once?:boolean;passive?:boolean;signal?:AbortSignal;}interface AesCbcParams extends Algorithm{iv:BufferSource;}interface AesCtrParams extends Algorithm{counter:BufferSource;length:number;}interface AesDerivedKeyParams extends Algorithm{length:number;}interface AesGcmParams extends Algorithm{additionalData?:BufferSource;iv:BufferSource;tagLength?:number;}interface AesKeyAlgorithm extends KeyAlgorithm{length:number;}interface AesKeyGenParams extends Algorithm{length:number;}interface Algorithm{name:string;}interface AudioConfiguration{bitrate?:number;channels?:string;contentType:string;samplerate?:number;spatialRendering?:boolean;}interface BlobPropertyBag{endings?:EndingType;type?:string;}interface CacheQueryOptions{ignoreMethod?:boolean;ignoreSearch?:boolean;ignoreVary?:boolean;}interface ClientQueryOptions{includeUncontrolled?:boolean;type?:ClientTypes;}interface CloseEventInit extends EventInit{code?:number;reason?:string;wasClean?:boolean;}interface CryptoKeyPair{privateKey:CryptoKey;publicKey:CryptoKey;}interface CustomEventInitextends EventInit{detail?:T;}interface DOMMatrix2DInit{a?:number;b?:number;c?:number;d?:number;e?:number;f?:number;m11?:number;m12?:number;m21?:number;m22?:number;m41?:number;m42?:number;}interface DOMMatrixInit extends DOMMatrix2DInit{is2D?:boolean;m13?:number;m14?:number;m23?:number;m24?:number;m31?:number;m32?:number;m33?:number;m34?:number;m43?:number;m44?:number;}interface DOMPointInit{w?:number;x?:number;y?:number;z?:number;}interface DOMQuadInit{p1?:DOMPointInit;p2?:DOMPointInit;p3?:DOMPointInit;p4?:DOMPointInit;}interface DOMRectInit{height?:number;width?:number;x?:number;y?:number;}interface EcKeyGenParams extends Algorithm{namedCurve:NamedCurve;}interface EcKeyImportParams extends Algorithm{namedCurve:NamedCurve;}interface EcdhKeyDeriveParams extends Algorithm{public:CryptoKey;}interface EcdsaParams extends Algorithm{hash:HashAlgorithmIdentifier;}interface ErrorEventInit extends EventInit{colno?:number;error?:any;filename?:string;lineno?:number;message?:string;}interface EventInit{bubbles?:boolean;cancelable?:boolean;composed?:boolean;}interface EventListenerOptions{capture?:boolean;}interface EventSourceInit{withCredentials?:boolean;}interface ExtendableEventInit extends EventInit{}interface ExtendableMessageEventInit extends ExtendableEventInit{data?:any;lastEventId?:string;origin?:string;ports?:MessagePort[];source?:Client|ServiceWorker|MessagePort|null;}interface FetchEventInit extends ExtendableEventInit{clientId?:string;handled?:Promise;preloadResponse?:Promise;replacesClientId?:string;request:Request;resultingClientId?:string;}interface FilePropertyBag extends BlobPropertyBag{lastModified?:number;}interface FileSystemGetDirectoryOptions{create?:boolean;}interface FileSystemGetFileOptions{create?:boolean;}interface FileSystemRemoveOptions{recursive?:boolean;}interface FontFaceDescriptors{display?:string;featureSettings?:string;stretch?:string;style?:string;unicodeRange?:string;variant?:string;weight?:string;}interface FontFaceSetLoadEventInit extends EventInit{fontfaces?:FontFace[];}interface GetNotificationOptions{tag?:string;}interface HkdfParams extends Algorithm{hash:HashAlgorithmIdentifier;info:BufferSource;salt:BufferSource;}interface HmacImportParams extends Algorithm{hash:HashAlgorithmIdentifier;length?:number;}interface HmacKeyGenParams extends Algorithm{hash:HashAlgorithmIdentifier;length?:number;}interface IDBDatabaseInfo{name?:string;version?:number;}interface IDBIndexParameters{multiEntry?:boolean;unique?:boolean;}interface IDBObjectStoreParameters{autoIncrement?:boolean;keyPath?:string|string[]|null;}interface IDBTransactionOptions{durability?:IDBTransactionDurability;}interface IDBVersionChangeEventInit extends EventInit{newVersion?:number|null;oldVersion?:number;}interface ImageBitmapOptions{colorSpaceConversion?:ColorSpaceConversion;imageOrientation?:ImageOrientation;premultiplyAlpha?:PremultiplyAlpha;resizeHeight?:number;resizeQuality?:ResizeQuality;resizeWidth?:number;}interface ImageBitmapRenderingContextSettings{alpha?:boolean;}interface ImageDataSettings{colorSpace?:PredefinedColorSpace;}interface ImportMeta{url:string;}interface JsonWebKey{alg?:string;crv?:string;d?:string;dp?:string;dq?:string;e?:string;ext?:boolean;k?:string;key_ops?:string[];kty?:string;n?:string;oth?:RsaOtherPrimesInfo[];p?:string;q?:string;qi?:string;use?:string;x?:string;y?:string;}interface KeyAlgorithm{name:string;}interface LockInfo{clientId?:string;mode?:LockMode;name?:string;}interface LockManagerSnapshot{held?:LockInfo[];pending?:LockInfo[];}interface LockOptions{ifAvailable?:boolean;mode?:LockMode;signal?:AbortSignal;steal?:boolean;}interface MediaCapabilitiesDecodingInfo extends MediaCapabilitiesInfo{configuration?:MediaDecodingConfiguration;}interface MediaCapabilitiesEncodingInfo extends MediaCapabilitiesInfo{configuration?:MediaEncodingConfiguration;}interface MediaCapabilitiesInfo{powerEfficient:boolean;smooth:boolean;supported:boolean;}interface MediaConfiguration{audio?:AudioConfiguration;video?:VideoConfiguration;}interface MediaDecodingConfiguration extends MediaConfiguration{type:MediaDecodingType;}interface MediaEncodingConfiguration extends MediaConfiguration{type:MediaEncodingType;}interface MessageEventInitextends EventInit{data?:T;lastEventId?:string;origin?:string;ports?:MessagePort[];source?:MessageEventSource|null;}interface MultiCacheQueryOptions extends CacheQueryOptions{cacheName?:string;}interface NavigationPreloadState{enabled?:boolean;headerValue?:string;}interface NotificationAction{action:string;icon?:string;title:string;}interface NotificationEventInit extends ExtendableEventInit{action?:string;notification:Notification;}interface NotificationOptions{actions?:NotificationAction[];badge?:string;body?:string;data?:any;dir?:NotificationDirection;icon?:string;image?:string;lang?:string;renotify?:boolean;requireInteraction?:boolean;silent?:boolean;tag?:string;timestamp?:EpochTimeStamp;vibrate?:VibratePattern;}interface Pbkdf2Params extends Algorithm{hash:HashAlgorithmIdentifier;iterations:number;salt:BufferSource;}interface PerformanceMarkOptions{detail?:any;startTime?:DOMHighResTimeStamp;}interface PerformanceMeasureOptions{detail?:any;duration?:DOMHighResTimeStamp;end?:string|DOMHighResTimeStamp;start?:string|DOMHighResTimeStamp;}interface PerformanceObserverInit{buffered?:boolean;entryTypes?:string[];type?:string;}interface PermissionDescriptor{name:PermissionName;}interface ProgressEventInit extends EventInit{lengthComputable?:boolean;loaded?:number;total?:number;}interface PromiseRejectionEventInit extends EventInit{promise:Promise;reason?:any;}interface PushEventInit extends ExtendableEventInit{data?:PushMessageDataInit;}interface PushSubscriptionJSON{endpoint?:string;expirationTime?:EpochTimeStamp|null;keys?:Record;}interface PushSubscriptionOptionsInit{applicationServerKey?:BufferSource|string|null;userVisibleOnly?:boolean;}interface QueuingStrategy{highWaterMark?:number;size?:QueuingStrategySize;}interface QueuingStrategyInit{highWaterMark:number;}interface RTCEncodedAudioFrameMetadata{contributingSources?:number[];synchronizationSource?:number;}interface RTCEncodedVideoFrameMetadata{contributingSources?:number[];dependencies?:number[];frameId?:number;height?:number;spatialIndex?:number;synchronizationSource?:number;temporalIndex?:number;width?:number;}interface ReadableStreamGetReaderOptions{mode?:ReadableStreamReaderMode;}interface ReadableStreamReadDoneResult{done:true;value?:T;}interface ReadableStreamReadValueResult{done:false;value:T;}interface ReadableWritablePair{readable:ReadableStream;writable:WritableStream;}interface RegistrationOptions{scope?:string;type?:WorkerType;updateViaCache?:ServiceWorkerUpdateViaCache;}interface RequestInit{body?:BodyInit|null;cache?:RequestCache;credentials?:RequestCredentials;headers?:HeadersInit;integrity?:string;keepalive?:boolean;method?:string;mode?:RequestMode;redirect?:RequestRedirect;referrer?:string;referrerPolicy?:ReferrerPolicy;signal?:AbortSignal|null;window?:null;}interface ResponseInit{headers?:HeadersInit;status?:number;statusText?:string;}interface RsaHashedImportParams extends Algorithm{hash:HashAlgorithmIdentifier;}interface RsaHashedKeyGenParams extends RsaKeyGenParams{hash:HashAlgorithmIdentifier;}interface RsaKeyGenParams extends Algorithm{modulusLength:number;publicExponent:BigInteger;}interface RsaOaepParams extends Algorithm{label?:BufferSource;}interface RsaOtherPrimesInfo{d?:string;r?:string;t?:string;}interface RsaPssParams extends Algorithm{saltLength:number;}interface SecurityPolicyViolationEventInit extends EventInit{blockedURI?:string;columnNumber?:number;disposition:SecurityPolicyViolationEventDisposition;documentURI:string;effectiveDirective:string;lineNumber?:number;originalPolicy:string;referrer?:string;sample?:string;sourceFile?:string;statusCode:number;violatedDirective:string;}interface StorageEstimate{quota?:number;usage?:number;}interface StreamPipeOptions{preventAbort?:boolean;preventCancel?:boolean;preventClose?:boolean;signal?:AbortSignal;}interface StructuredSerializeOptions{transfer?:Transferable[];}interface TextDecodeOptions{stream?:boolean;}interface TextDecoderOptions{fatal?:boolean;ignoreBOM?:boolean;}interface TextEncoderEncodeIntoResult{read?:number;written?:number;}interface Transformer{flush?:TransformerFlushCallback;readableType?:undefined;start?:TransformerStartCallback;transform?:TransformerTransformCallback;writableType?:undefined;}interface UnderlyingByteSource{autoAllocateChunkSize?:number;cancel?:UnderlyingSourceCancelCallback;pull?:(controller:ReadableByteStreamController)=>void|PromiseLike;start?:(controller:ReadableByteStreamController)=>any;type:"bytes";}interface UnderlyingDefaultSource{cancel?:UnderlyingSourceCancelCallback;pull?:(controller:ReadableStreamDefaultController)=>void|PromiseLike;start?:(controller:ReadableStreamDefaultController)=>any;type?:undefined;}interface UnderlyingSink{abort?:UnderlyingSinkAbortCallback;close?:UnderlyingSinkCloseCallback;start?:UnderlyingSinkStartCallback;type?:undefined;write?:UnderlyingSinkWriteCallback;}interface UnderlyingSource{autoAllocateChunkSize?:number;cancel?:UnderlyingSourceCancelCallback;pull?:UnderlyingSourcePullCallback;start?:UnderlyingSourceStartCallback;type?:ReadableStreamType;}interface VideoColorSpaceInit{fullRange?:boolean|null;matrix?:VideoMatrixCoefficients|null;primaries?:VideoColorPrimaries|null;transfer?:VideoTransferCharacteristics|null;}interface VideoConfiguration{bitrate:number;colorGamut?:ColorGamut;contentType:string;framerate:number;hdrMetadataType?:HdrMetadataType;height:number;scalabilityMode?:string;transferFunction?:TransferFunction;width:number;}interface WebGLContextAttributes{alpha?:boolean;antialias?:boolean;depth?:boolean;desynchronized?:boolean;failIfMajorPerformanceCaveat?:boolean;powerPreference?:WebGLPowerPreference;premultipliedAlpha?:boolean;preserveDrawingBuffer?:boolean;stencil?:boolean;}interface WebGLContextEventInit extends EventInit{statusMessage?:string;}interface WorkerOptions{credentials?:RequestCredentials;name?:string;type?:WorkerType;}interface ANGLE_instanced_arrays{drawArraysInstancedANGLE(mode:GLenum,first:GLint,count:GLsizei,primcount:GLsizei):void;drawElementsInstancedANGLE(mode:GLenum,count:GLsizei,type:GLenum,offset:GLintptr,primcount:GLsizei):void;vertexAttribDivisorANGLE(index:GLuint,divisor:GLuint):void;readonly VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE:GLenum;}interface AbortController{readonly signal:AbortSignal;abort(reason?:any):void;}declare var AbortController:{prototype:AbortController;new():AbortController;};interface AbortSignalEventMap{"abort":Event;}interface AbortSignal extends EventTarget{readonly aborted:boolean;onabort:((this:AbortSignal,ev:Event)=>any)|null;readonly reason:any;throwIfAborted():void;addEventListener(type:K,listener:(this:AbortSignal,ev:AbortSignalEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(type:K,listener:(this:AbortSignal,ev:AbortSignalEventMap[K])=>any,options?:boolean|EventListenerOptions):void;removeEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|EventListenerOptions):void;}declare var AbortSignal:{prototype:AbortSignal;new():AbortSignal;abort(reason?:any):AbortSignal;timeout(milliseconds:number):AbortSignal;};interface AbstractWorkerEventMap{"error":ErrorEvent;}interface AbstractWorker{onerror:((this:AbstractWorker,ev:ErrorEvent)=>any)|null;addEventListener(type:K,listener:(this:AbstractWorker,ev:AbstractWorkerEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(type:K,listener:(this:AbstractWorker,ev:AbstractWorkerEventMap[K])=>any,options?:boolean|EventListenerOptions):void;removeEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|EventListenerOptions):void;}interface AnimationFrameProvider{cancelAnimationFrame(handle:number):void;requestAnimationFrame(callback:FrameRequestCallback):number;}interface Blob{readonly size:number;readonly type:string;arrayBuffer():Promise;slice(start?:number,end?:number,contentType?:string):Blob;stream():ReadableStream;text():Promise;}declare var Blob:{prototype:Blob;new(blobParts?:BlobPart[],options?:BlobPropertyBag):Blob;};interface Body{readonly body:ReadableStream|null;readonly bodyUsed:boolean;arrayBuffer():Promise;blob():Promise;formData():Promise;json():Promise;text():Promise;}interface BroadcastChannelEventMap{"message":MessageEvent;"messageerror":MessageEvent;}interface BroadcastChannel extends EventTarget{readonly name:string;onmessage:((this:BroadcastChannel,ev:MessageEvent)=>any)|null;onmessageerror:((this:BroadcastChannel,ev:MessageEvent)=>any)|null;close():void;postMessage(message:any):void;addEventListener(type:K,listener:(this:BroadcastChannel,ev:BroadcastChannelEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(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;};interface ByteLengthQueuingStrategy extends QueuingStrategy{readonly highWaterMark:number;readonly size:QueuingStrategySize;}declare var ByteLengthQueuingStrategy:{prototype:ByteLengthQueuingStrategy;new(init:QueuingStrategyInit):ByteLengthQueuingStrategy;};interface Cache{add(request:RequestInfo|URL):Promise;addAll(requests:RequestInfo[]):Promise;delete(request:RequestInfo|URL,options?:CacheQueryOptions):Promise;keys(request?:RequestInfo|URL,options?:CacheQueryOptions):Promise>;match(request:RequestInfo|URL,options?:CacheQueryOptions):Promise;matchAll(request?:RequestInfo|URL,options?:CacheQueryOptions):Promise>;put(request:RequestInfo|URL,response:Response):Promise;}declare var Cache:{prototype:Cache;new():Cache;};interface CacheStorage{delete(cacheName:string):Promise;has(cacheName:string):Promise;keys():Promise;match(request:RequestInfo|URL,options?:MultiCacheQueryOptions):Promise;open(cacheName:string):Promise;}declare var CacheStorage:{prototype:CacheStorage;new():CacheStorage;};interface CanvasCompositing{globalAlpha:number;globalCompositeOperation:GlobalCompositeOperation;}interface CanvasDrawImage{drawImage(image:CanvasImageSource,dx:number,dy:number):void;drawImage(image:CanvasImageSource,dx:number,dy:number,dw:number,dh:number):void;drawImage(image:CanvasImageSource,sx:number,sy:number,sw:number,sh:number,dx:number,dy:number,dw:number,dh:number):void;}interface CanvasDrawPath{beginPath():void;clip(fillRule?:CanvasFillRule):void;clip(path:Path2D,fillRule?:CanvasFillRule):void;fill(fillRule?:CanvasFillRule):void;fill(path:Path2D,fillRule?:CanvasFillRule):void;isPointInPath(x:number,y:number,fillRule?:CanvasFillRule):boolean;isPointInPath(path:Path2D,x:number,y:number,fillRule?:CanvasFillRule):boolean;isPointInStroke(x:number,y:number):boolean;isPointInStroke(path:Path2D,x:number,y:number):boolean;stroke():void;stroke(path:Path2D):void;}interface CanvasFillStrokeStyles{fillStyle:string|CanvasGradient|CanvasPattern;strokeStyle:string|CanvasGradient|CanvasPattern;createConicGradient(startAngle:number,x:number,y:number):CanvasGradient;createLinearGradient(x0:number,y0:number,x1:number,y1:number):CanvasGradient;createPattern(image:CanvasImageSource,repetition:string|null):CanvasPattern|null;createRadialGradient(x0:number,y0:number,r0:number,x1:number,y1:number,r1:number):CanvasGradient;}interface CanvasFilters{filter:string;}interface CanvasGradient{addColorStop(offset:number,color:string):void;}declare var CanvasGradient:{prototype:CanvasGradient;new():CanvasGradient;};interface CanvasImageData{createImageData(sw:number,sh:number,settings?:ImageDataSettings):ImageData;createImageData(imagedata:ImageData):ImageData;getImageData(sx:number,sy:number,sw:number,sh:number,settings?:ImageDataSettings):ImageData;putImageData(imagedata:ImageData,dx:number,dy:number):void;putImageData(imagedata:ImageData,dx:number,dy:number,dirtyX:number,dirtyY:number,dirtyWidth:number,dirtyHeight:number):void;}interface CanvasImageSmoothing{imageSmoothingEnabled:boolean;imageSmoothingQuality:ImageSmoothingQuality;}interface CanvasPath{arc(x:number,y:number,radius:number,startAngle:number,endAngle:number,counterclockwise?:boolean):void;arcTo(x1:number,y1:number,x2:number,y2:number,radius:number):void;bezierCurveTo(cp1x:number,cp1y:number,cp2x:number,cp2y:number,x:number,y:number):void;closePath():void;ellipse(x:number,y:number,radiusX:number,radiusY:number,rotation:number,startAngle:number,endAngle:number,counterclockwise?:boolean):void;lineTo(x:number,y:number):void;moveTo(x:number,y:number):void;quadraticCurveTo(cpx:number,cpy:number,x:number,y:number):void;rect(x:number,y:number,w:number,h:number):void;roundRect(x:number,y:number,w:number,h:number,radii?:number|DOMPointInit|(number|DOMPointInit)[]):void;}interface CanvasPathDrawingStyles{lineCap:CanvasLineCap;lineDashOffset:number;lineJoin:CanvasLineJoin;lineWidth:number;miterLimit:number;getLineDash():number[];setLineDash(segments:number[]):void;}interface CanvasPattern{setTransform(transform?:DOMMatrix2DInit):void;}declare var CanvasPattern:{prototype:CanvasPattern;new():CanvasPattern;};interface CanvasRect{clearRect(x:number,y:number,w:number,h:number):void;fillRect(x:number,y:number,w:number,h:number):void;strokeRect(x:number,y:number,w:number,h:number):void;}interface CanvasShadowStyles{shadowBlur:number;shadowColor:string;shadowOffsetX:number;shadowOffsetY:number;}interface CanvasState{restore():void;save():void;}interface CanvasText{fillText(text:string,x:number,y:number,maxWidth?:number):void;measureText(text:string):TextMetrics;strokeText(text:string,x:number,y:number,maxWidth?:number):void;}interface CanvasTextDrawingStyles{direction:CanvasDirection;font:string;fontKerning:CanvasFontKerning;textAlign:CanvasTextAlign;textBaseline:CanvasTextBaseline;}interface CanvasTransform{getTransform():DOMMatrix;resetTransform():void;rotate(angle:number):void;scale(x:number,y:number):void;setTransform(a:number,b:number,c:number,d:number,e:number,f:number):void;setTransform(transform?:DOMMatrix2DInit):void;transform(a:number,b:number,c:number,d:number,e:number,f:number):void;translate(x:number,y:number):void;}interface Client{readonly frameType:FrameType;readonly id:string;readonly type:ClientTypes;readonly url:string;postMessage(message:any,transfer:Transferable[]):void;postMessage(message:any,options?:StructuredSerializeOptions):void;}declare var Client:{prototype:Client;new():Client;};interface Clients{claim():Promise;get(id:string):Promise;matchAll(options?:T):Promise>;openWindow(url:string|URL):Promise;}declare var Clients:{prototype:Clients;new():Clients;};interface CloseEvent extends Event{readonly code:number;readonly reason:string;readonly wasClean:boolean;}declare var CloseEvent:{prototype:CloseEvent;new(type:string,eventInitDict?:CloseEventInit):CloseEvent;};interface CountQueuingStrategy extends QueuingStrategy{readonly highWaterMark:number;readonly size:QueuingStrategySize;}declare var CountQueuingStrategy:{prototype:CountQueuingStrategy;new(init:QueuingStrategyInit):CountQueuingStrategy;};interface Crypto{readonly subtle:SubtleCrypto;getRandomValues(array:T):T;randomUUID():string;}declare var Crypto:{prototype:Crypto;new():Crypto;};interface CryptoKey{readonly algorithm:KeyAlgorithm;readonly extractable:boolean;readonly type:KeyType;readonly usages:KeyUsage[];}declare var CryptoKey:{prototype:CryptoKey;new():CryptoKey;};interface CustomEventextends Event{readonly detail:T;initCustomEvent(type:string,bubbles?:boolean,cancelable?:boolean,detail?:T):void;}declare var CustomEvent:{prototype:CustomEvent;new(type:string,eventInitDict?:CustomEventInit):CustomEvent;};interface DOMException extends Error{readonly code:number;readonly message:string;readonly name:string;readonly ABORT_ERR:number;readonly DATA_CLONE_ERR:number;readonly DOMSTRING_SIZE_ERR:number;readonly HIERARCHY_REQUEST_ERR:number;readonly INDEX_SIZE_ERR:number;readonly INUSE_ATTRIBUTE_ERR:number;readonly INVALID_ACCESS_ERR:number;readonly INVALID_CHARACTER_ERR:number;readonly INVALID_MODIFICATION_ERR:number;readonly INVALID_NODE_TYPE_ERR:number;readonly INVALID_STATE_ERR:number;readonly NAMESPACE_ERR:number;readonly NETWORK_ERR:number;readonly NOT_FOUND_ERR:number;readonly NOT_SUPPORTED_ERR:number;readonly NO_DATA_ALLOWED_ERR:number;readonly NO_MODIFICATION_ALLOWED_ERR:number;readonly QUOTA_EXCEEDED_ERR:number;readonly SECURITY_ERR:number;readonly SYNTAX_ERR:number;readonly TIMEOUT_ERR:number;readonly TYPE_MISMATCH_ERR:number;readonly URL_MISMATCH_ERR:number;readonly VALIDATION_ERR:number;readonly WRONG_DOCUMENT_ERR:number;}declare var DOMException:{prototype:DOMException;new(message?:string,name?:string):DOMException;readonly ABORT_ERR:number;readonly DATA_CLONE_ERR:number;readonly DOMSTRING_SIZE_ERR:number;readonly HIERARCHY_REQUEST_ERR:number;readonly INDEX_SIZE_ERR:number;readonly INUSE_ATTRIBUTE_ERR:number;readonly INVALID_ACCESS_ERR:number;readonly INVALID_CHARACTER_ERR:number;readonly INVALID_MODIFICATION_ERR:number;readonly INVALID_NODE_TYPE_ERR:number;readonly INVALID_STATE_ERR:number;readonly NAMESPACE_ERR:number;readonly NETWORK_ERR:number;readonly NOT_FOUND_ERR:number;readonly NOT_SUPPORTED_ERR:number;readonly NO_DATA_ALLOWED_ERR:number;readonly NO_MODIFICATION_ALLOWED_ERR:number;readonly QUOTA_EXCEEDED_ERR:number;readonly SECURITY_ERR:number;readonly SYNTAX_ERR:number;readonly TIMEOUT_ERR:number;readonly TYPE_MISMATCH_ERR:number;readonly URL_MISMATCH_ERR:number;readonly VALIDATION_ERR:number;readonly WRONG_DOCUMENT_ERR:number;};interface DOMMatrix extends DOMMatrixReadOnly{a:number;b:number;c:number;d:number;e:number;f:number;m11:number;m12:number;m13:number;m14:number;m21:number;m22:number;m23:number;m24:number;m31:number;m32:number;m33:number;m34:number;m41:number;m42:number;m43:number;m44:number;invertSelf():DOMMatrix;multiplySelf(other?:DOMMatrixInit):DOMMatrix;preMultiplySelf(other?:DOMMatrixInit):DOMMatrix;rotateAxisAngleSelf(x?:number,y?:number,z?:number,angle?:number):DOMMatrix;rotateFromVectorSelf(x?:number,y?:number):DOMMatrix;rotateSelf(rotX?:number,rotY?:number,rotZ?:number):DOMMatrix;scale3dSelf(scale?:number,originX?:number,originY?:number,originZ?:number):DOMMatrix;scaleSelf(scaleX?:number,scaleY?:number,scaleZ?:number,originX?:number,originY?:number,originZ?:number):DOMMatrix;skewXSelf(sx?:number):DOMMatrix;skewYSelf(sy?:number):DOMMatrix;translateSelf(tx?:number,ty?:number,tz?:number):DOMMatrix;}declare var DOMMatrix:{prototype:DOMMatrix;new(init?:string|number[]):DOMMatrix;fromFloat32Array(array32:Float32Array):DOMMatrix;fromFloat64Array(array64:Float64Array):DOMMatrix;fromMatrix(other?:DOMMatrixInit):DOMMatrix;};interface DOMMatrixReadOnly{readonly a:number;readonly b:number;readonly c:number;readonly d:number;readonly e:number;readonly f:number;readonly is2D:boolean;readonly isIdentity:boolean;readonly m11:number;readonly m12:number;readonly m13:number;readonly m14:number;readonly m21:number;readonly m22:number;readonly m23:number;readonly m24:number;readonly m31:number;readonly m32:number;readonly m33:number;readonly m34:number;readonly m41:number;readonly m42:number;readonly m43:number;readonly m44:number;flipX():DOMMatrix;flipY():DOMMatrix;inverse():DOMMatrix;multiply(other?:DOMMatrixInit):DOMMatrix;rotate(rotX?:number,rotY?:number,rotZ?:number):DOMMatrix;rotateAxisAngle(x?:number,y?:number,z?:number,angle?:number):DOMMatrix;rotateFromVector(x?:number,y?:number):DOMMatrix;scale(scaleX?:number,scaleY?:number,scaleZ?:number,originX?:number,originY?:number,originZ?:number):DOMMatrix;scale3d(scale?:number,originX?:number,originY?:number,originZ?:number):DOMMatrix;scaleNonUniform(scaleX?:number,scaleY?:number):DOMMatrix;skewX(sx?:number):DOMMatrix;skewY(sy?:number):DOMMatrix;toFloat32Array():Float32Array;toFloat64Array():Float64Array;toJSON():any;transformPoint(point?:DOMPointInit):DOMPoint;translate(tx?:number,ty?:number,tz?:number):DOMMatrix;}declare var DOMMatrixReadOnly:{prototype:DOMMatrixReadOnly;new(init?:string|number[]):DOMMatrixReadOnly;fromFloat32Array(array32:Float32Array):DOMMatrixReadOnly;fromFloat64Array(array64:Float64Array):DOMMatrixReadOnly;fromMatrix(other?:DOMMatrixInit):DOMMatrixReadOnly;};interface DOMPoint extends DOMPointReadOnly{w:number;x:number;y:number;z:number;}declare var DOMPoint:{prototype:DOMPoint;new(x?:number,y?:number,z?:number,w?:number):DOMPoint;fromPoint(other?:DOMPointInit):DOMPoint;};interface DOMPointReadOnly{readonly w:number;readonly x:number;readonly y:number;readonly z:number;matrixTransform(matrix?:DOMMatrixInit):DOMPoint;toJSON():any;}declare var DOMPointReadOnly:{prototype:DOMPointReadOnly;new(x?:number,y?:number,z?:number,w?:number):DOMPointReadOnly;fromPoint(other?:DOMPointInit):DOMPointReadOnly;};interface DOMQuad{readonly p1:DOMPoint;readonly p2:DOMPoint;readonly p3:DOMPoint;readonly p4:DOMPoint;getBounds():DOMRect;toJSON():any;}declare var DOMQuad:{prototype:DOMQuad;new(p1?:DOMPointInit,p2?:DOMPointInit,p3?:DOMPointInit,p4?:DOMPointInit):DOMQuad;fromQuad(other?:DOMQuadInit):DOMQuad;fromRect(other?:DOMRectInit):DOMQuad;};interface DOMRect extends DOMRectReadOnly{height:number;width:number;x:number;y:number;}declare var DOMRect:{prototype:DOMRect;new(x?:number,y?:number,width?:number,height?:number):DOMRect;fromRect(other?:DOMRectInit):DOMRect;};interface DOMRectReadOnly{readonly bottom:number;readonly height:number;readonly left:number;readonly right:number;readonly top:number;readonly width:number;readonly x:number;readonly y:number;toJSON():any;}declare var DOMRectReadOnly:{prototype:DOMRectReadOnly;new(x?:number,y?:number,width?:number,height?:number):DOMRectReadOnly;fromRect(other?:DOMRectInit):DOMRectReadOnly;};interface DOMStringList{readonly length:number;contains(string:string):boolean;item(index:number):string|null;[index:number]:string;}declare var DOMStringList:{prototype:DOMStringList;new():DOMStringList;};interface DedicatedWorkerGlobalScopeEventMap extends WorkerGlobalScopeEventMap{"message":MessageEvent;"messageerror":MessageEvent;}interface DedicatedWorkerGlobalScope extends WorkerGlobalScope,AnimationFrameProvider{readonly name:string;onmessage:((this:DedicatedWorkerGlobalScope,ev:MessageEvent)=>any)|null;onmessageerror:((this:DedicatedWorkerGlobalScope,ev:MessageEvent)=>any)|null;close():void;postMessage(message:any,transfer:Transferable[]):void;postMessage(message:any,options?:StructuredSerializeOptions):void;addEventListener(type:K,listener:(this:DedicatedWorkerGlobalScope,ev:DedicatedWorkerGlobalScopeEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(type:K,listener:(this:DedicatedWorkerGlobalScope,ev:DedicatedWorkerGlobalScopeEventMap[K])=>any,options?:boolean|EventListenerOptions):void;removeEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|EventListenerOptions):void;}declare var DedicatedWorkerGlobalScope:{prototype:DedicatedWorkerGlobalScope;new():DedicatedWorkerGlobalScope;};interface EXT_blend_minmax{readonly MAX_EXT:GLenum;readonly MIN_EXT:GLenum;}interface EXT_color_buffer_float{}interface EXT_color_buffer_half_float{readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT:GLenum;readonly RGB16F_EXT:GLenum;readonly RGBA16F_EXT:GLenum;readonly UNSIGNED_NORMALIZED_EXT:GLenum;}interface EXT_float_blend{}interface EXT_frag_depth{}interface EXT_sRGB{readonly FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING_EXT:GLenum;readonly SRGB8_ALPHA8_EXT:GLenum;readonly SRGB_ALPHA_EXT:GLenum;readonly SRGB_EXT:GLenum;}interface EXT_shader_texture_lod{}interface EXT_texture_compression_bptc{readonly COMPRESSED_RGBA_BPTC_UNORM_EXT:GLenum;readonly COMPRESSED_RGB_BPTC_SIGNED_FLOAT_EXT:GLenum;readonly COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_EXT:GLenum;readonly COMPRESSED_SRGB_ALPHA_BPTC_UNORM_EXT:GLenum;}interface EXT_texture_compression_rgtc{readonly COMPRESSED_RED_GREEN_RGTC2_EXT:GLenum;readonly COMPRESSED_RED_RGTC1_EXT:GLenum;readonly COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT:GLenum;readonly COMPRESSED_SIGNED_RED_RGTC1_EXT:GLenum;}interface EXT_texture_filter_anisotropic{readonly MAX_TEXTURE_MAX_ANISOTROPY_EXT:GLenum;readonly TEXTURE_MAX_ANISOTROPY_EXT:GLenum;}interface EXT_texture_norm16{readonly R16_EXT:GLenum;readonly R16_SNORM_EXT:GLenum;readonly RG16_EXT:GLenum;readonly RG16_SNORM_EXT:GLenum;readonly RGB16_EXT:GLenum;readonly RGB16_SNORM_EXT:GLenum;readonly RGBA16_EXT:GLenum;readonly RGBA16_SNORM_EXT:GLenum;}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;};interface Event{readonly bubbles:boolean;cancelBubble:boolean;readonly cancelable:boolean;readonly composed:boolean;readonly currentTarget:EventTarget|null;readonly defaultPrevented:boolean;readonly eventPhase:number;readonly isTrusted:boolean;returnValue:boolean;readonly srcElement:EventTarget|null;readonly target:EventTarget|null;readonly timeStamp:DOMHighResTimeStamp;readonly type:string;composedPath():EventTarget[];initEvent(type:string,bubbles?:boolean,cancelable?:boolean):void;preventDefault():void;stopImmediatePropagation():void;stopPropagation():void;readonly AT_TARGET:number;readonly BUBBLING_PHASE:number;readonly CAPTURING_PHASE:number;readonly NONE:number;}declare var Event:{prototype:Event;new(type:string,eventInitDict?:EventInit):Event;readonly AT_TARGET:number;readonly BUBBLING_PHASE:number;readonly CAPTURING_PHASE:number;readonly NONE:number;};interface EventListener{(evt:Event):void;}interface EventListenerObject{handleEvent(object:Event):void;}interface EventSourceEventMap{"error":Event;"message":MessageEvent;"open":Event;}interface EventSource extends EventTarget{onerror:((this:EventSource,ev:Event)=>any)|null;onmessage:((this:EventSource,ev:MessageEvent)=>any)|null;onopen:((this:EventSource,ev:Event)=>any)|null;readonly readyState:number;readonly url:string;readonly withCredentials:boolean;close():void;readonly CLOSED:number;readonly CONNECTING:number;readonly OPEN:number;addEventListener(type:K,listener:(this:EventSource,ev:EventSourceEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:(this:EventSource,event:MessageEvent)=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(type:K,listener:(this:EventSource,ev:EventSourceEventMap[K])=>any,options?:boolean|EventListenerOptions):void;removeEventListener(type:string,listener:(this:EventSource,event:MessageEvent)=>any,options?:boolean|EventListenerOptions):void;removeEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|EventListenerOptions):void;}declare var EventSource:{prototype:EventSource;new(url:string|URL,eventSourceInitDict?:EventSourceInit):EventSource;readonly CLOSED:number;readonly CONNECTING:number;readonly OPEN:number;};interface EventTarget{addEventListener(type:string,callback:EventListenerOrEventListenerObject|null,options?:AddEventListenerOptions|boolean):void;dispatchEvent(event:Event):boolean;removeEventListener(type:string,callback:EventListenerOrEventListenerObject|null,options?:EventListenerOptions|boolean):void;}declare var EventTarget:{prototype:EventTarget;new():EventTarget;};interface ExtendableEvent extends Event{waitUntil(f:Promise):void;}declare var ExtendableEvent:{prototype:ExtendableEvent;new(type:string,eventInitDict?:ExtendableEventInit):ExtendableEvent;};interface ExtendableMessageEvent extends ExtendableEvent{readonly data:any;readonly lastEventId:string;readonly origin:string;readonly ports:ReadonlyArray;readonly source:Client|ServiceWorker|MessagePort|null;}declare var ExtendableMessageEvent:{prototype:ExtendableMessageEvent;new(type:string,eventInitDict?:ExtendableMessageEventInit):ExtendableMessageEvent;};interface FetchEvent extends ExtendableEvent{readonly clientId:string;readonly handled:Promise;readonly preloadResponse:Promise;readonly request:Request;readonly resultingClientId:string;respondWith(r:Response|PromiseLike):void;}declare var FetchEvent:{prototype:FetchEvent;new(type:string,eventInitDict:FetchEventInit):FetchEvent;};interface File extends Blob{readonly lastModified:number;readonly name:string;readonly webkitRelativePath:string;}declare var File:{prototype:File;new(fileBits:BlobPart[],fileName:string,options?:FilePropertyBag):File;};interface FileList{readonly length:number;item(index:number):File|null;[index:number]:File;}declare var FileList:{prototype:FileList;new():FileList;};interface FileReaderEventMap{"abort":ProgressEvent;"error":ProgressEvent;"load":ProgressEvent;"loadend":ProgressEvent;"loadstart":ProgressEvent;"progress":ProgressEvent;}interface FileReader extends EventTarget{readonly error:DOMException|null;onabort:((this:FileReader,ev:ProgressEvent)=>any)|null;onerror:((this:FileReader,ev:ProgressEvent)=>any)|null;onload:((this:FileReader,ev:ProgressEvent)=>any)|null;onloadend:((this:FileReader,ev:ProgressEvent)=>any)|null;onloadstart:((this:FileReader,ev:ProgressEvent)=>any)|null;onprogress:((this:FileReader,ev:ProgressEvent)=>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(type:K,listener:(this:FileReader,ev:FileReaderEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(type:K,listener:(this:FileReader,ev:FileReaderEventMap[K])=>any,options?:boolean|EventListenerOptions):void;removeEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|EventListenerOptions):void;}declare var FileReader:{prototype:FileReader;new():FileReader;readonly DONE:number;readonly EMPTY:number;readonly LOADING:number;};interface FileReaderSync{readAsArrayBuffer(blob:Blob):ArrayBuffer;readAsBinaryString(blob:Blob):string;readAsDataURL(blob:Blob):string;readAsText(blob:Blob,encoding?:string):string;}declare var FileReaderSync:{prototype:FileReaderSync;new():FileReaderSync;};interface FileSystemDirectoryHandle extends FileSystemHandle{readonly kind:"directory";getDirectoryHandle(name:string,options?:FileSystemGetDirectoryOptions):Promise;getFileHandle(name:string,options?:FileSystemGetFileOptions):Promise;removeEntry(name:string,options?:FileSystemRemoveOptions):Promise;resolve(possibleDescendant:FileSystemHandle):Promise;}declare var FileSystemDirectoryHandle:{prototype:FileSystemDirectoryHandle;new():FileSystemDirectoryHandle;};interface FileSystemFileHandle extends FileSystemHandle{readonly kind:"file";getFile():Promise;}declare var FileSystemFileHandle:{prototype:FileSystemFileHandle;new():FileSystemFileHandle;};interface FileSystemHandle{readonly kind:FileSystemHandleKind;readonly name:string;isSameEntry(other:FileSystemHandle):Promise;}declare var FileSystemHandle:{prototype:FileSystemHandle;new():FileSystemHandle;};interface FontFace{ascentOverride:string;descentOverride:string;display:string;family:string;featureSettings:string;lineGapOverride:string;readonly loaded:Promise;readonly status:FontFaceLoadStatus;stretch:string;style:string;unicodeRange:string;variant:string;variationSettings:string;weight:string;load():Promise;}declare var FontFace:{prototype:FontFace;new(family:string,source:string|BinaryData,descriptors?:FontFaceDescriptors):FontFace;};interface FontFaceSetEventMap{"loading":Event;"loadingdone":Event;"loadingerror":Event;}interface FontFaceSet extends EventTarget{onloading:((this:FontFaceSet,ev:Event)=>any)|null;onloadingdone:((this:FontFaceSet,ev:Event)=>any)|null;onloadingerror:((this:FontFaceSet,ev:Event)=>any)|null;readonly ready:Promise;readonly status:FontFaceSetLoadStatus;check(font:string,text?:string):boolean;load(font:string,text?:string):Promise;forEach(callbackfn:(value:FontFace,key:FontFace,parent:FontFaceSet)=>void,thisArg?:any):void;addEventListener(type:K,listener:(this:FontFaceSet,ev:FontFaceSetEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(type:K,listener:(this:FontFaceSet,ev:FontFaceSetEventMap[K])=>any,options?:boolean|EventListenerOptions):void;removeEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|EventListenerOptions):void;}declare var FontFaceSet:{prototype:FontFaceSet;new(initialFaces:FontFace[]):FontFaceSet;};interface FontFaceSetLoadEvent extends Event{readonly fontfaces:ReadonlyArray;}declare var FontFaceSetLoadEvent:{prototype:FontFaceSetLoadEvent;new(type:string,eventInitDict?:FontFaceSetLoadEventInit):FontFaceSetLoadEvent;};interface FontFaceSource{readonly fonts:FontFaceSet;}interface FormData{append(name:string,value:string|Blob,fileName?:string):void;delete(name:string):void;get(name:string):FormDataEntryValue|null;getAll(name:string):FormDataEntryValue[];has(name:string):boolean;set(name:string,value:string|Blob,fileName?:string):void;forEach(callbackfn:(value:FormDataEntryValue,key:string,parent:FormData)=>void,thisArg?:any):void;}declare var FormData:{prototype:FormData;new():FormData;};interface GenericTransformStream{readonly readable:ReadableStream;readonly writable:WritableStream;}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;};interface IDBCursor{readonly direction:IDBCursorDirection;readonly key:IDBValidKey;readonly primaryKey:IDBValidKey;readonly request:IDBRequest;readonly source:IDBObjectStore|IDBIndex;advance(count:number):void;continue(key?:IDBValidKey):void;continuePrimaryKey(key:IDBValidKey,primaryKey:IDBValidKey):void;delete():IDBRequest;update(value:any):IDBRequest;}declare var IDBCursor:{prototype:IDBCursor;new():IDBCursor;};interface IDBCursorWithValue extends IDBCursor{readonly value:any;}declare var IDBCursorWithValue:{prototype:IDBCursorWithValue;new():IDBCursorWithValue;};interface IDBDatabaseEventMap{"abort":Event;"close":Event;"error":Event;"versionchange":IDBVersionChangeEvent;}interface IDBDatabase extends EventTarget{readonly name:string;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;readonly version:number;close():void;createObjectStore(name:string,options?:IDBObjectStoreParameters):IDBObjectStore;deleteObjectStore(name:string):void;transaction(storeNames:string|string[],mode?:IDBTransactionMode,options?:IDBTransactionOptions):IDBTransaction;addEventListener(type:K,listener:(this:IDBDatabase,ev:IDBDatabaseEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(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 IDBFactory{cmp(first:any,second:any):number;databases():Promise;deleteDatabase(name:string):IDBOpenDBRequest;open(name:string,version?:number):IDBOpenDBRequest;}declare var IDBFactory:{prototype:IDBFactory;new():IDBFactory;};interface IDBIndex{readonly keyPath:string|string[];readonly multiEntry:boolean;name:string;readonly objectStore:IDBObjectStore;readonly unique:boolean;count(query?:IDBValidKey|IDBKeyRange):IDBRequest;get(query:IDBValidKey|IDBKeyRange):IDBRequest;getAll(query?:IDBValidKey|IDBKeyRange|null,count?:number):IDBRequest;getAllKeys(query?:IDBValidKey|IDBKeyRange|null,count?:number):IDBRequest;getKey(query:IDBValidKey|IDBKeyRange):IDBRequest;openCursor(query?:IDBValidKey|IDBKeyRange|null,direction?:IDBCursorDirection):IDBRequest;openKeyCursor(query?:IDBValidKey|IDBKeyRange|null,direction?:IDBCursorDirection):IDBRequest;}declare var IDBIndex:{prototype:IDBIndex;new():IDBIndex;};interface IDBKeyRange{readonly lower:any;readonly lowerOpen:boolean;readonly upper:any;readonly upperOpen:boolean;includes(key:any):boolean;}declare var IDBKeyRange:{prototype:IDBKeyRange;new():IDBKeyRange;bound(lower:any,upper:any,lowerOpen?:boolean,upperOpen?:boolean):IDBKeyRange;lowerBound(lower:any,open?:boolean):IDBKeyRange;only(value:any):IDBKeyRange;upperBound(upper:any,open?:boolean):IDBKeyRange;};interface IDBObjectStore{readonly autoIncrement:boolean;readonly indexNames:DOMStringList;readonly keyPath:string|string[];name:string;readonly transaction:IDBTransaction;add(value:any,key?:IDBValidKey):IDBRequest;clear():IDBRequest;count(query?:IDBValidKey|IDBKeyRange):IDBRequest;createIndex(name:string,keyPath:string|string[],options?:IDBIndexParameters):IDBIndex;delete(query:IDBValidKey|IDBKeyRange):IDBRequest;deleteIndex(name:string):void;get(query:IDBValidKey|IDBKeyRange):IDBRequest;getAll(query?:IDBValidKey|IDBKeyRange|null,count?:number):IDBRequest;getAllKeys(query?:IDBValidKey|IDBKeyRange|null,count?:number):IDBRequest;getKey(query:IDBValidKey|IDBKeyRange):IDBRequest;index(name:string):IDBIndex;openCursor(query?:IDBValidKey|IDBKeyRange|null,direction?:IDBCursorDirection):IDBRequest;openKeyCursor(query?:IDBValidKey|IDBKeyRange|null,direction?:IDBCursorDirection):IDBRequest;put(value:any,key?:IDBValidKey):IDBRequest;}declare var IDBObjectStore:{prototype:IDBObjectStore;new():IDBObjectStore;};interface IDBOpenDBRequestEventMap extends IDBRequestEventMap{"blocked":IDBVersionChangeEvent;"upgradeneeded":IDBVersionChangeEvent;}interface IDBOpenDBRequest extends IDBRequest{onblocked:((this:IDBOpenDBRequest,ev:IDBVersionChangeEvent)=>any)|null;onupgradeneeded:((this:IDBOpenDBRequest,ev:IDBVersionChangeEvent)=>any)|null;addEventListener(type:K,listener:(this:IDBOpenDBRequest,ev:IDBOpenDBRequestEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(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;}interface IDBRequestextends EventTarget{readonly error:DOMException|null;onerror:((this:IDBRequest,ev:Event)=>any)|null;onsuccess:((this:IDBRequest,ev:Event)=>any)|null;readonly readyState:IDBRequestReadyState;readonly result:T;readonly source:IDBObjectStore|IDBIndex|IDBCursor;readonly transaction:IDBTransaction|null;addEventListener(type:K,listener:(this:IDBRequest,ev:IDBRequestEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(type:K,listener:(this:IDBRequest,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{readonly db:IDBDatabase;readonly durability:IDBTransactionDurability;readonly error:DOMException|null;readonly mode:IDBTransactionMode;readonly objectStoreNames:DOMStringList;onabort:((this:IDBTransaction,ev:Event)=>any)|null;oncomplete:((this:IDBTransaction,ev:Event)=>any)|null;onerror:((this:IDBTransaction,ev:Event)=>any)|null;abort():void;commit():void;objectStore(name:string):IDBObjectStore;addEventListener(type:K,listener:(this:IDBTransaction,ev:IDBTransactionEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(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;};interface IDBVersionChangeEvent extends Event{readonly newVersion:number|null;readonly oldVersion:number;}declare var IDBVersionChangeEvent:{prototype:IDBVersionChangeEvent;new(type:string,eventInitDict?:IDBVersionChangeEventInit):IDBVersionChangeEvent;};interface ImageBitmap{readonly height:number;readonly width:number;close():void;}declare var ImageBitmap:{prototype:ImageBitmap;new():ImageBitmap;};interface ImageBitmapRenderingContext{transferFromImageBitmap(bitmap:ImageBitmap|null):void;}declare var ImageBitmapRenderingContext:{prototype:ImageBitmapRenderingContext;new():ImageBitmapRenderingContext;};interface ImageData{readonly colorSpace:PredefinedColorSpace;readonly data:Uint8ClampedArray;readonly height:number;readonly width:number;}declare var ImageData:{prototype:ImageData;new(sw:number,sh:number,settings?:ImageDataSettings):ImageData;new(data:Uint8ClampedArray,sw:number,sh?:number,settings?:ImageDataSettings):ImageData;};interface KHR_parallel_shader_compile{readonly COMPLETION_STATUS_KHR:GLenum;}interface Lock{readonly mode:LockMode;readonly name:string;}declare var Lock:{prototype:Lock;new():Lock;};interface LockManager{query():Promise;request(name:string,callback:LockGrantedCallback):Promise;request(name:string,options:LockOptions,callback:LockGrantedCallback):Promise;}declare var LockManager:{prototype:LockManager;new():LockManager;};interface MediaCapabilities{decodingInfo(configuration:MediaDecodingConfiguration):Promise;encodingInfo(configuration:MediaEncodingConfiguration):Promise;}declare var MediaCapabilities:{prototype:MediaCapabilities;new():MediaCapabilities;};interface MessageChannel{readonly port1:MessagePort;readonly port2:MessagePort;}declare var MessageChannel:{prototype:MessageChannel;new():MessageChannel;};interface MessageEventextends Event{readonly data:T;readonly lastEventId:string;readonly origin:string;readonly ports:ReadonlyArray;readonly source:MessageEventSource|null;initMessageEvent(type:string,bubbles?:boolean,cancelable?:boolean,data?:any,origin?:string,lastEventId?:string,source?:MessageEventSource|null,ports?:MessagePort[]):void;}declare var MessageEvent:{prototype:MessageEvent;new(type:string,eventInitDict?:MessageEventInit):MessageEvent;};interface MessagePortEventMap{"message":MessageEvent;"messageerror":MessageEvent;}interface MessagePort extends EventTarget{onmessage:((this:MessagePort,ev:MessageEvent)=>any)|null;onmessageerror:((this:MessagePort,ev:MessageEvent)=>any)|null;close():void;postMessage(message:any,transfer:Transferable[]):void;postMessage(message:any,options?:StructuredSerializeOptions):void;start():void;addEventListener(type:K,listener:(this:MessagePort,ev:MessagePortEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(type:K,listener:(this:MessagePort,ev:MessagePortEventMap[K])=>any,options?:boolean|EventListenerOptions):void;removeEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|EventListenerOptions):void;}declare var MessagePort:{prototype:MessagePort;new():MessagePort;};interface NavigationPreloadManager{disable():Promise;enable():Promise;getState():Promise;setHeaderValue(value:string):Promise;}declare var NavigationPreloadManager:{prototype:NavigationPreloadManager;new():NavigationPreloadManager;};interface NavigatorConcurrentHardware{readonly hardwareConcurrency:number;}interface NavigatorID{readonly appCodeName:string;readonly appName:string;readonly appVersion:string;readonly platform:string;readonly product:string;readonly userAgent:string;}interface NavigatorLanguage{readonly language:string;readonly languages:ReadonlyArray;}interface NavigatorLocks{readonly locks:LockManager;}interface NavigatorOnLine{readonly onLine:boolean;}interface NavigatorStorage{readonly storage:StorageManager;}interface NotificationEventMap{"click":Event;"close":Event;"error":Event;"show":Event;}interface Notification extends EventTarget{readonly body:string;readonly data:any;readonly dir:NotificationDirection;readonly icon:string;readonly lang:string;onclick:((this:Notification,ev:Event)=>any)|null;onclose:((this:Notification,ev:Event)=>any)|null;onerror:((this:Notification,ev:Event)=>any)|null;onshow:((this:Notification,ev:Event)=>any)|null;readonly tag:string;readonly title:string;close():void;addEventListener(type:K,listener:(this:Notification,ev:NotificationEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(type:K,listener:(this:Notification,ev:NotificationEventMap[K])=>any,options?:boolean|EventListenerOptions):void;removeEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|EventListenerOptions):void;}declare var Notification:{prototype:Notification;new(title:string,options?:NotificationOptions):Notification;readonly permission:NotificationPermission;};interface NotificationEvent extends ExtendableEvent{readonly action:string;readonly notification:Notification;}declare var NotificationEvent:{prototype:NotificationEvent;new(type:string,eventInitDict:NotificationEventInit):NotificationEvent;};interface OES_draw_buffers_indexed{blendEquationSeparateiOES(buf:GLuint,modeRGB:GLenum,modeAlpha:GLenum):void;blendEquationiOES(buf:GLuint,mode:GLenum):void;blendFuncSeparateiOES(buf:GLuint,srcRGB:GLenum,dstRGB:GLenum,srcAlpha:GLenum,dstAlpha:GLenum):void;blendFunciOES(buf:GLuint,src:GLenum,dst:GLenum):void;colorMaskiOES(buf:GLuint,r:GLboolean,g:GLboolean,b:GLboolean,a:GLboolean):void;disableiOES(target:GLenum,index:GLuint):void;enableiOES(target:GLenum,index:GLuint):void;}interface OES_element_index_uint{}interface OES_fbo_render_mipmap{}interface OES_standard_derivatives{readonly FRAGMENT_SHADER_DERIVATIVE_HINT_OES:GLenum;}interface OES_texture_float{}interface OES_texture_float_linear{}interface OES_texture_half_float{readonly HALF_FLOAT_OES:GLenum;}interface OES_texture_half_float_linear{}interface OES_vertex_array_object{bindVertexArrayOES(arrayObject:WebGLVertexArrayObjectOES|null):void;createVertexArrayOES():WebGLVertexArrayObjectOES|null;deleteVertexArrayOES(arrayObject:WebGLVertexArrayObjectOES|null):void;isVertexArrayOES(arrayObject:WebGLVertexArrayObjectOES|null):GLboolean;readonly VERTEX_ARRAY_BINDING_OES:GLenum;}interface OVR_multiview2{framebufferTextureMultiviewOVR(target:GLenum,attachment:GLenum,texture:WebGLTexture|null,level:GLint,baseViewIndex:GLint,numViews:GLsizei):void;readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_BASE_VIEW_INDEX_OVR:GLenum;readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_NUM_VIEWS_OVR:GLenum;readonly FRAMEBUFFER_INCOMPLETE_VIEW_TARGETS_OVR:GLenum;readonly MAX_VIEWS_OVR:GLenum;}interface OffscreenCanvasEventMap{"contextlost":Event;"contextrestored":Event;}interface OffscreenCanvas extends EventTarget{height:number;oncontextlost:((this:OffscreenCanvas,ev:Event)=>any)|null;oncontextrestored:((this:OffscreenCanvas,ev:Event)=>any)|null;width:number;getContext(contextId:OffscreenRenderingContextId,options?:any):OffscreenRenderingContext|null;transferToImageBitmap():ImageBitmap;addEventListener(type:K,listener:(this:OffscreenCanvas,ev:OffscreenCanvasEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(type:K,listener:(this:OffscreenCanvas,ev:OffscreenCanvasEventMap[K])=>any,options?:boolean|EventListenerOptions):void;removeEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|EventListenerOptions):void;}declare var OffscreenCanvas:{prototype:OffscreenCanvas;new(width:number,height:number):OffscreenCanvas;};interface OffscreenCanvasRenderingContext2D extends CanvasCompositing,CanvasDrawImage,CanvasDrawPath,CanvasFillStrokeStyles,CanvasFilters,CanvasImageData,CanvasImageSmoothing,CanvasPath,CanvasPathDrawingStyles,CanvasRect,CanvasShadowStyles,CanvasState,CanvasText,CanvasTextDrawingStyles,CanvasTransform{readonly canvas:OffscreenCanvas;commit():void;}declare var OffscreenCanvasRenderingContext2D:{prototype:OffscreenCanvasRenderingContext2D;new():OffscreenCanvasRenderingContext2D;};interface Path2D extends CanvasPath{addPath(path:Path2D,transform?:DOMMatrix2DInit):void;}declare var Path2D:{prototype:Path2D;new(path?:Path2D|string):Path2D;};interface PerformanceEventMap{"resourcetimingbufferfull":Event;}interface Performance extends EventTarget{onresourcetimingbufferfull:((this:Performance,ev:Event)=>any)|null;readonly timeOrigin:DOMHighResTimeStamp;clearMarks(markName?:string):void;clearMeasures(measureName?:string):void;clearResourceTimings():void;getEntries():PerformanceEntryList;getEntriesByName(name:string,type?:string):PerformanceEntryList;getEntriesByType(type:string):PerformanceEntryList;mark(markName:string,markOptions?:PerformanceMarkOptions):PerformanceMark;measure(measureName:string,startOrMeasureOptions?:string|PerformanceMeasureOptions,endMark?:string):PerformanceMeasure;now():DOMHighResTimeStamp;setResourceTimingBufferSize(maxSize:number):void;toJSON():any;addEventListener(type:K,listener:(this:Performance,ev:PerformanceEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(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;};interface PerformanceEntry{readonly duration:DOMHighResTimeStamp;readonly entryType:string;readonly name:string;readonly startTime:DOMHighResTimeStamp;toJSON():any;}declare var PerformanceEntry:{prototype:PerformanceEntry;new():PerformanceEntry;};interface PerformanceMark extends PerformanceEntry{readonly detail:any;}declare var PerformanceMark:{prototype:PerformanceMark;new(markName:string,markOptions?:PerformanceMarkOptions):PerformanceMark;};interface PerformanceMeasure extends PerformanceEntry{readonly detail:any;}declare var PerformanceMeasure:{prototype:PerformanceMeasure;new():PerformanceMeasure;};interface PerformanceObserver{disconnect():void;observe(options?:PerformanceObserverInit):void;takeRecords():PerformanceEntryList;}declare var PerformanceObserver:{prototype:PerformanceObserver;new(callback:PerformanceObserverCallback):PerformanceObserver;readonly supportedEntryTypes:ReadonlyArray;};interface PerformanceObserverEntryList{getEntries():PerformanceEntryList;getEntriesByName(name:string,type?:string):PerformanceEntryList;getEntriesByType(type:string):PerformanceEntryList;}declare var PerformanceObserverEntryList:{prototype:PerformanceObserverEntryList;new():PerformanceObserverEntryList;};interface PerformanceResourceTiming extends PerformanceEntry{readonly connectEnd:DOMHighResTimeStamp;readonly connectStart:DOMHighResTimeStamp;readonly decodedBodySize:number;readonly domainLookupEnd:DOMHighResTimeStamp;readonly domainLookupStart:DOMHighResTimeStamp;readonly encodedBodySize:number;readonly fetchStart:DOMHighResTimeStamp;readonly initiatorType:string;readonly nextHopProtocol:string;readonly redirectEnd:DOMHighResTimeStamp;readonly redirectStart:DOMHighResTimeStamp;readonly requestStart:DOMHighResTimeStamp;readonly responseEnd:DOMHighResTimeStamp;readonly responseStart:DOMHighResTimeStamp;readonly secureConnectionStart:DOMHighResTimeStamp;readonly serverTiming:ReadonlyArray;readonly transferSize:number;readonly workerStart:DOMHighResTimeStamp;toJSON():any;}declare var PerformanceResourceTiming:{prototype:PerformanceResourceTiming;new():PerformanceResourceTiming;};interface PerformanceServerTiming{readonly description:string;readonly duration:DOMHighResTimeStamp;readonly name:string;toJSON():any;}declare var PerformanceServerTiming:{prototype:PerformanceServerTiming;new():PerformanceServerTiming;};interface PermissionStatusEventMap{"change":Event;}interface PermissionStatus extends EventTarget{readonly name:string;onchange:((this:PermissionStatus,ev:Event)=>any)|null;readonly state:PermissionState;addEventListener(type:K,listener:(this:PermissionStatus,ev:PermissionStatusEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(type:K,listener:(this:PermissionStatus,ev:PermissionStatusEventMap[K])=>any,options?:boolean|EventListenerOptions):void;removeEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|EventListenerOptions):void;}declare var PermissionStatus:{prototype:PermissionStatus;new():PermissionStatus;};interface Permissions{query(permissionDesc:PermissionDescriptor):Promise;}declare var Permissions:{prototype:Permissions;new():Permissions;};interface ProgressEventextends 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;readonly reason:any;}declare var PromiseRejectionEvent:{prototype:PromiseRejectionEvent;new(type:string,eventInitDict:PromiseRejectionEventInit):PromiseRejectionEvent;};interface PushEvent extends ExtendableEvent{readonly data:PushMessageData|null;}declare var PushEvent:{prototype:PushEvent;new(type:string,eventInitDict?:PushEventInit):PushEvent;};interface PushManager{getSubscription():Promise;permissionState(options?:PushSubscriptionOptionsInit):Promise;subscribe(options?:PushSubscriptionOptionsInit):Promise;}declare var PushManager:{prototype:PushManager;new():PushManager;readonly supportedContentEncodings:ReadonlyArray;};interface PushMessageData{arrayBuffer():ArrayBuffer;blob():Blob;json():any;text():string;}declare var PushMessageData:{prototype:PushMessageData;new():PushMessageData;};interface PushSubscription{readonly endpoint:string;readonly expirationTime:EpochTimeStamp|null;readonly options:PushSubscriptionOptions;getKey(name:PushEncryptionKeyName):ArrayBuffer|null;toJSON():PushSubscriptionJSON;unsubscribe():Promise;}declare var PushSubscription:{prototype:PushSubscription;new():PushSubscription;};interface PushSubscriptionOptions{readonly applicationServerKey:ArrayBuffer|null;readonly userVisibleOnly:boolean;}declare var PushSubscriptionOptions:{prototype:PushSubscriptionOptions;new():PushSubscriptionOptions;};interface RTCEncodedAudioFrame{data:ArrayBuffer;readonly timestamp:number;getMetadata():RTCEncodedAudioFrameMetadata;}declare var RTCEncodedAudioFrame:{prototype:RTCEncodedAudioFrame;new():RTCEncodedAudioFrame;};interface RTCEncodedVideoFrame{data:ArrayBuffer;readonly timestamp:number;readonly type:RTCEncodedVideoFrameType;getMetadata():RTCEncodedVideoFrameMetadata;}declare var RTCEncodedVideoFrame:{prototype:RTCEncodedVideoFrame;new():RTCEncodedVideoFrame;};interface ReadableByteStreamController{readonly byobRequest:ReadableStreamBYOBRequest|null;readonly desiredSize:number|null;close():void;enqueue(chunk:ArrayBufferView):void;error(e?:any):void;}declare var ReadableByteStreamController:{prototype:ReadableByteStreamController;new():ReadableByteStreamController;};interface ReadableStream{readonly locked:boolean;cancel(reason?:any):Promise;getReader(options:{mode:"byob"}):ReadableStreamBYOBReader;getReader():ReadableStreamDefaultReader;getReader(options?:ReadableStreamGetReaderOptions):ReadableStreamReader;pipeThrough(transform:ReadableWritablePair,options?:StreamPipeOptions):ReadableStream;pipeTo(destination:WritableStream,options?:StreamPipeOptions):Promise;tee():[ReadableStream,ReadableStream];}declare var ReadableStream:{prototype:ReadableStream;new(underlyingSource:UnderlyingByteSource,strategy?:{highWaterMark?:number}):ReadableStream;new(underlyingSource:UnderlyingDefaultSource,strategy?:QueuingStrategy):ReadableStream;new(underlyingSource?:UnderlyingSource,strategy?:QueuingStrategy):ReadableStream;};interface ReadableStreamBYOBReader extends ReadableStreamGenericReader{read(view:T):Promise>;releaseLock():void;}declare var ReadableStreamBYOBReader:{prototype:ReadableStreamBYOBReader;new(stream:ReadableStream):ReadableStreamBYOBReader;};interface ReadableStreamBYOBRequest{readonly view:ArrayBufferView|null;respond(bytesWritten:number):void;respondWithNewView(view:ArrayBufferView):void;}declare var ReadableStreamBYOBRequest:{prototype:ReadableStreamBYOBRequest;new():ReadableStreamBYOBRequest;};interface ReadableStreamDefaultController{readonly desiredSize:number|null;close():void;enqueue(chunk?:R):void;error(e?:any):void;}declare var ReadableStreamDefaultController:{prototype:ReadableStreamDefaultController;new():ReadableStreamDefaultController;};interface ReadableStreamDefaultReaderextends ReadableStreamGenericReader{read():Promise>;releaseLock():void;}declare var ReadableStreamDefaultReader:{prototype:ReadableStreamDefaultReader;new(stream:ReadableStream):ReadableStreamDefaultReader;};interface ReadableStreamGenericReader{readonly closed:Promise;cancel(reason?:any):Promise;}interface Request extends Body{readonly cache:RequestCache;readonly credentials:RequestCredentials;readonly destination:RequestDestination;readonly headers:Headers;readonly integrity:string;readonly keepalive:boolean;readonly method:string;readonly mode:RequestMode;readonly redirect:RequestRedirect;readonly referrer:string;readonly referrerPolicy:ReferrerPolicy;readonly signal:AbortSignal;readonly url:string;clone():Request;}declare var Request:{prototype:Request;new(input:RequestInfo|URL,init?:RequestInit):Request;};interface Response extends Body{readonly headers:Headers;readonly ok:boolean;readonly redirected:boolean;readonly status:number;readonly statusText:string;readonly type:ResponseType;readonly url:string;clone():Response;}declare var Response:{prototype:Response;new(body?:BodyInit|null,init?:ResponseInit):Response;error():Response;redirect(url:string|URL,status?:number):Response;};interface SecurityPolicyViolationEvent extends Event{readonly blockedURI:string;readonly columnNumber:number;readonly disposition:SecurityPolicyViolationEventDisposition;readonly documentURI:string;readonly effectiveDirective:string;readonly lineNumber:number;readonly originalPolicy:string;readonly referrer:string;readonly sample:string;readonly sourceFile:string;readonly statusCode:number;readonly violatedDirective:string;}declare var SecurityPolicyViolationEvent:{prototype:SecurityPolicyViolationEvent;new(type:string,eventInitDict?:SecurityPolicyViolationEventInit):SecurityPolicyViolationEvent;};interface ServiceWorkerEventMap extends AbstractWorkerEventMap{"statechange":Event;}interface ServiceWorker extends EventTarget,AbstractWorker{onstatechange:((this:ServiceWorker,ev:Event)=>any)|null;readonly scriptURL:string;readonly state:ServiceWorkerState;postMessage(message:any,transfer:Transferable[]):void;postMessage(message:any,options?:StructuredSerializeOptions):void;addEventListener(type:K,listener:(this:ServiceWorker,ev:ServiceWorkerEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(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;}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;getRegistration(clientURL?:string|URL):Promise;getRegistrations():Promise>;register(scriptURL:string|URL,options?:RegistrationOptions):Promise;startMessages():void;addEventListener(type:K,listener:(this:ServiceWorkerContainer,ev:ServiceWorkerContainerEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(type:K,listener:(this:ServiceWorkerContainer,ev:ServiceWorkerContainerEventMap[K])=>any,options?:boolean|EventListenerOptions):void;removeEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|EventListenerOptions):void;}declare var ServiceWorkerContainer:{prototype:ServiceWorkerContainer;new():ServiceWorkerContainer;};interface ServiceWorkerGlobalScopeEventMap extends WorkerGlobalScopeEventMap{"activate":ExtendableEvent;"fetch":FetchEvent;"install":ExtendableEvent;"message":ExtendableMessageEvent;"messageerror":MessageEvent;"notificationclick":NotificationEvent;"notificationclose":NotificationEvent;"push":PushEvent;"pushsubscriptionchange":Event;}interface ServiceWorkerGlobalScope extends WorkerGlobalScope{readonly clients:Clients;onactivate:((this:ServiceWorkerGlobalScope,ev:ExtendableEvent)=>any)|null;onfetch:((this:ServiceWorkerGlobalScope,ev:FetchEvent)=>any)|null;oninstall:((this:ServiceWorkerGlobalScope,ev:ExtendableEvent)=>any)|null;onmessage:((this:ServiceWorkerGlobalScope,ev:ExtendableMessageEvent)=>any)|null;onmessageerror:((this:ServiceWorkerGlobalScope,ev:MessageEvent)=>any)|null;onnotificationclick:((this:ServiceWorkerGlobalScope,ev:NotificationEvent)=>any)|null;onnotificationclose:((this:ServiceWorkerGlobalScope,ev:NotificationEvent)=>any)|null;onpush:((this:ServiceWorkerGlobalScope,ev:PushEvent)=>any)|null;onpushsubscriptionchange:((this:ServiceWorkerGlobalScope,ev:Event)=>any)|null;readonly registration:ServiceWorkerRegistration;readonly serviceWorker:ServiceWorker;skipWaiting():Promise;addEventListener(type:K,listener:(this:ServiceWorkerGlobalScope,ev:ServiceWorkerGlobalScopeEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(type:K,listener:(this:ServiceWorkerGlobalScope,ev:ServiceWorkerGlobalScopeEventMap[K])=>any,options?:boolean|EventListenerOptions):void;removeEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|EventListenerOptions):void;}declare var ServiceWorkerGlobalScope:{prototype:ServiceWorkerGlobalScope;new():ServiceWorkerGlobalScope;};interface ServiceWorkerRegistrationEventMap{"updatefound":Event;}interface ServiceWorkerRegistration extends EventTarget{readonly active:ServiceWorker|null;readonly installing:ServiceWorker|null;readonly navigationPreload:NavigationPreloadManager;onupdatefound:((this:ServiceWorkerRegistration,ev:Event)=>any)|null;readonly pushManager:PushManager;readonly scope:string;readonly updateViaCache:ServiceWorkerUpdateViaCache;readonly waiting:ServiceWorker|null;getNotifications(filter?:GetNotificationOptions):Promise;showNotification(title:string,options?:NotificationOptions):Promise;unregister():Promise;update():Promise;addEventListener(type:K,listener:(this:ServiceWorkerRegistration,ev:ServiceWorkerRegistrationEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(type:K,listener:(this:ServiceWorkerRegistration,ev:ServiceWorkerRegistrationEventMap[K])=>any,options?:boolean|EventListenerOptions):void;removeEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|EventListenerOptions):void;}declare var ServiceWorkerRegistration:{prototype:ServiceWorkerRegistration;new():ServiceWorkerRegistration;};interface SharedWorkerGlobalScopeEventMap extends WorkerGlobalScopeEventMap{"connect":MessageEvent;}interface SharedWorkerGlobalScope extends WorkerGlobalScope{readonly name:string;onconnect:((this:SharedWorkerGlobalScope,ev:MessageEvent)=>any)|null;close():void;addEventListener(type:K,listener:(this:SharedWorkerGlobalScope,ev:SharedWorkerGlobalScopeEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(type:K,listener:(this:SharedWorkerGlobalScope,ev:SharedWorkerGlobalScopeEventMap[K])=>any,options?:boolean|EventListenerOptions):void;removeEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|EventListenerOptions):void;}declare var SharedWorkerGlobalScope:{prototype:SharedWorkerGlobalScope;new():SharedWorkerGlobalScope;};interface StorageManager{estimate():Promise;getDirectory():Promise;persisted():Promise;}declare var StorageManager:{prototype:StorageManager;new():StorageManager;};interface SubtleCrypto{decrypt(algorithm:AlgorithmIdentifier|RsaOaepParams|AesCtrParams|AesCbcParams|AesGcmParams,key:CryptoKey,data:BufferSource):Promise;deriveBits(algorithm:AlgorithmIdentifier|EcdhKeyDeriveParams|HkdfParams|Pbkdf2Params,baseKey:CryptoKey,length:number):Promise;deriveKey(algorithm:AlgorithmIdentifier|EcdhKeyDeriveParams|HkdfParams|Pbkdf2Params,baseKey:CryptoKey,derivedKeyType:AlgorithmIdentifier|AesDerivedKeyParams|HmacImportParams|HkdfParams|Pbkdf2Params,extractable:boolean,keyUsages:KeyUsage[]):Promise;digest(algorithm:AlgorithmIdentifier,data:BufferSource):Promise;encrypt(algorithm:AlgorithmIdentifier|RsaOaepParams|AesCtrParams|AesCbcParams|AesGcmParams,key:CryptoKey,data:BufferSource):Promise;exportKey(format:"jwk",key:CryptoKey):Promise;exportKey(format:Exclude,key:CryptoKey):Promise;generateKey(algorithm:RsaHashedKeyGenParams|EcKeyGenParams,extractable:boolean,keyUsages:ReadonlyArray):Promise;generateKey(algorithm:AesKeyGenParams|HmacKeyGenParams|Pbkdf2Params,extractable:boolean,keyUsages:ReadonlyArray):Promise;generateKey(algorithm:AlgorithmIdentifier,extractable:boolean,keyUsages:KeyUsage[]):Promise;importKey(format:"jwk",keyData:JsonWebKey,algorithm:AlgorithmIdentifier|RsaHashedImportParams|EcKeyImportParams|HmacImportParams|AesKeyAlgorithm,extractable:boolean,keyUsages:ReadonlyArray):Promise;importKey(format:Exclude,keyData:BufferSource,algorithm:AlgorithmIdentifier|RsaHashedImportParams|EcKeyImportParams|HmacImportParams|AesKeyAlgorithm,extractable:boolean,keyUsages:KeyUsage[]):Promise;sign(algorithm:AlgorithmIdentifier|RsaPssParams|EcdsaParams,key:CryptoKey,data:BufferSource):Promise;unwrapKey(format:KeyFormat,wrappedKey:BufferSource,unwrappingKey:CryptoKey,unwrapAlgorithm:AlgorithmIdentifier|RsaOaepParams|AesCtrParams|AesCbcParams|AesGcmParams,unwrappedKeyAlgorithm:AlgorithmIdentifier|RsaHashedImportParams|EcKeyImportParams|HmacImportParams|AesKeyAlgorithm,extractable:boolean,keyUsages:KeyUsage[]):Promise;verify(algorithm:AlgorithmIdentifier|RsaPssParams|EcdsaParams,key:CryptoKey,signature:BufferSource,data:BufferSource):Promise;wrapKey(format:KeyFormat,key:CryptoKey,wrappingKey:CryptoKey,wrapAlgorithm:AlgorithmIdentifier|RsaOaepParams|AesCtrParams|AesCbcParams|AesGcmParams):Promise;}declare var SubtleCrypto:{prototype:SubtleCrypto;new():SubtleCrypto;};interface TextDecoder extends TextDecoderCommon{decode(input?:BufferSource,options?:TextDecodeOptions):string;}declare var TextDecoder:{prototype:TextDecoder;new(label?:string,options?:TextDecoderOptions):TextDecoder;};interface TextDecoderCommon{readonly encoding:string;readonly fatal:boolean;readonly ignoreBOM:boolean;}interface TextDecoderStream extends GenericTransformStream,TextDecoderCommon{readonly readable:ReadableStream;readonly writable:WritableStream;}declare var TextDecoderStream:{prototype:TextDecoderStream;new(label?:string,options?:TextDecoderOptions):TextDecoderStream;};interface TextEncoder extends TextEncoderCommon{encode(input?:string):Uint8Array;encodeInto(source:string,destination:Uint8Array):TextEncoderEncodeIntoResult;}declare var TextEncoder:{prototype:TextEncoder;new():TextEncoder;};interface TextEncoderCommon{readonly encoding:string;}interface TextEncoderStream extends GenericTransformStream,TextEncoderCommon{readonly readable:ReadableStream;readonly writable:WritableStream;}declare var TextEncoderStream:{prototype:TextEncoderStream;new():TextEncoderStream;};interface TextMetrics{readonly actualBoundingBoxAscent:number;readonly actualBoundingBoxDescent:number;readonly actualBoundingBoxLeft:number;readonly actualBoundingBoxRight:number;readonly fontBoundingBoxAscent:number;readonly fontBoundingBoxDescent:number;readonly width:number;}declare var TextMetrics:{prototype:TextMetrics;new():TextMetrics;};interface TransformStream{readonly readable:ReadableStream;readonly writable:WritableStream;}declare var TransformStream:{prototype:TransformStream;new(transformer?:Transformer,writableStrategy?:QueuingStrategy,readableStrategy?:QueuingStrategy):TransformStream;};interface TransformStreamDefaultController{readonly desiredSize:number|null;enqueue(chunk?:O):void;error(reason?:any):void;terminate():void;}declare var TransformStreamDefaultController:{prototype:TransformStreamDefaultController;new():TransformStreamDefaultController;};interface URL{hash:string;host:string;hostname:string;href:string;toString():string;readonly origin:string;password:string;pathname:string;port:string;protocol:string;search:string;readonly searchParams:URLSearchParams;username:string;toJSON():string;}declare var URL:{prototype:URL;new(url:string|URL,base?:string|URL):URL;createObjectURL(obj:Blob):string;revokeObjectURL(url:string):void;};interface URLSearchParams{append(name:string,value:string):void;delete(name:string):void;get(name:string):string|null;getAll(name:string):string[];has(name:string):boolean;set(name:string,value:string):void;sort():void;toString():string;forEach(callbackfn:(value:string,key:string,parent:URLSearchParams)=>void,thisArg?:any):void;}declare var URLSearchParams:{prototype:URLSearchParams;new(init?:string[][]|Record|string|URLSearchParams):URLSearchParams;toString():string;};interface VideoColorSpace{readonly fullRange:boolean|null;readonly matrix:VideoMatrixCoefficients|null;readonly primaries:VideoColorPrimaries|null;readonly transfer:VideoTransferCharacteristics|null;toJSON():VideoColorSpaceInit;}declare var VideoColorSpace:{prototype:VideoColorSpace;new(init?:VideoColorSpaceInit):VideoColorSpace;};interface WEBGL_color_buffer_float{readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT:GLenum;readonly RGBA32F_EXT:GLenum;readonly UNSIGNED_NORMALIZED_EXT:GLenum;}interface WEBGL_compressed_texture_astc{getSupportedProfiles():string[];readonly COMPRESSED_RGBA_ASTC_10x10_KHR:GLenum;readonly COMPRESSED_RGBA_ASTC_10x5_KHR:GLenum;readonly COMPRESSED_RGBA_ASTC_10x6_KHR:GLenum;readonly COMPRESSED_RGBA_ASTC_10x8_KHR:GLenum;readonly COMPRESSED_RGBA_ASTC_12x10_KHR:GLenum;readonly COMPRESSED_RGBA_ASTC_12x12_KHR:GLenum;readonly COMPRESSED_RGBA_ASTC_4x4_KHR:GLenum;readonly COMPRESSED_RGBA_ASTC_5x4_KHR:GLenum;readonly COMPRESSED_RGBA_ASTC_5x5_KHR:GLenum;readonly COMPRESSED_RGBA_ASTC_6x5_KHR:GLenum;readonly COMPRESSED_RGBA_ASTC_6x6_KHR:GLenum;readonly COMPRESSED_RGBA_ASTC_8x5_KHR:GLenum;readonly COMPRESSED_RGBA_ASTC_8x6_KHR:GLenum;readonly COMPRESSED_RGBA_ASTC_8x8_KHR:GLenum;readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR:GLenum;readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR:GLenum;readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR:GLenum;readonly COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR:GLenum;readonly COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR:GLenum;readonly COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR:GLenum;readonly COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR:GLenum;readonly COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR:GLenum;readonly COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR:GLenum;readonly COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR:GLenum;readonly COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR:GLenum;readonly COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR:GLenum;readonly COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR:GLenum;readonly COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR:GLenum;}interface WEBGL_compressed_texture_etc{readonly COMPRESSED_R11_EAC:GLenum;readonly COMPRESSED_RG11_EAC:GLenum;readonly COMPRESSED_RGB8_ETC2:GLenum;readonly COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2:GLenum;readonly COMPRESSED_RGBA8_ETC2_EAC:GLenum;readonly COMPRESSED_SIGNED_R11_EAC:GLenum;readonly COMPRESSED_SIGNED_RG11_EAC:GLenum;readonly COMPRESSED_SRGB8_ALPHA8_ETC2_EAC:GLenum;readonly COMPRESSED_SRGB8_ETC2:GLenum;readonly COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2:GLenum;}interface WEBGL_compressed_texture_etc1{readonly COMPRESSED_RGB_ETC1_WEBGL:GLenum;}interface WEBGL_compressed_texture_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;}interface WEBGL_debug_renderer_info{readonly UNMASKED_RENDERER_WEBGL:GLenum;readonly UNMASKED_VENDOR_WEBGL:GLenum;}interface WEBGL_debug_shaders{getTranslatedShaderSource(shader:WebGLShader):string;}interface WEBGL_depth_texture{readonly UNSIGNED_INT_24_8_WEBGL:GLenum;}interface WEBGL_draw_buffers{drawBuffersWEBGL(buffers:GLenum[]):void;readonly COLOR_ATTACHMENT0_WEBGL:GLenum;readonly COLOR_ATTACHMENT10_WEBGL:GLenum;readonly COLOR_ATTACHMENT11_WEBGL:GLenum;readonly COLOR_ATTACHMENT12_WEBGL:GLenum;readonly COLOR_ATTACHMENT13_WEBGL:GLenum;readonly COLOR_ATTACHMENT14_WEBGL:GLenum;readonly COLOR_ATTACHMENT15_WEBGL:GLenum;readonly COLOR_ATTACHMENT1_WEBGL:GLenum;readonly COLOR_ATTACHMENT2_WEBGL:GLenum;readonly COLOR_ATTACHMENT3_WEBGL:GLenum;readonly COLOR_ATTACHMENT4_WEBGL:GLenum;readonly COLOR_ATTACHMENT5_WEBGL:GLenum;readonly COLOR_ATTACHMENT6_WEBGL:GLenum;readonly COLOR_ATTACHMENT7_WEBGL:GLenum;readonly COLOR_ATTACHMENT8_WEBGL:GLenum;readonly COLOR_ATTACHMENT9_WEBGL:GLenum;readonly DRAW_BUFFER0_WEBGL:GLenum;readonly DRAW_BUFFER10_WEBGL:GLenum;readonly DRAW_BUFFER11_WEBGL:GLenum;readonly DRAW_BUFFER12_WEBGL:GLenum;readonly DRAW_BUFFER13_WEBGL:GLenum;readonly DRAW_BUFFER14_WEBGL:GLenum;readonly DRAW_BUFFER15_WEBGL:GLenum;readonly DRAW_BUFFER1_WEBGL:GLenum;readonly DRAW_BUFFER2_WEBGL:GLenum;readonly DRAW_BUFFER3_WEBGL:GLenum;readonly DRAW_BUFFER4_WEBGL:GLenum;readonly DRAW_BUFFER5_WEBGL:GLenum;readonly DRAW_BUFFER6_WEBGL:GLenum;readonly DRAW_BUFFER7_WEBGL:GLenum;readonly DRAW_BUFFER8_WEBGL:GLenum;readonly DRAW_BUFFER9_WEBGL:GLenum;readonly MAX_COLOR_ATTACHMENTS_WEBGL:GLenum;readonly MAX_DRAW_BUFFERS_WEBGL:GLenum;}interface WEBGL_lose_context{loseContext():void;restoreContext():void;}interface WEBGL_multi_draw{multiDrawArraysInstancedWEBGL(mode:GLenum,firstsList:Int32Array|GLint[],firstsOffset:GLuint,countsList:Int32Array|GLsizei[],countsOffset:GLuint,instanceCountsList:Int32Array|GLsizei[],instanceCountsOffset:GLuint,drawcount:GLsizei):void;multiDrawArraysWEBGL(mode:GLenum,firstsList:Int32Array|GLint[],firstsOffset:GLuint,countsList:Int32Array|GLsizei[],countsOffset:GLuint,drawcount:GLsizei):void;multiDrawElementsInstancedWEBGL(mode:GLenum,countsList:Int32Array|GLsizei[],countsOffset:GLuint,type:GLenum,offsetsList:Int32Array|GLsizei[],offsetsOffset:GLuint,instanceCountsList:Int32Array|GLsizei[],instanceCountsOffset:GLuint,drawcount:GLsizei):void;multiDrawElementsWEBGL(mode:GLenum,countsList:Int32Array|GLsizei[],countsOffset:GLuint,type:GLenum,offsetsList:Int32Array|GLsizei[],offsetsOffset:GLuint,drawcount:GLsizei):void;}interface WebGL2RenderingContext extends WebGL2RenderingContextBase,WebGL2RenderingContextOverloads,WebGLRenderingContextBase{}declare var WebGL2RenderingContext:{prototype:WebGL2RenderingContext;new():WebGL2RenderingContext;readonly ACTIVE_UNIFORM_BLOCKS:GLenum;readonly ALREADY_SIGNALED:GLenum;readonly ANY_SAMPLES_PASSED:GLenum;readonly ANY_SAMPLES_PASSED_CONSERVATIVE:GLenum;readonly COLOR:GLenum;readonly COLOR_ATTACHMENT1:GLenum;readonly COLOR_ATTACHMENT10:GLenum;readonly COLOR_ATTACHMENT11:GLenum;readonly COLOR_ATTACHMENT12:GLenum;readonly COLOR_ATTACHMENT13:GLenum;readonly COLOR_ATTACHMENT14:GLenum;readonly COLOR_ATTACHMENT15:GLenum;readonly COLOR_ATTACHMENT2:GLenum;readonly COLOR_ATTACHMENT3:GLenum;readonly COLOR_ATTACHMENT4:GLenum;readonly COLOR_ATTACHMENT5:GLenum;readonly COLOR_ATTACHMENT6:GLenum;readonly COLOR_ATTACHMENT7:GLenum;readonly COLOR_ATTACHMENT8:GLenum;readonly COLOR_ATTACHMENT9:GLenum;readonly COMPARE_REF_TO_TEXTURE:GLenum;readonly CONDITION_SATISFIED:GLenum;readonly COPY_READ_BUFFER:GLenum;readonly COPY_READ_BUFFER_BINDING:GLenum;readonly COPY_WRITE_BUFFER:GLenum;readonly COPY_WRITE_BUFFER_BINDING:GLenum;readonly CURRENT_QUERY:GLenum;readonly DEPTH:GLenum;readonly DEPTH24_STENCIL8:GLenum;readonly DEPTH32F_STENCIL8:GLenum;readonly DEPTH_COMPONENT24:GLenum;readonly DEPTH_COMPONENT32F:GLenum;readonly DRAW_BUFFER0:GLenum;readonly DRAW_BUFFER1:GLenum;readonly DRAW_BUFFER10:GLenum;readonly DRAW_BUFFER11:GLenum;readonly DRAW_BUFFER12:GLenum;readonly DRAW_BUFFER13:GLenum;readonly DRAW_BUFFER14:GLenum;readonly DRAW_BUFFER15:GLenum;readonly DRAW_BUFFER2:GLenum;readonly DRAW_BUFFER3:GLenum;readonly DRAW_BUFFER4:GLenum;readonly DRAW_BUFFER5:GLenum;readonly DRAW_BUFFER6:GLenum;readonly DRAW_BUFFER7:GLenum;readonly DRAW_BUFFER8:GLenum;readonly DRAW_BUFFER9:GLenum;readonly DRAW_FRAMEBUFFER:GLenum;readonly DRAW_FRAMEBUFFER_BINDING:GLenum;readonly DYNAMIC_COPY:GLenum;readonly DYNAMIC_READ:GLenum;readonly FLOAT_32_UNSIGNED_INT_24_8_REV:GLenum;readonly FLOAT_MAT2x3:GLenum;readonly FLOAT_MAT2x4:GLenum;readonly FLOAT_MAT3x2:GLenum;readonly FLOAT_MAT3x4:GLenum;readonly FLOAT_MAT4x2:GLenum;readonly FLOAT_MAT4x3:GLenum;readonly FRAGMENT_SHADER_DERIVATIVE_HINT:GLenum;readonly FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE:GLenum;readonly FRAMEBUFFER_ATTACHMENT_BLUE_SIZE:GLenum;readonly FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING:GLenum;readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE:GLenum;readonly FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE:GLenum;readonly FRAMEBUFFER_ATTACHMENT_GREEN_SIZE:GLenum;readonly FRAMEBUFFER_ATTACHMENT_RED_SIZE:GLenum;readonly FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE:GLenum;readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER:GLenum;readonly FRAMEBUFFER_DEFAULT:GLenum;readonly FRAMEBUFFER_INCOMPLETE_MULTISAMPLE:GLenum;readonly HALF_FLOAT:GLenum;readonly INTERLEAVED_ATTRIBS:GLenum;readonly INT_2_10_10_10_REV:GLenum;readonly INT_SAMPLER_2D:GLenum;readonly INT_SAMPLER_2D_ARRAY:GLenum;readonly INT_SAMPLER_3D:GLenum;readonly INT_SAMPLER_CUBE:GLenum;readonly INVALID_INDEX:GLenum;readonly MAX:GLenum;readonly MAX_3D_TEXTURE_SIZE:GLenum;readonly MAX_ARRAY_TEXTURE_LAYERS:GLenum;readonly MAX_CLIENT_WAIT_TIMEOUT_WEBGL:GLenum;readonly MAX_COLOR_ATTACHMENTS:GLenum;readonly MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS:GLenum;readonly MAX_COMBINED_UNIFORM_BLOCKS:GLenum;readonly MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS:GLenum;readonly MAX_DRAW_BUFFERS:GLenum;readonly MAX_ELEMENTS_INDICES:GLenum;readonly MAX_ELEMENTS_VERTICES:GLenum;readonly MAX_ELEMENT_INDEX:GLenum;readonly MAX_FRAGMENT_INPUT_COMPONENTS:GLenum;readonly MAX_FRAGMENT_UNIFORM_BLOCKS:GLenum;readonly MAX_FRAGMENT_UNIFORM_COMPONENTS:GLenum;readonly MAX_PROGRAM_TEXEL_OFFSET:GLenum;readonly MAX_SAMPLES:GLenum;readonly MAX_SERVER_WAIT_TIMEOUT:GLenum;readonly MAX_TEXTURE_LOD_BIAS:GLenum;readonly MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS:GLenum;readonly MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS:GLenum;readonly MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS:GLenum;readonly MAX_UNIFORM_BLOCK_SIZE:GLenum;readonly MAX_UNIFORM_BUFFER_BINDINGS:GLenum;readonly MAX_VARYING_COMPONENTS:GLenum;readonly MAX_VERTEX_OUTPUT_COMPONENTS:GLenum;readonly MAX_VERTEX_UNIFORM_BLOCKS:GLenum;readonly MAX_VERTEX_UNIFORM_COMPONENTS:GLenum;readonly MIN:GLenum;readonly MIN_PROGRAM_TEXEL_OFFSET:GLenum;readonly OBJECT_TYPE:GLenum;readonly PACK_ROW_LENGTH:GLenum;readonly PACK_SKIP_PIXELS:GLenum;readonly PACK_SKIP_ROWS:GLenum;readonly PIXEL_PACK_BUFFER:GLenum;readonly PIXEL_PACK_BUFFER_BINDING:GLenum;readonly PIXEL_UNPACK_BUFFER:GLenum;readonly PIXEL_UNPACK_BUFFER_BINDING:GLenum;readonly QUERY_RESULT:GLenum;readonly QUERY_RESULT_AVAILABLE:GLenum;readonly R11F_G11F_B10F:GLenum;readonly R16F:GLenum;readonly R16I:GLenum;readonly R16UI:GLenum;readonly R32F:GLenum;readonly R32I:GLenum;readonly R32UI:GLenum;readonly R8:GLenum;readonly R8I:GLenum;readonly R8UI:GLenum;readonly R8_SNORM:GLenum;readonly RASTERIZER_DISCARD:GLenum;readonly READ_BUFFER:GLenum;readonly READ_FRAMEBUFFER:GLenum;readonly READ_FRAMEBUFFER_BINDING:GLenum;readonly RED:GLenum;readonly RED_INTEGER:GLenum;readonly RENDERBUFFER_SAMPLES:GLenum;readonly RG:GLenum;readonly RG16F:GLenum;readonly RG16I:GLenum;readonly RG16UI:GLenum;readonly RG32F:GLenum;readonly RG32I:GLenum;readonly RG32UI:GLenum;readonly RG8:GLenum;readonly RG8I:GLenum;readonly RG8UI:GLenum;readonly RG8_SNORM:GLenum;readonly RGB10_A2:GLenum;readonly RGB10_A2UI:GLenum;readonly RGB16F:GLenum;readonly RGB16I:GLenum;readonly RGB16UI:GLenum;readonly RGB32F:GLenum;readonly RGB32I:GLenum;readonly RGB32UI:GLenum;readonly RGB8:GLenum;readonly RGB8I:GLenum;readonly RGB8UI:GLenum;readonly RGB8_SNORM:GLenum;readonly RGB9_E5:GLenum;readonly RGBA16F:GLenum;readonly RGBA16I:GLenum;readonly RGBA16UI:GLenum;readonly RGBA32F:GLenum;readonly RGBA32I:GLenum;readonly RGBA32UI:GLenum;readonly RGBA8:GLenum;readonly RGBA8I:GLenum;readonly RGBA8UI:GLenum;readonly RGBA8_SNORM:GLenum;readonly RGBA_INTEGER:GLenum;readonly RGB_INTEGER:GLenum;readonly RG_INTEGER:GLenum;readonly SAMPLER_2D_ARRAY:GLenum;readonly SAMPLER_2D_ARRAY_SHADOW:GLenum;readonly SAMPLER_2D_SHADOW:GLenum;readonly SAMPLER_3D:GLenum;readonly SAMPLER_BINDING:GLenum;readonly SAMPLER_CUBE_SHADOW:GLenum;readonly SEPARATE_ATTRIBS:GLenum;readonly SIGNALED:GLenum;readonly SIGNED_NORMALIZED:GLenum;readonly SRGB:GLenum;readonly SRGB8:GLenum;readonly SRGB8_ALPHA8:GLenum;readonly STATIC_COPY:GLenum;readonly STATIC_READ:GLenum;readonly STENCIL:GLenum;readonly STREAM_COPY:GLenum;readonly STREAM_READ:GLenum;readonly SYNC_CONDITION:GLenum;readonly SYNC_FENCE:GLenum;readonly SYNC_FLAGS:GLenum;readonly SYNC_FLUSH_COMMANDS_BIT:GLenum;readonly SYNC_GPU_COMMANDS_COMPLETE:GLenum;readonly SYNC_STATUS:GLenum;readonly TEXTURE_2D_ARRAY:GLenum;readonly TEXTURE_3D:GLenum;readonly TEXTURE_BASE_LEVEL:GLenum;readonly TEXTURE_BINDING_2D_ARRAY:GLenum;readonly TEXTURE_BINDING_3D:GLenum;readonly TEXTURE_COMPARE_FUNC:GLenum;readonly TEXTURE_COMPARE_MODE:GLenum;readonly TEXTURE_IMMUTABLE_FORMAT:GLenum;readonly TEXTURE_IMMUTABLE_LEVELS:GLenum;readonly TEXTURE_MAX_LEVEL:GLenum;readonly TEXTURE_MAX_LOD:GLenum;readonly TEXTURE_MIN_LOD:GLenum;readonly TEXTURE_WRAP_R:GLenum;readonly TIMEOUT_EXPIRED:GLenum;readonly TIMEOUT_IGNORED:GLint64;readonly TRANSFORM_FEEDBACK:GLenum;readonly TRANSFORM_FEEDBACK_ACTIVE:GLenum;readonly TRANSFORM_FEEDBACK_BINDING:GLenum;readonly TRANSFORM_FEEDBACK_BUFFER:GLenum;readonly TRANSFORM_FEEDBACK_BUFFER_BINDING:GLenum;readonly TRANSFORM_FEEDBACK_BUFFER_MODE:GLenum;readonly TRANSFORM_FEEDBACK_BUFFER_SIZE:GLenum;readonly TRANSFORM_FEEDBACK_BUFFER_START:GLenum;readonly TRANSFORM_FEEDBACK_PAUSED:GLenum;readonly TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN:GLenum;readonly TRANSFORM_FEEDBACK_VARYINGS:GLenum;readonly UNIFORM_ARRAY_STRIDE:GLenum;readonly UNIFORM_BLOCK_ACTIVE_UNIFORMS:GLenum;readonly UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES:GLenum;readonly UNIFORM_BLOCK_BINDING:GLenum;readonly UNIFORM_BLOCK_DATA_SIZE:GLenum;readonly UNIFORM_BLOCK_INDEX:GLenum;readonly UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER:GLenum;readonly UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER:GLenum;readonly UNIFORM_BUFFER:GLenum;readonly UNIFORM_BUFFER_BINDING:GLenum;readonly UNIFORM_BUFFER_OFFSET_ALIGNMENT:GLenum;readonly UNIFORM_BUFFER_SIZE:GLenum;readonly UNIFORM_BUFFER_START:GLenum;readonly UNIFORM_IS_ROW_MAJOR:GLenum;readonly UNIFORM_MATRIX_STRIDE:GLenum;readonly UNIFORM_OFFSET:GLenum;readonly UNIFORM_SIZE:GLenum;readonly UNIFORM_TYPE:GLenum;readonly UNPACK_IMAGE_HEIGHT:GLenum;readonly UNPACK_ROW_LENGTH:GLenum;readonly UNPACK_SKIP_IMAGES:GLenum;readonly UNPACK_SKIP_PIXELS:GLenum;readonly UNPACK_SKIP_ROWS:GLenum;readonly UNSIGNALED:GLenum;readonly UNSIGNED_INT_10F_11F_11F_REV:GLenum;readonly UNSIGNED_INT_24_8:GLenum;readonly UNSIGNED_INT_2_10_10_10_REV:GLenum;readonly UNSIGNED_INT_5_9_9_9_REV:GLenum;readonly UNSIGNED_INT_SAMPLER_2D:GLenum;readonly UNSIGNED_INT_SAMPLER_2D_ARRAY:GLenum;readonly UNSIGNED_INT_SAMPLER_3D:GLenum;readonly UNSIGNED_INT_SAMPLER_CUBE:GLenum;readonly UNSIGNED_INT_VEC2:GLenum;readonly UNSIGNED_INT_VEC3:GLenum;readonly UNSIGNED_INT_VEC4:GLenum;readonly UNSIGNED_NORMALIZED:GLenum;readonly VERTEX_ARRAY_BINDING:GLenum;readonly VERTEX_ATTRIB_ARRAY_DIVISOR:GLenum;readonly VERTEX_ATTRIB_ARRAY_INTEGER:GLenum;readonly WAIT_FAILED:GLenum;readonly ACTIVE_ATTRIBUTES:GLenum;readonly ACTIVE_TEXTURE:GLenum;readonly ACTIVE_UNIFORMS:GLenum;readonly ALIASED_LINE_WIDTH_RANGE:GLenum;readonly ALIASED_POINT_SIZE_RANGE:GLenum;readonly ALPHA:GLenum;readonly ALPHA_BITS:GLenum;readonly ALWAYS:GLenum;readonly ARRAY_BUFFER:GLenum;readonly ARRAY_BUFFER_BINDING:GLenum;readonly ATTACHED_SHADERS:GLenum;readonly BACK:GLenum;readonly BLEND:GLenum;readonly BLEND_COLOR:GLenum;readonly BLEND_DST_ALPHA:GLenum;readonly BLEND_DST_RGB:GLenum;readonly BLEND_EQUATION:GLenum;readonly BLEND_EQUATION_ALPHA:GLenum;readonly BLEND_EQUATION_RGB:GLenum;readonly BLEND_SRC_ALPHA:GLenum;readonly BLEND_SRC_RGB:GLenum;readonly BLUE_BITS:GLenum;readonly BOOL:GLenum;readonly BOOL_VEC2:GLenum;readonly BOOL_VEC3:GLenum;readonly BOOL_VEC4:GLenum;readonly BROWSER_DEFAULT_WEBGL:GLenum;readonly BUFFER_SIZE:GLenum;readonly BUFFER_USAGE:GLenum;readonly BYTE:GLenum;readonly CCW:GLenum;readonly CLAMP_TO_EDGE:GLenum;readonly COLOR_ATTACHMENT0:GLenum;readonly COLOR_BUFFER_BIT:GLenum;readonly COLOR_CLEAR_VALUE:GLenum;readonly COLOR_WRITEMASK:GLenum;readonly COMPILE_STATUS:GLenum;readonly COMPRESSED_TEXTURE_FORMATS:GLenum;readonly CONSTANT_ALPHA:GLenum;readonly CONSTANT_COLOR:GLenum;readonly CONTEXT_LOST_WEBGL:GLenum;readonly CULL_FACE:GLenum;readonly CULL_FACE_MODE:GLenum;readonly CURRENT_PROGRAM:GLenum;readonly CURRENT_VERTEX_ATTRIB:GLenum;readonly CW:GLenum;readonly DECR:GLenum;readonly DECR_WRAP:GLenum;readonly DELETE_STATUS:GLenum;readonly DEPTH_ATTACHMENT:GLenum;readonly DEPTH_BITS:GLenum;readonly DEPTH_BUFFER_BIT:GLenum;readonly DEPTH_CLEAR_VALUE:GLenum;readonly DEPTH_COMPONENT:GLenum;readonly DEPTH_COMPONENT16:GLenum;readonly DEPTH_FUNC:GLenum;readonly DEPTH_RANGE:GLenum;readonly DEPTH_STENCIL:GLenum;readonly DEPTH_STENCIL_ATTACHMENT:GLenum;readonly DEPTH_TEST:GLenum;readonly DEPTH_WRITEMASK:GLenum;readonly DITHER:GLenum;readonly DONT_CARE:GLenum;readonly DST_ALPHA:GLenum;readonly DST_COLOR:GLenum;readonly DYNAMIC_DRAW:GLenum;readonly ELEMENT_ARRAY_BUFFER:GLenum;readonly ELEMENT_ARRAY_BUFFER_BINDING:GLenum;readonly EQUAL:GLenum;readonly FASTEST:GLenum;readonly FLOAT:GLenum;readonly FLOAT_MAT2:GLenum;readonly FLOAT_MAT3:GLenum;readonly FLOAT_MAT4:GLenum;readonly FLOAT_VEC2:GLenum;readonly FLOAT_VEC3:GLenum;readonly FLOAT_VEC4:GLenum;readonly FRAGMENT_SHADER:GLenum;readonly FRAMEBUFFER:GLenum;readonly FRAMEBUFFER_ATTACHMENT_OBJECT_NAME:GLenum;readonly FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE:GLenum;readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE:GLenum;readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL:GLenum;readonly FRAMEBUFFER_BINDING:GLenum;readonly FRAMEBUFFER_COMPLETE:GLenum;readonly FRAMEBUFFER_INCOMPLETE_ATTACHMENT:GLenum;readonly FRAMEBUFFER_INCOMPLETE_DIMENSIONS:GLenum;readonly FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT:GLenum;readonly FRAMEBUFFER_UNSUPPORTED:GLenum;readonly FRONT:GLenum;readonly FRONT_AND_BACK:GLenum;readonly FRONT_FACE:GLenum;readonly FUNC_ADD:GLenum;readonly FUNC_REVERSE_SUBTRACT:GLenum;readonly FUNC_SUBTRACT:GLenum;readonly GENERATE_MIPMAP_HINT:GLenum;readonly GEQUAL:GLenum;readonly GREATER:GLenum;readonly GREEN_BITS:GLenum;readonly HIGH_FLOAT:GLenum;readonly HIGH_INT:GLenum;readonly IMPLEMENTATION_COLOR_READ_FORMAT:GLenum;readonly IMPLEMENTATION_COLOR_READ_TYPE:GLenum;readonly INCR:GLenum;readonly INCR_WRAP:GLenum;readonly INT:GLenum;readonly INT_VEC2:GLenum;readonly INT_VEC3:GLenum;readonly INT_VEC4:GLenum;readonly INVALID_ENUM:GLenum;readonly INVALID_FRAMEBUFFER_OPERATION:GLenum;readonly INVALID_OPERATION:GLenum;readonly INVALID_VALUE:GLenum;readonly INVERT:GLenum;readonly KEEP:GLenum;readonly LEQUAL:GLenum;readonly LESS:GLenum;readonly LINEAR:GLenum;readonly LINEAR_MIPMAP_LINEAR:GLenum;readonly LINEAR_MIPMAP_NEAREST:GLenum;readonly LINES:GLenum;readonly LINE_LOOP:GLenum;readonly LINE_STRIP:GLenum;readonly LINE_WIDTH:GLenum;readonly LINK_STATUS:GLenum;readonly LOW_FLOAT:GLenum;readonly LOW_INT:GLenum;readonly LUMINANCE:GLenum;readonly LUMINANCE_ALPHA:GLenum;readonly MAX_COMBINED_TEXTURE_IMAGE_UNITS:GLenum;readonly MAX_CUBE_MAP_TEXTURE_SIZE:GLenum;readonly MAX_FRAGMENT_UNIFORM_VECTORS:GLenum;readonly MAX_RENDERBUFFER_SIZE:GLenum;readonly MAX_TEXTURE_IMAGE_UNITS:GLenum;readonly MAX_TEXTURE_SIZE:GLenum;readonly MAX_VARYING_VECTORS:GLenum;readonly MAX_VERTEX_ATTRIBS:GLenum;readonly MAX_VERTEX_TEXTURE_IMAGE_UNITS:GLenum;readonly MAX_VERTEX_UNIFORM_VECTORS:GLenum;readonly MAX_VIEWPORT_DIMS:GLenum;readonly MEDIUM_FLOAT:GLenum;readonly MEDIUM_INT:GLenum;readonly MIRRORED_REPEAT:GLenum;readonly NEAREST:GLenum;readonly NEAREST_MIPMAP_LINEAR:GLenum;readonly NEAREST_MIPMAP_NEAREST:GLenum;readonly NEVER:GLenum;readonly NICEST:GLenum;readonly NONE:GLenum;readonly NOTEQUAL:GLenum;readonly NO_ERROR:GLenum;readonly ONE:GLenum;readonly ONE_MINUS_CONSTANT_ALPHA:GLenum;readonly ONE_MINUS_CONSTANT_COLOR:GLenum;readonly ONE_MINUS_DST_ALPHA:GLenum;readonly ONE_MINUS_DST_COLOR:GLenum;readonly ONE_MINUS_SRC_ALPHA:GLenum;readonly ONE_MINUS_SRC_COLOR:GLenum;readonly OUT_OF_MEMORY:GLenum;readonly PACK_ALIGNMENT:GLenum;readonly POINTS:GLenum;readonly POLYGON_OFFSET_FACTOR:GLenum;readonly POLYGON_OFFSET_FILL:GLenum;readonly POLYGON_OFFSET_UNITS:GLenum;readonly RED_BITS:GLenum;readonly RENDERBUFFER:GLenum;readonly RENDERBUFFER_ALPHA_SIZE:GLenum;readonly RENDERBUFFER_BINDING:GLenum;readonly RENDERBUFFER_BLUE_SIZE:GLenum;readonly RENDERBUFFER_DEPTH_SIZE:GLenum;readonly RENDERBUFFER_GREEN_SIZE:GLenum;readonly RENDERBUFFER_HEIGHT:GLenum;readonly RENDERBUFFER_INTERNAL_FORMAT:GLenum;readonly RENDERBUFFER_RED_SIZE:GLenum;readonly RENDERBUFFER_STENCIL_SIZE:GLenum;readonly RENDERBUFFER_WIDTH:GLenum;readonly RENDERER:GLenum;readonly REPEAT:GLenum;readonly REPLACE:GLenum;readonly RGB:GLenum;readonly RGB565:GLenum;readonly RGB5_A1:GLenum;readonly RGBA:GLenum;readonly RGBA4:GLenum;readonly SAMPLER_2D:GLenum;readonly SAMPLER_CUBE:GLenum;readonly SAMPLES:GLenum;readonly SAMPLE_ALPHA_TO_COVERAGE:GLenum;readonly SAMPLE_BUFFERS:GLenum;readonly SAMPLE_COVERAGE:GLenum;readonly SAMPLE_COVERAGE_INVERT:GLenum;readonly SAMPLE_COVERAGE_VALUE:GLenum;readonly SCISSOR_BOX:GLenum;readonly SCISSOR_TEST:GLenum;readonly SHADER_TYPE:GLenum;readonly SHADING_LANGUAGE_VERSION:GLenum;readonly SHORT:GLenum;readonly SRC_ALPHA:GLenum;readonly SRC_ALPHA_SATURATE:GLenum;readonly SRC_COLOR:GLenum;readonly STATIC_DRAW:GLenum;readonly STENCIL_ATTACHMENT:GLenum;readonly STENCIL_BACK_FAIL:GLenum;readonly STENCIL_BACK_FUNC:GLenum;readonly STENCIL_BACK_PASS_DEPTH_FAIL:GLenum;readonly STENCIL_BACK_PASS_DEPTH_PASS:GLenum;readonly STENCIL_BACK_REF:GLenum;readonly STENCIL_BACK_VALUE_MASK:GLenum;readonly STENCIL_BACK_WRITEMASK:GLenum;readonly STENCIL_BITS:GLenum;readonly STENCIL_BUFFER_BIT:GLenum;readonly STENCIL_CLEAR_VALUE:GLenum;readonly STENCIL_FAIL:GLenum;readonly STENCIL_FUNC:GLenum;readonly STENCIL_INDEX8:GLenum;readonly STENCIL_PASS_DEPTH_FAIL:GLenum;readonly STENCIL_PASS_DEPTH_PASS:GLenum;readonly STENCIL_REF:GLenum;readonly STENCIL_TEST:GLenum;readonly STENCIL_VALUE_MASK:GLenum;readonly STENCIL_WRITEMASK:GLenum;readonly STREAM_DRAW:GLenum;readonly SUBPIXEL_BITS:GLenum;readonly TEXTURE:GLenum;readonly TEXTURE0:GLenum;readonly TEXTURE1:GLenum;readonly TEXTURE10:GLenum;readonly TEXTURE11:GLenum;readonly TEXTURE12:GLenum;readonly TEXTURE13:GLenum;readonly TEXTURE14:GLenum;readonly TEXTURE15:GLenum;readonly TEXTURE16:GLenum;readonly TEXTURE17:GLenum;readonly TEXTURE18:GLenum;readonly TEXTURE19:GLenum;readonly TEXTURE2:GLenum;readonly TEXTURE20:GLenum;readonly TEXTURE21:GLenum;readonly TEXTURE22:GLenum;readonly TEXTURE23:GLenum;readonly TEXTURE24:GLenum;readonly TEXTURE25:GLenum;readonly TEXTURE26:GLenum;readonly TEXTURE27:GLenum;readonly TEXTURE28:GLenum;readonly TEXTURE29:GLenum;readonly TEXTURE3:GLenum;readonly TEXTURE30:GLenum;readonly TEXTURE31:GLenum;readonly TEXTURE4:GLenum;readonly TEXTURE5:GLenum;readonly TEXTURE6:GLenum;readonly TEXTURE7:GLenum;readonly TEXTURE8:GLenum;readonly TEXTURE9:GLenum;readonly TEXTURE_2D:GLenum;readonly TEXTURE_BINDING_2D:GLenum;readonly TEXTURE_BINDING_CUBE_MAP:GLenum;readonly TEXTURE_CUBE_MAP:GLenum;readonly TEXTURE_CUBE_MAP_NEGATIVE_X:GLenum;readonly TEXTURE_CUBE_MAP_NEGATIVE_Y:GLenum;readonly TEXTURE_CUBE_MAP_NEGATIVE_Z:GLenum;readonly TEXTURE_CUBE_MAP_POSITIVE_X:GLenum;readonly TEXTURE_CUBE_MAP_POSITIVE_Y:GLenum;readonly TEXTURE_CUBE_MAP_POSITIVE_Z:GLenum;readonly TEXTURE_MAG_FILTER:GLenum;readonly TEXTURE_MIN_FILTER:GLenum;readonly TEXTURE_WRAP_S:GLenum;readonly TEXTURE_WRAP_T:GLenum;readonly TRIANGLES:GLenum;readonly TRIANGLE_FAN:GLenum;readonly TRIANGLE_STRIP:GLenum;readonly UNPACK_ALIGNMENT:GLenum;readonly UNPACK_COLORSPACE_CONVERSION_WEBGL:GLenum;readonly UNPACK_FLIP_Y_WEBGL:GLenum;readonly UNPACK_PREMULTIPLY_ALPHA_WEBGL:GLenum;readonly UNSIGNED_BYTE:GLenum;readonly UNSIGNED_INT:GLenum;readonly UNSIGNED_SHORT:GLenum;readonly UNSIGNED_SHORT_4_4_4_4:GLenum;readonly UNSIGNED_SHORT_5_5_5_1:GLenum;readonly UNSIGNED_SHORT_5_6_5:GLenum;readonly VALIDATE_STATUS:GLenum;readonly VENDOR:GLenum;readonly VERSION:GLenum;readonly VERTEX_ATTRIB_ARRAY_BUFFER_BINDING:GLenum;readonly VERTEX_ATTRIB_ARRAY_ENABLED:GLenum;readonly VERTEX_ATTRIB_ARRAY_NORMALIZED:GLenum;readonly VERTEX_ATTRIB_ARRAY_POINTER:GLenum;readonly VERTEX_ATTRIB_ARRAY_SIZE:GLenum;readonly VERTEX_ATTRIB_ARRAY_STRIDE:GLenum;readonly VERTEX_ATTRIB_ARRAY_TYPE:GLenum;readonly VERTEX_SHADER:GLenum;readonly VIEWPORT:GLenum;readonly ZERO:GLenum;};interface WebGL2RenderingContextBase{beginQuery(target:GLenum,query:WebGLQuery):void;beginTransformFeedback(primitiveMode:GLenum):void;bindBufferBase(target:GLenum,index:GLuint,buffer:WebGLBuffer|null):void;bindBufferRange(target:GLenum,index:GLuint,buffer:WebGLBuffer|null,offset:GLintptr,size:GLsizeiptr):void;bindSampler(unit:GLuint,sampler:WebGLSampler|null):void;bindTransformFeedback(target:GLenum,tf:WebGLTransformFeedback|null):void;bindVertexArray(array:WebGLVertexArrayObject|null):void;blitFramebuffer(srcX0:GLint,srcY0:GLint,srcX1:GLint,srcY1:GLint,dstX0:GLint,dstY0:GLint,dstX1:GLint,dstY1:GLint,mask:GLbitfield,filter:GLenum):void;clearBufferfi(buffer:GLenum,drawbuffer:GLint,depth:GLfloat,stencil:GLint):void;clearBufferfv(buffer:GLenum,drawbuffer:GLint,values:Float32List,srcOffset?:GLuint):void;clearBufferiv(buffer:GLenum,drawbuffer:GLint,values:Int32List,srcOffset?:GLuint):void;clearBufferuiv(buffer:GLenum,drawbuffer:GLint,values:Uint32List,srcOffset?:GLuint):void;clientWaitSync(sync:WebGLSync,flags:GLbitfield,timeout:GLuint64):GLenum;compressedTexImage3D(target:GLenum,level:GLint,internalformat:GLenum,width:GLsizei,height:GLsizei,depth:GLsizei,border:GLint,imageSize:GLsizei,offset:GLintptr):void;compressedTexImage3D(target:GLenum,level:GLint,internalformat:GLenum,width:GLsizei,height:GLsizei,depth:GLsizei,border:GLint,srcData:ArrayBufferView,srcOffset?:GLuint,srcLengthOverride?:GLuint):void;compressedTexSubImage3D(target:GLenum,level:GLint,xoffset:GLint,yoffset:GLint,zoffset:GLint,width:GLsizei,height:GLsizei,depth:GLsizei,format:GLenum,imageSize:GLsizei,offset:GLintptr):void;compressedTexSubImage3D(target:GLenum,level:GLint,xoffset:GLint,yoffset:GLint,zoffset:GLint,width:GLsizei,height:GLsizei,depth:GLsizei,format:GLenum,srcData:ArrayBufferView,srcOffset?:GLuint,srcLengthOverride?:GLuint):void;copyBufferSubData(readTarget:GLenum,writeTarget:GLenum,readOffset:GLintptr,writeOffset:GLintptr,size:GLsizeiptr):void;copyTexSubImage3D(target:GLenum,level:GLint,xoffset:GLint,yoffset:GLint,zoffset:GLint,x:GLint,y:GLint,width:GLsizei,height:GLsizei):void;createQuery():WebGLQuery|null;createSampler():WebGLSampler|null;createTransformFeedback():WebGLTransformFeedback|null;createVertexArray():WebGLVertexArrayObject|null;deleteQuery(query:WebGLQuery|null):void;deleteSampler(sampler:WebGLSampler|null):void;deleteSync(sync:WebGLSync|null):void;deleteTransformFeedback(tf:WebGLTransformFeedback|null):void;deleteVertexArray(vertexArray:WebGLVertexArrayObject|null):void;drawArraysInstanced(mode:GLenum,first:GLint,count:GLsizei,instanceCount:GLsizei):void;drawBuffers(buffers:GLenum[]):void;drawElementsInstanced(mode:GLenum,count:GLsizei,type:GLenum,offset:GLintptr,instanceCount:GLsizei):void;drawRangeElements(mode:GLenum,start:GLuint,end:GLuint,count:GLsizei,type:GLenum,offset:GLintptr):void;endQuery(target:GLenum):void;endTransformFeedback():void;fenceSync(condition:GLenum,flags:GLbitfield):WebGLSync|null;framebufferTextureLayer(target:GLenum,attachment:GLenum,texture:WebGLTexture|null,level:GLint,layer:GLint):void;getActiveUniformBlockName(program:WebGLProgram,uniformBlockIndex:GLuint):string|null;getActiveUniformBlockParameter(program:WebGLProgram,uniformBlockIndex:GLuint,pname:GLenum):any;getActiveUniforms(program:WebGLProgram,uniformIndices:GLuint[],pname:GLenum):any;getBufferSubData(target:GLenum,srcByteOffset:GLintptr,dstBuffer:ArrayBufferView,dstOffset?:GLuint,length?:GLuint):void;getFragDataLocation(program:WebGLProgram,name:string):GLint;getIndexedParameter(target:GLenum,index:GLuint):any;getInternalformatParameter(target:GLenum,internalformat:GLenum,pname:GLenum):any;getQuery(target:GLenum,pname:GLenum):WebGLQuery|null;getQueryParameter(query:WebGLQuery,pname:GLenum):any;getSamplerParameter(sampler:WebGLSampler,pname:GLenum):any;getSyncParameter(sync:WebGLSync,pname:GLenum):any;getTransformFeedbackVarying(program:WebGLProgram,index:GLuint):WebGLActiveInfo|null;getUniformBlockIndex(program:WebGLProgram,uniformBlockName:string):GLuint;getUniformIndices(program:WebGLProgram,uniformNames:string[]):GLuint[]|null;invalidateFramebuffer(target:GLenum,attachments:GLenum[]):void;invalidateSubFramebuffer(target:GLenum,attachments:GLenum[],x:GLint,y:GLint,width:GLsizei,height:GLsizei):void;isQuery(query:WebGLQuery|null):GLboolean;isSampler(sampler:WebGLSampler|null):GLboolean;isSync(sync:WebGLSync|null):GLboolean;isTransformFeedback(tf:WebGLTransformFeedback|null):GLboolean;isVertexArray(vertexArray:WebGLVertexArrayObject|null):GLboolean;pauseTransformFeedback():void;readBuffer(src:GLenum):void;renderbufferStorageMultisample(target:GLenum,samples:GLsizei,internalformat:GLenum,width:GLsizei,height:GLsizei):void;resumeTransformFeedback():void;samplerParameterf(sampler:WebGLSampler,pname:GLenum,param:GLfloat):void;samplerParameteri(sampler:WebGLSampler,pname:GLenum,param:GLint):void;texImage3D(target:GLenum,level:GLint,internalformat:GLint,width:GLsizei,height:GLsizei,depth:GLsizei,border:GLint,format:GLenum,type:GLenum,pboOffset:GLintptr):void;texImage3D(target:GLenum,level:GLint,internalformat:GLint,width:GLsizei,height:GLsizei,depth:GLsizei,border:GLint,format:GLenum,type:GLenum,source:TexImageSource):void;texImage3D(target:GLenum,level:GLint,internalformat:GLint,width:GLsizei,height:GLsizei,depth:GLsizei,border:GLint,format:GLenum,type:GLenum,srcData:ArrayBufferView|null):void;texImage3D(target:GLenum,level:GLint,internalformat:GLint,width:GLsizei,height:GLsizei,depth:GLsizei,border:GLint,format:GLenum,type:GLenum,srcData:ArrayBufferView,srcOffset:GLuint):void;texStorage2D(target:GLenum,levels:GLsizei,internalformat:GLenum,width:GLsizei,height:GLsizei):void;texStorage3D(target:GLenum,levels:GLsizei,internalformat:GLenum,width:GLsizei,height:GLsizei,depth:GLsizei):void;texSubImage3D(target:GLenum,level:GLint,xoffset:GLint,yoffset:GLint,zoffset:GLint,width:GLsizei,height:GLsizei,depth:GLsizei,format:GLenum,type:GLenum,pboOffset:GLintptr):void;texSubImage3D(target:GLenum,level:GLint,xoffset:GLint,yoffset:GLint,zoffset:GLint,width:GLsizei,height:GLsizei,depth:GLsizei,format:GLenum,type:GLenum,source:TexImageSource):void;texSubImage3D(target:GLenum,level:GLint,xoffset:GLint,yoffset:GLint,zoffset:GLint,width:GLsizei,height:GLsizei,depth:GLsizei,format:GLenum,type:GLenum,srcData:ArrayBufferView|null,srcOffset?:GLuint):void;transformFeedbackVaryings(program:WebGLProgram,varyings:string[],bufferMode:GLenum):void;uniform1ui(location:WebGLUniformLocation|null,v0:GLuint):void;uniform1uiv(location:WebGLUniformLocation|null,data:Uint32List,srcOffset?:GLuint,srcLength?:GLuint):void;uniform2ui(location:WebGLUniformLocation|null,v0:GLuint,v1:GLuint):void;uniform2uiv(location:WebGLUniformLocation|null,data:Uint32List,srcOffset?:GLuint,srcLength?:GLuint):void;uniform3ui(location:WebGLUniformLocation|null,v0:GLuint,v1:GLuint,v2:GLuint):void;uniform3uiv(location:WebGLUniformLocation|null,data:Uint32List,srcOffset?:GLuint,srcLength?:GLuint):void;uniform4ui(location:WebGLUniformLocation|null,v0:GLuint,v1:GLuint,v2:GLuint,v3:GLuint):void;uniform4uiv(location:WebGLUniformLocation|null,data:Uint32List,srcOffset?:GLuint,srcLength?:GLuint):void;uniformBlockBinding(program:WebGLProgram,uniformBlockIndex:GLuint,uniformBlockBinding:GLuint):void;uniformMatrix2x3fv(location:WebGLUniformLocation|null,transpose:GLboolean,data:Float32List,srcOffset?:GLuint,srcLength?:GLuint):void;uniformMatrix2x4fv(location:WebGLUniformLocation|null,transpose:GLboolean,data:Float32List,srcOffset?:GLuint,srcLength?:GLuint):void;uniformMatrix3x2fv(location:WebGLUniformLocation|null,transpose:GLboolean,data:Float32List,srcOffset?:GLuint,srcLength?:GLuint):void;uniformMatrix3x4fv(location:WebGLUniformLocation|null,transpose:GLboolean,data:Float32List,srcOffset?:GLuint,srcLength?:GLuint):void;uniformMatrix4x2fv(location:WebGLUniformLocation|null,transpose:GLboolean,data:Float32List,srcOffset?:GLuint,srcLength?:GLuint):void;uniformMatrix4x3fv(location:WebGLUniformLocation|null,transpose:GLboolean,data:Float32List,srcOffset?:GLuint,srcLength?:GLuint):void;vertexAttribDivisor(index:GLuint,divisor:GLuint):void;vertexAttribI4i(index:GLuint,x:GLint,y:GLint,z:GLint,w:GLint):void;vertexAttribI4iv(index:GLuint,values:Int32List):void;vertexAttribI4ui(index:GLuint,x:GLuint,y:GLuint,z:GLuint,w:GLuint):void;vertexAttribI4uiv(index:GLuint,values:Uint32List):void;vertexAttribIPointer(index:GLuint,size:GLint,type:GLenum,stride:GLsizei,offset:GLintptr):void;waitSync(sync:WebGLSync,flags:GLbitfield,timeout:GLint64):void;readonly ACTIVE_UNIFORM_BLOCKS:GLenum;readonly ALREADY_SIGNALED:GLenum;readonly ANY_SAMPLES_PASSED:GLenum;readonly ANY_SAMPLES_PASSED_CONSERVATIVE:GLenum;readonly COLOR:GLenum;readonly COLOR_ATTACHMENT1:GLenum;readonly COLOR_ATTACHMENT10:GLenum;readonly COLOR_ATTACHMENT11:GLenum;readonly COLOR_ATTACHMENT12:GLenum;readonly COLOR_ATTACHMENT13:GLenum;readonly COLOR_ATTACHMENT14:GLenum;readonly COLOR_ATTACHMENT15:GLenum;readonly COLOR_ATTACHMENT2:GLenum;readonly COLOR_ATTACHMENT3:GLenum;readonly COLOR_ATTACHMENT4:GLenum;readonly COLOR_ATTACHMENT5:GLenum;readonly COLOR_ATTACHMENT6:GLenum;readonly COLOR_ATTACHMENT7:GLenum;readonly COLOR_ATTACHMENT8:GLenum;readonly COLOR_ATTACHMENT9:GLenum;readonly COMPARE_REF_TO_TEXTURE:GLenum;readonly CONDITION_SATISFIED:GLenum;readonly COPY_READ_BUFFER:GLenum;readonly COPY_READ_BUFFER_BINDING:GLenum;readonly COPY_WRITE_BUFFER:GLenum;readonly COPY_WRITE_BUFFER_BINDING:GLenum;readonly CURRENT_QUERY:GLenum;readonly DEPTH:GLenum;readonly DEPTH24_STENCIL8:GLenum;readonly DEPTH32F_STENCIL8:GLenum;readonly DEPTH_COMPONENT24:GLenum;readonly DEPTH_COMPONENT32F:GLenum;readonly DRAW_BUFFER0:GLenum;readonly DRAW_BUFFER1:GLenum;readonly DRAW_BUFFER10:GLenum;readonly DRAW_BUFFER11:GLenum;readonly DRAW_BUFFER12:GLenum;readonly DRAW_BUFFER13:GLenum;readonly DRAW_BUFFER14:GLenum;readonly DRAW_BUFFER15:GLenum;readonly DRAW_BUFFER2:GLenum;readonly DRAW_BUFFER3:GLenum;readonly DRAW_BUFFER4:GLenum;readonly DRAW_BUFFER5:GLenum;readonly DRAW_BUFFER6:GLenum;readonly DRAW_BUFFER7:GLenum;readonly DRAW_BUFFER8:GLenum;readonly DRAW_BUFFER9:GLenum;readonly DRAW_FRAMEBUFFER:GLenum;readonly DRAW_FRAMEBUFFER_BINDING:GLenum;readonly DYNAMIC_COPY:GLenum;readonly DYNAMIC_READ:GLenum;readonly FLOAT_32_UNSIGNED_INT_24_8_REV:GLenum;readonly FLOAT_MAT2x3:GLenum;readonly FLOAT_MAT2x4:GLenum;readonly FLOAT_MAT3x2:GLenum;readonly FLOAT_MAT3x4:GLenum;readonly FLOAT_MAT4x2:GLenum;readonly FLOAT_MAT4x3:GLenum;readonly FRAGMENT_SHADER_DERIVATIVE_HINT:GLenum;readonly FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE:GLenum;readonly FRAMEBUFFER_ATTACHMENT_BLUE_SIZE:GLenum;readonly FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING:GLenum;readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE:GLenum;readonly FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE:GLenum;readonly FRAMEBUFFER_ATTACHMENT_GREEN_SIZE:GLenum;readonly FRAMEBUFFER_ATTACHMENT_RED_SIZE:GLenum;readonly FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE:GLenum;readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER:GLenum;readonly FRAMEBUFFER_DEFAULT:GLenum;readonly FRAMEBUFFER_INCOMPLETE_MULTISAMPLE:GLenum;readonly HALF_FLOAT:GLenum;readonly INTERLEAVED_ATTRIBS:GLenum;readonly INT_2_10_10_10_REV:GLenum;readonly INT_SAMPLER_2D:GLenum;readonly INT_SAMPLER_2D_ARRAY:GLenum;readonly INT_SAMPLER_3D:GLenum;readonly INT_SAMPLER_CUBE:GLenum;readonly INVALID_INDEX:GLenum;readonly MAX:GLenum;readonly MAX_3D_TEXTURE_SIZE:GLenum;readonly MAX_ARRAY_TEXTURE_LAYERS:GLenum;readonly MAX_CLIENT_WAIT_TIMEOUT_WEBGL:GLenum;readonly MAX_COLOR_ATTACHMENTS:GLenum;readonly MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS:GLenum;readonly MAX_COMBINED_UNIFORM_BLOCKS:GLenum;readonly MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS:GLenum;readonly MAX_DRAW_BUFFERS:GLenum;readonly MAX_ELEMENTS_INDICES:GLenum;readonly MAX_ELEMENTS_VERTICES:GLenum;readonly MAX_ELEMENT_INDEX:GLenum;readonly MAX_FRAGMENT_INPUT_COMPONENTS:GLenum;readonly MAX_FRAGMENT_UNIFORM_BLOCKS:GLenum;readonly MAX_FRAGMENT_UNIFORM_COMPONENTS:GLenum;readonly MAX_PROGRAM_TEXEL_OFFSET:GLenum;readonly MAX_SAMPLES:GLenum;readonly MAX_SERVER_WAIT_TIMEOUT:GLenum;readonly MAX_TEXTURE_LOD_BIAS:GLenum;readonly MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS:GLenum;readonly MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS:GLenum;readonly MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS:GLenum;readonly MAX_UNIFORM_BLOCK_SIZE:GLenum;readonly MAX_UNIFORM_BUFFER_BINDINGS:GLenum;readonly MAX_VARYING_COMPONENTS:GLenum;readonly MAX_VERTEX_OUTPUT_COMPONENTS:GLenum;readonly MAX_VERTEX_UNIFORM_BLOCKS:GLenum;readonly MAX_VERTEX_UNIFORM_COMPONENTS:GLenum;readonly MIN:GLenum;readonly MIN_PROGRAM_TEXEL_OFFSET:GLenum;readonly OBJECT_TYPE:GLenum;readonly PACK_ROW_LENGTH:GLenum;readonly PACK_SKIP_PIXELS:GLenum;readonly PACK_SKIP_ROWS:GLenum;readonly PIXEL_PACK_BUFFER:GLenum;readonly PIXEL_PACK_BUFFER_BINDING:GLenum;readonly PIXEL_UNPACK_BUFFER:GLenum;readonly PIXEL_UNPACK_BUFFER_BINDING:GLenum;readonly QUERY_RESULT:GLenum;readonly QUERY_RESULT_AVAILABLE:GLenum;readonly R11F_G11F_B10F:GLenum;readonly R16F:GLenum;readonly R16I:GLenum;readonly R16UI:GLenum;readonly R32F:GLenum;readonly R32I:GLenum;readonly R32UI:GLenum;readonly R8:GLenum;readonly R8I:GLenum;readonly R8UI:GLenum;readonly R8_SNORM:GLenum;readonly RASTERIZER_DISCARD:GLenum;readonly READ_BUFFER:GLenum;readonly READ_FRAMEBUFFER:GLenum;readonly READ_FRAMEBUFFER_BINDING:GLenum;readonly RED:GLenum;readonly RED_INTEGER:GLenum;readonly RENDERBUFFER_SAMPLES:GLenum;readonly RG:GLenum;readonly RG16F:GLenum;readonly RG16I:GLenum;readonly RG16UI:GLenum;readonly RG32F:GLenum;readonly RG32I:GLenum;readonly RG32UI:GLenum;readonly RG8:GLenum;readonly RG8I:GLenum;readonly RG8UI:GLenum;readonly RG8_SNORM:GLenum;readonly RGB10_A2:GLenum;readonly RGB10_A2UI:GLenum;readonly RGB16F:GLenum;readonly RGB16I:GLenum;readonly RGB16UI:GLenum;readonly RGB32F:GLenum;readonly RGB32I:GLenum;readonly RGB32UI:GLenum;readonly RGB8:GLenum;readonly RGB8I:GLenum;readonly RGB8UI:GLenum;readonly RGB8_SNORM:GLenum;readonly RGB9_E5:GLenum;readonly RGBA16F:GLenum;readonly RGBA16I:GLenum;readonly RGBA16UI:GLenum;readonly RGBA32F:GLenum;readonly RGBA32I:GLenum;readonly RGBA32UI:GLenum;readonly RGBA8:GLenum;readonly RGBA8I:GLenum;readonly RGBA8UI:GLenum;readonly RGBA8_SNORM:GLenum;readonly RGBA_INTEGER:GLenum;readonly RGB_INTEGER:GLenum;readonly RG_INTEGER:GLenum;readonly SAMPLER_2D_ARRAY:GLenum;readonly SAMPLER_2D_ARRAY_SHADOW:GLenum;readonly SAMPLER_2D_SHADOW:GLenum;readonly SAMPLER_3D:GLenum;readonly SAMPLER_BINDING:GLenum;readonly SAMPLER_CUBE_SHADOW:GLenum;readonly SEPARATE_ATTRIBS:GLenum;readonly SIGNALED:GLenum;readonly SIGNED_NORMALIZED:GLenum;readonly SRGB:GLenum;readonly SRGB8:GLenum;readonly SRGB8_ALPHA8:GLenum;readonly STATIC_COPY:GLenum;readonly STATIC_READ:GLenum;readonly STENCIL:GLenum;readonly STREAM_COPY:GLenum;readonly STREAM_READ:GLenum;readonly SYNC_CONDITION:GLenum;readonly SYNC_FENCE:GLenum;readonly SYNC_FLAGS:GLenum;readonly SYNC_FLUSH_COMMANDS_BIT:GLenum;readonly SYNC_GPU_COMMANDS_COMPLETE:GLenum;readonly SYNC_STATUS:GLenum;readonly TEXTURE_2D_ARRAY:GLenum;readonly TEXTURE_3D:GLenum;readonly TEXTURE_BASE_LEVEL:GLenum;readonly TEXTURE_BINDING_2D_ARRAY:GLenum;readonly TEXTURE_BINDING_3D:GLenum;readonly TEXTURE_COMPARE_FUNC:GLenum;readonly TEXTURE_COMPARE_MODE:GLenum;readonly TEXTURE_IMMUTABLE_FORMAT:GLenum;readonly TEXTURE_IMMUTABLE_LEVELS:GLenum;readonly TEXTURE_MAX_LEVEL:GLenum;readonly TEXTURE_MAX_LOD:GLenum;readonly TEXTURE_MIN_LOD:GLenum;readonly TEXTURE_WRAP_R:GLenum;readonly TIMEOUT_EXPIRED:GLenum;readonly TIMEOUT_IGNORED:GLint64;readonly TRANSFORM_FEEDBACK:GLenum;readonly TRANSFORM_FEEDBACK_ACTIVE:GLenum;readonly TRANSFORM_FEEDBACK_BINDING:GLenum;readonly TRANSFORM_FEEDBACK_BUFFER:GLenum;readonly TRANSFORM_FEEDBACK_BUFFER_BINDING:GLenum;readonly TRANSFORM_FEEDBACK_BUFFER_MODE:GLenum;readonly TRANSFORM_FEEDBACK_BUFFER_SIZE:GLenum;readonly TRANSFORM_FEEDBACK_BUFFER_START:GLenum;readonly TRANSFORM_FEEDBACK_PAUSED:GLenum;readonly TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN:GLenum;readonly TRANSFORM_FEEDBACK_VARYINGS:GLenum;readonly UNIFORM_ARRAY_STRIDE:GLenum;readonly UNIFORM_BLOCK_ACTIVE_UNIFORMS:GLenum;readonly UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES:GLenum;readonly UNIFORM_BLOCK_BINDING:GLenum;readonly UNIFORM_BLOCK_DATA_SIZE:GLenum;readonly UNIFORM_BLOCK_INDEX:GLenum;readonly UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER:GLenum;readonly UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER:GLenum;readonly UNIFORM_BUFFER:GLenum;readonly UNIFORM_BUFFER_BINDING:GLenum;readonly UNIFORM_BUFFER_OFFSET_ALIGNMENT:GLenum;readonly UNIFORM_BUFFER_SIZE:GLenum;readonly UNIFORM_BUFFER_START:GLenum;readonly UNIFORM_IS_ROW_MAJOR:GLenum;readonly UNIFORM_MATRIX_STRIDE:GLenum;readonly UNIFORM_OFFSET:GLenum;readonly UNIFORM_SIZE:GLenum;readonly UNIFORM_TYPE:GLenum;readonly UNPACK_IMAGE_HEIGHT:GLenum;readonly UNPACK_ROW_LENGTH:GLenum;readonly UNPACK_SKIP_IMAGES:GLenum;readonly UNPACK_SKIP_PIXELS:GLenum;readonly UNPACK_SKIP_ROWS:GLenum;readonly UNSIGNALED:GLenum;readonly UNSIGNED_INT_10F_11F_11F_REV:GLenum;readonly UNSIGNED_INT_24_8:GLenum;readonly UNSIGNED_INT_2_10_10_10_REV:GLenum;readonly UNSIGNED_INT_5_9_9_9_REV:GLenum;readonly UNSIGNED_INT_SAMPLER_2D:GLenum;readonly UNSIGNED_INT_SAMPLER_2D_ARRAY:GLenum;readonly UNSIGNED_INT_SAMPLER_3D:GLenum;readonly UNSIGNED_INT_SAMPLER_CUBE:GLenum;readonly UNSIGNED_INT_VEC2:GLenum;readonly UNSIGNED_INT_VEC3:GLenum;readonly UNSIGNED_INT_VEC4:GLenum;readonly UNSIGNED_NORMALIZED:GLenum;readonly VERTEX_ARRAY_BINDING:GLenum;readonly VERTEX_ATTRIB_ARRAY_DIVISOR:GLenum;readonly VERTEX_ATTRIB_ARRAY_INTEGER:GLenum;readonly WAIT_FAILED:GLenum;}interface WebGL2RenderingContextOverloads{bufferData(target:GLenum,size:GLsizeiptr,usage:GLenum):void;bufferData(target:GLenum,srcData:BufferSource|null,usage:GLenum):void;bufferData(target:GLenum,srcData:ArrayBufferView,usage:GLenum,srcOffset:GLuint,length?:GLuint):void;bufferSubData(target:GLenum,dstByteOffset:GLintptr,srcData:BufferSource):void;bufferSubData(target:GLenum,dstByteOffset:GLintptr,srcData:ArrayBufferView,srcOffset:GLuint,length?:GLuint):void;compressedTexImage2D(target:GLenum,level:GLint,internalformat:GLenum,width:GLsizei,height:GLsizei,border:GLint,imageSize:GLsizei,offset:GLintptr):void;compressedTexImage2D(target:GLenum,level:GLint,internalformat:GLenum,width:GLsizei,height:GLsizei,border:GLint,srcData:ArrayBufferView,srcOffset?:GLuint,srcLengthOverride?:GLuint):void;compressedTexSubImage2D(target:GLenum,level:GLint,xoffset:GLint,yoffset:GLint,width:GLsizei,height:GLsizei,format:GLenum,imageSize:GLsizei,offset:GLintptr):void;compressedTexSubImage2D(target:GLenum,level:GLint,xoffset:GLint,yoffset:GLint,width:GLsizei,height:GLsizei,format:GLenum,srcData:ArrayBufferView,srcOffset?:GLuint,srcLengthOverride?:GLuint):void;readPixels(x:GLint,y:GLint,width:GLsizei,height:GLsizei,format:GLenum,type:GLenum,dstData:ArrayBufferView|null):void;readPixels(x:GLint,y:GLint,width:GLsizei,height:GLsizei,format:GLenum,type:GLenum,offset:GLintptr):void;readPixels(x:GLint,y:GLint,width:GLsizei,height:GLsizei,format:GLenum,type:GLenum,dstData:ArrayBufferView,dstOffset:GLuint):void;texImage2D(target:GLenum,level:GLint,internalformat:GLint,width:GLsizei,height:GLsizei,border:GLint,format:GLenum,type:GLenum,pixels:ArrayBufferView|null):void;texImage2D(target:GLenum,level:GLint,internalformat:GLint,format:GLenum,type:GLenum,source:TexImageSource):void;texImage2D(target:GLenum,level:GLint,internalformat:GLint,width:GLsizei,height:GLsizei,border:GLint,format:GLenum,type:GLenum,pboOffset:GLintptr):void;texImage2D(target:GLenum,level:GLint,internalformat:GLint,width:GLsizei,height:GLsizei,border:GLint,format:GLenum,type:GLenum,source:TexImageSource):void;texImage2D(target:GLenum,level:GLint,internalformat:GLint,width:GLsizei,height:GLsizei,border:GLint,format:GLenum,type:GLenum,srcData:ArrayBufferView,srcOffset:GLuint):void;texSubImage2D(target:GLenum,level:GLint,xoffset:GLint,yoffset:GLint,width:GLsizei,height:GLsizei,format:GLenum,type:GLenum,pixels:ArrayBufferView|null):void;texSubImage2D(target:GLenum,level:GLint,xoffset:GLint,yoffset:GLint,format:GLenum,type:GLenum,source:TexImageSource):void;texSubImage2D(target:GLenum,level:GLint,xoffset:GLint,yoffset:GLint,width:GLsizei,height:GLsizei,format:GLenum,type:GLenum,pboOffset:GLintptr):void;texSubImage2D(target:GLenum,level:GLint,xoffset:GLint,yoffset:GLint,width:GLsizei,height:GLsizei,format:GLenum,type:GLenum,source:TexImageSource):void;texSubImage2D(target:GLenum,level:GLint,xoffset:GLint,yoffset:GLint,width:GLsizei,height:GLsizei,format:GLenum,type:GLenum,srcData:ArrayBufferView,srcOffset:GLuint):void;uniform1fv(location:WebGLUniformLocation|null,data:Float32List,srcOffset?:GLuint,srcLength?:GLuint):void;uniform1iv(location:WebGLUniformLocation|null,data:Int32List,srcOffset?:GLuint,srcLength?:GLuint):void;uniform2fv(location:WebGLUniformLocation|null,data:Float32List,srcOffset?:GLuint,srcLength?:GLuint):void;uniform2iv(location:WebGLUniformLocation|null,data:Int32List,srcOffset?:GLuint,srcLength?:GLuint):void;uniform3fv(location:WebGLUniformLocation|null,data:Float32List,srcOffset?:GLuint,srcLength?:GLuint):void;uniform3iv(location:WebGLUniformLocation|null,data:Int32List,srcOffset?:GLuint,srcLength?:GLuint):void;uniform4fv(location:WebGLUniformLocation|null,data:Float32List,srcOffset?:GLuint,srcLength?:GLuint):void;uniform4iv(location:WebGLUniformLocation|null,data:Int32List,srcOffset?:GLuint,srcLength?:GLuint):void;uniformMatrix2fv(location:WebGLUniformLocation|null,transpose:GLboolean,data:Float32List,srcOffset?:GLuint,srcLength?:GLuint):void;uniformMatrix3fv(location:WebGLUniformLocation|null,transpose:GLboolean,data:Float32List,srcOffset?:GLuint,srcLength?:GLuint):void;uniformMatrix4fv(location:WebGLUniformLocation|null,transpose:GLboolean,data:Float32List,srcOffset?:GLuint,srcLength?:GLuint):void;}interface WebGLActiveInfo{readonly name:string;readonly size:GLint;readonly type:GLenum;}declare var WebGLActiveInfo:{prototype:WebGLActiveInfo;new():WebGLActiveInfo;};interface WebGLBuffer{}declare var WebGLBuffer:{prototype:WebGLBuffer;new():WebGLBuffer;};interface WebGLContextEvent extends Event{readonly statusMessage:string;}declare var WebGLContextEvent:{prototype:WebGLContextEvent;new(type:string,eventInit?:WebGLContextEventInit):WebGLContextEvent;};interface WebGLFramebuffer{}declare var WebGLFramebuffer:{prototype:WebGLFramebuffer;new():WebGLFramebuffer;};interface WebGLProgram{}declare var WebGLProgram:{prototype:WebGLProgram;new():WebGLProgram;};interface WebGLQuery{}declare var WebGLQuery:{prototype:WebGLQuery;new():WebGLQuery;};interface WebGLRenderbuffer{}declare var WebGLRenderbuffer:{prototype:WebGLRenderbuffer;new():WebGLRenderbuffer;};interface WebGLRenderingContext extends WebGLRenderingContextBase,WebGLRenderingContextOverloads{}declare var WebGLRenderingContext:{prototype:WebGLRenderingContext;new():WebGLRenderingContext;readonly ACTIVE_ATTRIBUTES:GLenum;readonly ACTIVE_TEXTURE:GLenum;readonly ACTIVE_UNIFORMS:GLenum;readonly ALIASED_LINE_WIDTH_RANGE:GLenum;readonly ALIASED_POINT_SIZE_RANGE:GLenum;readonly ALPHA:GLenum;readonly ALPHA_BITS:GLenum;readonly ALWAYS:GLenum;readonly ARRAY_BUFFER:GLenum;readonly ARRAY_BUFFER_BINDING:GLenum;readonly ATTACHED_SHADERS:GLenum;readonly BACK:GLenum;readonly BLEND:GLenum;readonly BLEND_COLOR:GLenum;readonly BLEND_DST_ALPHA:GLenum;readonly BLEND_DST_RGB:GLenum;readonly BLEND_EQUATION:GLenum;readonly BLEND_EQUATION_ALPHA:GLenum;readonly BLEND_EQUATION_RGB:GLenum;readonly BLEND_SRC_ALPHA:GLenum;readonly BLEND_SRC_RGB:GLenum;readonly BLUE_BITS:GLenum;readonly BOOL:GLenum;readonly BOOL_VEC2:GLenum;readonly BOOL_VEC3:GLenum;readonly BOOL_VEC4:GLenum;readonly BROWSER_DEFAULT_WEBGL:GLenum;readonly BUFFER_SIZE:GLenum;readonly BUFFER_USAGE:GLenum;readonly BYTE:GLenum;readonly CCW:GLenum;readonly CLAMP_TO_EDGE:GLenum;readonly COLOR_ATTACHMENT0:GLenum;readonly COLOR_BUFFER_BIT:GLenum;readonly COLOR_CLEAR_VALUE:GLenum;readonly COLOR_WRITEMASK:GLenum;readonly COMPILE_STATUS:GLenum;readonly COMPRESSED_TEXTURE_FORMATS:GLenum;readonly CONSTANT_ALPHA:GLenum;readonly CONSTANT_COLOR:GLenum;readonly CONTEXT_LOST_WEBGL:GLenum;readonly CULL_FACE:GLenum;readonly CULL_FACE_MODE:GLenum;readonly CURRENT_PROGRAM:GLenum;readonly CURRENT_VERTEX_ATTRIB:GLenum;readonly CW:GLenum;readonly DECR:GLenum;readonly DECR_WRAP:GLenum;readonly DELETE_STATUS:GLenum;readonly DEPTH_ATTACHMENT:GLenum;readonly DEPTH_BITS:GLenum;readonly DEPTH_BUFFER_BIT:GLenum;readonly DEPTH_CLEAR_VALUE:GLenum;readonly DEPTH_COMPONENT:GLenum;readonly DEPTH_COMPONENT16:GLenum;readonly DEPTH_FUNC:GLenum;readonly DEPTH_RANGE:GLenum;readonly DEPTH_STENCIL:GLenum;readonly DEPTH_STENCIL_ATTACHMENT:GLenum;readonly DEPTH_TEST:GLenum;readonly DEPTH_WRITEMASK:GLenum;readonly DITHER:GLenum;readonly DONT_CARE:GLenum;readonly DST_ALPHA:GLenum;readonly DST_COLOR:GLenum;readonly DYNAMIC_DRAW:GLenum;readonly ELEMENT_ARRAY_BUFFER:GLenum;readonly ELEMENT_ARRAY_BUFFER_BINDING:GLenum;readonly EQUAL:GLenum;readonly FASTEST:GLenum;readonly FLOAT:GLenum;readonly FLOAT_MAT2:GLenum;readonly FLOAT_MAT3:GLenum;readonly FLOAT_MAT4:GLenum;readonly FLOAT_VEC2:GLenum;readonly FLOAT_VEC3:GLenum;readonly FLOAT_VEC4:GLenum;readonly FRAGMENT_SHADER:GLenum;readonly FRAMEBUFFER:GLenum;readonly FRAMEBUFFER_ATTACHMENT_OBJECT_NAME:GLenum;readonly FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE:GLenum;readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE:GLenum;readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL:GLenum;readonly FRAMEBUFFER_BINDING:GLenum;readonly FRAMEBUFFER_COMPLETE:GLenum;readonly FRAMEBUFFER_INCOMPLETE_ATTACHMENT:GLenum;readonly FRAMEBUFFER_INCOMPLETE_DIMENSIONS:GLenum;readonly FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT:GLenum;readonly FRAMEBUFFER_UNSUPPORTED:GLenum;readonly FRONT:GLenum;readonly FRONT_AND_BACK:GLenum;readonly FRONT_FACE:GLenum;readonly FUNC_ADD:GLenum;readonly FUNC_REVERSE_SUBTRACT:GLenum;readonly FUNC_SUBTRACT:GLenum;readonly GENERATE_MIPMAP_HINT:GLenum;readonly GEQUAL:GLenum;readonly GREATER:GLenum;readonly GREEN_BITS:GLenum;readonly HIGH_FLOAT:GLenum;readonly HIGH_INT:GLenum;readonly IMPLEMENTATION_COLOR_READ_FORMAT:GLenum;readonly IMPLEMENTATION_COLOR_READ_TYPE:GLenum;readonly INCR:GLenum;readonly INCR_WRAP:GLenum;readonly INT:GLenum;readonly INT_VEC2:GLenum;readonly INT_VEC3:GLenum;readonly INT_VEC4:GLenum;readonly INVALID_ENUM:GLenum;readonly INVALID_FRAMEBUFFER_OPERATION:GLenum;readonly INVALID_OPERATION:GLenum;readonly INVALID_VALUE:GLenum;readonly INVERT:GLenum;readonly KEEP:GLenum;readonly LEQUAL:GLenum;readonly LESS:GLenum;readonly LINEAR:GLenum;readonly LINEAR_MIPMAP_LINEAR:GLenum;readonly LINEAR_MIPMAP_NEAREST:GLenum;readonly LINES:GLenum;readonly LINE_LOOP:GLenum;readonly LINE_STRIP:GLenum;readonly LINE_WIDTH:GLenum;readonly LINK_STATUS:GLenum;readonly LOW_FLOAT:GLenum;readonly LOW_INT:GLenum;readonly LUMINANCE:GLenum;readonly LUMINANCE_ALPHA:GLenum;readonly MAX_COMBINED_TEXTURE_IMAGE_UNITS:GLenum;readonly MAX_CUBE_MAP_TEXTURE_SIZE:GLenum;readonly MAX_FRAGMENT_UNIFORM_VECTORS:GLenum;readonly MAX_RENDERBUFFER_SIZE:GLenum;readonly MAX_TEXTURE_IMAGE_UNITS:GLenum;readonly MAX_TEXTURE_SIZE:GLenum;readonly MAX_VARYING_VECTORS:GLenum;readonly MAX_VERTEX_ATTRIBS:GLenum;readonly MAX_VERTEX_TEXTURE_IMAGE_UNITS:GLenum;readonly MAX_VERTEX_UNIFORM_VECTORS:GLenum;readonly MAX_VIEWPORT_DIMS:GLenum;readonly MEDIUM_FLOAT:GLenum;readonly MEDIUM_INT:GLenum;readonly MIRRORED_REPEAT:GLenum;readonly NEAREST:GLenum;readonly NEAREST_MIPMAP_LINEAR:GLenum;readonly NEAREST_MIPMAP_NEAREST:GLenum;readonly NEVER:GLenum;readonly NICEST:GLenum;readonly NONE:GLenum;readonly NOTEQUAL:GLenum;readonly NO_ERROR:GLenum;readonly ONE:GLenum;readonly ONE_MINUS_CONSTANT_ALPHA:GLenum;readonly ONE_MINUS_CONSTANT_COLOR:GLenum;readonly ONE_MINUS_DST_ALPHA:GLenum;readonly ONE_MINUS_DST_COLOR:GLenum;readonly ONE_MINUS_SRC_ALPHA:GLenum;readonly ONE_MINUS_SRC_COLOR:GLenum;readonly OUT_OF_MEMORY:GLenum;readonly PACK_ALIGNMENT:GLenum;readonly POINTS:GLenum;readonly POLYGON_OFFSET_FACTOR:GLenum;readonly POLYGON_OFFSET_FILL:GLenum;readonly POLYGON_OFFSET_UNITS:GLenum;readonly RED_BITS:GLenum;readonly RENDERBUFFER:GLenum;readonly RENDERBUFFER_ALPHA_SIZE:GLenum;readonly RENDERBUFFER_BINDING:GLenum;readonly RENDERBUFFER_BLUE_SIZE:GLenum;readonly RENDERBUFFER_DEPTH_SIZE:GLenum;readonly RENDERBUFFER_GREEN_SIZE:GLenum;readonly RENDERBUFFER_HEIGHT:GLenum;readonly RENDERBUFFER_INTERNAL_FORMAT:GLenum;readonly RENDERBUFFER_RED_SIZE:GLenum;readonly RENDERBUFFER_STENCIL_SIZE:GLenum;readonly RENDERBUFFER_WIDTH:GLenum;readonly RENDERER:GLenum;readonly REPEAT:GLenum;readonly REPLACE:GLenum;readonly RGB:GLenum;readonly RGB565:GLenum;readonly RGB5_A1:GLenum;readonly RGBA:GLenum;readonly RGBA4:GLenum;readonly SAMPLER_2D:GLenum;readonly SAMPLER_CUBE:GLenum;readonly SAMPLES:GLenum;readonly SAMPLE_ALPHA_TO_COVERAGE:GLenum;readonly SAMPLE_BUFFERS:GLenum;readonly SAMPLE_COVERAGE:GLenum;readonly SAMPLE_COVERAGE_INVERT:GLenum;readonly SAMPLE_COVERAGE_VALUE:GLenum;readonly SCISSOR_BOX:GLenum;readonly SCISSOR_TEST:GLenum;readonly SHADER_TYPE:GLenum;readonly SHADING_LANGUAGE_VERSION:GLenum;readonly SHORT:GLenum;readonly SRC_ALPHA:GLenum;readonly SRC_ALPHA_SATURATE:GLenum;readonly SRC_COLOR:GLenum;readonly STATIC_DRAW:GLenum;readonly STENCIL_ATTACHMENT:GLenum;readonly STENCIL_BACK_FAIL:GLenum;readonly STENCIL_BACK_FUNC:GLenum;readonly STENCIL_BACK_PASS_DEPTH_FAIL:GLenum;readonly STENCIL_BACK_PASS_DEPTH_PASS:GLenum;readonly STENCIL_BACK_REF:GLenum;readonly STENCIL_BACK_VALUE_MASK:GLenum;readonly STENCIL_BACK_WRITEMASK:GLenum;readonly STENCIL_BITS:GLenum;readonly STENCIL_BUFFER_BIT:GLenum;readonly STENCIL_CLEAR_VALUE:GLenum;readonly STENCIL_FAIL:GLenum;readonly STENCIL_FUNC:GLenum;readonly STENCIL_INDEX8:GLenum;readonly STENCIL_PASS_DEPTH_FAIL:GLenum;readonly STENCIL_PASS_DEPTH_PASS:GLenum;readonly STENCIL_REF:GLenum;readonly STENCIL_TEST:GLenum;readonly STENCIL_VALUE_MASK:GLenum;readonly STENCIL_WRITEMASK:GLenum;readonly STREAM_DRAW:GLenum;readonly SUBPIXEL_BITS:GLenum;readonly TEXTURE:GLenum;readonly TEXTURE0:GLenum;readonly TEXTURE1:GLenum;readonly TEXTURE10:GLenum;readonly TEXTURE11:GLenum;readonly TEXTURE12:GLenum;readonly TEXTURE13:GLenum;readonly TEXTURE14:GLenum;readonly TEXTURE15:GLenum;readonly TEXTURE16:GLenum;readonly TEXTURE17:GLenum;readonly TEXTURE18:GLenum;readonly TEXTURE19:GLenum;readonly TEXTURE2:GLenum;readonly TEXTURE20:GLenum;readonly TEXTURE21:GLenum;readonly TEXTURE22:GLenum;readonly TEXTURE23:GLenum;readonly TEXTURE24:GLenum;readonly TEXTURE25:GLenum;readonly TEXTURE26:GLenum;readonly TEXTURE27:GLenum;readonly TEXTURE28:GLenum;readonly TEXTURE29:GLenum;readonly TEXTURE3:GLenum;readonly TEXTURE30:GLenum;readonly TEXTURE31:GLenum;readonly TEXTURE4:GLenum;readonly TEXTURE5:GLenum;readonly TEXTURE6:GLenum;readonly TEXTURE7:GLenum;readonly TEXTURE8:GLenum;readonly TEXTURE9:GLenum;readonly TEXTURE_2D:GLenum;readonly TEXTURE_BINDING_2D:GLenum;readonly TEXTURE_BINDING_CUBE_MAP:GLenum;readonly TEXTURE_CUBE_MAP:GLenum;readonly TEXTURE_CUBE_MAP_NEGATIVE_X:GLenum;readonly TEXTURE_CUBE_MAP_NEGATIVE_Y:GLenum;readonly TEXTURE_CUBE_MAP_NEGATIVE_Z:GLenum;readonly TEXTURE_CUBE_MAP_POSITIVE_X:GLenum;readonly TEXTURE_CUBE_MAP_POSITIVE_Y:GLenum;readonly TEXTURE_CUBE_MAP_POSITIVE_Z:GLenum;readonly TEXTURE_MAG_FILTER:GLenum;readonly TEXTURE_MIN_FILTER:GLenum;readonly TEXTURE_WRAP_S:GLenum;readonly TEXTURE_WRAP_T:GLenum;readonly TRIANGLES:GLenum;readonly TRIANGLE_FAN:GLenum;readonly TRIANGLE_STRIP:GLenum;readonly UNPACK_ALIGNMENT:GLenum;readonly UNPACK_COLORSPACE_CONVERSION_WEBGL:GLenum;readonly UNPACK_FLIP_Y_WEBGL:GLenum;readonly UNPACK_PREMULTIPLY_ALPHA_WEBGL:GLenum;readonly UNSIGNED_BYTE:GLenum;readonly UNSIGNED_INT:GLenum;readonly UNSIGNED_SHORT:GLenum;readonly UNSIGNED_SHORT_4_4_4_4:GLenum;readonly UNSIGNED_SHORT_5_5_5_1:GLenum;readonly UNSIGNED_SHORT_5_6_5:GLenum;readonly VALIDATE_STATUS:GLenum;readonly VENDOR:GLenum;readonly VERSION:GLenum;readonly VERTEX_ATTRIB_ARRAY_BUFFER_BINDING:GLenum;readonly VERTEX_ATTRIB_ARRAY_ENABLED:GLenum;readonly VERTEX_ATTRIB_ARRAY_NORMALIZED:GLenum;readonly VERTEX_ATTRIB_ARRAY_POINTER:GLenum;readonly VERTEX_ATTRIB_ARRAY_SIZE:GLenum;readonly VERTEX_ATTRIB_ARRAY_STRIDE:GLenum;readonly VERTEX_ATTRIB_ARRAY_TYPE:GLenum;readonly VERTEX_SHADER:GLenum;readonly VIEWPORT:GLenum;readonly ZERO:GLenum;};interface WebGLRenderingContextBase{readonly drawingBufferHeight:GLsizei;readonly drawingBufferWidth:GLsizei;activeTexture(texture:GLenum):void;attachShader(program:WebGLProgram,shader:WebGLShader):void;bindAttribLocation(program:WebGLProgram,index:GLuint,name:string):void;bindBuffer(target:GLenum,buffer:WebGLBuffer|null):void;bindFramebuffer(target:GLenum,framebuffer:WebGLFramebuffer|null):void;bindRenderbuffer(target:GLenum,renderbuffer:WebGLRenderbuffer|null):void;bindTexture(target:GLenum,texture:WebGLTexture|null):void;blendColor(red:GLclampf,green:GLclampf,blue:GLclampf,alpha:GLclampf):void;blendEquation(mode:GLenum):void;blendEquationSeparate(modeRGB:GLenum,modeAlpha:GLenum):void;blendFunc(sfactor:GLenum,dfactor:GLenum):void;blendFuncSeparate(srcRGB:GLenum,dstRGB:GLenum,srcAlpha:GLenum,dstAlpha:GLenum):void;checkFramebufferStatus(target:GLenum):GLenum;clear(mask:GLbitfield):void;clearColor(red:GLclampf,green:GLclampf,blue:GLclampf,alpha:GLclampf):void;clearDepth(depth:GLclampf):void;clearStencil(s:GLint):void;colorMask(red:GLboolean,green:GLboolean,blue:GLboolean,alpha:GLboolean):void;compileShader(shader:WebGLShader):void;copyTexImage2D(target:GLenum,level:GLint,internalformat:GLenum,x:GLint,y:GLint,width:GLsizei,height:GLsizei,border:GLint):void;copyTexSubImage2D(target:GLenum,level:GLint,xoffset:GLint,yoffset:GLint,x:GLint,y:GLint,width:GLsizei,height:GLsizei):void;createBuffer():WebGLBuffer|null;createFramebuffer():WebGLFramebuffer|null;createProgram():WebGLProgram|null;createRenderbuffer():WebGLRenderbuffer|null;createShader(type:GLenum):WebGLShader|null;createTexture():WebGLTexture|null;cullFace(mode:GLenum):void;deleteBuffer(buffer:WebGLBuffer|null):void;deleteFramebuffer(framebuffer:WebGLFramebuffer|null):void;deleteProgram(program:WebGLProgram|null):void;deleteRenderbuffer(renderbuffer:WebGLRenderbuffer|null):void;deleteShader(shader:WebGLShader|null):void;deleteTexture(texture:WebGLTexture|null):void;depthFunc(func:GLenum):void;depthMask(flag:GLboolean):void;depthRange(zNear:GLclampf,zFar:GLclampf):void;detachShader(program:WebGLProgram,shader:WebGLShader):void;disable(cap:GLenum):void;disableVertexAttribArray(index:GLuint):void;drawArrays(mode:GLenum,first:GLint,count:GLsizei):void;drawElements(mode:GLenum,count:GLsizei,type:GLenum,offset:GLintptr):void;enable(cap:GLenum):void;enableVertexAttribArray(index:GLuint):void;finish():void;flush():void;framebufferRenderbuffer(target:GLenum,attachment:GLenum,renderbuffertarget:GLenum,renderbuffer:WebGLRenderbuffer|null):void;framebufferTexture2D(target:GLenum,attachment:GLenum,textarget:GLenum,texture:WebGLTexture|null,level:GLint):void;frontFace(mode:GLenum):void;generateMipmap(target:GLenum):void;getActiveAttrib(program:WebGLProgram,index:GLuint):WebGLActiveInfo|null;getActiveUniform(program:WebGLProgram,index:GLuint):WebGLActiveInfo|null;getAttachedShaders(program:WebGLProgram):WebGLShader[]|null;getAttribLocation(program:WebGLProgram,name:string):GLint;getBufferParameter(target:GLenum,pname:GLenum):any;getContextAttributes():WebGLContextAttributes|null;getError():GLenum;getExtension(extensionName:"ANGLE_instanced_arrays"):ANGLE_instanced_arrays|null;getExtension(extensionName:"EXT_blend_minmax"):EXT_blend_minmax|null;getExtension(extensionName:"EXT_color_buffer_float"):EXT_color_buffer_float|null;getExtension(extensionName:"EXT_color_buffer_half_float"):EXT_color_buffer_half_float|null;getExtension(extensionName:"EXT_float_blend"):EXT_float_blend|null;getExtension(extensionName:"EXT_frag_depth"):EXT_frag_depth|null;getExtension(extensionName:"EXT_sRGB"):EXT_sRGB|null;getExtension(extensionName:"EXT_shader_texture_lod"):EXT_shader_texture_lod|null;getExtension(extensionName:"EXT_texture_compression_bptc"):EXT_texture_compression_bptc|null;getExtension(extensionName:"EXT_texture_compression_rgtc"):EXT_texture_compression_rgtc|null;getExtension(extensionName:"EXT_texture_filter_anisotropic"):EXT_texture_filter_anisotropic|null;getExtension(extensionName:"KHR_parallel_shader_compile"):KHR_parallel_shader_compile|null;getExtension(extensionName:"OES_element_index_uint"):OES_element_index_uint|null;getExtension(extensionName:"OES_fbo_render_mipmap"):OES_fbo_render_mipmap|null;getExtension(extensionName:"OES_standard_derivatives"):OES_standard_derivatives|null;getExtension(extensionName:"OES_texture_float"):OES_texture_float|null;getExtension(extensionName:"OES_texture_float_linear"):OES_texture_float_linear|null;getExtension(extensionName:"OES_texture_half_float"):OES_texture_half_float|null;getExtension(extensionName:"OES_texture_half_float_linear"):OES_texture_half_float_linear|null;getExtension(extensionName:"OES_vertex_array_object"):OES_vertex_array_object|null;getExtension(extensionName:"OVR_multiview2"):OVR_multiview2|null;getExtension(extensionName:"WEBGL_color_buffer_float"):WEBGL_color_buffer_float|null;getExtension(extensionName:"WEBGL_compressed_texture_astc"):WEBGL_compressed_texture_astc|null;getExtension(extensionName:"WEBGL_compressed_texture_etc"):WEBGL_compressed_texture_etc|null;getExtension(extensionName:"WEBGL_compressed_texture_etc1"):WEBGL_compressed_texture_etc1|null;getExtension(extensionName:"WEBGL_compressed_texture_s3tc"):WEBGL_compressed_texture_s3tc|null;getExtension(extensionName:"WEBGL_compressed_texture_s3tc_srgb"):WEBGL_compressed_texture_s3tc_srgb|null;getExtension(extensionName:"WEBGL_debug_renderer_info"):WEBGL_debug_renderer_info|null;getExtension(extensionName:"WEBGL_debug_shaders"):WEBGL_debug_shaders|null;getExtension(extensionName:"WEBGL_depth_texture"):WEBGL_depth_texture|null;getExtension(extensionName:"WEBGL_draw_buffers"):WEBGL_draw_buffers|null;getExtension(extensionName:"WEBGL_lose_context"):WEBGL_lose_context|null;getExtension(extensionName:"WEBGL_multi_draw"):WEBGL_multi_draw|null;getExtension(name:string):any;getFramebufferAttachmentParameter(target:GLenum,attachment:GLenum,pname:GLenum):any;getParameter(pname:GLenum):any;getProgramInfoLog(program:WebGLProgram):string|null;getProgramParameter(program:WebGLProgram,pname:GLenum):any;getRenderbufferParameter(target:GLenum,pname:GLenum):any;getShaderInfoLog(shader:WebGLShader):string|null;getShaderParameter(shader:WebGLShader,pname:GLenum):any;getShaderPrecisionFormat(shadertype:GLenum,precisiontype:GLenum):WebGLShaderPrecisionFormat|null;getShaderSource(shader:WebGLShader):string|null;getSupportedExtensions():string[]|null;getTexParameter(target:GLenum,pname:GLenum):any;getUniform(program:WebGLProgram,location:WebGLUniformLocation):any;getUniformLocation(program:WebGLProgram,name:string):WebGLUniformLocation|null;getVertexAttrib(index:GLuint,pname:GLenum):any;getVertexAttribOffset(index:GLuint,pname:GLenum):GLintptr;hint(target:GLenum,mode:GLenum):void;isBuffer(buffer:WebGLBuffer|null):GLboolean;isContextLost():boolean;isEnabled(cap:GLenum):GLboolean;isFramebuffer(framebuffer:WebGLFramebuffer|null):GLboolean;isProgram(program:WebGLProgram|null):GLboolean;isRenderbuffer(renderbuffer:WebGLRenderbuffer|null):GLboolean;isShader(shader:WebGLShader|null):GLboolean;isTexture(texture:WebGLTexture|null):GLboolean;lineWidth(width:GLfloat):void;linkProgram(program:WebGLProgram):void;pixelStorei(pname:GLenum,param:GLint|GLboolean):void;polygonOffset(factor:GLfloat,units:GLfloat):void;renderbufferStorage(target:GLenum,internalformat:GLenum,width:GLsizei,height:GLsizei):void;sampleCoverage(value:GLclampf,invert:GLboolean):void;scissor(x:GLint,y:GLint,width:GLsizei,height:GLsizei):void;shaderSource(shader:WebGLShader,source:string):void;stencilFunc(func:GLenum,ref:GLint,mask:GLuint):void;stencilFuncSeparate(face:GLenum,func:GLenum,ref:GLint,mask:GLuint):void;stencilMask(mask:GLuint):void;stencilMaskSeparate(face:GLenum,mask:GLuint):void;stencilOp(fail:GLenum,zfail:GLenum,zpass:GLenum):void;stencilOpSeparate(face:GLenum,fail:GLenum,zfail:GLenum,zpass:GLenum):void;texParameterf(target:GLenum,pname:GLenum,param:GLfloat):void;texParameteri(target:GLenum,pname:GLenum,param:GLint):void;uniform1f(location:WebGLUniformLocation|null,x:GLfloat):void;uniform1i(location:WebGLUniformLocation|null,x:GLint):void;uniform2f(location:WebGLUniformLocation|null,x:GLfloat,y:GLfloat):void;uniform2i(location:WebGLUniformLocation|null,x:GLint,y:GLint):void;uniform3f(location:WebGLUniformLocation|null,x:GLfloat,y:GLfloat,z:GLfloat):void;uniform3i(location:WebGLUniformLocation|null,x:GLint,y:GLint,z:GLint):void;uniform4f(location:WebGLUniformLocation|null,x:GLfloat,y:GLfloat,z:GLfloat,w:GLfloat):void;uniform4i(location:WebGLUniformLocation|null,x:GLint,y:GLint,z:GLint,w:GLint):void;useProgram(program:WebGLProgram|null):void;validateProgram(program:WebGLProgram):void;vertexAttrib1f(index:GLuint,x:GLfloat):void;vertexAttrib1fv(index:GLuint,values:Float32List):void;vertexAttrib2f(index:GLuint,x:GLfloat,y:GLfloat):void;vertexAttrib2fv(index:GLuint,values:Float32List):void;vertexAttrib3f(index:GLuint,x:GLfloat,y:GLfloat,z:GLfloat):void;vertexAttrib3fv(index:GLuint,values:Float32List):void;vertexAttrib4f(index:GLuint,x:GLfloat,y:GLfloat,z:GLfloat,w:GLfloat):void;vertexAttrib4fv(index:GLuint,values:Float32List):void;vertexAttribPointer(index:GLuint,size:GLint,type:GLenum,normalized:GLboolean,stride:GLsizei,offset:GLintptr):void;viewport(x:GLint,y:GLint,width:GLsizei,height:GLsizei):void;readonly ACTIVE_ATTRIBUTES:GLenum;readonly ACTIVE_TEXTURE:GLenum;readonly ACTIVE_UNIFORMS:GLenum;readonly ALIASED_LINE_WIDTH_RANGE:GLenum;readonly ALIASED_POINT_SIZE_RANGE:GLenum;readonly ALPHA:GLenum;readonly ALPHA_BITS:GLenum;readonly ALWAYS:GLenum;readonly ARRAY_BUFFER:GLenum;readonly ARRAY_BUFFER_BINDING:GLenum;readonly ATTACHED_SHADERS:GLenum;readonly BACK:GLenum;readonly BLEND:GLenum;readonly BLEND_COLOR:GLenum;readonly BLEND_DST_ALPHA:GLenum;readonly BLEND_DST_RGB:GLenum;readonly BLEND_EQUATION:GLenum;readonly BLEND_EQUATION_ALPHA:GLenum;readonly BLEND_EQUATION_RGB:GLenum;readonly BLEND_SRC_ALPHA:GLenum;readonly BLEND_SRC_RGB:GLenum;readonly BLUE_BITS:GLenum;readonly BOOL:GLenum;readonly BOOL_VEC2:GLenum;readonly BOOL_VEC3:GLenum;readonly BOOL_VEC4:GLenum;readonly BROWSER_DEFAULT_WEBGL:GLenum;readonly BUFFER_SIZE:GLenum;readonly BUFFER_USAGE:GLenum;readonly BYTE:GLenum;readonly CCW:GLenum;readonly CLAMP_TO_EDGE:GLenum;readonly COLOR_ATTACHMENT0:GLenum;readonly COLOR_BUFFER_BIT:GLenum;readonly COLOR_CLEAR_VALUE:GLenum;readonly COLOR_WRITEMASK:GLenum;readonly COMPILE_STATUS:GLenum;readonly COMPRESSED_TEXTURE_FORMATS:GLenum;readonly CONSTANT_ALPHA:GLenum;readonly CONSTANT_COLOR:GLenum;readonly CONTEXT_LOST_WEBGL:GLenum;readonly CULL_FACE:GLenum;readonly CULL_FACE_MODE:GLenum;readonly CURRENT_PROGRAM:GLenum;readonly CURRENT_VERTEX_ATTRIB:GLenum;readonly CW:GLenum;readonly DECR:GLenum;readonly DECR_WRAP:GLenum;readonly DELETE_STATUS:GLenum;readonly DEPTH_ATTACHMENT:GLenum;readonly DEPTH_BITS:GLenum;readonly DEPTH_BUFFER_BIT:GLenum;readonly DEPTH_CLEAR_VALUE:GLenum;readonly DEPTH_COMPONENT:GLenum;readonly DEPTH_COMPONENT16:GLenum;readonly DEPTH_FUNC:GLenum;readonly DEPTH_RANGE:GLenum;readonly DEPTH_STENCIL:GLenum;readonly DEPTH_STENCIL_ATTACHMENT:GLenum;readonly DEPTH_TEST:GLenum;readonly DEPTH_WRITEMASK:GLenum;readonly DITHER:GLenum;readonly DONT_CARE:GLenum;readonly DST_ALPHA:GLenum;readonly DST_COLOR:GLenum;readonly DYNAMIC_DRAW:GLenum;readonly ELEMENT_ARRAY_BUFFER:GLenum;readonly ELEMENT_ARRAY_BUFFER_BINDING:GLenum;readonly EQUAL:GLenum;readonly FASTEST:GLenum;readonly FLOAT:GLenum;readonly FLOAT_MAT2:GLenum;readonly FLOAT_MAT3:GLenum;readonly FLOAT_MAT4:GLenum;readonly FLOAT_VEC2:GLenum;readonly FLOAT_VEC3:GLenum;readonly FLOAT_VEC4:GLenum;readonly FRAGMENT_SHADER:GLenum;readonly FRAMEBUFFER:GLenum;readonly FRAMEBUFFER_ATTACHMENT_OBJECT_NAME:GLenum;readonly FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE:GLenum;readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE:GLenum;readonly FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL:GLenum;readonly FRAMEBUFFER_BINDING:GLenum;readonly FRAMEBUFFER_COMPLETE:GLenum;readonly FRAMEBUFFER_INCOMPLETE_ATTACHMENT:GLenum;readonly FRAMEBUFFER_INCOMPLETE_DIMENSIONS:GLenum;readonly FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT:GLenum;readonly FRAMEBUFFER_UNSUPPORTED:GLenum;readonly FRONT:GLenum;readonly FRONT_AND_BACK:GLenum;readonly FRONT_FACE:GLenum;readonly FUNC_ADD:GLenum;readonly FUNC_REVERSE_SUBTRACT:GLenum;readonly FUNC_SUBTRACT:GLenum;readonly GENERATE_MIPMAP_HINT:GLenum;readonly GEQUAL:GLenum;readonly GREATER:GLenum;readonly GREEN_BITS:GLenum;readonly HIGH_FLOAT:GLenum;readonly HIGH_INT:GLenum;readonly IMPLEMENTATION_COLOR_READ_FORMAT:GLenum;readonly IMPLEMENTATION_COLOR_READ_TYPE:GLenum;readonly INCR:GLenum;readonly INCR_WRAP:GLenum;readonly INT:GLenum;readonly INT_VEC2:GLenum;readonly INT_VEC3:GLenum;readonly INT_VEC4:GLenum;readonly INVALID_ENUM:GLenum;readonly INVALID_FRAMEBUFFER_OPERATION:GLenum;readonly INVALID_OPERATION:GLenum;readonly INVALID_VALUE:GLenum;readonly INVERT:GLenum;readonly KEEP:GLenum;readonly LEQUAL:GLenum;readonly LESS:GLenum;readonly LINEAR:GLenum;readonly LINEAR_MIPMAP_LINEAR:GLenum;readonly LINEAR_MIPMAP_NEAREST:GLenum;readonly LINES:GLenum;readonly LINE_LOOP:GLenum;readonly LINE_STRIP:GLenum;readonly LINE_WIDTH:GLenum;readonly LINK_STATUS:GLenum;readonly LOW_FLOAT:GLenum;readonly LOW_INT:GLenum;readonly LUMINANCE:GLenum;readonly LUMINANCE_ALPHA:GLenum;readonly MAX_COMBINED_TEXTURE_IMAGE_UNITS:GLenum;readonly MAX_CUBE_MAP_TEXTURE_SIZE:GLenum;readonly MAX_FRAGMENT_UNIFORM_VECTORS:GLenum;readonly MAX_RENDERBUFFER_SIZE:GLenum;readonly MAX_TEXTURE_IMAGE_UNITS:GLenum;readonly MAX_TEXTURE_SIZE:GLenum;readonly MAX_VARYING_VECTORS:GLenum;readonly MAX_VERTEX_ATTRIBS:GLenum;readonly MAX_VERTEX_TEXTURE_IMAGE_UNITS:GLenum;readonly MAX_VERTEX_UNIFORM_VECTORS:GLenum;readonly MAX_VIEWPORT_DIMS:GLenum;readonly MEDIUM_FLOAT:GLenum;readonly MEDIUM_INT:GLenum;readonly MIRRORED_REPEAT:GLenum;readonly NEAREST:GLenum;readonly NEAREST_MIPMAP_LINEAR:GLenum;readonly NEAREST_MIPMAP_NEAREST:GLenum;readonly NEVER:GLenum;readonly NICEST:GLenum;readonly NONE:GLenum;readonly NOTEQUAL:GLenum;readonly NO_ERROR:GLenum;readonly ONE:GLenum;readonly ONE_MINUS_CONSTANT_ALPHA:GLenum;readonly ONE_MINUS_CONSTANT_COLOR:GLenum;readonly ONE_MINUS_DST_ALPHA:GLenum;readonly ONE_MINUS_DST_COLOR:GLenum;readonly ONE_MINUS_SRC_ALPHA:GLenum;readonly ONE_MINUS_SRC_COLOR:GLenum;readonly OUT_OF_MEMORY:GLenum;readonly PACK_ALIGNMENT:GLenum;readonly POINTS:GLenum;readonly POLYGON_OFFSET_FACTOR:GLenum;readonly POLYGON_OFFSET_FILL:GLenum;readonly POLYGON_OFFSET_UNITS:GLenum;readonly RED_BITS:GLenum;readonly RENDERBUFFER:GLenum;readonly RENDERBUFFER_ALPHA_SIZE:GLenum;readonly RENDERBUFFER_BINDING:GLenum;readonly RENDERBUFFER_BLUE_SIZE:GLenum;readonly RENDERBUFFER_DEPTH_SIZE:GLenum;readonly RENDERBUFFER_GREEN_SIZE:GLenum;readonly RENDERBUFFER_HEIGHT:GLenum;readonly RENDERBUFFER_INTERNAL_FORMAT:GLenum;readonly RENDERBUFFER_RED_SIZE:GLenum;readonly RENDERBUFFER_STENCIL_SIZE:GLenum;readonly RENDERBUFFER_WIDTH:GLenum;readonly RENDERER:GLenum;readonly REPEAT:GLenum;readonly REPLACE:GLenum;readonly RGB:GLenum;readonly RGB565:GLenum;readonly RGB5_A1:GLenum;readonly RGBA:GLenum;readonly RGBA4:GLenum;readonly SAMPLER_2D:GLenum;readonly SAMPLER_CUBE:GLenum;readonly SAMPLES:GLenum;readonly SAMPLE_ALPHA_TO_COVERAGE:GLenum;readonly SAMPLE_BUFFERS:GLenum;readonly SAMPLE_COVERAGE:GLenum;readonly SAMPLE_COVERAGE_INVERT:GLenum;readonly SAMPLE_COVERAGE_VALUE:GLenum;readonly SCISSOR_BOX:GLenum;readonly SCISSOR_TEST:GLenum;readonly SHADER_TYPE:GLenum;readonly SHADING_LANGUAGE_VERSION:GLenum;readonly SHORT:GLenum;readonly SRC_ALPHA:GLenum;readonly SRC_ALPHA_SATURATE:GLenum;readonly SRC_COLOR:GLenum;readonly STATIC_DRAW:GLenum;readonly STENCIL_ATTACHMENT:GLenum;readonly STENCIL_BACK_FAIL:GLenum;readonly STENCIL_BACK_FUNC:GLenum;readonly STENCIL_BACK_PASS_DEPTH_FAIL:GLenum;readonly STENCIL_BACK_PASS_DEPTH_PASS:GLenum;readonly STENCIL_BACK_REF:GLenum;readonly STENCIL_BACK_VALUE_MASK:GLenum;readonly STENCIL_BACK_WRITEMASK:GLenum;readonly STENCIL_BITS:GLenum;readonly STENCIL_BUFFER_BIT:GLenum;readonly STENCIL_CLEAR_VALUE:GLenum;readonly STENCIL_FAIL:GLenum;readonly STENCIL_FUNC:GLenum;readonly STENCIL_INDEX8:GLenum;readonly STENCIL_PASS_DEPTH_FAIL:GLenum;readonly STENCIL_PASS_DEPTH_PASS:GLenum;readonly STENCIL_REF:GLenum;readonly STENCIL_TEST:GLenum;readonly STENCIL_VALUE_MASK:GLenum;readonly STENCIL_WRITEMASK:GLenum;readonly STREAM_DRAW:GLenum;readonly SUBPIXEL_BITS:GLenum;readonly TEXTURE:GLenum;readonly TEXTURE0:GLenum;readonly TEXTURE1:GLenum;readonly TEXTURE10:GLenum;readonly TEXTURE11:GLenum;readonly TEXTURE12:GLenum;readonly TEXTURE13:GLenum;readonly TEXTURE14:GLenum;readonly TEXTURE15:GLenum;readonly TEXTURE16:GLenum;readonly TEXTURE17:GLenum;readonly TEXTURE18:GLenum;readonly TEXTURE19:GLenum;readonly TEXTURE2:GLenum;readonly TEXTURE20:GLenum;readonly TEXTURE21:GLenum;readonly TEXTURE22:GLenum;readonly TEXTURE23:GLenum;readonly TEXTURE24:GLenum;readonly TEXTURE25:GLenum;readonly TEXTURE26:GLenum;readonly TEXTURE27:GLenum;readonly TEXTURE28:GLenum;readonly TEXTURE29:GLenum;readonly TEXTURE3:GLenum;readonly TEXTURE30:GLenum;readonly TEXTURE31:GLenum;readonly TEXTURE4:GLenum;readonly TEXTURE5:GLenum;readonly TEXTURE6:GLenum;readonly TEXTURE7:GLenum;readonly TEXTURE8:GLenum;readonly TEXTURE9:GLenum;readonly TEXTURE_2D:GLenum;readonly TEXTURE_BINDING_2D:GLenum;readonly TEXTURE_BINDING_CUBE_MAP:GLenum;readonly TEXTURE_CUBE_MAP:GLenum;readonly TEXTURE_CUBE_MAP_NEGATIVE_X:GLenum;readonly TEXTURE_CUBE_MAP_NEGATIVE_Y:GLenum;readonly TEXTURE_CUBE_MAP_NEGATIVE_Z:GLenum;readonly TEXTURE_CUBE_MAP_POSITIVE_X:GLenum;readonly TEXTURE_CUBE_MAP_POSITIVE_Y:GLenum;readonly TEXTURE_CUBE_MAP_POSITIVE_Z:GLenum;readonly TEXTURE_MAG_FILTER:GLenum;readonly TEXTURE_MIN_FILTER:GLenum;readonly TEXTURE_WRAP_S:GLenum;readonly TEXTURE_WRAP_T:GLenum;readonly TRIANGLES:GLenum;readonly TRIANGLE_FAN:GLenum;readonly TRIANGLE_STRIP:GLenum;readonly UNPACK_ALIGNMENT:GLenum;readonly UNPACK_COLORSPACE_CONVERSION_WEBGL:GLenum;readonly UNPACK_FLIP_Y_WEBGL:GLenum;readonly UNPACK_PREMULTIPLY_ALPHA_WEBGL:GLenum;readonly UNSIGNED_BYTE:GLenum;readonly UNSIGNED_INT:GLenum;readonly UNSIGNED_SHORT:GLenum;readonly UNSIGNED_SHORT_4_4_4_4:GLenum;readonly UNSIGNED_SHORT_5_5_5_1:GLenum;readonly UNSIGNED_SHORT_5_6_5:GLenum;readonly VALIDATE_STATUS:GLenum;readonly VENDOR:GLenum;readonly VERSION:GLenum;readonly VERTEX_ATTRIB_ARRAY_BUFFER_BINDING:GLenum;readonly VERTEX_ATTRIB_ARRAY_ENABLED:GLenum;readonly VERTEX_ATTRIB_ARRAY_NORMALIZED:GLenum;readonly VERTEX_ATTRIB_ARRAY_POINTER:GLenum;readonly VERTEX_ATTRIB_ARRAY_SIZE:GLenum;readonly VERTEX_ATTRIB_ARRAY_STRIDE:GLenum;readonly VERTEX_ATTRIB_ARRAY_TYPE:GLenum;readonly VERTEX_SHADER:GLenum;readonly VIEWPORT:GLenum;readonly ZERO:GLenum;}interface WebGLRenderingContextOverloads{bufferData(target:GLenum,size:GLsizeiptr,usage:GLenum):void;bufferData(target:GLenum,data:BufferSource|null,usage:GLenum):void;bufferSubData(target:GLenum,offset:GLintptr,data:BufferSource):void;compressedTexImage2D(target:GLenum,level:GLint,internalformat:GLenum,width:GLsizei,height:GLsizei,border:GLint,data:ArrayBufferView):void;compressedTexSubImage2D(target:GLenum,level:GLint,xoffset:GLint,yoffset:GLint,width:GLsizei,height:GLsizei,format:GLenum,data:ArrayBufferView):void;readPixels(x:GLint,y:GLint,width:GLsizei,height:GLsizei,format:GLenum,type:GLenum,pixels:ArrayBufferView|null):void;texImage2D(target:GLenum,level:GLint,internalformat:GLint,width:GLsizei,height:GLsizei,border:GLint,format:GLenum,type:GLenum,pixels:ArrayBufferView|null):void;texImage2D(target:GLenum,level:GLint,internalformat:GLint,format:GLenum,type:GLenum,source:TexImageSource):void;texSubImage2D(target:GLenum,level:GLint,xoffset:GLint,yoffset:GLint,width:GLsizei,height:GLsizei,format:GLenum,type:GLenum,pixels:ArrayBufferView|null):void;texSubImage2D(target:GLenum,level:GLint,xoffset:GLint,yoffset:GLint,format:GLenum,type:GLenum,source:TexImageSource):void;uniform1fv(location:WebGLUniformLocation|null,v:Float32List):void;uniform1iv(location:WebGLUniformLocation|null,v:Int32List):void;uniform2fv(location:WebGLUniformLocation|null,v:Float32List):void;uniform2iv(location:WebGLUniformLocation|null,v:Int32List):void;uniform3fv(location:WebGLUniformLocation|null,v:Float32List):void;uniform3iv(location:WebGLUniformLocation|null,v:Int32List):void;uniform4fv(location:WebGLUniformLocation|null,v:Float32List):void;uniform4iv(location:WebGLUniformLocation|null,v:Int32List):void;uniformMatrix2fv(location:WebGLUniformLocation|null,transpose:GLboolean,value:Float32List):void;uniformMatrix3fv(location:WebGLUniformLocation|null,transpose:GLboolean,value:Float32List):void;uniformMatrix4fv(location:WebGLUniformLocation|null,transpose:GLboolean,value:Float32List):void;}interface WebGLSampler{}declare var WebGLSampler:{prototype:WebGLSampler;new():WebGLSampler;};interface WebGLShader{}declare var WebGLShader:{prototype:WebGLShader;new():WebGLShader;};interface WebGLShaderPrecisionFormat{readonly precision:GLint;readonly rangeMax:GLint;readonly rangeMin:GLint;}declare var WebGLShaderPrecisionFormat:{prototype:WebGLShaderPrecisionFormat;new():WebGLShaderPrecisionFormat;};interface WebGLSync{}declare var WebGLSync:{prototype:WebGLSync;new():WebGLSync;};interface WebGLTexture{}declare var WebGLTexture:{prototype:WebGLTexture;new():WebGLTexture;};interface WebGLTransformFeedback{}declare var WebGLTransformFeedback:{prototype:WebGLTransformFeedback;new():WebGLTransformFeedback;};interface WebGLUniformLocation{}declare var WebGLUniformLocation:{prototype:WebGLUniformLocation;new():WebGLUniformLocation;};interface WebGLVertexArrayObject{}declare var WebGLVertexArrayObject:{prototype:WebGLVertexArrayObject;new():WebGLVertexArrayObject;};interface WebGLVertexArrayObjectOES{}interface WebSocketEventMap{"close":CloseEvent;"error":Event;"message":MessageEvent;"open":Event;}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(type:K,listener:(this:WebSocket,ev:WebSocketEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(type:K,listener:(this:WebSocket,ev:WebSocketEventMap[K])=>any,options?:boolean|EventListenerOptions):void;removeEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|EventListenerOptions):void;}declare var WebSocket:{prototype:WebSocket;new(url:string|URL,protocols?:string|string[]):WebSocket;readonly CLOSED:number;readonly CLOSING:number;readonly CONNECTING:number;readonly OPEN:number;};interface WindowClient extends Client{readonly focused:boolean;readonly visibilityState:DocumentVisibilityState;focus():Promise;navigate(url:string|URL):Promise;}declare var WindowClient:{prototype:WindowClient;new():WindowClient;};interface WindowOrWorkerGlobalScope{readonly caches:CacheStorage;readonly crossOriginIsolated:boolean;readonly crypto:Crypto;readonly indexedDB:IDBFactory;readonly isSecureContext:boolean;readonly origin:string;readonly performance:Performance;atob(data:string):string;btoa(data:string):string;clearInterval(id:number|undefined):void;clearTimeout(id:number|undefined):void;createImageBitmap(image:ImageBitmapSource,options?:ImageBitmapOptions):Promise;createImageBitmap(image:ImageBitmapSource,sx:number,sy:number,sw:number,sh:number,options?:ImageBitmapOptions):Promise;fetch(input:RequestInfo|URL,init?:RequestInit):Promise;queueMicrotask(callback:VoidFunction):void;reportError(e:any):void;setInterval(handler:TimerHandler,timeout?:number,...arguments:any[]):number;setTimeout(handler:TimerHandler,timeout?:number,...arguments:any[]):number;structuredClone(value:any,options?:StructuredSerializeOptions):any;}interface WorkerEventMap extends AbstractWorkerEventMap{"message":MessageEvent;"messageerror":MessageEvent;}interface Worker extends EventTarget,AbstractWorker{onmessage:((this:Worker,ev:MessageEvent)=>any)|null;onmessageerror:((this:Worker,ev:MessageEvent)=>any)|null;postMessage(message:any,transfer:Transferable[]):void;postMessage(message:any,options?:StructuredSerializeOptions):void;terminate():void;addEventListener(type:K,listener:(this:Worker,ev:WorkerEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(type:K,listener:(this:Worker,ev:WorkerEventMap[K])=>any,options?:boolean|EventListenerOptions):void;removeEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|EventListenerOptions):void;}declare var Worker:{prototype:Worker;new(scriptURL:string|URL,options?:WorkerOptions):Worker;};interface WorkerGlobalScopeEventMap{"error":ErrorEvent;"languagechange":Event;"offline":Event;"online":Event;"rejectionhandled":PromiseRejectionEvent;"unhandledrejection":PromiseRejectionEvent;}interface WorkerGlobalScope extends EventTarget,FontFaceSource,WindowOrWorkerGlobalScope{readonly location:WorkerLocation;readonly navigator:WorkerNavigator;onerror:((this:WorkerGlobalScope,ev:ErrorEvent)=>any)|null;onlanguagechange:((this:WorkerGlobalScope,ev:Event)=>any)|null;onoffline:((this:WorkerGlobalScope,ev:Event)=>any)|null;ononline:((this:WorkerGlobalScope,ev:Event)=>any)|null;onrejectionhandled:((this:WorkerGlobalScope,ev:PromiseRejectionEvent)=>any)|null;onunhandledrejection:((this:WorkerGlobalScope,ev:PromiseRejectionEvent)=>any)|null;readonly self:WorkerGlobalScope&typeof globalThis;importScripts(...urls:(string|URL)[]):void;addEventListener(type:K,listener:(this:WorkerGlobalScope,ev:WorkerGlobalScopeEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(type:K,listener:(this:WorkerGlobalScope,ev:WorkerGlobalScopeEventMap[K])=>any,options?:boolean|EventListenerOptions):void;removeEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|EventListenerOptions):void;}declare var WorkerGlobalScope:{prototype:WorkerGlobalScope;new():WorkerGlobalScope;};interface WorkerLocation{readonly hash:string;readonly host:string;readonly hostname:string;readonly href:string;toString():string;readonly origin:string;readonly pathname:string;readonly port:string;readonly protocol:string;readonly search:string;}declare var WorkerLocation:{prototype:WorkerLocation;new():WorkerLocation;};interface WorkerNavigator extends NavigatorConcurrentHardware,NavigatorID,NavigatorLanguage,NavigatorLocks,NavigatorOnLine,NavigatorStorage{readonly mediaCapabilities:MediaCapabilities;}declare var WorkerNavigator:{prototype:WorkerNavigator;new():WorkerNavigator;};interface WritableStream{readonly locked:boolean;abort(reason?:any):Promise;close():Promise;getWriter():WritableStreamDefaultWriter;}declare var WritableStream:{prototype:WritableStream;new(underlyingSink?:UnderlyingSink,strategy?:QueuingStrategy):WritableStream;};interface WritableStreamDefaultController{readonly signal:AbortSignal;error(e?:any):void;}declare var WritableStreamDefaultController:{prototype:WritableStreamDefaultController;new():WritableStreamDefaultController;};interface WritableStreamDefaultWriter{readonly closed:Promise;readonly desiredSize:number|null;readonly ready:Promise;abort(reason?:any):Promise;close():Promise;releaseLock():void;write(chunk?:W):Promise;}declare var WritableStreamDefaultWriter:{prototype:WritableStreamDefaultWriter;new(stream:WritableStream):WritableStreamDefaultWriter;};interface XMLHttpRequestEventMap extends XMLHttpRequestEventTargetEventMap{"readystatechange":Event;}interface XMLHttpRequest extends XMLHttpRequestEventTarget{onreadystatechange:((this:XMLHttpRequest,ev:Event)=>any)|null;readonly readyState:number;readonly response:any;readonly responseText:string;responseType:XMLHttpRequestResponseType;readonly responseURL:string;readonly status:number;readonly statusText:string;timeout:number;readonly upload:XMLHttpRequestUpload;withCredentials:boolean;abort():void;getAllResponseHeaders():string;getResponseHeader(name:string):string|null;open(method:string,url:string|URL):void;open(method:string,url:string|URL,async:boolean,username?:string|null,password?:string|null):void;overrideMimeType(mime:string):void;send(body?:XMLHttpRequestBodyInit|null):void;setRequestHeader(name:string,value:string):void;readonly DONE:number;readonly HEADERS_RECEIVED:number;readonly LOADING:number;readonly OPENED:number;readonly UNSENT:number;addEventListener(type:K,listener:(this:XMLHttpRequest,ev:XMLHttpRequestEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(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;"error":ProgressEvent;"load":ProgressEvent;"loadend":ProgressEvent;"loadstart":ProgressEvent;"progress":ProgressEvent;"timeout":ProgressEvent;}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(type:K,listener:(this:XMLHttpRequestEventTarget,ev:XMLHttpRequestEventTargetEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(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(type:K,listener:(this:XMLHttpRequestUpload,ev:XMLHttpRequestEventTargetEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;removeEventListener(type:K,listener:(this:XMLHttpRequestUpload,ev:XMLHttpRequestEventTargetEventMap[K])=>any,options?:boolean|EventListenerOptions):void;removeEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|EventListenerOptions):void;}declare var XMLHttpRequestUpload:{prototype:XMLHttpRequestUpload;new():XMLHttpRequestUpload;};interface Console{assert(condition?:boolean,...data:any[]):void;clear():void;count(label?:string):void;countReset(label?:string):void;debug(...data:any[]):void;dir(item?:any,options?:any):void;dirxml(...data:any[]):void;error(...data:any[]):void;group(...data:any[]):void;groupCollapsed(...data:any[]):void;groupEnd():void;info(...data:any[]):void;log(...data:any[]):void;table(tabularData?:any,properties?:string[]):void;time(label?:string):void;timeEnd(label?:string):void;timeLog(label?:string,...data:any[]):void;timeStamp(label?:string):void;trace(...data:any[]):void;warn(...data:any[]):void;}declare var console:Console;declare namespace WebAssembly{interface CompileError extends Error{}var CompileError:{prototype:CompileError;new(message?:string):CompileError;(message?:string):CompileError;};interface Global{value:any;valueOf():any;}var Global:{prototype:Global;new(descriptor:GlobalDescriptor,v?:any):Global;};interface Instance{readonly exports:Exports;}var Instance:{prototype:Instance;new(module:Module,importObject?:Imports):Instance;};interface LinkError extends Error{}var LinkError:{prototype:LinkError;new(message?:string):LinkError;(message?:string):LinkError;};interface Memory{readonly buffer:ArrayBuffer;grow(delta:number):number;}var Memory:{prototype:Memory;new(descriptor:MemoryDescriptor):Memory;};interface Module{}var Module:{prototype:Module;new(bytes:BufferSource):Module;customSections(moduleObject:Module,sectionName:string):ArrayBuffer[];exports(moduleObject:Module):ModuleExportDescriptor[];imports(moduleObject:Module):ModuleImportDescriptor[];};interface RuntimeError extends Error{}var RuntimeError:{prototype:RuntimeError;new(message?:string):RuntimeError;(message?:string):RuntimeError;};interface Table{readonly length:number;get(index:number):any;grow(delta:number,value?:any):number;set(index:number,value?:any):void;}var Table:{prototype:Table;new(descriptor:TableDescriptor,value?:any):Table;};interface GlobalDescriptor{mutable?:boolean;value:ValueType;}interface MemoryDescriptor{initial:number;maximum?:number;shared?:boolean;}interface ModuleExportDescriptor{kind:ImportExportKind;name:string;}interface ModuleImportDescriptor{kind:ImportExportKind;module:string;name:string;}interface TableDescriptor{element:TableKind;initial:number;maximum?:number;}interface WebAssemblyInstantiatedSource{instance:Instance;module:Module;}type ImportExportKind="function"|"global"|"memory"|"table";type TableKind="anyfunc"|"externref";type ValueType="anyfunc"|"externref"|"f32"|"f64"|"i32"|"i64"|"v128";type ExportValue=Function|Global|Memory|Table;type Exports=Record;type ImportValue=ExportValue|number;type Imports=Record;type ModuleImports=Record;function compile(bytes:BufferSource):Promise;function compileStreaming(source:Response|PromiseLike):Promise;function instantiate(bytes:BufferSource,importObject?:Imports):Promise;function instantiate(moduleObject:Module,importObject?:Imports):Promise;function instantiateStreaming(source:Response|PromiseLike,importObject?:Imports):Promise;function validate(bytes:BufferSource):boolean;}interface FrameRequestCallback{(time:DOMHighResTimeStamp):void;}interface LockGrantedCallback{(lock:Lock|null):any;}interface OnErrorEventHandlerNonNull{(event:Event|string,source?:string,lineno?:number,colno?:number,error?:Error):any;}interface PerformanceObserverCallback{(entries:PerformanceObserverEntryList,observer:PerformanceObserver):void;}interface QueuingStrategySize{(chunk:T):number;}interface TransformerFlushCallback{(controller:TransformStreamDefaultController):void|PromiseLike;}interface TransformerStartCallback{(controller:TransformStreamDefaultController):any;}interface TransformerTransformCallback{(chunk:I,controller:TransformStreamDefaultController):void|PromiseLike;}interface UnderlyingSinkAbortCallback{(reason?:any):void|PromiseLike;}interface UnderlyingSinkCloseCallback{():void|PromiseLike;}interface UnderlyingSinkStartCallback{(controller:WritableStreamDefaultController):any;}interface UnderlyingSinkWriteCallback{(chunk:W,controller:WritableStreamDefaultController):void|PromiseLike;}interface UnderlyingSourceCancelCallback{(reason?:any):void|PromiseLike;}interface UnderlyingSourcePullCallback{(controller:ReadableStreamController):void|PromiseLike;}interface UnderlyingSourceStartCallback{(controller:ReadableStreamController):any;}interface VoidFunction{():void;}declare var name:string;declare var onmessage:((this:DedicatedWorkerGlobalScope,ev:MessageEvent)=>any)|null;declare var onmessageerror:((this:DedicatedWorkerGlobalScope,ev:MessageEvent)=>any)|null;declare function close():void;declare function postMessage(message:any,transfer:Transferable[]):void;declare function postMessage(message:any,options?:StructuredSerializeOptions):void;declare function dispatchEvent(event:Event):boolean;declare var location:WorkerLocation;declare var navigator:WorkerNavigator;declare var onerror:((this:DedicatedWorkerGlobalScope,ev:ErrorEvent)=>any)|null;declare var onlanguagechange:((this:DedicatedWorkerGlobalScope,ev:Event)=>any)|null;declare var onoffline:((this:DedicatedWorkerGlobalScope,ev:Event)=>any)|null;declare var ononline:((this:DedicatedWorkerGlobalScope,ev:Event)=>any)|null;declare var onrejectionhandled:((this:DedicatedWorkerGlobalScope,ev:PromiseRejectionEvent)=>any)|null;declare var onunhandledrejection:((this:DedicatedWorkerGlobalScope,ev:PromiseRejectionEvent)=>any)|null;declare var self:WorkerGlobalScope&typeof globalThis;declare function importScripts(...urls:(string|URL)[]):void;declare function dispatchEvent(event:Event):boolean;declare var fonts:FontFaceSet;declare var caches:CacheStorage;declare var crossOriginIsolated:boolean;declare var crypto:Crypto;declare var indexedDB:IDBFactory;declare var isSecureContext:boolean;declare var origin:string;declare var performance:Performance;declare function atob(data:string):string;declare function btoa(data:string):string;declare function clearInterval(id:number|undefined):void;declare function clearTimeout(id:number|undefined):void;declare function createImageBitmap(image:ImageBitmapSource,options?:ImageBitmapOptions):Promise;declare function createImageBitmap(image:ImageBitmapSource,sx:number,sy:number,sw:number,sh:number,options?:ImageBitmapOptions):Promise;declare function fetch(input:RequestInfo|URL,init?:RequestInit):Promise;declare function queueMicrotask(callback:VoidFunction):void;declare function reportError(e:any):void;declare function setInterval(handler:TimerHandler,timeout?:number,...arguments:any[]):number;declare function setTimeout(handler:TimerHandler,timeout?:number,...arguments:any[]):number;declare function structuredClone(value:any,options?:StructuredSerializeOptions):any;declare function cancelAnimationFrame(handle:number):void;declare function requestAnimationFrame(callback:FrameRequestCallback):number;declare function addEventListener(type:K,listener:(this:DedicatedWorkerGlobalScope,ev:DedicatedWorkerGlobalScopeEventMap[K])=>any,options?:boolean|AddEventListenerOptions):void;declare function addEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|AddEventListenerOptions):void;declare function removeEventListener(type:K,listener:(this:DedicatedWorkerGlobalScope,ev:DedicatedWorkerGlobalScopeEventMap[K])=>any,options?:boolean|EventListenerOptions):void;declare function removeEventListener(type:string,listener:EventListenerOrEventListenerObject,options?:boolean|EventListenerOptions):void;type AlgorithmIdentifier=Algorithm|string;type BigInteger=Uint8Array;type BinaryData=ArrayBuffer|ArrayBufferView;type BlobPart=BufferSource|Blob|string;type BodyInit=ReadableStream|XMLHttpRequestBodyInit;type BufferSource=ArrayBufferView|ArrayBuffer;type CanvasImageSource=ImageBitmap|OffscreenCanvas;type DOMHighResTimeStamp=number;type EpochTimeStamp=number;type EventListenerOrEventListenerObject=EventListener|EventListenerObject;type Float32List=Float32Array|GLfloat[];type FormDataEntryValue=File|string;type GLbitfield=number;type GLboolean=boolean;type GLclampf=number;type GLenum=number;type GLfloat=number;type GLint=number;type GLint64=number;type GLintptr=number;type GLsizei=number;type GLsizeiptr=number;type GLuint=number;type GLuint64=number;type HashAlgorithmIdentifier=AlgorithmIdentifier;type HeadersInit=[string,string][]|Record|Headers;type IDBValidKey=number|string|Date|BufferSource|IDBValidKey[];type ImageBitmapSource=CanvasImageSource|Blob|ImageData;type Int32List=Int32Array|GLint[];type MessageEventSource=MessagePort|ServiceWorker;type NamedCurve=string;type OffscreenRenderingContext=OffscreenCanvasRenderingContext2D|ImageBitmapRenderingContext|WebGLRenderingContext|WebGL2RenderingContext;type OnErrorEventHandler=OnErrorEventHandlerNonNull|null;type PerformanceEntryList=PerformanceEntry[];type PushMessageDataInit=BufferSource|string;type ReadableStreamController=ReadableStreamDefaultController|ReadableByteStreamController;type ReadableStreamReadResult=ReadableStreamReadValueResult|ReadableStreamReadDoneResult;type ReadableStreamReader=ReadableStreamDefaultReader|ReadableStreamBYOBReader;type RequestInfo=Request|string;type TexImageSource=ImageBitmap|ImageData|OffscreenCanvas;type TimerHandler=string|Function;type Transferable=OffscreenCanvas|ImageBitmap|MessagePort|ReadableStream|WritableStream|TransformStream|ArrayBuffer;type Uint32List=Uint32Array|GLuint[];type VibratePattern=number|number[];type XMLHttpRequestBodyInit=Blob|BufferSource|FormData|URLSearchParams|string;type BinaryType="arraybuffer"|"blob";type CanvasDirection="inherit"|"ltr"|"rtl";type CanvasFillRule="evenodd"|"nonzero";type CanvasFontKerning="auto"|"none"|"normal";type CanvasFontStretch="condensed"|"expanded"|"extra-condensed"|"extra-expanded"|"normal"|"semi-condensed"|"semi-expanded"|"ultra-condensed"|"ultra-expanded";type CanvasFontVariantCaps="all-petite-caps"|"all-small-caps"|"normal"|"petite-caps"|"small-caps"|"titling-caps"|"unicase";type CanvasLineCap="butt"|"round"|"square";type CanvasLineJoin="bevel"|"miter"|"round";type CanvasTextAlign="center"|"end"|"left"|"right"|"start";type CanvasTextBaseline="alphabetic"|"bottom"|"hanging"|"ideographic"|"middle"|"top";type CanvasTextRendering="auto"|"geometricPrecision"|"optimizeLegibility"|"optimizeSpeed";type ClientTypes="all"|"sharedworker"|"window"|"worker";type ColorGamut="p3"|"rec2020"|"srgb";type ColorSpaceConversion="default"|"none";type DocumentVisibilityState="hidden"|"visible";type EndingType="native"|"transparent";type FileSystemHandleKind="directory"|"file";type FontFaceLoadStatus="error"|"loaded"|"loading"|"unloaded";type FontFaceSetLoadStatus="loaded"|"loading";type FrameType="auxiliary"|"nested"|"none"|"top-level";type GlobalCompositeOperation="color"|"color-burn"|"color-dodge"|"copy"|"darken"|"destination-atop"|"destination-in"|"destination-out"|"destination-over"|"difference"|"exclusion"|"hard-light"|"hue"|"lighten"|"lighter"|"luminosity"|"multiply"|"overlay"|"saturation"|"screen"|"soft-light"|"source-atop"|"source-in"|"source-out"|"source-over"|"xor";type HdrMetadataType="smpteSt2086"|"smpteSt2094-10"|"smpteSt2094-40";type IDBCursorDirection="next"|"nextunique"|"prev"|"prevunique";type IDBRequestReadyState="done"|"pending";type IDBTransactionDurability="default"|"relaxed"|"strict";type IDBTransactionMode="readonly"|"readwrite"|"versionchange";type ImageOrientation="flipY"|"none";type ImageSmoothingQuality="high"|"low"|"medium";type KeyFormat="jwk"|"pkcs8"|"raw"|"spki";type KeyType="private"|"public"|"secret";type KeyUsage="decrypt"|"deriveBits"|"deriveKey"|"encrypt"|"sign"|"unwrapKey"|"verify"|"wrapKey";type LockMode="exclusive"|"shared";type MediaDecodingType="file"|"media-source"|"webrtc";type MediaEncodingType="record"|"webrtc";type NotificationDirection="auto"|"ltr"|"rtl";type NotificationPermission="default"|"denied"|"granted";type OffscreenRenderingContextId="2d"|"bitmaprenderer"|"webgl"|"webgl2"|"webgpu";type PermissionName="geolocation"|"notifications"|"persistent-storage"|"push"|"screen-wake-lock"|"xr-spatial-tracking";type PermissionState="denied"|"granted"|"prompt";type PredefinedColorSpace="display-p3"|"srgb";type PremultiplyAlpha="default"|"none"|"premultiply";type PushEncryptionKeyName="auth"|"p256dh";type RTCEncodedVideoFrameType="delta"|"empty"|"key";type ReadableStreamReaderMode="byob";type ReadableStreamType="bytes";type ReferrerPolicy=""|"no-referrer"|"no-referrer-when-downgrade"|"origin"|"origin-when-cross-origin"|"same-origin"|"strict-origin"|"strict-origin-when-cross-origin"|"unsafe-url";type RequestCache="default"|"force-cache"|"no-cache"|"no-store"|"only-if-cached"|"reload";type RequestCredentials="include"|"omit"|"same-origin";type RequestDestination=""|"audio"|"audioworklet"|"document"|"embed"|"font"|"frame"|"iframe"|"image"|"manifest"|"object"|"paintworklet"|"report"|"script"|"sharedworker"|"style"|"track"|"video"|"worker"|"xslt";type RequestMode="cors"|"navigate"|"no-cors"|"same-origin";type RequestRedirect="error"|"follow"|"manual";type ResizeQuality="high"|"low"|"medium"|"pixelated";type ResponseType="basic"|"cors"|"default"|"error"|"opaque"|"opaqueredirect";type SecurityPolicyViolationEventDisposition="enforce"|"report";type ServiceWorkerState="activated"|"activating"|"installed"|"installing"|"parsed"|"redundant";type ServiceWorkerUpdateViaCache="all"|"imports"|"none";type TransferFunction="hlg"|"pq"|"srgb";type VideoColorPrimaries="bt470bg"|"bt709"|"smpte170m";type VideoMatrixCoefficients="bt470bg"|"bt709"|"rgb"|"smpte170m";type VideoTransferCharacteristics="bt709"|"iec61966-2-1"|"smpte170m";type WebGLPowerPreference="default"|"high-performance"|"low-power";type WorkerType="classic"|"module";type XMLHttpRequestResponseType=""|"arraybuffer"|"blob"|"document"|"json"|"text";'},{fileName:"lib.webworker.importscripts.d.ts",text:'/// \ndeclare function importScripts(...urls:string[]):void;'},{fileName:"lib.webworker.iterable.d.ts",text:'/// \ninterface Cache{addAll(requests:Iterable):Promise;}interface CanvasPath{roundRect(x:number,y:number,w:number,h:number,radii?:number|DOMPointInit|Iterable):void;}interface CanvasPathDrawingStyles{setLineDash(segments:Iterable):void;}interface DOMStringList{[Symbol.iterator]():IterableIterator;}interface FileList{[Symbol.iterator]():IterableIterator;}interface FontFaceSet extends Set{}interface FormData{[Symbol.iterator]():IterableIterator<[string,FormDataEntryValue]>;entries():IterableIterator<[string,FormDataEntryValue]>;keys():IterableIterator;values():IterableIterator;}interface Headers{[Symbol.iterator]():IterableIterator<[string,string]>;entries():IterableIterator<[string,string]>;keys():IterableIterator;values():IterableIterator;}interface IDBDatabase{transaction(storeNames:string|Iterable,mode?:IDBTransactionMode,options?:IDBTransactionOptions):IDBTransaction;}interface IDBObjectStore{createIndex(name:string,keyPath:string|Iterable,options?:IDBIndexParameters):IDBIndex;}interface MessageEvent{initMessageEvent(type:string,bubbles?:boolean,cancelable?:boolean,data?:any,origin?:string,lastEventId?:string,source?:MessageEventSource|null,ports?:Iterable):void;}interface SubtleCrypto{deriveKey(algorithm:AlgorithmIdentifier|EcdhKeyDeriveParams|HkdfParams|Pbkdf2Params,baseKey:CryptoKey,derivedKeyType:AlgorithmIdentifier|AesDerivedKeyParams|HmacImportParams|HkdfParams|Pbkdf2Params,extractable:boolean,keyUsages:Iterable):Promise;generateKey(algorithm:RsaHashedKeyGenParams|EcKeyGenParams,extractable:boolean,keyUsages:ReadonlyArray):Promise;generateKey(algorithm:AesKeyGenParams|HmacKeyGenParams|Pbkdf2Params,extractable:boolean,keyUsages:ReadonlyArray):Promise;generateKey(algorithm:AlgorithmIdentifier,extractable:boolean,keyUsages:Iterable):Promise;importKey(format:"jwk",keyData:JsonWebKey,algorithm:AlgorithmIdentifier|RsaHashedImportParams|EcKeyImportParams|HmacImportParams|AesKeyAlgorithm,extractable:boolean,keyUsages:ReadonlyArray):Promise;importKey(format:Exclude,keyData:BufferSource,algorithm:AlgorithmIdentifier|RsaHashedImportParams|EcKeyImportParams|HmacImportParams|AesKeyAlgorithm,extractable:boolean,keyUsages:Iterable):Promise;unwrapKey(format:KeyFormat,wrappedKey:BufferSource,unwrappingKey:CryptoKey,unwrapAlgorithm:AlgorithmIdentifier|RsaOaepParams|AesCtrParams|AesCbcParams|AesGcmParams,unwrappedKeyAlgorithm:AlgorithmIdentifier|RsaHashedImportParams|EcKeyImportParams|HmacImportParams|AesKeyAlgorithm,extractable:boolean,keyUsages:Iterable):Promise;}interface URLSearchParams{[Symbol.iterator]():IterableIterator<[string,string]>;entries():IterableIterator<[string,string]>;keys():IterableIterator;values():IterableIterator;}interface WEBGL_draw_buffers{drawBuffersWEBGL(buffers:Iterable):void;}interface WEBGL_multi_draw{multiDrawArraysInstancedWEBGL(mode:GLenum,firstsList:Int32Array|Iterable,firstsOffset:GLuint,countsList:Int32Array|Iterable,countsOffset:GLuint,instanceCountsList:Int32Array|Iterable,instanceCountsOffset:GLuint,drawcount:GLsizei):void;multiDrawArraysWEBGL(mode:GLenum,firstsList:Int32Array|Iterable,firstsOffset:GLuint,countsList:Int32Array|Iterable,countsOffset:GLuint,drawcount:GLsizei):void;multiDrawElementsInstancedWEBGL(mode:GLenum,countsList:Int32Array|Iterable,countsOffset:GLuint,type:GLenum,offsetsList:Int32Array|Iterable,offsetsOffset:GLuint,instanceCountsList:Int32Array|Iterable,instanceCountsOffset:GLuint,drawcount:GLsizei):void;multiDrawElementsWEBGL(mode:GLenum,countsList:Int32Array|Iterable,countsOffset:GLuint,type:GLenum,offsetsList:Int32Array|Iterable,offsetsOffset:GLuint,drawcount:GLsizei):void;}interface WebGL2RenderingContextBase{clearBufferfv(buffer:GLenum,drawbuffer:GLint,values:Iterable,srcOffset?:GLuint):void;clearBufferiv(buffer:GLenum,drawbuffer:GLint,values:Iterable,srcOffset?:GLuint):void;clearBufferuiv(buffer:GLenum,drawbuffer:GLint,values:Iterable,srcOffset?:GLuint):void;drawBuffers(buffers:Iterable):void;getActiveUniforms(program:WebGLProgram,uniformIndices:Iterable,pname:GLenum):any;getUniformIndices(program:WebGLProgram,uniformNames:Iterable):Iterable|null;invalidateFramebuffer(target:GLenum,attachments:Iterable):void;invalidateSubFramebuffer(target:GLenum,attachments:Iterable,x:GLint,y:GLint,width:GLsizei,height:GLsizei):void;transformFeedbackVaryings(program:WebGLProgram,varyings:Iterable,bufferMode:GLenum):void;uniform1uiv(location:WebGLUniformLocation|null,data:Iterable,srcOffset?:GLuint,srcLength?:GLuint):void;uniform2uiv(location:WebGLUniformLocation|null,data:Iterable,srcOffset?:GLuint,srcLength?:GLuint):void;uniform3uiv(location:WebGLUniformLocation|null,data:Iterable,srcOffset?:GLuint,srcLength?:GLuint):void;uniform4uiv(location:WebGLUniformLocation|null,data:Iterable,srcOffset?:GLuint,srcLength?:GLuint):void;uniformMatrix2x3fv(location:WebGLUniformLocation|null,transpose:GLboolean,data:Iterable,srcOffset?:GLuint,srcLength?:GLuint):void;uniformMatrix2x4fv(location:WebGLUniformLocation|null,transpose:GLboolean,data:Iterable,srcOffset?:GLuint,srcLength?:GLuint):void;uniformMatrix3x2fv(location:WebGLUniformLocation|null,transpose:GLboolean,data:Iterable,srcOffset?:GLuint,srcLength?:GLuint):void;uniformMatrix3x4fv(location:WebGLUniformLocation|null,transpose:GLboolean,data:Iterable,srcOffset?:GLuint,srcLength?:GLuint):void;uniformMatrix4x2fv(location:WebGLUniformLocation|null,transpose:GLboolean,data:Iterable,srcOffset?:GLuint,srcLength?:GLuint):void;uniformMatrix4x3fv(location:WebGLUniformLocation|null,transpose:GLboolean,data:Iterable,srcOffset?:GLuint,srcLength?:GLuint):void;vertexAttribI4iv(index:GLuint,values:Iterable):void;vertexAttribI4uiv(index:GLuint,values:Iterable):void;}interface WebGL2RenderingContextOverloads{uniform1fv(location:WebGLUniformLocation|null,data:Iterable,srcOffset?:GLuint,srcLength?:GLuint):void;uniform1iv(location:WebGLUniformLocation|null,data:Iterable,srcOffset?:GLuint,srcLength?:GLuint):void;uniform2fv(location:WebGLUniformLocation|null,data:Iterable,srcOffset?:GLuint,srcLength?:GLuint):void;uniform2iv(location:WebGLUniformLocation|null,data:Iterable,srcOffset?:GLuint,srcLength?:GLuint):void;uniform3fv(location:WebGLUniformLocation|null,data:Iterable,srcOffset?:GLuint,srcLength?:GLuint):void;uniform3iv(location:WebGLUniformLocation|null,data:Iterable,srcOffset?:GLuint,srcLength?:GLuint):void;uniform4fv(location:WebGLUniformLocation|null,data:Iterable,srcOffset?:GLuint,srcLength?:GLuint):void;uniform4iv(location:WebGLUniformLocation|null,data:Iterable,srcOffset?:GLuint,srcLength?:GLuint):void;uniformMatrix2fv(location:WebGLUniformLocation|null,transpose:GLboolean,data:Iterable,srcOffset?:GLuint,srcLength?:GLuint):void;uniformMatrix3fv(location:WebGLUniformLocation|null,transpose:GLboolean,data:Iterable,srcOffset?:GLuint,srcLength?:GLuint):void;uniformMatrix4fv(location:WebGLUniformLocation|null,transpose:GLboolean,data:Iterable,srcOffset?:GLuint,srcLength?:GLuint):void;}interface WebGLRenderingContextBase{vertexAttrib1fv(index:GLuint,values:Iterable):void;vertexAttrib2fv(index:GLuint,values:Iterable):void;vertexAttrib3fv(index:GLuint,values:Iterable):void;vertexAttrib4fv(index:GLuint,values:Iterable):void;}interface WebGLRenderingContextOverloads{uniform1fv(location:WebGLUniformLocation|null,v:Iterable):void;uniform1iv(location:WebGLUniformLocation|null,v:Iterable):void;uniform2fv(location:WebGLUniformLocation|null,v:Iterable):void;uniform2iv(location:WebGLUniformLocation|null,v:Iterable):void;uniform3fv(location:WebGLUniformLocation|null,v:Iterable):void;uniform3iv(location:WebGLUniformLocation|null,v:Iterable):void;uniform4fv(location:WebGLUniformLocation|null,v:Iterable):void;uniform4iv(location:WebGLUniformLocation|null,v:Iterable):void;uniformMatrix2fv(location:WebGLUniformLocation|null,transpose:GLboolean,value:Iterable):void;uniformMatrix3fv(location:WebGLUniformLocation|null,transpose:GLboolean,value:Iterable):void;uniformMatrix4fv(location:WebGLUniformLocation|null,transpose:GLboolean,value:Iterable):void;}'}];function K(){return V}const j="/node_modules/typescript/lib";function H(t){if(null!=t.libFolderPath){if(!0===t.skipLoadingLibFiles)throw new e.errors.InvalidOperationError(`Cannot set ${C(t,"skipLoadingLibFiles")} to true when ${C(t,"libFolderPath")} is provided.`);return t.libFolderPath}return j}const W=requirePathBrowserify();class ${join(...e){return W.join(...e)}normalize(e){return W.normalize(e)}relative(e,t){return W.relative(e,t)}}class q{constructor(){this._errorMessage="Access to the file system is not supported in the browser. Please use an in-memory file system (specify `useInMemoryFileSystem: true` when creating the project)."}delete(e){return Promise.reject(new Error(this._errorMessage))}deleteSync(e){throw new Error(this._errorMessage)}readDirSync(e){throw new Error(this._errorMessage)}readFile(e,t){return Promise.reject(new Error(this._errorMessage))}readFileSync(e,t){throw new Error(this._errorMessage)}writeFile(e,t){return Promise.reject(new Error(this._errorMessage))}writeFileSync(e,t){throw new Error(this._errorMessage)}mkdir(e){return Promise.reject(new Error(this._errorMessage))}mkdirSync(e){throw new Error(this._errorMessage)}move(e,t){return Promise.reject(new Error(this._errorMessage))}moveSync(e,t){throw new Error(this._errorMessage)}copy(e,t){return Promise.reject(new Error(this._errorMessage))}copySync(e,t){throw new Error(this._errorMessage)}stat(e){return Promise.reject(new Error(this._errorMessage))}statSync(e){throw new Error(this._errorMessage)}realpathSync(e){throw new Error(this._errorMessage)}getCurrentDirectory(){throw new Error(this._errorMessage)}glob(e){return Promise.reject(new Error(this._errorMessage))}globSync(e){throw new Error(this._errorMessage)}isCaseSensitive(){return!0}}class z{join(...e){return h.join(...e)}normalize(e){return h.normalize(e)}relative(e,t){return h.relative(e,t)}}class J{delete(e){return new Promise((t,n)=>{m.rm(e,{recursive:!0},e=>{e?n(e):t()})})}deleteSync(e){m.rmSync(e,{recursive:!0})}readDirSync(e){return m.readdirSync(e,{withFileTypes:!0}).map(e=>({name:e.name,isFile:e.isFile(),isDirectory:e.isDirectory(),isSymlink:e.isSymbolicLink()}))}readFile(e,t="utf-8"){return new Promise((n,r)=>{m.readFile(e,t,(e,t)=>{e?r(e):n(t)})})}readFileSync(e,t="utf-8"){return m.readFileSync(e,t)}async writeFile(e,t){await new Promise((n,r)=>{m.writeFile(e,t,e=>{e?r(e):n()})})}writeFileSync(e,t){m.writeFileSync(e,t)}async mkdir(e){await f.default(e)}mkdirSync(e){f.default.sync(e)}move(e,t){return new Promise((n,r)=>{m.rename(e,t,e=>{e?r(e):n()})})}moveSync(e,t){m.renameSync(e,t)}copy(e,t){return new Promise((n,r)=>{m.copyFile(e,t,e=>{e?r(e):n()})})}copySync(e,t){m.copyFileSync(e,t)}stat(e){return new Promise(t=>{m.stat(e,(e,n)=>{if(e)throw e;t(n)})})}statSync(e){return m.statSync(e)}realpathSync(e){return m.realpathSync(e)}getCurrentDirectory(){return h.resolve()}glob(e){return p.default(e,{cwd:this.getCurrentDirectory(),absolute:!0})}globSync(e){return p.default.sync(e,{cwd:this.getCurrentDirectory(),absolute:!0})}isCaseSensitive(){const e=null==browser$1?void 0:browser$1.platform;return"win32"!==e&&"darwin"!==e}}const X="object"==typeof globalThis.process&&"object"==typeof globalThis.process.versions&&void 0!==globalThis.process.versions.node?new class{constructor(){this.fs=new J,this.path=new z}getEnvVar(e){return null==browser$1?void 0:browser$1.env[e]}getEndOfLine(){return _.EOL}getPathMatchesPattern(e,t){return d.default(e,t)}}:new class{constructor(){this.fs=new q,this.path=new $}getEnvVar(e){}getEndOfLine(){return"\n"}getPathMatchesPattern(e,t){return d.default(e,t)}},Y=/^[a-z]+:[\\\/]$/i,Q=X.path;class Z{constructor(){}static isNotExistsError(e){var t;return null!=e&&e.code===Z.ENOENT||null!=e&&"NotFound"===(null===(t=null==e?void 0:e.constructor)||void 0===t?void 0:t.name)}static pathJoin(e,...t){return Z.pathIsAbsolute(e)?Z.standardizeSlashes(Q.normalize(Q.join(e,...t))):Z.standardizeSlashes(Q.join(e,...t))}static pathIsAbsolute(e){return ee(e)}static getStandardizedAbsolutePath(e,t,n){return Z.standardizeSlashes(Q.normalize(ee(t)?t:t.startsWith("./")||null==n?Q.join(e.getCurrentDirectory(),t):Q.join(n,t)))}static getDirPath(e){const t=(e=Z.standardizeSlashes(e)).lastIndexOf("/");return-1===t?".":Z.standardizeSlashes(e.substring(0,t+1))}static getBaseName(e){const t=e.lastIndexOf("/");return e.substring(t+1)}static getExtension(e){const t=Z.getBaseName(e),n=t.lastIndexOf(".");if(n<=0)return"";const r=t.substring(n),i=r.toLowerCase();return".ts"===i&&".d"===t.substring(n-2,n).toLowerCase()?t.substring(n-2):".map"===i&&".js"===t.substring(n-3,n).toLowerCase()?t.substring(n-3):r}static standardizeSlashes(e){let t=e.replace(this.standardizeSlashesRegex,"/");return!Z.isRootDirPath(t)&&t.endsWith("/")&&(t=t.substring(0,t.length-1)),t}static pathEndsWith(e,t){const n=Z.splitPathBySlashes(e),r=Z.splitPathBySlashes(t);if(r.length>n.length)return!1;for(let e=0;e0}static pathStartsWith(e,t){const n=M.isNullOrWhitespace(e),r=M.isNullOrWhitespace(t),i=Z.splitPathBySlashes(e),a=Z.splitPathBySlashes(t);if(n&&r)return!0;if(r||a.length>i.length)return!1;if(1===a.length&&0===a[0].length)return!0;for(let e=0;e0}static splitPathBySlashes(e){return e=(e||"").replace(Z.trimSlashStartRegex,"").replace(Z.trimSlashEndRegex,""),Z.standardizeSlashes(e).replace(/^\//,"").split("/")}static getParentMostPaths(e){const t=[];for(const n of x.sortByProperty(e,e=>e.length))t.every(e=>!Z.pathStartsWith(n,e))&&t.push(n);return t}static async readFileOrNotExists(e,t,n){try{return await e.readFile(t,n)}catch(e){if(!Z.isNotExistsError(e))throw e;return!1}}static readFileOrNotExistsSync(e,t,n){try{return e.readFileSync(t,n)}catch(e){if(!Z.isNotExistsError(e))throw e;return!1}}static getTextWithByteOrderMark(e){return M.hasBom(e)?e:"\ufeff"+e}static getRelativePathTo(e,t){const n=Q.relative(e,Z.getDirPath(t));return Z.standardizeSlashes(Q.join(n,Z.getBaseName(t)))}static isRootDirPath(e){return"/"===e||Y.test(e)}static*getDescendantDirectories(e,t){for(const n of e.readDirSync(t))n.isDirectory&&(yield n.path,yield*Z.getDescendantDirectories(e,n.path))}static toAbsoluteGlob(e,t){"./"===e.slice(0,2)&&(e=e.slice(2)),1===e.length&&"."===e&&(e="");const n=e.slice(-1),r=Z.isNegatedGlob(e);return r&&(e=e.slice(1)),ee(e)&&"\\"!==e.slice(0,1)||(e=function(e,t){return"/"===e.charAt(e.length-1)&&(e=e.slice(0,-1)),"/"===t.charAt(0)&&(t=t.slice(1)),t?e+"/"+t:e}(t,e)),"/"===n&&"/"!==e.slice(-1)&&(e+="/"),r?"!"+e:e}static isNegatedGlob(e){return"!"===e[0]&&"("!==e[1]}}function ee(e){return e.startsWith("/")||function(e){return te.test(e)||function(e){return e.startsWith("\\\\")}(e)||function(e){return ne.test(e)}(e)}(e)}Z.standardizeSlashesRegex=/\\/g,Z.trimSlashStartRegex=/^\//,Z.trimSlashEndRegex=/\/$/,Z.ENOENT="ENOENT";const te=/^[a-z]+:[\\\/]/i,ne=/^[\\\/]{2,}[^\\\/]+[\\\/]+[^\\\/]+/;function re(e,t,n){t="string"==typeof t?[Z.toAbsoluteGlob(t,n)]:t.map(e=>Z.toAbsoluteGlob(e,n));const r=[];for(const n of e)for(let e of t){let t=ie;Z.isNegatedGlob(e)&&(t=ae,e=e.slice(1)),X.getPathMatchesPattern(n,e)&&t(r,n)}return r}function ie(e,t){-1===e.indexOf(t)&&e.push(t)}function ae(e,t){const n=e.indexOf(t);n>=0&&e.splice(n,1)}function*oe(e,t){for(const n of e)Z.pathStartsWith(n,t)&&(yield n)}const se=X.fs;class ce{async delete(e){try{await se.delete(e)}catch(t){throw this.getFileNotFoundErrorIfNecessary(t,e)}}deleteSync(e){try{se.deleteSync(e)}catch(t){throw this.getFileNotFoundErrorIfNecessary(t,e)}}readDirSync(e){try{const t=se.readDirSync(e);for(const n of t)if(n.name=Z.pathJoin(e,n.name),n.isSymlink)try{const e=se.statSync(n.name);n.isDirectory=e.isDirectory(),n.isFile=e.isFile()}catch(e){}return t}catch(t){throw this.getDirectoryNotFoundErrorIfNecessary(t,e)}}async readFile(e,t="utf-8"){try{return await se.readFile(e,t)}catch(t){throw this.getFileNotFoundErrorIfNecessary(t,e)}}readFileSync(e,t="utf-8"){try{return se.readFileSync(e,t)}catch(t){throw this.getFileNotFoundErrorIfNecessary(t,e)}}async writeFile(e,t){return se.writeFile(e,t)}writeFileSync(e,t){se.writeFileSync(e,t)}mkdir(e){return se.mkdir(e)}mkdirSync(e){se.mkdirSync(e)}move(e,t){return se.move(e,t)}moveSync(e,t){se.moveSync(e,t)}copy(e,t){return se.copy(e,t)}copySync(e,t){se.copySync(e,t)}async fileExists(e){try{return(await se.stat(e)).isFile()}catch(e){return!1}}fileExistsSync(e){try{return se.statSync(e).isFile()}catch(e){return!1}}async directoryExists(e){try{return(await se.stat(e)).isDirectory()}catch(e){return!1}}directoryExistsSync(e){try{return se.statSync(e).isDirectory()}catch(e){return!1}}realpathSync(e){return se.realpathSync(e)}getCurrentDirectory(){return Z.standardizeSlashes(se.getCurrentDirectory())}glob(e){return se.glob(le(e))}globSync(e){return se.globSync(le(e))}isCaseSensitive(){return se.isCaseSensitive()}getDirectoryNotFoundErrorIfNecessary(t,n){return Z.isNotExistsError(t)?new e.errors.DirectoryNotFoundError(Z.getStandardizedAbsolutePath(this,n)):t}getFileNotFoundErrorIfNecessary(t,n){return Z.isNotExistsError(t)?new e.errors.FileNotFoundError(Z.getStandardizedAbsolutePath(this,n)):t}}function le(e){return e.map(e=>e.replace(/\\/g,"/"))}class ue{constructor(e){this.path=e,this.operations=[],this.inboundOperations=[],this.isDeleted=!1,this.wasEverDeleted=!1,this.childDirs=new F(e=>e.path,v.instance)}getExternalOperations(){return[...x.flatten(this.getAncestors().map(e=>e.operations.filter(e=>"move"===e.kind||"deleteDir"===e.kind||"copy"===e.kind))).filter(t=>function(t,n){switch(n.kind){case"move":case"copy":return t.isDescendantOrEqual(n.oldDir)||t.isDescendantOrEqual(n.newDir);case"deleteDir":return t.isDescendantOrEqual(n.dir);default:return e.errors.throwNotImplementedForNeverValueError(n)}}(this,t)),...x.flatten([this,...this.getDescendants()].map(e=>e.operations.filter(e=>"move"===e.kind||"copy"===e.kind))).filter(e=>{return!((t=e).oldDir.isDescendantOrEqual(this)&&t.newDir.isDescendantOrEqual(this));var t})]}isDescendantOrEqual(e){return this.isDescendant(e)||this===e}isDescendant(e){return Z.pathStartsWith(this.path,e.path)}getIsDeleted(){return this.isDeleted}getWasEverDeleted(){if(this.wasEverDeleted)return!0;for(const e of this.getAncestorsIterator())if(e.wasEverDeleted)return!0;return!1}setIsDeleted(e){if(this.isDeleted!==e){if(e){this.wasEverDeleted=!0;for(const e of this.childDirs.entries())e.setIsDeleted(!0)}else null!=this.parent&&this.parent.setIsDeleted(!1);this.isDeleted=e}}getParent(){return this.parent}setParent(t){if(null!=this.parent)throw new e.errors.InvalidOperationError("For some reason, a parent was being set when the directory already had a parent. Please open an issue.");this.parent=t,t.childDirs.set(this),t.isDeleted&&!this.isDeleted&&t.setIsDeleted(!1)}removeParent(){const e=this.parent;null!=e&&(e.childDirs.removeByValue(this),this.parent=void 0)}getAncestors(){return Array.from(this.getAncestorsIterator())}*getAncestorsIterator(){let e=this.parent;for(;null!=e;)yield e,e=e.parent}*getChildrenEntriesIterator(){for(const e of this.childDirs.entries())yield{path:e.path,isDirectory:!0,isFile:!1,isSymlink:!1}}getDescendants(){const e=[];for(const t of this.childDirs.entries())e.push(t),e.push(...t.getDescendants());return e}isFileQueuedForDelete(e){return this.hasOperation(t=>"deleteFile"===t.kind&&t.filePath===e)}hasOperation(e){for(const t of this.operations)if(e(t))return!0;return!1}dequeueFileDelete(e){this.removeMatchingOperations(t=>"deleteFile"===t.kind&&t.filePath===e)}dequeueDirDelete(e){this.removeMatchingOperations(t=>"deleteDir"===t.kind&&t.dir.path===e)}isRootDir(){return Z.isRootDirPath(this.path)}removeMatchingOperations(e){x.removeAll(this.operations,e)}}class de{constructor(e){if(this.directories=new g,this.operationIndex=0,this.fileSystem=e.fileSystem,this.pathCasingMaintainer=new pe(e.fileSystem),!e.skipLoadingLibFiles&&null==e.libFolderPath){const t=H(e);this.libFileMap=new Map;const n=K();for(const e of n)this.libFileMap.set(this.getStandardizedAbsolutePath(t+"/"+e.fileName),e.text)}}queueFileDelete(e){this.throwIfLibFile(e),this.getOrCreateParentDirectory(e).operations.push({kind:"deleteFile",index:this.getNextOperationIndex(),filePath:e}),this.pathCasingMaintainer.removePath(e)}removeFileDelete(e){this.getOrCreateParentDirectory(e).dequeueFileDelete(e)}queueMkdir(e){const t=this.getOrCreateDirectory(e);t.setIsDeleted(!1),this.getOrCreateParentDirectory(e).operations.push({kind:"mkdir",index:this.getNextOperationIndex(),dir:t})}queueDirectoryDelete(e){const t=this.getOrCreateDirectory(e);t.setIsDeleted(!0),this.getOrCreateParentDirectory(e).operations.push({kind:"deleteDir",index:this.getNextOperationIndex(),dir:t}),this.pathCasingMaintainer.removePath(e)}queueMoveDirectory(e,t){const n=this.getOrCreateParentDirectory(e),r=this.getOrCreateDirectory(e),i=this.getOrCreateDirectory(t),a={kind:"move",index:this.getNextOperationIndex(),oldDir:r,newDir:i};n.operations.push(a),(i.getParent()||i).inboundOperations.push(a),r.setIsDeleted(!0),this.pathCasingMaintainer.removePath(e)}queueCopyDirectory(e,t){const n=this.getOrCreateParentDirectory(e),r=this.getOrCreateDirectory(e),i=this.getOrCreateDirectory(t),a={kind:"copy",index:this.getNextOperationIndex(),oldDir:r,newDir:i};n.operations.push(a),(i.getParent()||i).inboundOperations.push(a)}async flush(){const e=this.getAndClearOperations();for(const t of e)await this.executeOperation(t)}flushSync(){for(const e of this.getAndClearOperations())this.executeOperationSync(e)}async saveForDirectory(e){const t=this.getOrCreateDirectory(e);this.throwIfHasExternalOperations(t,"save directory");const n=this.getAndClearOperationsForDir(t);await this.ensureDirectoryExists(t);for(const e of n)await this.executeOperation(e)}saveForDirectorySync(e){const t=this.getOrCreateDirectory(e);this.throwIfHasExternalOperations(t,"save directory"),this.ensureDirectoryExistsSync(t);for(const e of this.getAndClearOperationsForDir(t))this.executeOperationSync(e)}getAndClearOperationsForDir(e){const t=function e(t,n){return null==t?[]:[...x.removeAll(t.operations,e=>"mkdir"===e.kind&&e.dir===n),...e(t.getParent(),t)]}(e.getParent(),e);for(const n of[e,...e.getDescendants()])t.push(...n.operations);return x.sortByProperty(t,e=>e.index),this.removeDirAndSubDirs(e),t}async executeOperation(t){switch(t.kind){case"deleteDir":await this.deleteSuppressNotFound(t.dir.path);break;case"deleteFile":await this.deleteSuppressNotFound(t.filePath);break;case"move":await this.fileSystem.move(t.oldDir.path,t.newDir.path);break;case"copy":await this.fileSystem.copy(t.oldDir.path,t.newDir.path);break;case"mkdir":await this.fileSystem.mkdir(t.dir.path);break;default:e.errors.throwNotImplementedForNeverValueError(t)}}executeOperationSync(t){switch(t.kind){case"deleteDir":this.deleteSuppressNotFoundSync(t.dir.path);break;case"deleteFile":this.deleteSuppressNotFoundSync(t.filePath);break;case"move":this.fileSystem.moveSync(t.oldDir.path,t.newDir.path);break;case"copy":this.fileSystem.copySync(t.oldDir.path,t.newDir.path);break;case"mkdir":this.fileSystem.mkdirSync(t.dir.path);break;default:e.errors.throwNotImplementedForNeverValueError(t)}}getAndClearOperations(){const e=[];for(const t of this.directories.getValues())e.push(...t.operations);return x.sortByProperty(e,e=>e.index),this.directories.clear(),e}async moveFileImmediately(e,t,n){this.throwIfLibFile(t),this.throwIfHasExternalOperations(this.getOrCreateParentDirectory(e),"move file"),this.throwIfHasExternalOperations(this.getOrCreateParentDirectory(t),"move file"),await this.writeFile(t,n),await this.deleteFileImmediately(e)}moveFileImmediatelySync(e,t,n){this.throwIfLibFile(t),this.throwIfHasExternalOperations(this.getOrCreateParentDirectory(e),"move file"),this.throwIfHasExternalOperations(this.getOrCreateParentDirectory(t),"move file"),this.writeFileSync(t,n),this.deleteFileImmediatelySync(e)}async deleteFileImmediately(e){this.throwIfLibFile(e);const t=this.getOrCreateParentDirectory(e);this.throwIfHasExternalOperations(t,"delete file"),t.dequeueFileDelete(e),this.pathCasingMaintainer.removePath(e);try{await this.deleteSuppressNotFound(e)}catch(t){throw this.queueFileDelete(e),t}}deleteFileImmediatelySync(e){this.throwIfLibFile(e);const t=this.getOrCreateParentDirectory(e);this.throwIfHasExternalOperations(t,"delete file"),t.dequeueFileDelete(e),this.pathCasingMaintainer.removePath(e);try{this.deleteSuppressNotFoundSync(e)}catch(t){throw this.queueFileDelete(e),t}}async copyDirectoryImmediately(e,t){const n=this.getOrCreateDirectory(e),r=this.getOrCreateDirectory(t);this.throwIfHasExternalOperations(n,"copy directory"),this.throwIfHasExternalOperations(r,"copy directory");const i=Promise.all([this.saveForDirectory(e),this.saveForDirectory(t)]);this.removeDirAndSubDirs(n),await i,await this.fileSystem.copy(e,t)}copyDirectoryImmediatelySync(e,t){const n=this.getOrCreateDirectory(e),r=this.getOrCreateDirectory(t);this.throwIfHasExternalOperations(n,"copy directory"),this.throwIfHasExternalOperations(r,"copy directory"),this.saveForDirectorySync(e),this.saveForDirectorySync(t),this.removeDirAndSubDirs(n),this.fileSystem.copySync(e,t)}async moveDirectoryImmediately(e,t){const n=this.getOrCreateDirectory(e),r=this.getOrCreateDirectory(t);this.throwIfHasExternalOperations(n,"move directory"),this.throwIfHasExternalOperations(r,"move directory");const i=Promise.all([this.saveForDirectory(e),this.saveForDirectory(t)]);this.removeDirAndSubDirs(n),this.pathCasingMaintainer.removePath(e),await i,await this.fileSystem.move(e,t)}moveDirectoryImmediatelySync(e,t){const n=this.getOrCreateDirectory(e),r=this.getOrCreateDirectory(t);this.throwIfHasExternalOperations(n,"move directory"),this.throwIfHasExternalOperations(r,"move directory"),this.saveForDirectorySync(e),this.saveForDirectorySync(t),this.removeDirAndSubDirs(n),this.pathCasingMaintainer.removePath(e),this.fileSystem.moveSync(e,t)}async deleteDirectoryImmediately(e){const t=this.getOrCreateDirectory(e);this.throwIfHasExternalOperations(t,"delete"),this.removeDirAndSubDirs(t),this.pathCasingMaintainer.removePath(e);try{await this.deleteSuppressNotFound(e)}catch(n){this.addBackDirAndSubDirs(t),this.queueDirectoryDelete(e)}}async clearDirectoryImmediately(e){await this.deleteDirectoryImmediately(e),this.getOrCreateDirectory(e).setIsDeleted(!1),await this.fileSystem.mkdir(e)}clearDirectoryImmediatelySync(e){this.deleteDirectoryImmediatelySync(e),this.getOrCreateDirectory(e).setIsDeleted(!1),this.fileSystem.mkdirSync(e)}deleteDirectoryImmediatelySync(e){const t=this.getOrCreateDirectory(e);this.throwIfHasExternalOperations(t,"delete"),this.removeDirAndSubDirs(t),this.pathCasingMaintainer.removePath(e);try{this.deleteSuppressNotFoundSync(e)}catch(n){this.addBackDirAndSubDirs(t),this.queueDirectoryDelete(e)}}async deleteSuppressNotFound(e){this.throwIfLibFile(e);try{await this.fileSystem.delete(e)}catch(e){if(!Z.isNotExistsError(e))throw e}}deleteSuppressNotFoundSync(e){this.throwIfLibFile(e);try{this.fileSystem.deleteSync(e)}catch(e){if(!Z.isNotExistsError(e))throw e}}fileExists(e){return!!this.libFileExists(e)||!this._fileDeletedInMemory(e)&&this.fileSystem.fileExists(e)}fileExistsSync(e){return!!this.libFileExists(e)||!this._fileDeletedInMemory(e)&&this.fileSystem.fileExistsSync(e)}_fileDeletedInMemory(e){if(this.isPathQueuedForDeletion(e))return!0;const t=this.getParentDirectoryIfExists(e);return!(null==t||!t.getWasEverDeleted())}directoryExistsSync(e){if(this.isPathQueuedForDeletion(e))return!1;if(this.isPathDirectoryInQueueThatExists(e))return!0;const t=this.getDirectoryIfExists(e);return(null==t||!t.getWasEverDeleted())&&this.fileSystem.directoryExistsSync(e)}readFileIfExistsSync(t,n){if(!this._fileDeletedInMemory(t))try{return this.readFileSync(t,n)}catch(t){if(t instanceof e.errors.FileNotFoundError)return;throw t}}readFileSync(e,t){const n=this.readLibFile(e);return null!=n?n:(this._verifyCanReadFile(e),this.fileSystem.readFileSync(e,t))}readFileIfExists(t,n){return this._fileDeletedInMemory(t)?Promise.resolve(void 0):this.readFile(t,n).catch(t=>t instanceof e.errors.FileNotFoundError?Promise.resolve(void 0):Promise.reject(t))}readFile(e,t){const n=this.readLibFile(e);return null!=n?Promise.resolve(n):(this._verifyCanReadFile(e),this.fileSystem.readFile(e,t))}_verifyCanReadFile(t){if(this.isPathQueuedForDeletion(t))throw new e.errors.InvalidOperationError(`Cannot read file at ${t} when it is queued for deletion.`);if(this.getOrCreateParentDirectory(t).getWasEverDeleted())throw new e.errors.InvalidOperationError(`Cannot read file at ${t} because one of its ancestor directories was once deleted or moved.`)}readDirSync(t){const n=this.getOrCreateDirectory(t);if(n.getIsDeleted())throw new e.errors.InvalidOperationError(`Cannot read directory at ${t} when it is queued for deletion.`);if(n.getWasEverDeleted())throw new e.errors.InvalidOperationError(`Cannot read directory at ${t} because one of its ancestor directories was once deleted or moved.`);const r=new Map;for(const e of n.getChildrenEntriesIterator())r.set(e.path,e);for(const e of this.fileSystem.readDirSync(t)){const t=this.getStandardizedAbsolutePath(e.name);this.isPathQueuedForDeletion(t)||r.set(t,{path:t,isDirectory:e.isDirectory,isFile:e.isFile,isSymlink:e.isSymlink})}return x.sortByProperty(Array.from(r.values()),e=>e.path)}async*glob(e){const t=await this.fileSystem.glob(e);for(const e of t){const t=this.getStandardizedAbsolutePath(e);this.isPathQueuedForDeletion(t)||(yield t)}}*globSync(e){const t=this.fileSystem.globSync(e);for(const e of t){const t=this.getStandardizedAbsolutePath(e);this.isPathQueuedForDeletion(t)||(yield t)}}getFileSystem(){return this.fileSystem}getCurrentDirectory(){return this.getStandardizedAbsolutePath(this.fileSystem.getCurrentDirectory())}getDirectories(e){return this.readDirSync(e).filter(e=>e.isDirectory).map(e=>e.path)}realpathSync(e){if(this.libFileExists(e))return e;try{return this.getStandardizedAbsolutePath(this.fileSystem.realpathSync(e))}catch(t){return e}}getStandardizedAbsolutePath(e,t){const n=Z.getStandardizedAbsolutePath(this.fileSystem,e,t);return this.pathCasingMaintainer.getPath(n)}readFileOrNotExists(e,t){const n=this.readLibFile(e);return null!=n?Promise.resolve(n):!this.isPathQueuedForDeletion(e)&&Z.readFileOrNotExists(this.fileSystem,e,t)}readFileOrNotExistsSync(e,t){const n=this.readLibFile(e);return null!=n?n:!this.isPathQueuedForDeletion(e)&&Z.readFileOrNotExistsSync(this.fileSystem,e,t)}async writeFile(e,t){this.throwIfLibFile(e);const n=this.getOrCreateParentDirectory(e);this.throwIfHasExternalOperations(n,"write file"),n.dequeueFileDelete(e),await this.ensureDirectoryExists(n),await this.fileSystem.writeFile(e,t)}writeFileSync(e,t){this.throwIfLibFile(e);const n=this.getOrCreateParentDirectory(e);this.throwIfHasExternalOperations(n,"write file"),n.dequeueFileDelete(e),this.ensureDirectoryExistsSync(n),this.fileSystem.writeFileSync(e,t)}isPathDirectoryInQueueThatExists(e){const t=this.getDirectoryIfExists(e);return null!=t&&!t.getIsDeleted()}isPathQueuedForDeletion(e){const t=this.getDirectoryIfExists(e);if(null!=t)return t.getIsDeleted();const n=this.getParentDirectoryIfExists(e);return null!=n&&(n.isFileQueuedForDelete(e)||n.getIsDeleted())}removeDirAndSubDirs(e){const t=e.getParent();e.removeParent();for(const t of[e,...e.getDescendants()])this.directories.removeByKey(t.path);null!=t&&t.dequeueDirDelete(e.path)}addBackDirAndSubDirs(e){for(const t of[e,...e.getDescendants()])this.directories.set(t.path,t);e.isRootDir()||e.setParent(this.getOrCreateParentDirectory(e.path))}getNextOperationIndex(){return this.operationIndex++}getParentDirectoryIfExists(e){return this.getDirectoryIfExists(Z.getDirPath(e))}getOrCreateParentDirectory(e){return this.getOrCreateDirectory(Z.getDirPath(e))}getDirectoryIfExists(e){return this.directories.get(e)}getOrCreateDirectory(e){let t=this.directories.get(e);if(null!=t)return t;const n=e=>this.directories.getOrCreate(e,()=>new ue(e));t=n(e);let r=e,i=t;for(;!Z.isRootDirPath(r);){const e=Z.getDirPath(r),a=this.directories.has(e),o=n(e);if(i.setParent(o),a)return t;i=o,r=e}return t}throwIfHasExternalOperations(t,n){const r=t.getExternalOperations();if(0!==r.length)throw new e.errors.InvalidOperationError(function(){let e=!1,t=`Cannot execute immediate operation '${n}' because of the following external operations:\n`;for(const n of r)"move"===n.kind?t+=`\n* Move: ${n.oldDir.path} --\x3e ${n.newDir.path}`:"copy"===n.kind?(t+=`\n* Copy: ${n.oldDir.path} --\x3e ${n.newDir.path}`,e=!0):"deleteDir"===n.kind?t+=`\n* Delete: ${n.dir.path}`:t+="\n* Unknown operation: Please report this as a bug.";return e&&(t+="\n\nNote: Copy operations can be removed from external operations by setting `includeUntrackedFiles` to `false` when copying."),t}())}async ensureDirectoryExists(e){e.isRootDir()||(this.removeMkDirOperationsForDir(e),await this.fileSystem.mkdir(e.path))}ensureDirectoryExistsSync(e){e.isRootDir()||(this.removeMkDirOperationsForDir(e),this.fileSystem.mkdirSync(e.path))}removeMkDirOperationsForDir(e){const t=e.getParent();null!=t&&(x.removeAll(t.operations,t=>"mkdir"===t.kind&&t.dir===e),this.removeMkDirOperationsForDir(t))}libFileExists(e){return null!=this.libFileMap&&this.libFileMap.has(e)}readLibFile(e){return null!=this.libFileMap?this.libFileMap.get(e):void 0}throwIfLibFile(t){if(this.libFileExists(t))throw new e.errors.InvalidOperationError("This operation is not permitted on an in memory lib folder file.")}}class pe{constructor(e){null==e.isCaseSensitive||e.isCaseSensitive()||(this.caseInsensitiveMappings=new Map)}getPath(e){if(null==this.caseInsensitiveMappings)return e;const t=e.toLowerCase();let n=this.caseInsensitiveMappings.get(t);return null==n&&(n=e,this.caseInsensitiveMappings.set(t,n)),n}removePath(e){null!=this.caseInsensitiveMappings&&this.caseInsensitiveMappings.delete(e.toLowerCase())}}class me{constructor(e){this.transactionalFileSystem=e,this.sourceFileCacheByFilePath=new Map}createOrUpdateSourceFile(e,t,n,r){let i=this.sourceFileCacheByFilePath.get(e);return i=null==i?this.updateSourceFile(e,t,n,me.initialVersion,r):this.updateSourceFile(e,t,n,this.getNextSourceFileVersion(i),r),i}removeSourceFile(e){this.sourceFileCacheByFilePath.delete(e)}acquireDocument(e,t,n,r,i){const a=this.transactionalFileSystem.getStandardizedAbsolutePath(e);let o=this.sourceFileCacheByFilePath.get(a);return null!=o&&this.getSourceFileVersion(o)===r||(o=this.updateSourceFile(a,t,n,r,i)),o}acquireDocumentWithKey(e,t,n,r,i,a,o){return this.acquireDocument(e,n,i,a,o)}updateDocument(e,t,n,r,i){return this.acquireDocument(e,t,n,r,i)}updateDocumentWithKey(e,t,n,r,i,a,o){return this.updateDocument(e,n,i,a,o)}getKeyForCompilationSettings(e){return"defaultKey"}releaseDocument(e,t){}releaseDocumentWithKey(e,t){}reportStats(){throw new e.errors.NotImplementedError}getSourceFileVersion(e){return e.version||"0"}getNextSourceFileVersion(e){return((parseInt(this.getSourceFileVersion(e),10)||0)+1).toString()}updateSourceFile(e,t,n,r,i){const a=G(e,n,t.target,r,!0,i);return this.sourceFileCacheByFilePath.set(e,a),a}}me.initialVersion="0";const fe={deno:(e,t)=>{return{resolveModuleNames:(r,i)=>{const a=t(),o=[];for(const t of r.map(n)){const n=u.resolveModuleName(t,i,a,e);n.resolvedModule&&o.push(n.resolvedModule)}return o}};function n(e){return".ts"===e.slice(-3).toLowerCase()?e.slice(0,-3):e}}};function _e(e,t,n){if(null!=n.value)n.value=ye(n.value);else{if(null==n.get)throw new Error("Only put a Memoize decorator on a method or get accessor.");n.get=ye(n.get)}}const he=new WeakMap;let ge=0;function ye(e){const t=ge++;return function(...n){let r=he.get(this);null==r&&(r=new Map,he.set(this,r));let i,a=`__memoized_value_${t}`;return arguments.length>0&&(a+="_"+JSON.stringify(n)),r.has(a)?i=r.get(a):(i=e.apply(this,n),r.set(a,i)),i}}class ve{constructor(e){this._defaultSettings=Object.assign({},e),this._settings=e}reset(){this._settings=Object.assign({},this._defaultSettings),this._fireModified()}get(){return Object.assign({},this._settings)}set(e){Object.assign(this._settings,e),this._fireModified()}onModified(e){null==this._modifiedEventContainer&&(this._modifiedEventContainer=new T),this._modifiedEventContainer.subscribe(e)}_fireModified(){null!=this._modifiedEventContainer&&this._modifiedEventContainer.fire(void 0)}}function be(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(o=(a<3?i(o):a>3?i(t,n,o):i(t,n))||o);return a>3&&o&&Object.defineProperty(t,n,o),o}class Ee{constructor(e,t,n){this.fileSystem=e,this.encoding=n,this.host=function(e,t){const n=[],r=!1,i={useCaseSensitiveFileNames:r,readDirectory:(t,i,a,o,s)=>{const c=function(e,t,n,r,i,a,o){const s=e.getCurrentDirectory(),c=[],l=A(n,i||[],a,t,s),u=l.includeDirectoryPattern&&new RegExp(l.includeDirectoryPattern,"i"),d=l.excludePattern&&new RegExp(l.excludePattern,"i");return{files:L(n,r,i||[],a,t,s,o,t=>{const n=("/"!==(i=t)[i.length-1]&&(i+="/"),(!u||u.test(i))&&(!d||!d.test(i))),r=e.getStandardizedAbsolutePath(t);var i;return n&&c.push(r),function(e,t){const n=[],r=[];try{const i=t.readDirSync(e);for(const e of i)e.isFile?n.push(e.path):e.isDirectory&&r.push(e.path)}catch(e){if(!Z.isNotExistsError(e))throw e}return{files:n,directories:r}}(r,e)},t=>e.realpathSync(e.getStandardizedAbsolutePath(t)),t=>e.directoryExistsSync(e.getStandardizedAbsolutePath(t))),directories:c}}(e,r,t,i,a,o,s);return n.push(...c.directories),c.files},fileExists:t=>e.fileExistsSync(e.getStandardizedAbsolutePath(t)),readFile:n=>e.readFileSync(e.getStandardizedAbsolutePath(n),t.encoding),getDirectories:()=>[...n],clearDirectories:()=>n.length=0};return i}(e,{encoding:n}),this.tsConfigFilePath=e.getStandardizedAbsolutePath(t),this.tsConfigDirPath=Z.getDirPath(this.tsConfigFilePath)}getCompilerOptions(){return this.parseJsonConfigFileContent().options}getErrors(){return this.parseJsonConfigFileContent().errors||[]}getPaths(e){const t=new Set,{fileSystem:n}=this,r=new Set;e=e||this.getCompilerOptions();const i=this.parseJsonConfigFileContent();for(let e of i.directories){const t=n.getStandardizedAbsolutePath(e);n.directoryExistsSync(t)&&r.add(t)}for(let e of i.fileNames){const i=n.getStandardizedAbsolutePath(e),a=Z.getDirPath(i);n.fileExistsSync(i)&&(r.add(a),t.add(i))}return{filePaths:Array.from(t.values()),directoryPaths:Array.from(r.values())}}parseJsonConfigFileContent(){return this.host.clearDirectories(),{...u.parseJsonConfigFileContent(this.getTsConfigFileJson(),this.host,this.tsConfigDirPath,void 0,this.tsConfigFilePath),directories:this.host.getDirectories()}}getTsConfigFileJson(){const e=this.fileSystem.readFileSync(this.tsConfigFilePath,this.encoding),t=u.parseConfigFileTextToJson(this.tsConfigFilePath,e);if(null!=t.error)throw new Error(t.error.messageText.toString());return t.config}}be([_e],Ee.prototype,"getCompilerOptions",null),be([_e],Ee.prototype,"getErrors",null),be([_e],Ee.prototype,"getPaths",null),be([_e],Ee.prototype,"parseJsonConfigFileContent",null),be([_e],Ee.prototype,"getTsConfigFileJson",null),Object.defineProperty(e,"DiagnosticCategory",{enumerable:!0,get:function(){return t.DiagnosticCategory}}),Object.defineProperty(e,"EmitHint",{enumerable:!0,get:function(){return t.EmitHint}}),Object.defineProperty(e,"LanguageVariant",{enumerable:!0,get:function(){return t.LanguageVariant}}),Object.defineProperty(e,"ModuleKind",{enumerable:!0,get:function(){return t.ModuleKind}}),Object.defineProperty(e,"ModuleResolutionKind",{enumerable:!0,get:function(){return t.ModuleResolutionKind}}),Object.defineProperty(e,"NewLineKind",{enumerable:!0,get:function(){return t.NewLineKind}}),Object.defineProperty(e,"NodeFlags",{enumerable:!0,get:function(){return t.NodeFlags}}),Object.defineProperty(e,"ObjectFlags",{enumerable:!0,get:function(){return t.ObjectFlags}}),Object.defineProperty(e,"ScriptKind",{enumerable:!0,get:function(){return t.ScriptKind}}),Object.defineProperty(e,"ScriptTarget",{enumerable:!0,get:function(){return t.ScriptTarget}}),Object.defineProperty(e,"SymbolFlags",{enumerable:!0,get:function(){return t.SymbolFlags}}),Object.defineProperty(e,"SyntaxKind",{enumerable:!0,get:function(){return t.SyntaxKind}}),Object.defineProperty(e,"TypeFlags",{enumerable:!0,get:function(){return t.TypeFlags}}),Object.defineProperty(e,"TypeFormatFlags",{enumerable:!0,get:function(){return t.TypeFormatFlags}}),e.ts=u,e.ArrayUtils=x,e.ComparerToStoredComparer=y,e.CompilerOptionsContainer=class extends ve{constructor(){super({})}set(e){super.set(e)}getEncoding(){return this._settings.charset||"utf-8"}},e.DocumentRegistry=me,e.EventContainer=T,e.FileUtils=Z,e.InMemoryFileSystemHost=class{constructor(){this.directories=new Map,this.getOrCreateDir("/")}isCaseSensitive(){return!0}delete(e){try{return this.deleteSync(e),Promise.resolve()}catch(e){return Promise.reject(e)}}deleteSync(t){const n=Z.getStandardizedAbsolutePath(this,t);if(this.directories.has(n)){for(const e of oe(this.directories.keys(),n))this.directories.delete(e);return void this.directories.delete(n)}const r=this.directories.get(Z.getDirPath(n));if(null==r||!r.files.has(n))throw new e.errors.FileNotFoundError(n);r.files.delete(n)}readDirSync(t){const n=Z.getStandardizedAbsolutePath(this,t),r=this.directories.get(n);if(null==r)throw new e.errors.DirectoryNotFoundError(n);return[...function*(e){for(const t of e){const e=Z.getDirPath(t);e===n&&e!==t&&(yield{name:t,isDirectory:!0,isFile:!1,isSymlink:!1})}}(this.directories.keys()),...Array.from(r.files.keys()).map(e=>({name:e,isDirectory:!1,isFile:!0,isSymlink:!1}))]}readFile(e,t="utf-8"){try{return Promise.resolve(this.readFileSync(e,t))}catch(e){return Promise.reject(e)}}readFileSync(t,n="utf-8"){const r=Z.getStandardizedAbsolutePath(this,t),i=this.directories.get(Z.getDirPath(r));if(null==i)throw new e.errors.FileNotFoundError(r);const a=i.files.get(r);if(void 0===a)throw new e.errors.FileNotFoundError(r);return a}writeFile(e,t){return this.writeFileSync(e,t),Promise.resolve()}writeFileSync(e,t){this._writeFileSync(e,t)}_writeFileSync(e,t){const n=Z.getStandardizedAbsolutePath(this,e),r=Z.getDirPath(n);this.getOrCreateDir(r).files.set(n,t)}mkdir(e){return this.mkdirSync(e),Promise.resolve()}mkdirSync(e){this.getOrCreateDir(Z.getStandardizedAbsolutePath(this,e))}move(e,t){return this.moveSync(e,t),Promise.resolve()}moveSync(t,n){const r=Z.getStandardizedAbsolutePath(this,t),i=Z.getStandardizedAbsolutePath(this,n);if(this.fileExistsSync(r)){const e=this.readFileSync(r);this.deleteSync(r),this.writeFileSync(i,e)}else{if(!this.directories.has(r))throw new e.errors.PathNotFoundError(r);{const e=(e,t)=>{this._copyDirInternal(e,t),this.directories.delete(e)};e(r,i);for(const t of oe(this.directories.keys(),r)){const n=Z.getRelativePathTo(r,t);e(t,Z.pathJoin(i,n))}}}}copy(e,t){return this.copySync(e,t),Promise.resolve()}copySync(t,n){const r=Z.getStandardizedAbsolutePath(this,t),i=Z.getStandardizedAbsolutePath(this,n);if(this.fileExistsSync(r))this.writeFileSync(i,this.readFileSync(r));else{if(!this.directories.has(r))throw new e.errors.PathNotFoundError(r);this._copyDirInternal(r,i);for(const e of oe(this.directories.keys(),r)){const t=Z.getRelativePathTo(r,e);this._copyDirInternal(e,Z.pathJoin(i,t))}}}_copyDirInternal(e,t){const n=this.directories.get(e),r=this.getOrCreateDir(t);for(const[e,i]of n.files.entries()){const n=Z.pathJoin(t,Z.getBaseName(e));r.files.set(n,i)}}fileExists(e){return Promise.resolve(this.fileExistsSync(e))}fileExistsSync(e){const t=Z.getStandardizedAbsolutePath(this,e),n=Z.getDirPath(t),r=this.directories.get(n);return null!=r&&r.files.has(t)}directoryExists(e){return Promise.resolve(this.directoryExistsSync(e))}directoryExistsSync(e){return this.directories.has(Z.getStandardizedAbsolutePath(this,e))}realpathSync(e){return e}getCurrentDirectory(){return"/"}glob(e){try{return Promise.resolve(this.globSync(e))}catch(e){return Promise.reject(e)}}globSync(e){return re(Array.from(function*(e){for(const t of e)yield*t.files.keys()}(this.directories.values())),e,this.getCurrentDirectory())}getOrCreateDir(e){let t=this.directories.get(e);if(null==t){t={path:e,files:new Map},this.directories.set(e,t);const n=Z.getDirPath(e);n!==e&&this.getOrCreateDir(n)}return t}},e.IterableUtils=class{static find(e,t){for(const n of e)if(t(n))return n}},e.KeyValueCache=g,e.LocaleStringComparer=v,e.Memoize=_e,e.ObjectUtils=D,e.PropertyComparer=b,e.PropertyStoredComparer=E,e.RealFileSystemHost=ce,e.ResolutionHosts=fe,e.SettingsContainer=ve,e.SortedKeyValueArray=F,e.StringUtils=M,e.TransactionalFileSystem=de,e.TsConfigResolver=Ee,e.WeakCache=class{constructor(){this.cacheItems=new WeakMap}getOrCreate(e,t){let n=this.get(e);return null==n&&(n=t(),this.set(e,n)),n}has(e){return this.cacheItems.has(e)}get(e){return this.cacheItems.get(e)}set(e,t){this.cacheItems.set(e,t)}removeByKey(e){this.cacheItems.delete(e)}},e.createDocumentCache=function(e){const t=new U;return t._addFiles(e),t},e.createHosts=function(e){const{transactionalFileSystem:t,sourceFileContainer:n,compilerOptions:r,getNewLine:i,resolutionHost:a,getProjectVersion:o,isKnownTypesPackageName:s}=e;let c=0;const l=t.getStandardizedAbsolutePath(H(e)),d={getCompilationSettings:()=>r.get(),getNewLine:i,getProjectVersion:o,getScriptFileNames:()=>Array.from(n.getSourceFilePaths()),getScriptVersion:e=>{const r=t.getStandardizedAbsolutePath(e),i=n.getSourceFileFromCacheFromFilePath(r);return null==i?(c++).toString():n.getSourceFileVersion(i)},getScriptSnapshot:e=>{const r=t.getStandardizedAbsolutePath(e),i=n.addOrGetSourceFileFromFilePathSync(r,{markInProject:!1,scriptKind:void 0});return i?u.ScriptSnapshot.fromString(i.getFullText()):void 0},getCurrentDirectory:()=>t.getCurrentDirectory(),getDefaultLibFileName:e=>l+"/"+u.getDefaultLibFileName(e),isKnownTypesPackageName:s,useCaseSensitiveFileNames:()=>!0,readFile:(e,r)=>{const i=t.getStandardizedAbsolutePath(e);return n.containsSourceFileAtPath(i)?n.getSourceFileFromCacheFromFilePath(i).getFullText():t.readFileSync(i,r)},fileExists:e=>(e=>n.containsSourceFileAtPath(e)||t.fileExistsSync(e))(t.getStandardizedAbsolutePath(e)),directoryExists:e=>{const r=t.getStandardizedAbsolutePath(e);return n.containsDirectoryAtPath(r)||t.directoryExistsSync(r)},resolveModuleNames:a.resolveModuleNames,resolveTypeReferenceDirectives:a.resolveTypeReferenceDirectives,getResolvedModuleWithFailedLookupLocationsFromCache:a.getResolvedModuleWithFailedLookupLocationsFromCache,realpath:e=>t.realpathSync(t.getStandardizedAbsolutePath(e))},p={getSourceFile:(e,r,i)=>{const a=t.getStandardizedAbsolutePath(e);return n.addOrGetSourceFileFromFilePathSync(a,{markInProject:!1,scriptKind:void 0})},getDefaultLibFileName:d.getDefaultLibFileName,writeFile:(e,n,r,i,a)=>{const o=t.getStandardizedAbsolutePath(e);t.writeFileSync(o,r?"\ufeff"+n:n)},getCurrentDirectory:()=>d.getCurrentDirectory(),getDirectories:e=>t.getDirectories(t.getStandardizedAbsolutePath(e)),fileExists:d.fileExists,readFile:d.readFile,getCanonicalFileName:e=>t.getStandardizedAbsolutePath(e),useCaseSensitiveFileNames:d.useCaseSensitiveFileNames,getNewLine:d.getNewLine,getEnvironmentVariable:e=>X.getEnvVar(e),directoryExists:e=>d.directoryExists(e),resolveModuleNames:a.resolveModuleNames,resolveTypeReferenceDirectives:a.resolveTypeReferenceDirectives,realpath:d.realpath};return{languageServiceHost:d,compilerHost:p}},e.createModuleResolutionHost=function(e){const{transactionalFileSystem:t,sourceFileContainer:n,getEncoding:r}=e;return{directoryExists:e=>{const r=t.getStandardizedAbsolutePath(e);return!!n.containsDirectoryAtPath(r)||t.directoryExistsSync(r)},fileExists:e=>{const r=t.getStandardizedAbsolutePath(e);return!!n.containsSourceFileAtPath(r)||t.fileExistsSync(r)},readFile:e=>{const i=t.getStandardizedAbsolutePath(e),a=n.getSourceFileFromCacheFromFilePath(i);if(null!=a)return a.getFullText();try{return t.readFileSync(i,r())}catch(e){if(Z.isNotExistsError(e))return;throw e}},getCurrentDirectory:()=>t.getCurrentDirectory(),getDirectories:e=>{const r=t.getStandardizedAbsolutePath(e),i=new Set(t.readDirSync(r).map(e=>e.path));for(const e of n.getChildDirectoriesOfDirectory(r))i.add(e);return Array.from(i)},realpath:e=>t.realpathSync(t.getStandardizedAbsolutePath(e))}},e.deepClone=S,e.getCompilerOptionsFromTsConfig=function(e,t={}){const n=new de({fileSystem:t.fileSystem||new ce,skipLoadingLibFiles:!1,libFolderPath:void 0}),r=new Ee(n,n.getStandardizedAbsolutePath(e),t.encoding||"utf-8");return{options:r.getCompilerOptions(),errors:r.getErrors()}},e.getEmitModuleResolutionKind=function(e){return u.getEmitModuleResolutionKind.apply(this,arguments)},e.getFileMatcherPatterns=A,e.getLibFiles=K,e.getLibFolderPath=H,e.getSyntaxKindName=N,e.libFolderInMemoryPath=j,e.matchFiles=L,e.matchGlobs=re,e.nameof=C,e.runtime=X}(tsMorphCommon)),tsMorphCommon}function requireTsMorphBootstrap(){return hasRequiredTsMorphBootstrap||(hasRequiredTsMorphBootstrap=1,function(e){var t=requireTsMorphCommon();function n(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(o=(a<3?i(o):a>3?i(t,n,o):i(t,n))||o);return a>3&&o&&Object.defineProperty(t,n,o),o}class r{constructor(e,n){this.fileSystemWrapper=e,this.compilerOptions=n,this.sourceFilesByFilePath=new Map,this.projectVersion=0,this.documentRegistry=new t.DocumentRegistry(e)}containsSourceFileAtPath(e){return this.sourceFilesByFilePath.has(e)}getSourceFilePaths(){return this.sourceFilesByFilePath.keys()}getSourceFiles(){return this.sourceFilesByFilePath.values()}getProjectVersion(){return this.projectVersion}getSourceFileVersion(e){return this.documentRegistry.getSourceFileVersion(e)}getSourceFileFromCacheFromFilePath(e){return this.sourceFilesByFilePath.get(e)}async addOrGetSourceFileFromFilePath(e,t){let n=this.sourceFilesByFilePath.get(e);if(null==n){const r=await this.fileSystemWrapper.readFileIfExists(e,this.compilerOptions.getEncoding());null!=r&&(n=this.createSourceFileFromText(e,r,t))}return n}addOrGetSourceFileFromFilePathSync(e,t){let n=this.sourceFilesByFilePath.get(e);if(null==n){const r=this.fileSystemWrapper.readFileIfExistsSync(e,this.compilerOptions.getEncoding());null!=r&&(n=this.createSourceFileFromText(e,r,t))}return n}createSourceFileFromText(e,n,r){e=this.fileSystemWrapper.getStandardizedAbsolutePath(e),t.StringUtils.hasBom(n)&&(n=t.StringUtils.stripBom(n));const i=this.documentRegistry.createOrUpdateSourceFile(e,this.compilerOptions.get(),t.ts.ScriptSnapshot.fromString(n),r.scriptKind);return this.setSourceFile(i),i}setSourceFile(e){const n=this.fileSystemWrapper.getStandardizedAbsolutePath(e.fileName);e.fileName=n,this.documentRegistry.updateDocument(n,this.compilerOptions.get(),t.ts.ScriptSnapshot.fromString(e.text),this.getSourceFileVersion(e),e.scriptKind);const r=t.FileUtils.getDirPath(n);this.fileSystemWrapper.directoryExistsSync(r)||this.fileSystemWrapper.queueMkdir(r),this.sourceFilesByFilePath.set(n,e),this.projectVersion++}removeSourceFile(e){this.sourceFilesByFilePath.delete(e)}containsDirectoryAtPath(e){return this.fileSystemWrapper.directoryExistsSync(e)}getChildDirectoriesOfDirectory(e){return this.fileSystemWrapper.getDirectories(e)}}function i(e){!function(){if(null!=e.fileSystem&&e.useInMemoryFileSystem)throw new t.errors.InvalidOperationError("Cannot provide a file system when specifying to use an in-memory file system.")}();const n=e.useInMemoryFileSystem?new t.InMemoryFileSystemHost:null!==(r=e.fileSystem)&&void 0!==r?r:new t.RealFileSystemHost;var r;const i=new t.TransactionalFileSystem({fileSystem:n,libFolderPath:e.libFolderPath,skipLoadingLibFiles:e.skipLoadingLibFiles}),o=null==e.tsConfigFilePath?void 0:new t.TsConfigResolver(i,i.getStandardizedAbsolutePath(e.tsConfigFilePath),null!=e.compilerOptions&&e.compilerOptions.charset||"utf-8");return{project:new a({fileSystem:n,fileSystemWrapper:i,tsConfigResolver:o},e),tsConfigResolver:o}}class a{constructor(e,n){var i;const{tsConfigResolver:a}=e;this.fileSystem=e.fileSystem,this._fileSystemWrapper=e.fileSystemWrapper;const o={...null==a?{}:a.getCompilerOptions(),...n.compilerOptions||{}};this.compilerOptions=new t.CompilerOptionsContainer,this.compilerOptions.set(o),this._sourceFileCache=new r(this._fileSystemWrapper,this.compilerOptions);const s=n.resolutionHost?n.resolutionHost(this.getModuleResolutionHost(),()=>this.compilerOptions.get()):void 0,{languageServiceHost:c,compilerHost:l}=t.createHosts({transactionalFileSystem:this._fileSystemWrapper,sourceFileContainer:this._sourceFileCache,compilerOptions:this.compilerOptions,getNewLine:()=>"\n",resolutionHost:s||{},getProjectVersion:()=>this._sourceFileCache.getProjectVersion().toString(),isKnownTypesPackageName:n.isKnownTypesPackageName,libFolderPath:n.libFolderPath,skipLoadingLibFiles:n.skipLoadingLibFiles});this.languageServiceHost=c,this.compilerHost=l,this.configFileParsingDiagnostics=null!==(i=null==a?void 0:a.getErrors())&&void 0!==i?i:[]}async addSourceFileAtPath(e,n){const r=await this.addSourceFileAtPathIfExists(e,n);if(null==r)throw new t.errors.FileNotFoundError(this._fileSystemWrapper.getStandardizedAbsolutePath(e));return r}addSourceFileAtPathSync(e,n){const r=this.addSourceFileAtPathIfExistsSync(e,n);if(null==r)throw new t.errors.FileNotFoundError(this._fileSystemWrapper.getStandardizedAbsolutePath(e));return r}addSourceFileAtPathIfExists(e,t){return this._sourceFileCache.addOrGetSourceFileFromFilePath(this._fileSystemWrapper.getStandardizedAbsolutePath(e),{scriptKind:t&&t.scriptKind})}addSourceFileAtPathIfExistsSync(e,t){return this._sourceFileCache.addOrGetSourceFileFromFilePathSync(this._fileSystemWrapper.getStandardizedAbsolutePath(e),{scriptKind:t&&t.scriptKind})}async addSourceFilesByPaths(e){"string"==typeof e&&(e=[e]);const t=[],n=[];for await(const r of this._fileSystemWrapper.glob(e))t.push(this.addSourceFileAtPathIfExists(r).then(e=>{null!=e&&n.push(e)}));return await Promise.all(t),n}addSourceFilesByPathsSync(e){"string"==typeof e&&(e=[e]);const t=[];for(const n of this._fileSystemWrapper.globSync(e)){const e=this.addSourceFileAtPathIfExistsSync(n);null!=e&&t.push(e)}return t}addSourceFilesFromTsConfig(e){const t=this._getTsConfigResolver(e);return this._addSourceFilesForTsConfigResolver(t,t.getCompilerOptions())}addSourceFilesFromTsConfigSync(e){const t=this._getTsConfigResolver(e);return this._addSourceFilesForTsConfigResolverSync(t,t.getCompilerOptions())}_getTsConfigResolver(e){const n=this._fileSystemWrapper.getStandardizedAbsolutePath(e);return new t.TsConfigResolver(this._fileSystemWrapper,n,this.compilerOptions.getEncoding())}createSourceFile(e,t,n){return this._sourceFileCache.createSourceFileFromText(this._fileSystemWrapper.getStandardizedAbsolutePath(e),t||"",{scriptKind:n&&n.scriptKind})}updateSourceFile(e,n,r){return"string"==typeof e?this.createSourceFile(e,n,r):(function(e){let t=e.version||"-1";const n=parseInt(t,10);t=isNaN(n)?"0":(n+1).toString(),e.version=t}(e),null==(i=e).scriptSnapshot&&(i.scriptSnapshot=t.ts.ScriptSnapshot.fromString(i.text)),this._sourceFileCache.setSourceFile(e));var i}removeSourceFile(e){this._sourceFileCache.removeSourceFile(this._fileSystemWrapper.getStandardizedAbsolutePath("string"==typeof e?e:e.fileName))}resolveSourceFileDependencies(){this.createProgram()}async _addSourceFilesForTsConfigResolver(e,t){const n=[];return await Promise.all(e.getPaths(t).filePaths.map(e=>this.addSourceFileAtPath(e).then(e=>n.push(e)))),n}_addSourceFilesForTsConfigResolverSync(e,t){return e.getPaths(t).filePaths.map(e=>this.addSourceFileAtPathSync(e))}createProgram(e){const n=this._oldProgram,r=t.ts.createProgram({rootNames:Array.from(this._sourceFileCache.getSourceFilePaths()),options:this.compilerOptions.get(),host:this.compilerHost,oldProgram:n,configFileParsingDiagnostics:this.configFileParsingDiagnostics,...e});return this._oldProgram=r,r}getLanguageService(){return t.ts.createLanguageService(this.languageServiceHost,this._sourceFileCache.documentRegistry)}getSourceFileOrThrow(e){const n=this.getSourceFile(e);if(null!=n)return n;if("string"==typeof e){const n=t.FileUtils.standardizeSlashes(e);if(t.FileUtils.pathIsAbsolute(n)||n.indexOf("/")>=0){const e=this._fileSystemWrapper.getStandardizedAbsolutePath(n);throw new t.errors.InvalidOperationError(`Could not find source file in project at the provided path: ${e}`)}throw new t.errors.InvalidOperationError(`Could not find source file in project with the provided file name: ${e}`)}throw new t.errors.InvalidOperationError("Could not find source file in project based on the provided condition.")}getSourceFile(e){const n=function(n){if(e instanceof Function)return e;const r=t.FileUtils.standardizeSlashes(e);return t.FileUtils.pathIsAbsolute(r)||r.indexOf("/")>=0?n.getStandardizedAbsolutePath(r):e=>t.FileUtils.pathEndsWith(e.fileName,r)}(this._fileSystemWrapper);if("string"==typeof n)return this._sourceFileCache.getSourceFileFromCacheFromFilePath(n);const r=this.getSourceFiles();return function(e){let n;for(const r of e)(null==n||t.FileUtils.getDirPath(r.fileName).lengththis._fileSystemWrapper.getCurrentDirectory(),getCanonicalFileName:e=>e,getNewLine:()=>n.newLineChar||t.runtime.getEndOfLine()})}getModuleResolutionHost(){return t.createModuleResolutionHost({transactionalFileSystem:this._fileSystemWrapper,getEncoding:()=>this.compilerOptions.getEncoding(),sourceFileContainer:this._sourceFileCache})}}n([t.Memoize],a.prototype,"getLanguageService",null),n([t.Memoize],a.prototype,"getModuleResolutionHost",null),Object.defineProperty(e,"CompilerOptionsContainer",{enumerable:!0,get:function(){return t.CompilerOptionsContainer}}),Object.defineProperty(e,"InMemoryFileSystemHost",{enumerable:!0,get:function(){return t.InMemoryFileSystemHost}}),Object.defineProperty(e,"ResolutionHosts",{enumerable:!0,get:function(){return t.ResolutionHosts}}),Object.defineProperty(e,"SettingsContainer",{enumerable:!0,get:function(){return t.SettingsContainer}}),Object.defineProperty(e,"ts",{enumerable:!0,get:function(){return t.ts}}),e.Project=a,e.createProject=async function(e={}){const{project:t,tsConfigResolver:n}=i(e);return null!=n&&!0!==e.skipAddingFilesFromTsConfig&&(await t._addSourceFilesForTsConfigResolver(n,t.compilerOptions.get()),e.skipFileDependencyResolution||t.resolveSourceFileDependencies()),t},e.createProjectSync=function(e={}){const{project:t,tsConfigResolver:n}=i(e);return null!=n&&!0!==e.skipAddingFilesFromTsConfig&&(t._addSourceFilesForTsConfigResolverSync(n,t.compilerOptions.get()),e.skipFileDependencyResolution||t.resolveSourceFileDependencies()),t}}(tsMorphBootstrap)),tsMorphBootstrap}var tsMorphBootstrapExports=requireTsMorphBootstrap();class TypeMismatchError{constructor(e,t,n){this.node=e,this.actualTypeString=t,this.expectedTypeString=n,this.type=ErrorType.TYPE,this.severity=ErrorSeverity.ERROR}get location(){return this.node.loc??UNKNOWN_LOCATION}explain(){return`Type '${this.actualTypeString}' is not assignable to type '${this.expectedTypeString}'.`}elaborate(){return this.explain()}}class TypeNotFoundError{constructor(e,t){this.node=e,this.name=t,this.type=ErrorType.TYPE,this.severity=ErrorSeverity.ERROR}get location(){return this.node.loc??UNKNOWN_LOCATION}explain(){return`Type '${this.name}' not declared.`}elaborate(){return this.explain()}}class FunctionShouldHaveReturnValueError{constructor(e){this.node=e,this.type=ErrorType.TYPE,this.severity=ErrorSeverity.ERROR}get location(){return this.node.loc??UNKNOWN_LOCATION}explain(){return"A function whose declared type is neither 'void' nor 'any' must return a value."}elaborate(){return this.explain()}}class TypeNotCallableError{constructor(e,t){this.node=e,this.typeName=t,this.type=ErrorType.TYPE,this.severity=ErrorSeverity.ERROR}get location(){return this.node.loc??UNKNOWN_LOCATION}explain(){return`Type '${this.typeName}' is not callable.`}elaborate(){return this.explain()}}class TypecastError{constructor(e,t,n){this.node=e,this.originalType=t,this.typeToCastTo=n,this.type=ErrorType.TYPE,this.severity=ErrorSeverity.ERROR}get location(){return this.node.loc??UNKNOWN_LOCATION}explain(){return`Type '${this.originalType}' cannot be casted to type '${this.typeToCastTo}' as the two types do not intersect.`}elaborate(){return this.explain()}}class TypeNotAllowedError{constructor(e,t){this.node=e,this.name=t,this.type=ErrorType.TYPE,this.severity=ErrorSeverity.ERROR}get location(){return this.node.loc??UNKNOWN_LOCATION}explain(){return`Type '${this.name}' is not allowed.`}elaborate(){return this.explain()}}class UndefinedVariableTypeError{constructor(e,t){this.node=e,this.name=t,this.type=ErrorType.TYPE,this.severity=ErrorSeverity.ERROR}get location(){return this.node.loc??UNKNOWN_LOCATION}explain(){return`Name ${this.name} not declared.`}elaborate(){return`Before you can read the value of ${this.name}, you need to declare it as a variable or a constant. You can do this using the let or const keywords.`}}class InvalidNumberOfArgumentsTypeError{constructor(e,t,n,r=!1){this.node=e,this.expected=t,this.got=n,this.hasVarArgs=r,this.type=ErrorType.TYPE,this.severity=ErrorSeverity.ERROR,this.calleeStr=generate$1(e.callee)}get location(){return this.node.loc??UNKNOWN_LOCATION}explain(){return`Expected ${this.expected} ${this.hasVarArgs?"or more ":""}arguments, but got ${this.got}.`}elaborate(){const e=this.calleeStr,t=1===this.expected?"":"s";return`Try calling function ${e} again, but with ${this.expected} argument${t} instead. Remember that arguments are separated by a ',' (comma).`}}class InvalidNumberOfTypeArgumentsForGenericTypeError{constructor(e,t,n){this.node=e,this.name=t,this.expected=n,this.type=ErrorType.TYPE,this.severity=ErrorSeverity.ERROR}get location(){return this.node.loc??UNKNOWN_LOCATION}explain(){return`Generic type '${this.name}' requires ${this.expected} type argument(s).`}elaborate(){return this.explain()}}class TypeNotGenericError{constructor(e,t){this.node=e,this.name=t,this.type=ErrorType.TYPE,this.severity=ErrorSeverity.ERROR}get location(){return this.node.loc??UNKNOWN_LOCATION}explain(){return`Type '${this.name}' is not generic.`}elaborate(){return this.explain()}}class TypeAliasNameNotAllowedError{constructor(e,t){this.node=e,this.name=t,this.type=ErrorType.TYPE,this.severity=ErrorSeverity.ERROR}get location(){return this.node.loc??UNKNOWN_LOCATION}explain(){return`Type alias name cannot be '${this.name}'.`}elaborate(){return this.explain()}}class TypeParameterNameNotAllowedError{constructor(e,t){this.node=e,this.name=t,this.type=ErrorType.TYPE,this.severity=ErrorSeverity.ERROR}get location(){return this.node.loc??UNKNOWN_LOCATION}explain(){return`Type parameter name cannot be '${this.name}'.`}elaborate(){return this.explain()}}class InvalidIndexTypeError{constructor(e,t){this.node=e,this.typeName=t,this.type=ErrorType.TYPE,this.severity=ErrorSeverity.ERROR}get location(){return this.node.loc??UNKNOWN_LOCATION}explain(){return`Type '${this.typeName}' cannot be used as an index type.`}elaborate(){return this.explain()}}class InvalidArrayAccessTypeError{constructor(e,t){this.node=e,this.typeName=t,this.type=ErrorType.TYPE,this.severity=ErrorSeverity.ERROR}get location(){return this.node.loc??UNKNOWN_LOCATION}explain(){return`Type '${this.typeName}' cannot be accessed as it is not an array.`}elaborate(){return this.explain()}}class ConstNotAssignableTypeError{constructor(e,t){this.node=e,this.name=t,this.type=ErrorType.TYPE,this.severity=ErrorSeverity.WARNING}get location(){return this.node.loc??UNKNOWN_LOCATION}explain(){return`Cannot assign to '${this.name}' as it is a constant.`}elaborate(){return this.explain()}}class DuplicateTypeAliasError{constructor(e,t){this.node=e,this.name=t,this.type=ErrorType.TYPE,this.severity=ErrorSeverity.ERROR}get location(){return this.node.loc??UNKNOWN_LOCATION}explain(){return`Type alias '${this.name}' has already been declared.`}elaborate(){return this.explain()}}const disallowedTypes=["bigint","never","object","symbol","unknown"];var types=Object.freeze({__proto__:null,disallowedTypes:disallowedTypes});class TypecheckError{constructor(e,t){this.node=e,this.message=t,this.type=ErrorType.TYPE,this.severity=ErrorSeverity.WARNING}get location(){return this.node.loc??UNKNOWN_LOCATION}explain(){return this.message}elaborate(){return this.message}}const parseTreeTypesPrelude='\n\n// Types used to describe the shape of the parse tree\n// that is generated by the parse function in Source 4.\n\n// Program\ntype Program = Pair<"sequence", Pair, null>>;\n\n// Statement\ntype Statement =\n | ConstantDeclaration\n | VariableDeclaration\n | FunctionDeclaration\n | ReturnStatement\n | ConditionalStatement\n | WhileLoop\n | ForLoop\n | BreakStatement\n | ContinueStatement\n | Block\n | Expression;\n\ntype ConstantDeclaration = Pair<"constant_declaration", Pair>>;\ntype FunctionDeclaration = Pair<"function_declaration", Pair>>>;\ntype ReturnStatement = Pair<"return_statement", Pair>;\ntype WhileLoop = Pair<"while_loop", Pair>>;\ntype ForLoop = Pair<"for_loop", Pair>>>>;\ntype BreakStatement = Pair<"break_statement", null>;\ntype ContinueStatement = Pair<"continue_statement", null>;\n\n// Parameters\ntype Parameters = List;\n\n// If-Statement\ntype ConditionalStatement = Pair<"conditional_statement", Pair>>>;\n\n// Block\ntype Block = Pair<"block", Pair>;\n\n// Let\ntype VariableDeclaration = Pair<"variable_declaration", Pair>>;\n\n// Assignment\ntype Assignment = Pair<"assignment", Pair>>;\ntype ObjectAssignment = Pair<"object_assignment", Pair>>;\n\n// Expression\ntype Expression =\n | Literal\n | Name\n | LogicalComposition\n | BinaryOperatorCombination\n | UnaryOperatorCombination\n | Application\n | LambdaExpression\n | ConditionalExpression\n | Assignment\n | ObjectAssignment\n | ObjectAccess\n | ArrayExpression;\n\ntype Literal = Pair<"literal", Pair>;\ntype Name = Pair<"name", Pair>;\ntype LogicalComposition = Pair<"logical_composition", Pair>>>;\ntype BinaryOperatorCombination = Pair<"binary_operator_combination", Pair>>>;\ntype UnaryOperatorCombination = Pair<"unary_operator_combination", Pair>>;\ntype Application = Pair<"application", Pair, null>>>;\ntype LambdaExpression = Pair<"lambda_expression", Pair>>;\ntype ConditionalExpression = Pair<"conditional_expression", Pair>>>;\ntype ObjectAccess = Pair<"object_access", Pair>>;\ntype ArrayExpression = Pair<"array_expression", Pair, null>>;\n\n// Operators\ntype LogicalOperator = "&&" | "||";\ntype BinaryOperator = "+" | "-" | "*" | "/" | "%" | "===" | "!==" | "<" | ">" | "<=" | ">=";\ntype UnaryOperator = "!" | "-unary";\n',NEGATIVE_OP="-_1",RETURN_TYPE_IDENTIFIER="//RETURN_TYPE",typeAnnotationKeywordToBasicTypeMap={TSAnyKeyword:"any",TSBigIntKeyword:"bigint",TSBooleanKeyword:"boolean",TSNeverKeyword:"never",TSNullKeyword:"null",TSNumberKeyword:"number",TSObjectKeyword:"object",TSStringKeyword:"string",TSSymbolKeyword:"symbol",TSUndefinedKeyword:"undefined",TSUnknownKeyword:"unknown",TSVoidKeyword:"void"};function lookupType(e,t){for(let n=t.length-1;n>=0;n--)if(t[n].typeMap.has(e))return t[n].typeMap.get(e)}function lookupDeclKind(e,t){for(let n=t.length-1;n>=0;n--)if(t[n].declKindMap.has(e))return t[n].declKindMap.get(e)}function lookupTypeAlias(e,t){for(let n=t.length-1;n>=0;n--)if(t[n].typeAliasMap.has(e))return t[n].typeAliasMap.get(e)}function setType(e,t,n){n[n.length-1].typeMap.set(e,t)}function setDeclKind(e,t,n){n[n.length-1].declKindMap.set(e,t)}function setTypeAlias(e,t,n){n[n.length-1].typeAliasMap.set(e,t)}function pushEnv(e){e.push({typeMap:new Map,declKindMap:new Map,typeAliasMap:new Map})}function formatTypeString(e,t){switch(e.kind){case"function":return`(${e.parameterTypes.map(e=>formatTypeString(e,t)).join(", ")}) => ${formatTypeString(e.returnType,t)}`;case"union":const n=new Set(e.types.map(e=>formatTypeString(e,t)));return Array.from(n).join(" | ");case"literal":return"string"==typeof e.value?`"${e.value.toString()}"`:e.value.toString();case"primitive":return t&&void 0!==e.value?"string"==typeof e.value?`"${e.value.toString()}"`:e.value.toString():e.name;case"pair":return`Pair<${formatTypeString(e.headType,t)}, ${formatTypeString(e.tailType,t)}>`;case"list":return`List<${formatTypeString(e.elementType,t)}>`;case"array":const r=formatTypeString(e.elementType,t);return r.includes("|")||r.includes("=>")?`(${r})[]`:`${r}[]`;case"variable":return void 0!==e.typeArgs&&e.typeArgs.length>0?`${e.name}<${e.typeArgs.map(e=>formatTypeString(e,t)).join(", ")}>`:e.name;default:return e}}function tPrimitive(e,t){return{kind:"primitive",name:e,value:t}}function tVar(e,t){return{kind:"variable",name:e,constraint:"none",typeArgs:t}}function tAddable(e){return{kind:"variable",name:e,constraint:"addable"}}function tPair(e,t){return{kind:"pair",headType:e,tailType:t}}function tList(e,t){return{kind:"list",elementType:e,typeAsPair:t}}function tForAll(e,t){return{kind:"forall",polyType:e,typeParams:t}}function tArray(e){return{kind:"array",elementType:e}}const tAny=tPrimitive("any"),tBool=tPrimitive("boolean"),tNumber=tPrimitive("number"),tString=tPrimitive("string"),tUndef=tPrimitive("undefined"),tVoid=tPrimitive("void"),tNull=tPrimitive("null");function tFunc(...e){return{kind:"function",parameterTypes:e.slice(0,-1),returnType:e.slice(-1)[0]}}function tUnion(...e){return{kind:"union",types:e}}function tLiteral(e){return{kind:"literal",value:e}}function tPred(e){return{kind:"predicate",ifTrueType:e}}const headType=tVar("headType"),tailType=tVar("tailType");function tStream(e){return tFunc(tPair(e,tVar("Stream",[e])))}const predeclaredNames=[["Infinity",tPrimitive("number",1/0)],["NaN",tPrimitive("number",NaN)],["undefined",tUndef],["math_E",tPrimitive("number",Math.E)],["math_LN2",tPrimitive("number",Math.LN2)],["math_LN10",tPrimitive("number",Math.LN10)],["math_LOG2E",tPrimitive("number",Math.LOG2E)],["math_LOG10E",tPrimitive("number",Math.LOG10E)],["math_PI",tPrimitive("number",Math.PI)],["math_SQRT1_2",tPrimitive("number",Math.SQRT1_2)],["math_SQRT2",tPrimitive("number",Math.SQRT2)],["is_boolean",tPred(tBool)],["is_number",tPred(tNumber)],["is_string",tPred(tString)],["is_undefined",tPred(tUndef)],["is_function",tPred(tForAll(tFunc(tVar("T"),tVar("U"))))],["math_abs",tFunc(tNumber,tNumber)],["math_acos",tFunc(tNumber,tNumber)],["math_acosh",tFunc(tNumber,tNumber)],["math_asin",tFunc(tNumber,tNumber)],["math_asinh",tFunc(tNumber,tNumber)],["math_atan",tFunc(tNumber,tNumber)],["math_atan2",tFunc(tNumber,tNumber,tNumber)],["math_atanh",tFunc(tNumber,tNumber)],["math_cbrt",tFunc(tNumber,tNumber)],["math_ceil",tFunc(tNumber,tNumber)],["math_clz32",tFunc(tNumber,tNumber)],["math_cos",tFunc(tNumber,tNumber)],["math_cosh",tFunc(tNumber,tNumber)],["math_exp",tFunc(tNumber,tNumber)],["math_expm1",tFunc(tNumber,tNumber)],["math_floor",tFunc(tNumber,tNumber)],["math_fround",tFunc(tNumber,tNumber)],["math_hypot",tForAll(tVar("T"))],["math_imul",tFunc(tNumber,tNumber,tNumber)],["math_log",tFunc(tNumber,tNumber)],["math_log1p",tFunc(tNumber,tNumber)],["math_log2",tFunc(tNumber,tNumber)],["math_log10",tFunc(tNumber,tNumber)],["math_max",tForAll(tVar("T"))],["math_min",tForAll(tVar("T"))],["math_pow",tFunc(tNumber,tNumber,tNumber)],["math_random",tFunc(tNumber)],["math_round",tFunc(tNumber,tNumber)],["math_sign",tFunc(tNumber,tNumber)],["math_sin",tFunc(tNumber,tNumber)],["math_sinh",tFunc(tNumber,tNumber)],["math_sqrt",tFunc(tNumber,tNumber)],["math_tan",tFunc(tNumber,tNumber)],["math_tanh",tFunc(tNumber,tNumber)],["math_trunc",tFunc(tNumber,tNumber)],["parse_int",tFunc(tString,tNumber,tNumber)],["prompt",tFunc(tString,tString)],["get_time",tFunc(tNumber)],["stringify",tForAll(tFunc(tVar("T"),tString))],["display",tForAll(tVar("T"))],["error",tForAll(tVar("T"))]],pairFuncs=[["pair",tForAll(tFunc(headType,tailType,tPair(headType,tailType)))],["head",tForAll(tFunc(tPair(headType,tailType),headType))],["tail",tForAll(tFunc(tPair(headType,tailType),tailType))],["is_pair",tPred(tForAll(tPair(headType,tailType)))],["is_null",tPred(tForAll(tList(tVar("T"))))],["is_list",tPred(tForAll(tList(tVar("T"))))]],mutatingPairFuncs=[["set_head",tForAll(tFunc(tPair(headType,tailType),headType,tUndef))],["set_tail",tForAll(tFunc(tPair(headType,tailType),tailType,tUndef))]],arrayFuncs=[["is_array",tPred(tForAll(tArray(tVar("T"))))],["array_length",tForAll(tFunc(tArray(tVar("T")),tNumber))]],listFuncs=[["list",tForAll(tVar("T1"))]],primitiveFuncs=[[NEGATIVE_OP,tFunc(tNumber,tNumber)],["!",tFunc(tBool,tBool)],["&&",tForAll(tFunc(tBool,tVar("T"),tVar("T")))],["||",tForAll(tFunc(tBool,tVar("T"),tVar("T")))],["<",tForAll(tFunc(tAddable("A"),tAddable("A"),tBool))],["<=",tForAll(tFunc(tAddable("A"),tAddable("A"),tBool))],[">",tForAll(tFunc(tAddable("A"),tAddable("A"),tBool))],[">=",tForAll(tFunc(tAddable("A"),tAddable("A"),tBool))],["+",tForAll(tFunc(tAddable("A"),tAddable("A"),tAddable("A")))],["%",tFunc(tNumber,tNumber,tNumber)],["-",tFunc(tNumber,tNumber,tNumber)],["*",tFunc(tNumber,tNumber,tNumber)],["/",tFunc(tNumber,tNumber,tNumber)]],preS3equalityFuncs=[["===",tForAll(tFunc(tAddable("A"),tAddable("A"),tBool))],["!==",tForAll(tFunc(tAddable("A"),tAddable("A"),tBool))]],postS3equalityFuncs=[["===",tForAll(tFunc(tVar("T1"),tVar("T2"),tBool))],["!==",tForAll(tFunc(tVar("T1"),tVar("T2"),tBool))]];tForAll(tFunc(tVar("T1"),tBool)),tForAll(tFunc(tList(tVar("T1")),tVar("T2"))),tForAll(tFunc(tVar("T1"),tList(tVar("T2")))),tForAll(tFunc(tVar("T1"),tNumber)),tForAll(tFunc(tVar("T1"),tVar("T2"))),tForAll(tFunc(tNumber,tFunc(tNumber,tVar("T1")),tVar("T2"))),tForAll(tFunc(tFunc(tVar("T1"),tVar("T2")),tBool)),tForAll(tFunc(tVar("T1"),tVar("T1"))),tForAll(tFunc(tVar("T1"),tVar("T1"),tVar("T1"))),tForAll(tFunc(tVar("T1"),tVar("T2"),tVar("T2"))),tForAll(tFunc(tVar("T1"),tVar("T2"),tVar("T2"))),tForAll(tFunc(tVar("T1"),tVar("T2"),tVar("T2"))),tForAll(tFunc(tFunc(tVar("T1"),tBool),tVar("T2"),tVar("T2"))),tForAll(tFunc(tNumber,tNumber,tVar("T1"))),tForAll(tFunc(tNumber,tVar("T1"))),tForAll(tFunc(tVar("T1"),tNumber,tList(tVar("T2")))),tForAll(tFunc(tVar("T1"),tNumber,tVar("T2")));const source1TypeOverrides=[["math_hypot",tForAll(tNumber)],["math_max",tForAll(tNumber)],["math_min",tForAll(tNumber)],["stringify",tFunc(tAny,tString)],["arity",tFunc(tAny,tNumber)],["char_at",tFunc(tString,tNumber,tUnion(tString,tUndef))],["display",tForAll(tAny)],["error",tForAll(tAny)]],source2TypeOverrides=[["accumulate",tForAll(tFunc(tFunc(tVar("T"),tVar("U"),tVar("U")),tVar("U"),tList(tVar("T")),tVar("U")))],["append",tForAll(tFunc(tList(tVar("T")),tList(tVar("U")),tList(tUnion(tVar("T"),tVar("U")))))],["build_list",tForAll(tFunc(tFunc(tNumber,tVar("T")),tNumber,tList(tVar("T"))))],["enum_list",tFunc(tNumber,tNumber,tList(tNumber))],["filter",tForAll(tFunc(tFunc(tVar("T"),tBool),tList(tVar("T")),tList(tVar("T"))))],["for_each",tForAll(tFunc(tFunc(tVar("T"),tAny),tList(tVar("T")),tLiteral(!0)))],["length",tFunc(tList(tAny),tNumber)],["list_ref",tForAll(tFunc(tList(tVar("T")),tNumber,tVar("T")))],["list_to_string",tFunc(tList(tAny),tString)],["map",tForAll(tFunc(tFunc(tVar("T"),tVar("U")),tList(tVar("T")),tList(tVar("U"))))],["member",tForAll(tFunc(tVar("T"),tList(tVar("T")),tList(tVar("T"))))],["remove",tForAll(tFunc(tVar("T"),tList(tVar("T")),tList(tVar("T"))))],["remove_all",tForAll(tFunc(tVar("T"),tList(tVar("T")),tList(tVar("T"))))],["reverse",tForAll(tFunc(tList(tVar("T")),tList(tVar("T"))))],["display_list",tForAll(tAny)],["draw_data",tForAll(tAny)],["equal",tFunc(tAny,tAny,tBool)]],source3TypeOverrides=[["array_length",tFunc(tArray(tAny),tNumber)],["build_stream",tForAll(tFunc(tFunc(tNumber,tVar("T")),tNumber,tStream(tVar("T"))))],["enum_stream",tFunc(tNumber,tNumber,tStream(tNumber))],["eval_stream",tForAll(tFunc(tStream(tVar("T")),tNumber,tList(tVar("T"))))],["integers_from",tFunc(tNumber,tStream(tNumber))],["is_stream",tFunc(tAny,tBool)],["list_to_stream",tForAll(tFunc(tList(tVar("T")),tStream(tVar("T"))))],["stream_append",tForAll(tFunc(tStream(tVar("T")),tStream(tVar("U")),tStream(tUnion(tVar("T"),tVar("U")))))],["stream_filter",tForAll(tFunc(tFunc(tVar("T"),tBool),tStream(tVar("T")),tStream(tVar("T"))))],["stream_for_each",tForAll(tFunc(tFunc(tVar("T"),tAny),tStream(tVar("T")),tLiteral(!0)))],["stream_length",tFunc(tStream(tAny),tNumber)],["stream_map",tForAll(tFunc(tFunc(tVar("T"),tVar("U")),tStream(tVar("T")),tStream(tVar("U"))))],["stream_member",tForAll(tFunc(tVar("T"),tStream(tVar("T")),tStream(tVar("T"))))],["stream_ref",tForAll(tFunc(tStream(tVar("T")),tNumber,tVar("T")))],["stream_remove",tForAll(tFunc(tVar("T"),tStream(tVar("T")),tStream(tVar("T"))))],["stream_remove_all",tForAll(tFunc(tVar("T"),tStream(tVar("T")),tStream(tVar("T"))))],["stream_reverse",tForAll(tFunc(tStream(tVar("T")),tStream(tVar("T"))))],["stream_tail",tForAll(tFunc(tStream(tVar("T")),tStream(tVar("T"))))],["stream_to_list",tForAll(tFunc(tStream(tVar("T")),tList(tVar("T"))))]],source4TypeOverrides=[["apply_in_underlying_javascript",tFunc(tAny,tList(tAny),tAny)],["tokenize",tFunc(tString,tList(tString))],["parse",tFunc(tString,tUnion(tVar("Program",[]),tVar("Statement",[])))]],predeclaredConstTypes=[],pairTypeAlias=["Pair",tForAll(tPair(headType,tailType),[headType,tailType])],listTypeAlias=["List",tForAll(tList(tVar("T")),[tVar("T")])],streamTypeAlias=["Stream",tForAll(tStream(tVar("T")),[tVar("T")])];function createTypeEnvironment(e){const t=[...predeclaredNames,...primitiveFuncs],n=[...predeclaredConstTypes];return e>=2&&(t.push(...pairFuncs,...listFuncs),n.push(pairTypeAlias,listTypeAlias)),e>=3?(t.push(...postS3equalityFuncs,...mutatingPairFuncs,...arrayFuncs),n.push(streamTypeAlias)):t.push(...preS3equalityFuncs),[{typeMap:new Map(t),declKindMap:new Map(t.map(e=>[e[0],"const"])),typeAliasMap:new Map(n)}]}function getTypeOverrides(e){const t=[...source1TypeOverrides];return e>=2&&t.push(...source2TypeOverrides),e>=3&&t.push(...source3TypeOverrides),e>=4&&t.push(...source4TypeOverrides),t}let context={},env=[];function checkForTypeErrors(e,t){context=t,env=lodashExports.cloneDeep(context.typeEnvironment);for(const[e,t]of getTypeOverrides(context.chapter))setType(e,t,env);context.chapter>=4&&typeCheckAndReturnType(libExports.parse(parseTreeTypesPrelude,{sourceType:"module",plugins:["typescript","estree"]}).program);try{typeCheckAndReturnType(e)}catch(t){context.errors.push(t instanceof TypecheckError?t:new TypecheckError(e,"Uncaught error during typechecking, report this to the administrators!\n"+t.message))}return context={},env=[],removeTSNodes(e)}function typeCheckAndReturnType(e){switch(e.type){case"Literal":return void 0===e.value?tUndef:null===e.value?context.chapter===Chapter.SOURCE_1?tAny:tNull:"string"!=typeof e.value&&"number"!=typeof e.value&&"boolean"!=typeof e.value?tAny:tPrimitive(typeof e.value,e.value);case"TemplateLiteral":return tPrimitive("string",e.quasis[0].value.raw);case"Identifier":{const t=e.name;return lookupTypeAndRemoveForAllAndPredicateTypes(t)||(context.errors.push(new UndefinedVariableTypeError(e,t)),tAny)}case"RestElement":case"SpreadElement":return tAny;case"Program":case"BlockStatement":{let t=tVoid;pushEnv(env),"Program"===e.type&&handleImportDeclarations(e),addTypeDeclarationsToEnvironment(e);for(const n of e.body)if("IfStatement"===n.type||"ReturnStatement"===n.type){if(t=typeCheckAndReturnType(n),"ReturnStatement"===n.type)break}else typeCheckAndReturnType(n);return"BlockStatement"===e.type&&env.pop(),t}case"ExpressionStatement":return typeCheckAndReturnType(e.expression);case"ConditionalExpression":case"IfStatement":return checkForTypeMismatch(e,typeCheckAndReturnType(e.test),tBool),mergeTypes(e,typeCheckAndReturnType(e.consequent),e.alternate?typeCheckAndReturnType(e.alternate):tUndef);case"UnaryExpression":{const t=typeCheckAndReturnType(e.argument);switch(e.operator){case"-":return checkForTypeMismatch(e,t,tNumber),tNumber;case"!":return checkForTypeMismatch(e,t,tBool),tBool;case"typeof":return tString;default:throw new TypecheckError(e,"Unknown operator")}}case"BinaryExpression":return typeCheckAndReturnBinaryExpressionType(e);case"LogicalExpression":{checkForTypeMismatch(e,typeCheckAndReturnType(e.left),tBool);const t=typeCheckAndReturnType(e.right);return mergeTypes(e,tBool,t)}case"ArrowFunctionExpression":return typeCheckAndReturnArrowFunctionType(e);case"FunctionDeclaration":if(null===e.id)throw new TypecheckError(e,"Function declaration should always have an identifier");const t=e.params.filter(e=>"Identifier"===e.type||"RestElement"===e.type);if(t.length!==e.params.length)throw new TypecheckError(e,"Unknown function parameter type");const n=e.id.name,r=getTypeAnnotationType(e.returnType);if(t.reduce((e,t)=>e||"RestElement"===t.type,!1))return setType(n,tAny,env),tUndef;const i=getParamTypes(t);i.push(r);const a=tFunc(...i);pushEnv(env),t.forEach(e=>{setType(e.name,getTypeAnnotationType(e.typeAnnotation),env)}),setType(RETURN_TYPE_IDENTIFIER,r,env),setType(n,a,env);const o=typeCheckAndReturnType(e.body);return env.pop(),!lodashExports.isEqual(o,tVoid)||lodashExports.isEqual(r,tAny)||lodashExports.isEqual(r,tVoid)?checkForTypeMismatch(e,o,r):context.errors.push(new FunctionShouldHaveReturnValueError(e)),setType(n,a,env),tUndef;case"VariableDeclaration":{if("var"===e.kind)throw new TypecheckError(e,'Variable declaration using "var" is not allowed');if(1!==e.declarations.length)throw new TypecheckError(e,"Variable declaration should have one and only one declaration");if("Identifier"!==e.declarations[0].id.type)throw new TypecheckError(e,"Variable declaration ID should be an identifier");const t=e.declarations[0].id;if(!e.declarations[0].init)throw new TypecheckError(e,"Variable declaration must have value");const n=e.declarations[0].init,r=env[env.length-1].typeMap.has(t.name)?lookupTypeAndRemoveForAllAndPredicateTypes(t.name)??getTypeAnnotationType(t.typeAnnotation):getTypeAnnotationType(t.typeAnnotation);return checkForTypeMismatch(e,typeCheckAndReturnType(n),r),setType(t.name,r,env),setDeclKind(t.name,e.kind,env),tUndef}case"ClassDeclaration":return tAny;case"CallExpression":{const t=e.callee,n=e.arguments;if(context.chapter>=2&&"Identifier"===t.type){const r=t.name;if("list"===r){if(0===n.length)return tNull;let t=typeCheckAndReturnType(n[0]);for(let r=1;r=0;e--)r=tPair(typeCheckAndReturnType(n[e]),r);return tList(t,r)}if("head"===r||"tail"===r){if(1!==n.length)return context.errors.push(new InvalidNumberOfArgumentsTypeError(e,1,n.length)),tAny;const t=typeCheckAndReturnType(n[0]),i=tUnion(tPair(tAny,tAny),tList(tAny)),a=context.errors.length;return checkForTypeMismatch(e,t,i),context.errors.length>a?tAny:"head"===r?getHeadType(e,t):getTailType(e,t)}if("stream"===r&&context.chapter>=3){if(0===n.length)return tNull;let t=typeCheckAndReturnType(n[0]);for(let r=1;re||"SpreadElement"===t.type,!1))return a;if(n.length!==i.length)return context.errors.push(new InvalidNumberOfArgumentsTypeError(e,i.length,n.length)),a;for(let e=0;enull!==e&&"SpreadElement"!==e.type);if(l.length!==e.elements.length)throw new TypecheckError(e,"Disallowed array element type");return 0===l.length?tArray(tAny):tArray(mergeTypes(e,...l.map(e=>typeCheckAndReturnType(e))));case"MemberExpression":const u=typeCheckAndReturnType(e.property),d=typeCheckAndReturnType(e.object);return hasTypeMismatchErrors(e,u,tNumber)&&context.errors.push(new InvalidIndexTypeError(e,formatTypeString(u,!0))),"array"!==d.kind?(context.errors.push(new InvalidArrayAccessTypeError(e,formatTypeString(d))),tAny):d.elementType;case"ReturnStatement":if(e.argument){const t=lookupTypeAndRemoveForAllAndPredicateTypes(RETURN_TYPE_IDENTIFIER);return t?(checkForTypeMismatch(e,typeCheckAndReturnType(e.argument),t),t):typeCheckAndReturnType(e.argument)}return tUndef;case"WhileStatement":return checkForTypeMismatch(e,typeCheckAndReturnType(e.test),tBool),typeCheckAndReturnType(e.body);case"ForStatement":{pushEnv(env),e.init&&typeCheckAndReturnType(e.init),e.test&&checkForTypeMismatch(e,typeCheckAndReturnType(e.test),tBool),e.update&&typeCheckAndReturnType(e.update);const t=typeCheckAndReturnType(e.body);return env.pop(),t}case"ImportDeclaration":case"TSTypeAliasDeclaration":return tUndef;case"TSAsExpression":const p=typeCheckAndReturnType(e.expression),m=getTypeAnnotationType(e),f=typeContainsLiteralType(p)||typeContainsLiteralType(m);return hasTypeMismatchErrors(e,m,p)&&context.errors.push(new TypecastError(e,formatTypeString(p,f),formatTypeString(m,f))),m;case"TSInterfaceDeclaration":throw new TypecheckError(e,"Interface declarations are not allowed");case"ExportNamedDeclaration":return typeCheckAndReturnType(e.declaration);default:throw new TypecheckError(e,"Unknown node type")}}function handleImportDeclarations(e){const t=e.body.filter(e=>"ImportDeclaration"===e.type);if(0===t.length)return;const n={};t.forEach(e=>{const t=e.source.value,r=context.nativeStorage.loadedModuleTypes;r[t]?(n[t]?n[t]=n[t]+"\n"+r[t].prelude:n[t]=r[t].prelude,e.specifiers.forEach(i=>{if("ImportSpecifier"!==i.type)throw new TypecheckError(e,"Unknown specifier type");const a=i.local.name,o=r[t][a];o?n[t]=n[t]+"\n"+o:setType(a,tAny,env)})):e.specifiers.map(t=>{if("ImportSpecifier"!==t.type)throw new TypecheckError(e,"Unknown specifier type");setType(t.local.name,tAny,env)})}),Object.values(n).forEach(e=>{typeCheckAndReturnType(libExports.parse(e,{sourceType:"module",plugins:["typescript","estree"]}).program)})}function addTypeDeclarationsToEnvironment(e){e.body.forEach(t=>{switch(t.type){case"FunctionDeclaration":assert(null!==t.id,"Encountered a FunctionDeclaration node without an identifier. This should have been caught when parsing.");const n=t.params.filter(e=>"Identifier"===e.type||"RestElement"===e.type);if(n.length!==t.params.length)throw new TypecheckError(t,"Unknown function parameter type");const r=t.id.name,i=getTypeAnnotationType(t.returnType);if(n.reduce((e,t)=>e||"RestElement"===t.type,!1)){setType(r,tAny,env);break}const a=getParamTypes(n);a.push(i),setType(r,tFunc(...a),env);break;case"VariableDeclaration":if("var"===t.kind)throw new TypecheckError(t,'Variable declaration using "var" is not allowed');if(1!==t.declarations.length)throw new TypecheckError(t,"Variable declaration should have one and only one declaration");if("Identifier"!==t.declarations[0].id.type)throw new TypecheckError(t,"Variable declaration ID should be an identifier");const o=t.declarations[0].id,s=getTypeAnnotationType(o.typeAnnotation);setType(o.name,s,env),setDeclKind(o.name,t.kind,env);break;case"ClassDeclaration":const c=t.id.name,l={kind:"variable",name:c,constraint:"none"};setType(c,l,env),setTypeAlias(c,l,env);break;case"TSTypeAliasDeclaration":if("BlockStatement"===e.type)throw new TypecheckError(t,"Type alias declarations may only appear at the top level");const u=t.id.name;if(Object.values(typeAnnotationKeywordToBasicTypeMap).includes(u)){context.errors.push(new TypeAliasNameNotAllowedError(t,u));break}if(void 0!==lookupTypeAlias(u,env)){context.errors.push(new DuplicateTypeAliasError(t,u));break}let d=tAny;if(t.typeParameters&&t.typeParameters.params.length>0){const e=[];pushEnv(env),t.typeParameters.params.forEach(n=>{if("TSTypeParameter"!==n.type)throw new TypecheckError(t,"Invalid type parameter type");const r=n.name;Object.values(typeAnnotationKeywordToBasicTypeMap).includes(r)?context.errors.push(new TypeParameterNameNotAllowedError(n,r)):e.push(tVar(r))}),d=tForAll(getTypeAnnotationType(t),e),env.pop()}else d=getTypeAnnotationType(t);setTypeAlias(u,d,env)}})}function typeCheckAndReturnBinaryExpressionType(e){const t=typeCheckAndReturnType(e.left),n=typeCheckAndReturnType(e.right),r=formatTypeString(t),i=formatTypeString(n),a=e.operator;switch(a){case"-":case"*":case"/":case"%":return checkForTypeMismatch(e,t,tNumber),checkForTypeMismatch(e,n,tNumber),tNumber;case"+":return"number"===r||"string"===r?(checkForTypeMismatch(e,n,t),t):"number"===i||"string"===i?(checkForTypeMismatch(e,t,n),n):(checkForTypeMismatch(e,t,tUnion(tNumber,tString)),checkForTypeMismatch(e,n,tUnion(tNumber,tString)),tUnion(tNumber,tString));case"<":case"<=":case">":case">=":case"!==":case"===":return context.chapter>2&&("==="===a||"!=="===a)?tBool:"number"===r||"string"===r?(checkForTypeMismatch(e,n,t),tBool):"number"===i||"string"===i?(checkForTypeMismatch(e,t,n),tBool):(checkForTypeMismatch(e,t,tUnion(tNumber,tString)),checkForTypeMismatch(e,n,tUnion(tNumber,tString)),tBool);default:throw new TypecheckError(e,"Unknown operator")}}function typeCheckAndReturnArrowFunctionType(e){const t=e.params.filter(e=>"Identifier"===e.type||"RestElement"===e.type);if(t.length!==e.params.length)throw new TypecheckError(e,"Unknown function parameter type");const n=getTypeAnnotationType(e.returnType);if(t.reduce((e,t)=>e||"RestElement"===t.type,!1))return tAny;pushEnv(env),t.forEach(e=>{setType(e.name,getTypeAnnotationType(e.typeAnnotation),env)}),setType(RETURN_TYPE_IDENTIFIER,n,env);const r=typeCheckAndReturnType(e.body);env.pop(),!lodashExports.isEqual(r,tVoid)||lodashExports.isEqual(n,tAny)||lodashExports.isEqual(n,tVoid)?checkForTypeMismatch(e,r,n):context.errors.push(new FunctionShouldHaveReturnValueError(e));const i=getParamTypes(t);return i.push(e.returnType?n:r),tFunc(...i)}function getTypeVariableMappings(e,t,n){if("variable"===n.kind)return[[n.name,t]];"variable"===t.kind&&(t=lookupTypeAliasAndRemoveForAllTypes(e,t));const r=[];switch(n.kind){case"pair":"list"===t.kind&&(void 0!==t.typeAsPair?(r.push(...getTypeVariableMappings(e,t.typeAsPair.headType,n.headType)),r.push(...getTypeVariableMappings(e,t.typeAsPair.tailType,n.tailType))):(r.push(...getTypeVariableMappings(e,t.elementType,n.headType)),r.push(...getTypeVariableMappings(e,t.elementType,n.tailType)))),"pair"===t.kind&&(r.push(...getTypeVariableMappings(e,t.headType,n.headType)),r.push(...getTypeVariableMappings(e,t.tailType,n.tailType)));break;case"list":"list"===t.kind&&r.push(...getTypeVariableMappings(e,t.elementType,n.elementType));break;case"function":if("function"===t.kind&&t.parameterTypes.length===n.parameterTypes.length){for(let i=0;ie||typeContainsLiteralType(t),!1);case"union":return e.types.reduce((e,t)=>e||typeContainsLiteralType(t),!1)}}function hasTypeMismatchErrors(e,t,n,r=[],i=[],a=!1){if(lodashExports.isEqual(t,tAny)||lodashExports.isEqual(n,tAny))return!1;if("variable"!==n.kind&&"variable"===t.kind)return hasTypeMismatchErrors(e,n,t,i,r,a);if("union"!==n.kind&&"union"===t.kind)return!containsType(e,t.types,n,r,i);switch(n.kind){case"variable":if("variable"===t.kind&&n.name===t.name){if(void 0===n.typeArgs||0===n.typeArgs.length)return void 0!==t.typeArgs&&0!==t.typeArgs.length;if(t.typeArgs?.length!==n.typeArgs.length)return!0;for(let o=0;o"array"===e.kind);if(o.length!==t.types.length)return!0;const s=o.map(e=>e.elementType);return hasTypeMismatchErrors(e,tUnion(...s),n.elementType,r,i,a)}return"array"!==t.kind||hasTypeMismatchErrors(e,t.elementType,n.elementType,r,i,a);default:return!0}}function getTypeAnnotationType(e){return e?getAnnotatedType(e.typeAnnotation):tAny}function getAnnotatedType(e){switch(e.type){case"TSFunctionType":const t=e.parameters;if(t.reduce((e,t)=>e||"RestElement"===t.type,!1))return tAny;const n=getParamTypes(t);return n.push(getTypeAnnotationType(e.typeAnnotation)),tFunc(...n);case"TSLiteralType":const r=e.literal.value;if("string"!=typeof r&&"number"!=typeof r&&"boolean"!=typeof r)throw new TypecheckError(e,"Unknown literal type");return tLiteral(r);case"TSArrayType":return tArray(getAnnotatedType(e.elementType));case"TSUnionType":const i=e.types.map(e=>getAnnotatedType(e));return mergeTypes(e,...i);case"TSIntersectionType":throw new TypecheckError(e,"Intersection types are not allowed");case"TSTypeReference":const a=e.typeName.name;if(e.typeParameters){const t=[];for(const n of e.typeParameters.params){if("TSTypeParameter"===n.type)throw new TypecheckError(e,"Type argument should not be type parameter");t.push(getAnnotatedType(n))}return tVar(a,t)}return tVar(a);case"TSParenthesizedType":return getAnnotatedType(e.typeAnnotation);default:return getBasicType(e)}}function getParamTypes(e){return e.map(e=>getTypeAnnotationType(e.typeAnnotation))}function getHeadType(e,t){switch(t.kind){case"pair":return t.headType;case"list":return t.elementType;case"union":return tUnion(...t.types.map(t=>getHeadType(e,t)));case"variable":return getHeadType(e,lookupTypeAliasAndRemoveForAllTypes(e,t));default:return t}}function getTailType(e,t){switch(t.kind){case"pair":return t.tailType;case"list":return tList(t.elementType,t.typeAsPair&&"pair"===t.typeAsPair.tailType.kind?t.typeAsPair.tailType:void 0);case"union":return tUnion(...t.types.map(t=>getTailType(e,t)));case"variable":return getTailType(e,lookupTypeAliasAndRemoveForAllTypes(e,t));default:return t}}function getBasicType(e){const t=typeAnnotationKeywordToBasicTypeMap[e.type]??"unknown";return disallowedTypes.includes(t)||1===context.chapter&&"null"===t?(context.errors.push(new TypeNotAllowedError(e,t)),tAny):tPrimitive(t)}function lookupTypeAndRemoveForAllAndPredicateTypes(e){const t=lookupType(e,env);if(t)return"forall"===t.kind?"function"!==t.polyType.kind?tAny:lodashExports.cloneDeep(t.polyType):"predicate"===t.kind?tFunc(tAny,tBool):t}function lookupTypeAliasAndRemoveForAllTypes(e,t){const n=lookupTypeAlias(t.name,env);if(!n)return context.errors.push(new TypeNotFoundError(e,t.name)),tAny;if("forall"!==n.kind)return void 0!==t.typeArgs&&t.typeArgs.length>0?(context.errors.push(new TypeNotGenericError(e,t.name)),tAny):n;if(void 0===n.typeParams)return void 0!==t.typeArgs&&t.typeArgs.length>0&&context.errors.push(new TypeNotGenericError(e,t.name)),tAny;if(t.typeArgs?.length!==n.typeParams.length)return context.errors.push(new InvalidNumberOfTypeArgumentsForGenericTypeError(e,t.name,n.typeParams.length)),tAny;let r=lodashExports.cloneDeep(n.polyType);for(let e=0;esubstituteVariableTypes(e,t,n));return r.push(substituteVariableTypes(e.returnType,t,n)),tFunc(...r);case"union":return tUnion(...e.types.map(e=>substituteVariableTypes(e,t,n)));case"pair":return tPair(substituteVariableTypes(e.headType,t,n),substituteVariableTypes(e.tailType,t,n));case"list":return tList(substituteVariableTypes(e.elementType,t,n),e.typeAsPair&&substituteVariableTypes(e.typeAsPair,t,n));case"array":return tArray(substituteVariableTypes(e.elementType,t,n))}}function mergeTypes(e,...t){const n=[];for(const r of t){if(lodashExports.isEqual(r,tAny))return tAny;if("union"===r.kind)for(const t of r.types)containsType(e,n,t,[],[],!0)||n.push(t);else containsType(e,n,r,[],[],!0)||n.push(r)}return 1===n.length?n[0]:tUnion(...n)}function containsType(e,t,n,r=[],i=[],a=!1){for(const o of t)if(!hasTypeMismatchErrors(e,n,o,i,r,a))return!0;return!1}function removeTSNodes(e){if(null==e)return e;const t=e.type;switch(t){case"Literal":case"Identifier":return e;case"Program":case"BlockStatement":{const t=[];return e.body.forEach(e=>{const n=e.type;n.startsWith("TS")?"TSAsExpression"===n&&t.push(removeTSNodes(e)):t.push(removeTSNodes(e))}),e.body=t,e}case"ExpressionStatement":return e.expression=removeTSNodes(e.expression),e;case"ConditionalExpression":case"IfStatement":return e.test=removeTSNodes(e.test),e.consequent=removeTSNodes(e.consequent),e.alternate=removeTSNodes(e.alternate),e;case"UnaryExpression":case"RestElement":case"SpreadElement":case"ReturnStatement":return e.argument=removeTSNodes(e.argument),e;case"BinaryExpression":case"LogicalExpression":case"AssignmentExpression":return e.left=removeTSNodes(e.left),e.right=removeTSNodes(e.right),e;case"ArrowFunctionExpression":case"FunctionDeclaration":return e.body=removeTSNodes(e.body),e;case"VariableDeclaration":return e.declarations[0].init=removeTSNodes(e.declarations[0].init),e;case"CallExpression":return e.arguments=e.arguments.map(removeTSNodes),e;case"ArrayExpression":return e.elements=e.elements.map(removeTSNodes),e;case"MemberExpression":return e.property=removeTSNodes(e.property),e.object=removeTSNodes(e.object),e;case"WhileStatement":return e.test=removeTSNodes(e.test),e.body=removeTSNodes(e.body),e;case"ForStatement":return e.init=removeTSNodes(e.init),e.test=removeTSNodes(e.test),e.update=removeTSNodes(e.update),e.body=removeTSNodes(e.body),e;case"TSAsExpression":return removeTSNodes(e.expression);default:return t.startsWith("TS")?void 0:e}}const transformBabelASTToESTreeCompliantAST=e=>{renameFilenameAttributeToSource(e)},renameFilenameAttributeToSource=e=>{e.hasOwnProperty("filename")&&(e.source=e.filename,delete e.filename),Object.values(e).forEach(e=>{null!=e&&(Array.isArray(e)&&e.forEach(e=>{null!=e&&"object"==typeof e&&renameFilenameAttributeToSource(e)}),"object"==typeof e&&renameFilenameAttributeToSource(e))})},IMPORT_TOP_LEVEL_ERROR="An import declaration can only be used at the top level of a namespace or module.",START_OF_MODULE_ERROR="Cannot find module ";class FullTSParser{parse(e,t,n,r){let i="";for(const e of t.nativeStorage.builtins)i+=`const ${e[0]}: any = 1\n`;t.prelude&&t.prelude.split("\nfunction ").slice(1).forEach(e=>{const t=e.split("(")[0];t.startsWith("$")||(i+=`const ${t}: any = 1\n`)});const a=i.split("\n").length-1;i=i+"{"+e+"}";const o=tsMorphBootstrapExports.createProjectSync({useInMemoryFileSystem:!0});o.createSourceFile("program.ts",i);const s=tsMorphBootstrapExports.ts.getPreEmitDiagnostics(o.createProgram()),c=o.formatDiagnosticsWithColorAndContext(s),l=/(?<=\[7m)\d+/;if(s.forEach(e=>{const n=e.messageText.toString();if(n===IMPORT_TOP_LEVEL_ERROR||n.startsWith(START_OF_MODULE_ERROR))return;const r=l.exec(c.split(n)[1]),i=(null===r?0:parseInt(r[0]))-a;if(i<=0)return;const o={line:i,column:0,offset:0};t.errors.push(new FatalSyntaxError(positionToSourceLocation(o),n))}),t.errors.length>0)return null;const u=libExports.parse(e,{...defaultBabelOptions,sourceFilename:n?.sourceFile,errorRecovery:r??!0});if(u.errors?.length)return u.errors.filter(e=>e instanceof SyntaxError).forEach(e=>{t.errors.push(new FatalSyntaxError(positionToSourceLocation(e.loc,n?.sourceFile),e.toString()))}),null;const d=removeTSNodes(u.program);return transformBabelASTToESTreeCompliantAST(d),d}validate(e,t,n){return!0}toString(){return"FullTSParser"}}function simple$1(e,t,n,r,i){n||(n=base$1),function e(r,i,a){var o=a||r.type;visitNode(n,o,r,i,e),t[o]&&t[o](r,i)}(e,r,i)}function ancestor$1(e,t,n,r,i){var a=[];n||(n=base$1),function e(r,i,o){var s=o||r.type,c=r!==a[a.length-1];c&&a.push(r),visitNode(n,s,r,i,e),t[s]&&t[s](r,i||a,a),c&&a.pop()}(e,r,i)}function recursive$1(e,t,n,r,i){var a=n?make(n,r||void 0):r;!function e(t,n,r){a[r||t.type](t,n,e)}(e,t,i)}function makeTest(e){return"string"==typeof e?function(t){return t===e}:e||function(){return!0}}var Found=function(e,t){this.node=e,this.state=t};function findNodeAt$1(e,t,n,r,i,a){i||(i=base$1),r=makeTest(r);try{!function e(a,o,s){var c=s||a.type;if((null==t||a.start<=t)&&(null==n||a.end>=n)&&visitNode(i,c,a,o,e),(null==t||a.start===t)&&(null==n||a.end===n)&&r(c,a))throw new Found(a,o)}(e,a)}catch(e){if(e instanceof Found)return e;throw e}}function make(e,t){var n=Object.create(t||base$1);for(var r in e)n[r]=e[r];return n}function skipThrough(e,t,n){n(e,t)}function ignore(e,t,n){}function visitNode(e,t,n,r,i){if(null==e[t])throw new Error("No walker function defined for node type "+t);e[t](n,r,i)}var base$1={};base$1.Program=base$1.BlockStatement=base$1.StaticBlock=function(e,t,n){for(var r=0,i=e.body;r"BlockStatement"!==e.body.type?[new BracesAroundForError(e)]:[]});class BracesAroundIfElseError extends RuleError{constructor(e,t){super(e),this.branch=t}explain(){return"consequent"===this.branch?'Missing curly braces around "if" block.':'Missing curly braces around "else" block.'}elaborate(){let e,t,n;return"consequent"===this.branch?(e="if",t=`if (${generate$1(this.node.test)})`,n=this.node.consequent):(e=t="else",n=this.node.alternate),stripIndent` + ${e} block need to be enclosed with a pair of curly braces. + + ${t} { + ${generate$1(n)} + } + + An exception is when you have an "if" followed by "else if", in this case + "else if" block does not need to be surrounded by curly braces. + + if (someCondition) { + // ... + } else /* notice missing { here */ if (someCondition) { + // ... + } else { + // ... + } + + Rationale: Readability in dense packed code. + + In the snippet below, for instance, with poor indentation it is easy to + mistaken hello() and world() to belong to the same branch of logic. + + if (someCondition) { + 2; + } else + hello(); + world(); + + `}}var bracesAroundIfElse=defineRule("braces-around-if-else",{IfStatement(e){const t=[];if(e.consequent&&"BlockStatement"!==e.consequent.type&&t.push(new BracesAroundIfElseError(e,"consequent")),e.alternate){const n="BlockStatement"!==e.alternate.type,r="IfStatement"!==e.alternate.type;n&&r&&t.push(new BracesAroundIfElseError(e,"alternate"))}return t}});class BracesAroundWhileError extends RuleError{explain(){return'Missing curly braces around "while" block.'}elaborate(){return`Remember to enclose your "while" block with braces:\n\n \twhile (${generate$1(this.node.test)}) {\n\t\t//code goes here\n\t}`}}var bracesAroundWhile=defineRule("braces-around-while",{WhileStatement:e=>"BlockStatement"!==e.body.type?[new BracesAroundWhileError(e)]:[]});const forStatementParts=["init","test","update"];class ForStatmentMustHaveAllParts extends RuleError{constructor(e,t){super(e),this.missingParts=t}explain(){return`Missing ${this.missingParts.join(", ")} expression${1===this.missingParts.length?"":"s"} in for statement.`}elaborate(){return stripIndent` + This for statement requires all three parts (initialiser, test, update) to be present. + `}}var forStatementMustHaveAllParts=defineRule("for-statement-must-have-all-parts",{ForStatement(e){const t=forStatementParts.filter(t=>null===e[t]);return t.length>0?[new ForStatmentMustHaveAllParts(e,t)]:[]}});class NoConstDeclarationInForLoopInit extends RuleError{explain(){return"Const declaration in init part of for statement is not allowed."}elaborate(){return stripIndent` + The init part of this statement cannot contain a const declaration, use a let declaration instead. + `}}var noConstDeclarationInForLoopInit=defineRule("no-const-declaration-in-for-loop-init",{ForStatement:e=>e.init&&"VariableDeclaration"===e.init.type&&"const"===e.init.kind?[new NoConstDeclarationInForLoopInit(e)]:[]});const mutableDeclarators=["let","var"];class NoDeclareMutableError extends RuleError{explain(){return`Mutable variable declaration using keyword '${this.node.kind}' is not allowed.`}elaborate(){const{id:{name:e},init:t}=getSourceVariableDeclaration(this.node);return`Use keyword "const" instead, to declare a constant:\n\n\tconst ${e} = ${generate$1(t)};`}}var noDeclareMutable=defineRule("no-declare-mutable",{VariableDeclaration:e=>mutableDeclarators.includes(e.kind)?[new NoDeclareMutableError(e)]:[]},Chapter.SOURCE_3);class NoDotAbbreviationError extends RuleError{explain(){return"Dot abbreviations are not allowed."}elaborate(){return"Source doesn't use object-oriented programming, so you don't need any dots in your code (except decimal points in numbers)."}}var noDotAbbreviation=defineRule("no-dot-abbreviation",{MemberExpression:e=>e.computed?[]:[new NoDotAbbreviationError(e)]},Chapter.LIBRARY_PARSER);class NoEval extends RuleError{explain(){return"eval is not allowed."}elaborate(){return this.explain()}}var noEval=defineRule("no-eval",{Identifier:e=>"eval"===e.name?[new NoEval(e)]:[]});const accessExportFunctionName="__access_export__",defaultExportLookupName="default",localImportPrelude=`\nfunction __access_named_export__(named_exports, lookup_name) {\n if (is_null(named_exports)) {\n return undefined;\n } else {\n const name = head(head(named_exports));\n const identifier = tail(head(named_exports));\n if (name === lookup_name) {\n return identifier;\n } else {\n return __access_named_export__(tail(named_exports), lookup_name);\n }\n }\n}\n\nfunction ${accessExportFunctionName}(exports, lookup_name) {\n if (lookup_name === "${defaultExportLookupName}") {\n return head(exports);\n } else {\n const named_exports = tail(exports);\n return __access_named_export__(named_exports, lookup_name);\n }\n}\n`;class PromiseTimeoutError extends TimeoutError{explain(){return"An internal operation timed out while executing."}}const timeoutPromise=(e,t,n)=>new Promise((r,i)=>{const a=setTimeout(()=>i(new PromiseTimeoutError(n)),t);e.then(e=>{clearTimeout(a),r(e)}).catch(e=>{clearTimeout(a),i(e)})});function mapAndFilter(e,t){return e.reduce((e,n)=>{const r=t(n);return void 0!==r?[...e,r]:e},[])}function objectKeys(e){return Object.keys(e)}function getChapterName(e){return objectKeys(Chapter).find(t=>Chapter[t]===e)}const libraryParserLanguage=100,syntaxBlacklist={Program:1,BlockStatement:1,ExpressionStatement:1,IfStatement:1,ReturnStatement:1,FunctionDeclaration:1,VariableDeclaration:1,VariableDeclarator:1,ArrowFunctionExpression:1,UnaryExpression:1,BinaryExpression:1,LogicalExpression:1,ConditionalExpression:1,CallExpression:1,Identifier:1,Literal:1,TemplateLiteral:1,TemplateElement:1,DebuggerStatement:1,ImportDeclaration:1,ImportSpecifier:1,ExportNamedDeclaration:2,BreakStatement:3,ContinueStatement:3,WhileStatement:3,ForStatement:3,MemberPattern:3,ArrayExpression:3,AssignmentExpression:3,MemberExpression:3,Property:3,SpreadElement:3,RestElement:3,ObjectExpression:libraryParserLanguage,NewExpression:libraryParserLanguage,TryStatement:libraryParserLanguage,CatchClause:libraryParserLanguage,ThrowStatement:libraryParserLanguage,ThisExpression:libraryParserLanguage,Super:libraryParserLanguage,ClassDeclaration:libraryParserLanguage,ClassExpression:libraryParserLanguage,Class:libraryParserLanguage,ClassBody:libraryParserLanguage,MethodDefinition:libraryParserLanguage,FunctionExpression:libraryParserLanguage,ImportDefaultSpecifier:libraryParserLanguage,ExportDefaultDeclaration:libraryParserLanguage,ExportAllDeclaration:libraryParserLanguage,ImportNamespaceSpecifier:libraryParserLanguage,UpdateExpression:1/0,Statement:1/0,EmptyStatement:1/0,ParenthesizedExpression:1/0,LabeledStatement:1/0,WithStatement:1/0,SwitchStatement:1/0,SwitchCase:1/0,YieldExpression:1/0,AwaitExpression:1/0,DoWhileStatement:1/0,ForInStatement:1/0,ForOfStatement:1/0,ForInit:1/0,Function:1/0,Pattern:1/0,VariablePattern:1/0,ArrayPattern:1/0,ObjectPattern:1/0,Expression:1/0,MetaProperty:1/0,SequenceExpression:1/0,AssignmentPattern:1/0,TaggedTemplateExpression:1/0};class NoExportNamedDeclarationWithDefaultError extends RuleError{explain(){return"Export default declarations are not allowed."}elaborate(){return"You are trying to use an export default declaration, which is not allowed (yet)."}}var noExportNamedDeclarationWithDefault=defineRule("no-named-export-with-default",{ExportNamedDeclaration:e=>mapAndFilter(e.specifiers,t=>getSpecifierName(t.exported)===defaultExportLookupName?new NoExportNamedDeclarationWithDefaultError(e):void 0)},syntaxBlacklist.ExportDefaultDeclaration);class NoExportNamedDeclarationWithSourceError extends RuleError{explain(){return'exports of the form `export { a } from "./file.js";` are not allowed.'}elaborate(){const[e,t]=this.node.specifiers.reduce(([e,t],n)=>[[...e,getSpecifierName(n.local)],[...t,specifierToString(n)]],[[],[]]);return`Import what you are trying to export, then export it again, like this:\nimport { ${e.join(", ")} } from "${this.node.source.value}";\nexport { ${t.join(", ")} };`}}var noExportNamedDeclarationWithSource=defineRule("no-export-named-declaration-with-source",{ExportNamedDeclaration:e=>null!==e.source?[new NoExportNamedDeclarationWithSourceError(e)]:[]});class NoFunctionDeclarationWithoutIdentifierError extends RuleError{explain(){return"The 'function' keyword needs to be followed by a name."}elaborate(){return"Function declarations without a name are similar to function expressions, which are banned."}}var noFunctionDeclarationWithoutIdentifier=defineRule("no-function-declaration-without-identifier",{FunctionDeclaration:e=>null===e.id?[new NoFunctionDeclarationWithoutIdentifierError(e)]:[]});class NoHolesInArrays extends RuleError{explain(){return"No holes are allowed in array literals."}elaborate(){return stripIndent` + No holes (empty slots with no content inside) are allowed in array literals. + You probably have an extra comma, which creates a hole. + `}}var noHolesInArrays=defineRule("no-holes-in-arrays",{ArrayExpression:e=>e.elements.some(e=>null===e)?[new NoHolesInArrays(e)]:[]});class NoIfWithoutElseError extends RuleError{explain(){return'Missing "else" in "if-else" statement.'}elaborate(){return stripIndent` + This "if" block requires corresponding "else" block which will be + evaluated when ${generate$1(this.node.test)} expression evaluates to false. + + Later in the course we will lift this restriction and allow "if" without + else. + `}}var noIfWithoutElse=defineRule("no-if-without-else",{IfStatement:e=>e.alternate?[]:[new NoIfWithoutElseError(e)]},Chapter.SOURCE_3);class NoImplicitDeclareUndefinedError extends RuleError{explain(){return"Missing value in variable declaration."}elaborate(){return stripIndent` + A variable declaration assigns a value to a name. + For instance, to assign 20 to ${this.node.name}, you can write: + + let ${this.node.name} = 20; + + ${this.node.name} + ${this.node.name}; // 40 + `}}var noImplicitDeclareUndefined=defineRule("no-implicit-declare-undefined",{VariableDeclaration(e,t){if(t.length>1)switch(t[t.length-2].type){case"ForOfStatement":case"ForInStatement":return[]}return mapAndFilter(e.declarations,e=>e.init?void 0:new NoImplicitDeclareUndefinedError(e.id))}});class NoImplicitReturnUndefinedError extends RuleError{explain(){return"Missing value in return statement."}elaborate(){return stripIndent` + This return statement is missing a value. + For instance, to return the value 42, you can write + + return 42; + `}}var noImplicitReturnUndefined=defineRule("no-implicit-return-undefined",{ReturnStatement:e=>e.argument?[]:[new NoImplicitReturnUndefinedError(e)]});class NoImportSpecifierWithDefaultError extends RuleError{explain(){return"Import default specifiers are not allowed."}elaborate(){return"You are trying to use an import default specifier, which is not allowed (yet)."}}var noImportSpecifierWithDefault=defineRule("no-import-with-default",{ImportSpecifier:e=>getSpecifierName(e.imported)===defaultExportLookupName?[new NoImportSpecifierWithDefaultError(e)]:[]},syntaxBlacklist.ImportDefaultSpecifier);class NoNullError extends RuleError{explain(){return"null literals are not allowed."}elaborate(){return"They're not part of the Source §1 specs."}}var noNull=defineRule("no-null",{Literal:e=>null===e.value?[new NoNullError(e)]:[]},Chapter.SOURCE_2);class NoSpreadInArray extends RuleError{explain(){return"Spread syntax is not allowed in arrays."}elaborate(){return""}}var noSpreadInArray=defineRule("no-spread-in-arrays",{SpreadElement:(e,t)=>"CallExpression"===t[t.length-2].type?[]:[new NoSpreadInArray(e)]});class NoTemplateExpressionError extends RuleError{explain(){return"Expressions are not allowed in template literals (`multiline strings`)"}elaborate(){return this.explain()}}var noTemplateExpression=defineRule("no-template-expression",{TemplateLiteral:e=>e.expressions.length>0?[new NoTemplateExpressionError(e)]:[]});class NoUnspecifiedOperatorError extends RuleError{constructor(e){super(e),this.unspecifiedOperator=e.operator}explain(){return`Operator '${this.unspecifiedOperator}' is not allowed.`}elaborate(){return""}}class StrictEqualityError extends NoUnspecifiedOperatorError{explain(){return"=="===this.node.operator?"Use === instead of ==.":"Use !== instead of !=."}elaborate(){return"== and != are not valid operators."}}var noUnspecifiedOperator=defineRule("no-unspecified-operator",{BinaryExpression:e=>"!="===e.operator||"=="===e.operator?[new StrictEqualityError(e)]:["+","-","*","/","%","===","!==","<",">","<=",">="].includes(e.operator)?[]:[new NoUnspecifiedOperatorError(e)],UnaryExpression:e=>["-","!","typeof"].includes(e.operator)?[]:[new NoUnspecifiedOperatorError(e)]}),noTypeofOperator=defineRule("no-typeof-operator",{UnaryExpression:e=>"typeof"===e.operator?[new NoUnspecifiedOperatorError(e)]:[]},void 0,[Variant.TYPED]);const specifiedLiterals=["boolean","string","number"];class NoUnspecifiedLiteral extends RuleError{explain(){return`'${typeOf(this.node.value)}' literals are not allowed.`}elaborate(){return""}}var noUnspecifiedLiteral=defineRule("no-unspecified-literal",{Literal:e=>null===e.value||specifiedLiterals.includes(typeof e.value)?[]:[new NoUnspecifiedLiteral(e)]});class NoUpdateAssignment extends NoUnspecifiedOperatorError{explain(){return`The assignment operator ${this.node.operator} is not allowed. Use = instead.`}elaborate(){const e=generate$1(this.node.left),t=generate$1(this.node.right),n=this.node.operator.slice(0,-1);return"+"===n||"-"===n||"/"===n||"*"===n?`\n\t${e} = ${e} ${n} ${t};`:""}}var noUpdateAssignment=defineRule("no-update-assignment",{AssignmentExpression:e=>"="!==e.operator?[new NoUpdateAssignment(e)]:[]});class NoVarError extends RuleError{explain(){return'Variable declaration using "var" is not allowed.'}elaborate(){const{id:{name:e},init:t}=getSourceVariableDeclaration(this.node);return`Use keyword "let" instead, to declare a variable:\n\n\tlet ${e} = ${generate$1(t)};`}}var noVar=defineRule("no-var",{VariableDeclaration:e=>"var"===e.kind?[new NoVarError(e)]:[]});class MultipleDeclarationsError extends RuleError{constructor(e){super(e),this.fixs=e.declarations.map(t=>({type:"VariableDeclaration",kind:e.kind,loc:t.loc,declarations:[t]}))}explain(){return"Multiple declarations in a single statement."}elaborate(){const e=this.fixs.map(e=>" "+generate$1(e)).join("\n");return"Split the variable declaration into multiple lines as follows\n\n"+e+"\n"}}var singleVariableDeclaration=defineRule("single-variable-declaration",{VariableDeclaration:e=>e.declarations.length>1?[new MultipleDeclarationsError(e)]:[]});const rules=[bracesAroundFor,bracesAroundIfElse,bracesAroundWhile,forStatementMustHaveAllParts,noConstDeclarationInForLoopInit,noDeclareMutable,noDotAbbreviation,noExportNamedDeclarationWithDefault,noExportNamedDeclarationWithSource,noFunctionDeclarationWithoutIdentifier,noIfWithoutElse,noImportSpecifierWithDefault,noImplicitDeclareUndefined,noImplicitReturnUndefined,noNull,noUnspecifiedLiteral,noUnspecifiedOperator,noTypeofOperator,noUpdateAssignment,noVar,singleVariableDeclaration,noEval,noHolesInArrays,noTemplateExpression,noSpreadInArray],combineAncestorWalkers=(e,t)=>(n,r,i)=>{e(n,r,i),t(n,r,i)},mapToObj=e=>Array.from(e).reduce((e,[t,n])=>Object.assign(e,{[t]:n}),{});class SourceParser{constructor(e,t){this.chapter=e,this.variant=t}static tokenize(e,t){return[...tokenizer(e,createAcornParserOptions(DEFAULT_ECMA_VERSION,t.errors))]}parse(e,t,n,r){try{return parse$6(e,createAcornParserOptions(DEFAULT_ECMA_VERSION,t.errors,n))}catch(e){if(e instanceof SyntaxError&&(e=new FatalSyntaxError(positionToSourceLocation(e.loc,n?.sourceFile),e.toString())),r)throw e;t.errors.push(e)}return null}validate(e,t,n){const r=new Map;return this.getDisallowedSyntaxes().forEach(e=>{r.set(e,(r,i,a)=>{if(r.type!==e)return;const o=new DisallowedConstructError(r);if(n)throw o;t.errors.push(o)})}),this.getLangRules().map(e=>Object.entries(e.checkers)).flat().forEach(([e,i])=>{const a=(e,r,a)=>{const o=i(e,a);if(n&&o.length>0)throw o[0];o.forEach(e=>t.errors.push(e))};r.has(e)?r.set(e,combineAncestorWalkers(r.get(e),a)):r.set(e,a)}),ancestor(e,mapToObj(r),void 0,void 0),0===t.errors.length}toString(){return`SourceParser{chapter: ${this.chapter}, variant: ${this.variant}}`}getDisallowedSyntaxes(){return Object.entries(syntaxBlacklist).reduce((e,[t,n])=>this.chapter!(e.disableFromChapter&&this.chapter>=e.disableFromChapter||e.disableForVariants&&e.disableForVariants.includes(this.variant)))}}var acorn$1={exports:{}},acorn=acorn$1.exports,hasRequiredAcorn,acornPrivateClassElements,hasRequiredAcornPrivateClassElements,acornClassFields,hasRequiredAcornClassFields;function requireAcorn(){return hasRequiredAcorn||(hasRequiredAcorn=1,function(e){var t=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,78,5,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,199,7,137,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,55,9,266,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,233,0,3,0,8,1,6,0,475,6,110,6,6,9,4759,9,787719,239],n=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,7,25,39,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,5,57,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,24,43,261,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,33,24,3,24,45,74,6,0,67,12,65,1,2,0,15,4,10,7381,42,31,98,114,8702,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,208,30,2,2,2,1,2,6,3,4,10,1,225,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4381,3,5773,3,7472,16,621,2467,541,1507,4938,6,8489],r="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-࢏ࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚ౜ౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽ೜-ೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲊᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-Ƛ꟱-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",i={3:"abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",5:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"},a="break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this",o={5:a,"5module":a+" export import",6:a+" const class extends export import super"},s=/^in(stanceof)?$/,c=new RegExp("["+r+"]"),l=new RegExp("["+r+"‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࢗ-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-᫝᫠-᫫ᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‌‍‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・]");function u(e,t){for(var n=65536,r=0;re)return!1;if((n+=t[r+1])>=e)return!0}return!1}function d(e,t){return e<65?36===e:e<91||(e<97?95===e:e<123||(e<=65535?e>=170&&c.test(String.fromCharCode(e)):!1!==t&&u(e,n)))}function p(e,r){return e<48?36===e:e<58||!(e<65)&&(e<91||(e<97?95===e:e<123||(e<=65535?e>=170&&l.test(String.fromCharCode(e)):!1!==r&&(u(e,n)||u(e,t)))))}var m=function(e,t){void 0===t&&(t={}),this.label=e,this.keyword=t.keyword,this.beforeExpr=!!t.beforeExpr,this.startsExpr=!!t.startsExpr,this.isLoop=!!t.isLoop,this.isAssign=!!t.isAssign,this.prefix=!!t.prefix,this.postfix=!!t.postfix,this.binop=t.binop||null,this.updateContext=null};function f(e,t){return new m(e,{beforeExpr:!0,binop:t})}var _={beforeExpr:!0},h={startsExpr:!0},g={};function y(e,t){return void 0===t&&(t={}),t.keyword=e,g[e]=new m(e,t)}var v={num:new m("num",h),regexp:new m("regexp",h),string:new m("string",h),name:new m("name",h),privateId:new m("privateId",h),eof:new m("eof"),bracketL:new m("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new m("]"),braceL:new m("{",{beforeExpr:!0,startsExpr:!0}),braceR:new m("}"),parenL:new m("(",{beforeExpr:!0,startsExpr:!0}),parenR:new m(")"),comma:new m(",",_),semi:new m(";",_),colon:new m(":",_),dot:new m("."),question:new m("?",_),questionDot:new m("?."),arrow:new m("=>",_),template:new m("template"),invalidTemplate:new m("invalidTemplate"),ellipsis:new m("...",_),backQuote:new m("`",h),dollarBraceL:new m("${",{beforeExpr:!0,startsExpr:!0}),eq:new m("=",{beforeExpr:!0,isAssign:!0}),assign:new m("_=",{beforeExpr:!0,isAssign:!0}),incDec:new m("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new m("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:f("||",1),logicalAND:f("&&",2),bitwiseOR:f("|",3),bitwiseXOR:f("^",4),bitwiseAND:f("&",5),equality:f("==/!=/===/!==",6),relational:f("/<=/>=",7),bitShift:f("<>/>>>",8),plusMin:new m("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:f("%",10),star:f("*",10),slash:f("/",10),starstar:new m("**",{beforeExpr:!0}),coalesce:f("??",1),_break:y("break"),_case:y("case",_),_catch:y("catch"),_continue:y("continue"),_debugger:y("debugger"),_default:y("default",_),_do:y("do",{isLoop:!0,beforeExpr:!0}),_else:y("else",_),_finally:y("finally"),_for:y("for",{isLoop:!0}),_function:y("function",h),_if:y("if"),_return:y("return",_),_switch:y("switch"),_throw:y("throw",_),_try:y("try"),_var:y("var"),_const:y("const"),_while:y("while",{isLoop:!0}),_with:y("with"),_new:y("new",{beforeExpr:!0,startsExpr:!0}),_this:y("this",h),_super:y("super",h),_class:y("class",h),_extends:y("extends",_),_export:y("export"),_import:y("import",h),_null:y("null",h),_true:y("true",h),_false:y("false",h),_in:y("in",{beforeExpr:!0,binop:7}),_instanceof:y("instanceof",{beforeExpr:!0,binop:7}),_typeof:y("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:y("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:y("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},b=/\r\n?|\n|\u2028|\u2029/,E=new RegExp(b.source,"g");function x(e){return 10===e||13===e||8232===e||8233===e}function S(e,t,n){void 0===n&&(n=e.length);for(var r=t;r>10),56320+(1023&e)))}var O=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,R=function(e,t){this.line=e,this.column=t};R.prototype.offset=function(e){return new R(this.line,this.column+e)};var M=function(e,t,n){this.start=t,this.end=n,null!==e.sourceFile&&(this.source=e.sourceFile)};function F(e,t){for(var n=1,r=0;;){var i=S(e,r,t);if(i<0)return new R(n,t-r);++n,r=i}}var G={ecmaVersion:null,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:null,allowSuperOutsideMethod:null,allowHashBang:!1,checkPrivateFields:!0,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},B=!1;function U(e){var t={};for(var n in G)t[n]=e&&N(e,n)?e[n]:G[n];if("latest"===t.ecmaVersion?t.ecmaVersion=1e8:null==t.ecmaVersion?(!B&&"object"==typeof console&&console.warn&&(B=!0,console.warn("Since Acorn 8.0.0, options.ecmaVersion is required.\nDefaulting to 2020, but this will stop working in the future.")),t.ecmaVersion=11):t.ecmaVersion>=2015&&(t.ecmaVersion-=2009),null==t.allowReserved&&(t.allowReserved=t.ecmaVersion<5),e&&null!=e.allowHashBang||(t.allowHashBang=t.ecmaVersion>=14),k(t.onToken)){var r=t.onToken;t.onToken=function(e){return r.push(e)}}if(k(t.onComment)&&(t.onComment=function(e,t){return function(n,r,i,a,o,s){var c={type:n?"Block":"Line",value:r,start:i,end:a};e.locations&&(c.loc=new M(this,o,s)),e.ranges&&(c.range=[i,a]),t.push(c)}}(t,t.onComment)),"commonjs"===t.sourceType&&t.allowAwaitOutsideFunction)throw new Error("Cannot use allowAwaitOutsideFunction with sourceType: commonjs");return t}var V=256,K=259;function j(e,t){return 2|(e?4:0)|(t?8:0)}var H=function(e,t,n){this.options=e=U(e),this.sourceFile=e.sourceFile,this.keywords=P(o[e.ecmaVersion>=6?6:"module"===e.sourceType?"5module":5]);var r="";!0!==e.allowReserved&&(r=i[e.ecmaVersion>=6?6:5===e.ecmaVersion?5:3],"module"===e.sourceType&&(r+=" await")),this.reservedWords=P(r);var a=(r?r+" ":"")+i.strict;this.reservedWordsStrict=P(a),this.reservedWordsStrictBind=P(a+" "+i.strictBind),this.input=String(t),this.containsEsc=!1,n?(this.pos=n,this.lineStart=this.input.lastIndexOf("\n",n-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(b).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=v.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule="module"===e.sourceType,this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.potentialArrowInForAwait=!1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports=Object.create(null),0===this.pos&&e.allowHashBang&&"#!"===this.input.slice(0,2)&&this.skipLineComment(2),this.scopeStack=[],this.enterScope("commonjs"===this.options.sourceType?2:1),this.regexpState=null,this.privateNameStack=[]},W={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},canAwait:{configurable:!0},allowReturn:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0},allowNewDotTarget:{configurable:!0},allowUsing:{configurable:!0},inClassStaticBlock:{configurable:!0}};H.prototype.parse=function(){var e=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(e)},W.inFunction.get=function(){return(2&this.currentVarScope().flags)>0},W.inGenerator.get=function(){return(8&this.currentVarScope().flags)>0},W.inAsync.get=function(){return(4&this.currentVarScope().flags)>0},W.canAwait.get=function(){for(var e=this.scopeStack.length-1;e>=0;e--){var t=this.scopeStack[e].flags;if(768&t)return!1;if(2&t)return(4&t)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction},W.allowReturn.get=function(){return!!this.inFunction||!!(this.options.allowReturnOutsideFunction&&1&this.currentVarScope().flags)},W.allowSuper.get=function(){return(64&this.currentThisScope().flags)>0||this.options.allowSuperOutsideMethod},W.allowDirectSuper.get=function(){return(128&this.currentThisScope().flags)>0},W.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},W.allowNewDotTarget.get=function(){for(var e=this.scopeStack.length-1;e>=0;e--){var t=this.scopeStack[e].flags;if(768&t||2&t&&!(16&t))return!0}return!1},W.allowUsing.get=function(){var e=this.currentScope().flags;return!(1024&e||!this.inModule&&1&e)},W.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&V)>0},H.extend=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];for(var n=this,r=0;r=,?^&]/.test(i)||"!"===i&&"="===this.input.charAt(r+1))}e+=t[0].length,C.lastIndex=e,e+=C.exec(this.input)[0].length,";"===this.input[e]&&e++}},$.eat=function(e){return this.type===e&&(this.next(),!0)},$.isContextual=function(e){return this.type===v.name&&this.value===e&&!this.containsEsc},$.eatContextual=function(e){return!!this.isContextual(e)&&(this.next(),!0)},$.expectContextual=function(e){this.eatContextual(e)||this.unexpected()},$.canInsertSemicolon=function(){return this.type===v.eof||this.type===v.braceR||b.test(this.input.slice(this.lastTokEnd,this.start))},$.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},$.semicolon=function(){this.eat(v.semi)||this.insertSemicolon()||this.unexpected()},$.afterTrailingComma=function(e,t){if(this.type===e)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),t||this.next(),!0},$.expect=function(e){this.eat(e)||this.unexpected()},$.unexpected=function(e){this.raise(null!=e?e:this.start,"Unexpected token")};var z=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};$.checkPatternErrors=function(e,t){if(e){e.trailingComma>-1&&this.raiseRecoverable(e.trailingComma,"Comma is not permitted after the rest element");var n=t?e.parenthesizedAssign:e.parenthesizedBind;n>-1&&this.raiseRecoverable(n,t?"Assigning to rvalue":"Parenthesized pattern")}},$.checkExpressionErrors=function(e,t){if(!e)return!1;var n=e.shorthandAssign,r=e.doubleProto;if(!t)return n>=0||r>=0;n>=0&&this.raise(n,"Shorthand property assignments are valid only in destructuring patterns"),r>=0&&this.raiseRecoverable(r,"Redefinition of __proto__ property")},$.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos=6&&this.unexpected(),this.parseFunctionStatement(a,!1,!e);case v._class:return e&&this.unexpected(),this.parseClass(a,!0);case v._if:return this.parseIfStatement(a);case v._return:return this.parseReturnStatement(a);case v._switch:return this.parseSwitchStatement(a);case v._throw:return this.parseThrowStatement(a);case v._try:return this.parseTryStatement(a);case v._const:case v._var:return r=r||this.value,e&&"var"!==r&&this.unexpected(),this.parseVarStatement(a,r);case v._while:return this.parseWhileStatement(a);case v._with:return this.parseWithStatement(a);case v.braceL:return this.parseBlock(!0,a);case v.semi:return this.parseEmptyStatement(a);case v._export:case v._import:if(this.options.ecmaVersion>10&&i===v._import){C.lastIndex=this.pos;var o=C.exec(this.input),s=this.pos+o[0].length,c=this.input.charCodeAt(s);if(40===c||46===c)return this.parseExpressionStatement(a,this.parseExpression())}return this.options.allowImportExportEverywhere||(t||this.raise(this.start,"'import' and 'export' may only appear at the top level"),this.inModule||this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")),i===v._import?this.parseImport(a):this.parseExport(a,n);default:if(this.isAsyncFunction())return e&&this.unexpected(),this.next(),this.parseFunctionStatement(a,!0,!e);var l=this.isAwaitUsing(!1)?"await using":this.isUsing(!1)?"using":null;if(l)return this.allowUsing||this.raise(this.start,"Using declaration cannot appear in the top level when source type is `script` or in the bare case statement"),"await using"===l&&(this.canAwait||this.raise(this.start,"Await using cannot appear outside of async function"),this.next()),this.next(),this.parseVar(a,!1,l),this.semicolon(),this.finishNode(a,"VariableDeclaration");var u=this.value,d=this.parseExpression();return i===v.name&&"Identifier"===d.type&&this.eat(v.colon)?this.parseLabeledStatement(a,u,d,e):this.parseExpressionStatement(a,d)}},J.parseBreakContinueStatement=function(e,t){var n="break"===t;this.next(),this.eat(v.semi)||this.insertSemicolon()?e.label=null:this.type!==v.name?this.unexpected():(e.label=this.parseIdent(),this.semicolon());for(var r=0;r=6?this.eat(v.semi):this.semicolon(),this.finishNode(e,"DoWhileStatement")},J.parseForStatement=function(e){this.next();var t=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(X),this.enterScope(0),this.expect(v.parenL),this.type===v.semi)return t>-1&&this.unexpected(t),this.parseFor(e,null);var n=this.isLet();if(this.type===v._var||this.type===v._const||n){var r=this.startNode(),i=n?"let":this.value;return this.next(),this.parseVar(r,!0,i),this.finishNode(r,"VariableDeclaration"),this.parseForAfterInit(e,r,t)}var a=this.isContextual("let"),o=!1,s=this.isUsing(!0)?"using":this.isAwaitUsing(!0)?"await using":null;if(s){var c=this.startNode();return this.next(),"await using"===s&&(this.canAwait||this.raise(this.start,"Await using cannot appear outside of async function"),this.next()),this.parseVar(c,!0,s),this.finishNode(c,"VariableDeclaration"),this.parseForAfterInit(e,c,t)}var l=this.containsEsc,u=new z,d=this.start,p=t>-1?this.parseExprSubscripts(u,"await"):this.parseExpression(!0,u);return this.type===v._in||(o=this.options.ecmaVersion>=6&&this.isContextual("of"))?(t>-1?(this.type===v._in&&this.unexpected(t),e.await=!0):o&&this.options.ecmaVersion>=8&&(p.start!==d||l||"Identifier"!==p.type||"async"!==p.name?this.options.ecmaVersion>=9&&(e.await=!1):this.unexpected()),a&&o&&this.raise(p.start,"The left-hand side of a for-of loop may not start with 'let'."),this.toAssignable(p,!1,u),this.checkLValPattern(p),this.parseForIn(e,p)):(this.checkExpressionErrors(u,!0),t>-1&&this.unexpected(t),this.parseFor(e,p))},J.parseForAfterInit=function(e,t,n){return(this.type===v._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&1===t.declarations.length?(this.options.ecmaVersion>=9&&(this.type===v._in?n>-1&&this.unexpected(n):e.await=n>-1),this.parseForIn(e,t)):(n>-1&&this.unexpected(n),this.parseFor(e,t))},J.parseFunctionStatement=function(e,t,n){return this.next(),this.parseFunction(e,Z|(n?0:ee),!1,t)},J.parseIfStatement=function(e){return this.next(),e.test=this.parseParenExpression(),e.consequent=this.parseStatement("if"),e.alternate=this.eat(v._else)?this.parseStatement("if"):null,this.finishNode(e,"IfStatement")},J.parseReturnStatement=function(e){return this.allowReturn||this.raise(this.start,"'return' outside of function"),this.next(),this.eat(v.semi)||this.insertSemicolon()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,"ReturnStatement")},J.parseSwitchStatement=function(e){var t;this.next(),e.discriminant=this.parseParenExpression(),e.cases=[],this.expect(v.braceL),this.labels.push(Y),this.enterScope(1024);for(var n=!1;this.type!==v.braceR;)if(this.type===v._case||this.type===v._default){var r=this.type===v._case;t&&this.finishNode(t,"SwitchCase"),e.cases.push(t=this.startNode()),t.consequent=[],this.next(),r?t.test=this.parseExpression():(n&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),n=!0,t.test=null),this.expect(v.colon)}else t||this.unexpected(),t.consequent.push(this.parseStatement(null));return this.exitScope(),t&&this.finishNode(t,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(e,"SwitchStatement")},J.parseThrowStatement=function(e){return this.next(),b.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),e.argument=this.parseExpression(),this.semicolon(),this.finishNode(e,"ThrowStatement")};var Q=[];J.parseCatchClauseParam=function(){var e=this.parseBindingAtom(),t="Identifier"===e.type;return this.enterScope(t?32:0),this.checkLValPattern(e,t?4:2),this.expect(v.parenR),e},J.parseTryStatement=function(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.type===v._catch){var t=this.startNode();this.next(),this.eat(v.parenL)?t.param=this.parseCatchClauseParam():(this.options.ecmaVersion<10&&this.unexpected(),t.param=null,this.enterScope(0)),t.body=this.parseBlock(!1),this.exitScope(),e.handler=this.finishNode(t,"CatchClause")}return e.finalizer=this.eat(v._finally)?this.parseBlock():null,e.handler||e.finalizer||this.raise(e.start,"Missing catch or finally clause"),this.finishNode(e,"TryStatement")},J.parseVarStatement=function(e,t,n){return this.next(),this.parseVar(e,!1,t,n),this.semicolon(),this.finishNode(e,"VariableDeclaration")},J.parseWhileStatement=function(e){return this.next(),e.test=this.parseParenExpression(),this.labels.push(X),e.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(e,"WhileStatement")},J.parseWithStatement=function(e){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),e.object=this.parseParenExpression(),e.body=this.parseStatement("with"),this.finishNode(e,"WithStatement")},J.parseEmptyStatement=function(e){return this.next(),this.finishNode(e,"EmptyStatement")},J.parseLabeledStatement=function(e,t,n,r){for(var i=0,a=this.labels;i=0;s--){var c=this.labels[s];if(c.statementStart!==e.start)break;c.statementStart=this.start,c.kind=o}return this.labels.push({name:t,kind:o,statementStart:this.start}),e.body=this.parseStatement(r?-1===r.indexOf("label")?r+"label":r:"label"),this.labels.pop(),e.label=n,this.finishNode(e,"LabeledStatement")},J.parseExpressionStatement=function(e,t){return e.expression=t,this.semicolon(),this.finishNode(e,"ExpressionStatement")},J.parseBlock=function(e,t,n){for(void 0===e&&(e=!0),void 0===t&&(t=this.startNode()),t.body=[],this.expect(v.braceL),e&&this.enterScope(0);this.type!==v.braceR;){var r=this.parseStatement(null);t.body.push(r)}return n&&(this.strict=!1),this.next(),e&&this.exitScope(),this.finishNode(t,"BlockStatement")},J.parseFor=function(e,t){return e.init=t,this.expect(v.semi),e.test=this.type===v.semi?null:this.parseExpression(),this.expect(v.semi),e.update=this.type===v.parenR?null:this.parseExpression(),this.expect(v.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,"ForStatement")},J.parseForIn=function(e,t){var n=this.type===v._in;return this.next(),"VariableDeclaration"===t.type&&null!=t.declarations[0].init&&(!n||this.options.ecmaVersion<8||this.strict||"var"!==t.kind||"Identifier"!==t.declarations[0].id.type)&&this.raise(t.start,(n?"for-in":"for-of")+" loop variable declaration may not have an initializer"),e.left=t,e.right=n?this.parseExpression():this.parseMaybeAssign(),this.expect(v.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,n?"ForInStatement":"ForOfStatement")},J.parseVar=function(e,t,n,r){for(e.declarations=[],e.kind=n;;){var i=this.startNode();if(this.parseVarId(i,n),this.eat(v.eq)?i.init=this.parseMaybeAssign(t):r||"const"!==n||this.type===v._in||this.options.ecmaVersion>=6&&this.isContextual("of")?r||"using"!==n&&"await using"!==n||!(this.options.ecmaVersion>=17)||this.type===v._in||this.isContextual("of")?r||"Identifier"===i.id.type||t&&(this.type===v._in||this.isContextual("of"))?i.init=null:this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):this.raise(this.lastTokEnd,"Missing initializer in "+n+" declaration"):this.unexpected(),e.declarations.push(this.finishNode(i,"VariableDeclarator")),!this.eat(v.comma))break}return e},J.parseVarId=function(e,t){e.id="using"===t||"await using"===t?this.parseIdent():this.parseBindingAtom(),this.checkLValPattern(e.id,"var"===t?1:2,!1)};var Z=1,ee=2;function te(e,t){var n=t.key.name,r=e[n],i="true";return"MethodDefinition"!==t.type||"get"!==t.kind&&"set"!==t.kind||(i=(t.static?"s":"i")+t.kind),"iget"===r&&"iset"===i||"iset"===r&&"iget"===i||"sget"===r&&"sset"===i||"sset"===r&&"sget"===i?(e[n]="true",!1):!!r||(e[n]=i,!1)}function ne(e,t){var n=e.computed,r=e.key;return!n&&("Identifier"===r.type&&r.name===t||"Literal"===r.type&&r.value===t)}J.parseFunction=function(e,t,n,r,i){this.initFunction(e),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!r)&&(this.type===v.star&&t&ee&&this.unexpected(),e.generator=this.eat(v.star)),this.options.ecmaVersion>=8&&(e.async=!!r),t&Z&&(e.id=4&t&&this.type!==v.name?null:this.parseIdent(),!e.id||t&ee||this.checkLValSimple(e.id,this.strict||e.generator||e.async?this.treatFunctionsAsVar?1:2:3));var a=this.yieldPos,o=this.awaitPos,s=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(j(e.async,e.generator)),t&Z||(e.id=this.type===v.name?this.parseIdent():null),this.parseFunctionParams(e),this.parseFunctionBody(e,n,!1,i),this.yieldPos=a,this.awaitPos=o,this.awaitIdentPos=s,this.finishNode(e,t&Z?"FunctionDeclaration":"FunctionExpression")},J.parseFunctionParams=function(e){this.expect(v.parenL),e.params=this.parseBindingList(v.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},J.parseClass=function(e,t){this.next();var n=this.strict;this.strict=!0,this.parseClassId(e,t),this.parseClassSuper(e);var r=this.enterClassBody(),i=this.startNode(),a=!1;for(i.body=[],this.expect(v.braceL);this.type!==v.braceR;){var o=this.parseClassElement(null!==e.superClass);o&&(i.body.push(o),"MethodDefinition"===o.type&&"constructor"===o.kind?(a&&this.raiseRecoverable(o.start,"Duplicate constructor in the same class"),a=!0):o.key&&"PrivateIdentifier"===o.key.type&&te(r,o)&&this.raiseRecoverable(o.key.start,"Identifier '#"+o.key.name+"' has already been declared"))}return this.strict=n,this.next(),e.body=this.finishNode(i,"ClassBody"),this.exitClassBody(),this.finishNode(e,t?"ClassDeclaration":"ClassExpression")},J.parseClassElement=function(e){if(this.eat(v.semi))return null;var t=this.options.ecmaVersion,n=this.startNode(),r="",i=!1,a=!1,o="method",s=!1;if(this.eatContextual("static")){if(t>=13&&this.eat(v.braceL))return this.parseClassStaticBlock(n),n;this.isClassElementNameStart()||this.type===v.star?s=!0:r="static"}if(n.static=s,!r&&t>=8&&this.eatContextual("async")&&(!this.isClassElementNameStart()&&this.type!==v.star||this.canInsertSemicolon()?r="async":a=!0),!r&&(t>=9||!a)&&this.eat(v.star)&&(i=!0),!r&&!a&&!i){var c=this.value;(this.eatContextual("get")||this.eatContextual("set"))&&(this.isClassElementNameStart()?o=c:r=c)}if(r?(n.computed=!1,n.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),n.key.name=r,this.finishNode(n.key,"Identifier")):this.parseClassElementName(n),t<13||this.type===v.parenL||"method"!==o||i||a){var l=!n.static&&ne(n,"constructor"),u=l&&e;l&&"method"!==o&&this.raise(n.key.start,"Constructor can't have get/set modifier"),n.kind=l?"constructor":o,this.parseClassMethod(n,i,a,u)}else this.parseClassField(n);return n},J.isClassElementNameStart=function(){return this.type===v.name||this.type===v.privateId||this.type===v.num||this.type===v.string||this.type===v.bracketL||this.type.keyword},J.parseClassElementName=function(e){this.type===v.privateId?("constructor"===this.value&&this.raise(this.start,"Classes can't have an element named '#constructor'"),e.computed=!1,e.key=this.parsePrivateIdent()):this.parsePropertyName(e)},J.parseClassMethod=function(e,t,n,r){var i=e.key;"constructor"===e.kind?(t&&this.raise(i.start,"Constructor can't be a generator"),n&&this.raise(i.start,"Constructor can't be an async method")):e.static&&ne(e,"prototype")&&this.raise(i.start,"Classes may not have a static property named prototype");var a=e.value=this.parseMethod(t,n,r);return"get"===e.kind&&0!==a.params.length&&this.raiseRecoverable(a.start,"getter should have no params"),"set"===e.kind&&1!==a.params.length&&this.raiseRecoverable(a.start,"setter should have exactly one param"),"set"===e.kind&&"RestElement"===a.params[0].type&&this.raiseRecoverable(a.params[0].start,"Setter cannot use rest params"),this.finishNode(e,"MethodDefinition")},J.parseClassField=function(e){return ne(e,"constructor")?this.raise(e.key.start,"Classes can't have a field named 'constructor'"):e.static&&ne(e,"prototype")&&this.raise(e.key.start,"Classes can't have a static field named 'prototype'"),this.eat(v.eq)?(this.enterScope(576),e.value=this.parseMaybeAssign(),this.exitScope()):e.value=null,this.semicolon(),this.finishNode(e,"PropertyDefinition")},J.parseClassStaticBlock=function(e){e.body=[];var t=this.labels;for(this.labels=[],this.enterScope(320);this.type!==v.braceR;){var n=this.parseStatement(null);e.body.push(n)}return this.next(),this.exitScope(),this.labels=t,this.finishNode(e,"StaticBlock")},J.parseClassId=function(e,t){this.type===v.name?(e.id=this.parseIdent(),t&&this.checkLValSimple(e.id,2,!1)):(!0===t&&this.unexpected(),e.id=null)},J.parseClassSuper=function(e){e.superClass=this.eat(v._extends)?this.parseExprSubscripts(null,!1):null},J.enterClassBody=function(){var e={declared:Object.create(null),used:[]};return this.privateNameStack.push(e),e.declared},J.exitClassBody=function(){var e=this.privateNameStack.pop(),t=e.declared,n=e.used;if(this.options.checkPrivateFields)for(var r=this.privateNameStack.length,i=0===r?null:this.privateNameStack[r-1],a=0;a=11&&(this.eatContextual("as")?(e.exported=this.parseModuleExportName(),this.checkExport(t,e.exported,this.lastTokStart)):e.exported=null),this.expectContextual("from"),this.type!==v.string&&this.unexpected(),e.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(e.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(e,"ExportAllDeclaration")},J.parseExport=function(e,t){if(this.next(),this.eat(v.star))return this.parseExportAllDeclaration(e,t);if(this.eat(v._default))return this.checkExport(t,"default",this.lastTokStart),e.declaration=this.parseExportDefaultDeclaration(),this.finishNode(e,"ExportDefaultDeclaration");if(this.shouldParseExportStatement())e.declaration=this.parseExportDeclaration(e),"VariableDeclaration"===e.declaration.type?this.checkVariableExport(t,e.declaration.declarations):this.checkExport(t,e.declaration.id,e.declaration.id.start),e.specifiers=[],e.source=null,this.options.ecmaVersion>=16&&(e.attributes=[]);else{if(e.declaration=null,e.specifiers=this.parseExportSpecifiers(t),this.eatContextual("from"))this.type!==v.string&&this.unexpected(),e.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(e.attributes=this.parseWithClause());else{for(var n=0,r=e.specifiers;n=16&&(e.attributes=[])}this.semicolon()}return this.finishNode(e,"ExportNamedDeclaration")},J.parseExportDeclaration=function(e){return this.parseStatement(null)},J.parseExportDefaultDeclaration=function(){var e;if(this.type===v._function||(e=this.isAsyncFunction())){var t=this.startNode();return this.next(),e&&this.next(),this.parseFunction(t,4|Z,!1,e)}if(this.type===v._class){var n=this.startNode();return this.parseClass(n,"nullableID")}var r=this.parseMaybeAssign();return this.semicolon(),r},J.checkExport=function(e,t,n){e&&("string"!=typeof t&&(t="Identifier"===t.type?t.name:t.value),N(e,t)&&this.raiseRecoverable(n,"Duplicate export '"+t+"'"),e[t]=!0)},J.checkPatternExport=function(e,t){var n=t.type;if("Identifier"===n)this.checkExport(e,t,t.start);else if("ObjectPattern"===n)for(var r=0,i=t.properties;r=16&&(e.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(e,"ImportDeclaration")},J.parseImportSpecifier=function(){var e=this.startNode();return e.imported=this.parseModuleExportName(),this.eatContextual("as")?e.local=this.parseIdent():(this.checkUnreserved(e.imported),e.local=e.imported),this.checkLValSimple(e.local,2),this.finishNode(e,"ImportSpecifier")},J.parseImportDefaultSpecifier=function(){var e=this.startNode();return e.local=this.parseIdent(),this.checkLValSimple(e.local,2),this.finishNode(e,"ImportDefaultSpecifier")},J.parseImportNamespaceSpecifier=function(){var e=this.startNode();return this.next(),this.expectContextual("as"),e.local=this.parseIdent(),this.checkLValSimple(e.local,2),this.finishNode(e,"ImportNamespaceSpecifier")},J.parseImportSpecifiers=function(){var e=[],t=!0;if(this.type===v.name&&(e.push(this.parseImportDefaultSpecifier()),!this.eat(v.comma)))return e;if(this.type===v.star)return e.push(this.parseImportNamespaceSpecifier()),e;for(this.expect(v.braceL);!this.eat(v.braceR);){if(t)t=!1;else if(this.expect(v.comma),this.afterTrailingComma(v.braceR))break;e.push(this.parseImportSpecifier())}return e},J.parseWithClause=function(){var e=[];if(!this.eat(v._with))return e;this.expect(v.braceL);for(var t={},n=!0;!this.eat(v.braceR);){if(n)n=!1;else if(this.expect(v.comma),this.afterTrailingComma(v.braceR))break;var r=this.parseImportAttribute(),i="Identifier"===r.key.type?r.key.name:r.key.value;N(t,i)&&this.raiseRecoverable(r.key.start,"Duplicate attribute key '"+i+"'"),t[i]=!0,e.push(r)}return e},J.parseImportAttribute=function(){var e=this.startNode();return e.key=this.type===v.string?this.parseExprAtom():this.parseIdent("never"!==this.options.allowReserved),this.expect(v.colon),this.type!==v.string&&this.unexpected(),e.value=this.parseExprAtom(),this.finishNode(e,"ImportAttribute")},J.parseModuleExportName=function(){if(this.options.ecmaVersion>=13&&this.type===v.string){var e=this.parseLiteral(this.value);return O.test(e.value)&&this.raise(e.start,"An export name cannot include a lone surrogate."),e}return this.parseIdent(!0)},J.adaptDirectivePrologue=function(e){for(var t=0;t=5&&"ExpressionStatement"===e.type&&"Literal"===e.expression.type&&"string"==typeof e.expression.value&&('"'===this.input[e.start]||"'"===this.input[e.start])};var re=H.prototype;re.toAssignable=function(e,t,n){if(this.options.ecmaVersion>=6&&e)switch(e.type){case"Identifier":this.inAsync&&"await"===e.name&&this.raise(e.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":e.type="ObjectPattern",n&&this.checkPatternErrors(n,!0);for(var r=0,i=e.properties;r=8&&!s&&"async"===c.name&&!this.canInsertSemicolon()&&this.eat(v._function))return this.overrideContext(ae.f_expr),this.parseFunction(this.startNodeAt(a,o),0,!1,!0,t);if(i&&!this.canInsertSemicolon()){if(this.eat(v.arrow))return this.parseArrowExpression(this.startNodeAt(a,o),[c],!1,t);if(this.options.ecmaVersion>=8&&"async"===c.name&&this.type===v.name&&!s&&(!this.potentialArrowInForAwait||"of"!==this.value||this.containsEsc))return c=this.parseIdent(!1),!this.canInsertSemicolon()&&this.eat(v.arrow)||this.unexpected(),this.parseArrowExpression(this.startNodeAt(a,o),[c],!0,t)}return c;case v.regexp:var l=this.value;return(r=this.parseLiteral(l.value)).regex={pattern:l.pattern,flags:l.flags},r;case v.num:case v.string:return this.parseLiteral(this.value);case v._null:case v._true:case v._false:return(r=this.startNode()).value=this.type===v._null?null:this.type===v._true,r.raw=this.type.keyword,this.next(),this.finishNode(r,"Literal");case v.parenL:var u=this.start,d=this.parseParenAndDistinguishExpression(i,t);return e&&(e.parenthesizedAssign<0&&!this.isSimpleAssignTarget(d)&&(e.parenthesizedAssign=u),e.parenthesizedBind<0&&(e.parenthesizedBind=u)),d;case v.bracketL:return r=this.startNode(),this.next(),r.elements=this.parseExprList(v.bracketR,!0,!0,e),this.finishNode(r,"ArrayExpression");case v.braceL:return this.overrideContext(ae.b_expr),this.parseObj(!1,e);case v._function:return r=this.startNode(),this.next(),this.parseFunction(r,0);case v._class:return this.parseClass(this.startNode(),!1);case v._new:return this.parseNew();case v.backQuote:return this.parseTemplate();case v._import:return this.options.ecmaVersion>=11?this.parseExprImport(n):this.unexpected();default:return this.parseExprAtomDefault()}},se.parseExprAtomDefault=function(){this.unexpected()},se.parseExprImport=function(e){var t=this.startNode();if(this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import"),this.next(),this.type===v.parenL&&!e)return this.parseDynamicImport(t);if(this.type===v.dot){var n=this.startNodeAt(t.start,t.loc&&t.loc.start);return n.name="import",t.meta=this.finishNode(n,"Identifier"),this.parseImportMeta(t)}this.unexpected()},se.parseDynamicImport=function(e){if(this.next(),e.source=this.parseMaybeAssign(),this.options.ecmaVersion>=16)this.eat(v.parenR)?e.options=null:(this.expect(v.comma),this.afterTrailingComma(v.parenR)?e.options=null:(e.options=this.parseMaybeAssign(),this.eat(v.parenR)||(this.expect(v.comma),this.afterTrailingComma(v.parenR)||this.unexpected())));else if(!this.eat(v.parenR)){var t=this.start;this.eat(v.comma)&&this.eat(v.parenR)?this.raiseRecoverable(t,"Trailing comma is not allowed in import()"):this.unexpected(t)}return this.finishNode(e,"ImportExpression")},se.parseImportMeta=function(e){this.next();var t=this.containsEsc;return e.property=this.parseIdent(!0),"meta"!==e.property.name&&this.raiseRecoverable(e.property.start,"The only valid meta property for import is 'import.meta'"),t&&this.raiseRecoverable(e.start,"'import.meta' must not contain escaped characters"),"module"===this.options.sourceType||this.options.allowImportExportEverywhere||this.raiseRecoverable(e.start,"Cannot use 'import.meta' outside a module"),this.finishNode(e,"MetaProperty")},se.parseLiteral=function(e){var t=this.startNode();return t.value=e,t.raw=this.input.slice(this.start,this.end),110===t.raw.charCodeAt(t.raw.length-1)&&(t.bigint=null!=t.value?t.value.toString():t.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(t,"Literal")},se.parseParenExpression=function(){this.expect(v.parenL);var e=this.parseExpression();return this.expect(v.parenR),e},se.shouldParseArrow=function(e){return!this.canInsertSemicolon()},se.parseParenAndDistinguishExpression=function(e,t){var n,r=this.start,i=this.startLoc,a=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var o,s=this.start,c=this.startLoc,l=[],u=!0,d=!1,p=new z,m=this.yieldPos,f=this.awaitPos;for(this.yieldPos=0,this.awaitPos=0;this.type!==v.parenR;){if(u?u=!1:this.expect(v.comma),a&&this.afterTrailingComma(v.parenR,!0)){d=!0;break}if(this.type===v.ellipsis){o=this.start,l.push(this.parseParenItem(this.parseRestBinding())),this.type===v.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");break}l.push(this.parseMaybeAssign(!1,p,this.parseParenItem))}var _=this.lastTokEnd,h=this.lastTokEndLoc;if(this.expect(v.parenR),e&&this.shouldParseArrow(l)&&this.eat(v.arrow))return this.checkPatternErrors(p,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=m,this.awaitPos=f,this.parseParenArrowList(r,i,l,t);l.length&&!d||this.unexpected(this.lastTokStart),o&&this.unexpected(o),this.checkExpressionErrors(p,!0),this.yieldPos=m||this.yieldPos,this.awaitPos=f||this.awaitPos,l.length>1?((n=this.startNodeAt(s,c)).expressions=l,this.finishNodeAt(n,"SequenceExpression",_,h)):n=l[0]}else n=this.parseParenExpression();if(this.options.preserveParens){var g=this.startNodeAt(r,i);return g.expression=n,this.finishNode(g,"ParenthesizedExpression")}return n},se.parseParenItem=function(e){return e},se.parseParenArrowList=function(e,t,n,r){return this.parseArrowExpression(this.startNodeAt(e,t),n,!1,r)};var ue=[];se.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var e=this.startNode();if(this.next(),this.options.ecmaVersion>=6&&this.type===v.dot){var t=this.startNodeAt(e.start,e.loc&&e.loc.start);t.name="new",e.meta=this.finishNode(t,"Identifier"),this.next();var n=this.containsEsc;return e.property=this.parseIdent(!0),"target"!==e.property.name&&this.raiseRecoverable(e.property.start,"The only valid meta property for new is 'new.target'"),n&&this.raiseRecoverable(e.start,"'new.target' must not contain escaped characters"),this.allowNewDotTarget||this.raiseRecoverable(e.start,"'new.target' can only be used in functions and class static block"),this.finishNode(e,"MetaProperty")}var r=this.start,i=this.startLoc;return e.callee=this.parseSubscripts(this.parseExprAtom(null,!1,!0),r,i,!0,!1),this.eat(v.parenL)?e.arguments=this.parseExprList(v.parenR,this.options.ecmaVersion>=8,!1):e.arguments=ue,this.finishNode(e,"NewExpression")},se.parseTemplateElement=function(e){var t=e.isTagged,n=this.startNode();return this.type===v.invalidTemplate?(t||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),n.value={raw:this.value.replace(/\r\n?/g,"\n"),cooked:null}):n.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,"\n"),cooked:this.value},this.next(),n.tail=this.type===v.backQuote,this.finishNode(n,"TemplateElement")},se.parseTemplate=function(e){void 0===e&&(e={});var t=e.isTagged;void 0===t&&(t=!1);var n=this.startNode();this.next(),n.expressions=[];var r=this.parseTemplateElement({isTagged:t});for(n.quasis=[r];!r.tail;)this.type===v.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(v.dollarBraceL),n.expressions.push(this.parseExpression()),this.expect(v.braceR),n.quasis.push(r=this.parseTemplateElement({isTagged:t}));return this.next(),this.finishNode(n,"TemplateLiteral")},se.isAsyncProp=function(e){return!e.computed&&"Identifier"===e.key.type&&"async"===e.key.name&&(this.type===v.name||this.type===v.num||this.type===v.string||this.type===v.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===v.star)&&!b.test(this.input.slice(this.lastTokEnd,this.start))},se.parseObj=function(e,t){var n=this.startNode(),r=!0,i={};for(n.properties=[],this.next();!this.eat(v.braceR);){if(r)r=!1;else if(this.expect(v.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(v.braceR))break;var a=this.parseProperty(e,t);e||this.checkPropClash(a,i,t),n.properties.push(a)}return this.finishNode(n,e?"ObjectPattern":"ObjectExpression")},se.parseProperty=function(e,t){var n,r,i,a,o=this.startNode();if(this.options.ecmaVersion>=9&&this.eat(v.ellipsis))return e?(o.argument=this.parseIdent(!1),this.type===v.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.finishNode(o,"RestElement")):(o.argument=this.parseMaybeAssign(!1,t),this.type===v.comma&&t&&t.trailingComma<0&&(t.trailingComma=this.start),this.finishNode(o,"SpreadElement"));this.options.ecmaVersion>=6&&(o.method=!1,o.shorthand=!1,(e||t)&&(i=this.start,a=this.startLoc),e||(n=this.eat(v.star)));var s=this.containsEsc;return this.parsePropertyName(o),!e&&!s&&this.options.ecmaVersion>=8&&!n&&this.isAsyncProp(o)?(r=!0,n=this.options.ecmaVersion>=9&&this.eat(v.star),this.parsePropertyName(o)):r=!1,this.parsePropertyValue(o,e,n,r,i,a,t,s),this.finishNode(o,"Property")},se.parseGetterSetter=function(e){var t=e.key.name;this.parsePropertyName(e),e.value=this.parseMethod(!1),e.kind=t;var n="get"===e.kind?0:1;if(e.value.params.length!==n){var r=e.value.start;"get"===e.kind?this.raiseRecoverable(r,"getter should have no params"):this.raiseRecoverable(r,"setter should have exactly one param")}else"set"===e.kind&&"RestElement"===e.value.params[0].type&&this.raiseRecoverable(e.value.params[0].start,"Setter cannot use rest params")},se.parsePropertyValue=function(e,t,n,r,i,a,o,s){(n||r)&&this.type===v.colon&&this.unexpected(),this.eat(v.colon)?(e.value=t?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,o),e.kind="init"):this.options.ecmaVersion>=6&&this.type===v.parenL?(t&&this.unexpected(),e.method=!0,e.value=this.parseMethod(n,r),e.kind="init"):t||s||!(this.options.ecmaVersion>=5)||e.computed||"Identifier"!==e.key.type||"get"!==e.key.name&&"set"!==e.key.name||this.type===v.comma||this.type===v.braceR||this.type===v.eq?this.options.ecmaVersion>=6&&!e.computed&&"Identifier"===e.key.type?((n||r)&&this.unexpected(),this.checkUnreserved(e.key),"await"!==e.key.name||this.awaitIdentPos||(this.awaitIdentPos=i),t?e.value=this.parseMaybeDefault(i,a,this.copyNode(e.key)):this.type===v.eq&&o?(o.shorthandAssign<0&&(o.shorthandAssign=this.start),e.value=this.parseMaybeDefault(i,a,this.copyNode(e.key))):e.value=this.copyNode(e.key),e.kind="init",e.shorthand=!0):this.unexpected():((n||r)&&this.unexpected(),this.parseGetterSetter(e))},se.parsePropertyName=function(e){if(this.options.ecmaVersion>=6){if(this.eat(v.bracketL))return e.computed=!0,e.key=this.parseMaybeAssign(),this.expect(v.bracketR),e.key;e.computed=!1}return e.key=this.type===v.num||this.type===v.string?this.parseExprAtom():this.parseIdent("never"!==this.options.allowReserved)},se.initFunction=function(e){e.id=null,this.options.ecmaVersion>=6&&(e.generator=e.expression=!1),this.options.ecmaVersion>=8&&(e.async=!1)},se.parseMethod=function(e,t,n){var r=this.startNode(),i=this.yieldPos,a=this.awaitPos,o=this.awaitIdentPos;return this.initFunction(r),this.options.ecmaVersion>=6&&(r.generator=e),this.options.ecmaVersion>=8&&(r.async=!!t),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(64|j(t,r.generator)|(n?128:0)),this.expect(v.parenL),r.params=this.parseBindingList(v.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(r,!1,!0,!1),this.yieldPos=i,this.awaitPos=a,this.awaitIdentPos=o,this.finishNode(r,"FunctionExpression")},se.parseArrowExpression=function(e,t,n,r){var i=this.yieldPos,a=this.awaitPos,o=this.awaitIdentPos;return this.enterScope(16|j(n,!1)),this.initFunction(e),this.options.ecmaVersion>=8&&(e.async=!!n),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,e.params=this.toAssignableList(t,!0),this.parseFunctionBody(e,!0,!1,r),this.yieldPos=i,this.awaitPos=a,this.awaitIdentPos=o,this.finishNode(e,"ArrowFunctionExpression")},se.parseFunctionBody=function(e,t,n,r){var i=t&&this.type!==v.braceL,a=this.strict,o=!1;if(i)e.body=this.parseMaybeAssign(r),e.expression=!0,this.checkParams(e,!1);else{var s=this.options.ecmaVersion>=7&&!this.isSimpleParamList(e.params);a&&!s||(o=this.strictDirective(this.end))&&s&&this.raiseRecoverable(e.start,"Illegal 'use strict' directive in function with non-simple parameter list");var c=this.labels;this.labels=[],o&&(this.strict=!0),this.checkParams(e,!a&&!o&&!t&&!n&&this.isSimpleParamList(e.params)),this.strict&&e.id&&this.checkLValSimple(e.id,5),e.body=this.parseBlock(!1,void 0,o&&!a),e.expression=!1,this.adaptDirectivePrologue(e.body.body),this.labels=c}this.exitScope()},se.isSimpleParamList=function(e){for(var t=0,n=e;t-1||i.functions.indexOf(e)>-1||i.var.indexOf(e)>-1,i.lexical.push(e),this.inModule&&1&i.flags&&delete this.undefinedExports[e]}else if(4===t)this.currentScope().lexical.push(e);else if(3===t){var a=this.currentScope();r=this.treatFunctionsAsVar?a.lexical.indexOf(e)>-1:a.lexical.indexOf(e)>-1||a.var.indexOf(e)>-1,a.functions.push(e)}else for(var o=this.scopeStack.length-1;o>=0;--o){var s=this.scopeStack[o];if(s.lexical.indexOf(e)>-1&&!(32&s.flags&&s.lexical[0]===e)||!this.treatFunctionsAsVarInScope(s)&&s.functions.indexOf(e)>-1){r=!0;break}if(s.var.push(e),this.inModule&&1&s.flags&&delete this.undefinedExports[e],s.flags&K)break}r&&this.raiseRecoverable(n,"Identifier '"+e+"' has already been declared")},pe.checkLocalExport=function(e){-1===this.scopeStack[0].lexical.indexOf(e.name)&&-1===this.scopeStack[0].var.indexOf(e.name)&&(this.undefinedExports[e.name]=e)},pe.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},pe.currentVarScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(771&t.flags)return t}},pe.currentThisScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(771&t.flags&&!(16&t.flags))return t}};var fe=function(e,t,n){this.type="",this.start=t,this.end=0,e.options.locations&&(this.loc=new M(e,n)),e.options.directSourceFile&&(this.sourceFile=e.options.directSourceFile),e.options.ranges&&(this.range=[t,0])},_e=H.prototype;function he(e,t,n,r){return e.type=t,e.end=n,this.options.locations&&(e.loc.end=r),this.options.ranges&&(e.range[1]=n),e}_e.startNode=function(){return new fe(this,this.start,this.startLoc)},_e.startNodeAt=function(e,t){return new fe(this,e,t)},_e.finishNode=function(e,t){return he.call(this,e,t,this.lastTokEnd,this.lastTokEndLoc)},_e.finishNodeAt=function(e,t,n,r){return he.call(this,e,t,n,r)},_e.copyNode=function(e){var t=new fe(this,e.start,this.startLoc);for(var n in e)t[n]=e[n];return t};var ge="ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS",ye=ge+" Extended_Pictographic",ve=ye+" EBase EComp EMod EPres ExtPict",be={9:ge,10:ye,11:ye,12:ve,13:ve,14:ve},Ee={9:"",10:"",11:"",12:"",13:"",14:"Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji"},xe="Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu",Se="Adlam Adlm Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb",Te=Se+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",Ce=Te+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",De=Ce+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi",Le=De+" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith",Ae={9:Se,10:Te,11:Ce,12:De,13:Le,14:Le+" Berf Beria_Erfe Gara Garay Gukh Gurung_Khema Hrkt Katakana_Or_Hiragana Kawi Kirat_Rai Krai Nag_Mundari Nagm Ol_Onal Onao Sidetic Sidt Sunu Sunuwar Tai_Yo Tayo Todhri Todr Tolong_Siki Tols Tulu_Tigalari Tutg Unknown Zzzz"},Ne={};function ke(e){var t=Ne[e]={binary:P(be[e]+" "+xe),binaryOfStrings:P(Ee[e]),nonBinary:{General_Category:P(xe),Script:P(Ae[e])}};t.nonBinary.Script_Extensions=t.nonBinary.Script,t.nonBinary.gc=t.nonBinary.General_Category,t.nonBinary.sc=t.nonBinary.Script,t.nonBinary.scx=t.nonBinary.Script_Extensions}for(var Ie=0,Pe=[9,10,11,12,13,14];Ie=6?"uy":"")+(e.options.ecmaVersion>=9?"s":"")+(e.options.ecmaVersion>=13?"d":"")+(e.options.ecmaVersion>=15?"v":""),this.unicodeProperties=Ne[e.options.ecmaVersion>=14?14:e.options.ecmaVersion],this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchV=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue="",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=Object.create(null),this.backReferenceNames=[],this.branchID=null};function Me(e){return 105===e||109===e||115===e}function Fe(e){return 36===e||e>=40&&e<=43||46===e||63===e||e>=91&&e<=94||e>=123&&e<=125}function Ge(e){return e>=65&&e<=90||e>=97&&e<=122}Re.prototype.reset=function(e,t,n){var r=-1!==n.indexOf("v"),i=-1!==n.indexOf("u");this.start=0|e,this.source=t+"",this.flags=n,r&&this.parser.options.ecmaVersion>=15?(this.switchU=!0,this.switchV=!0,this.switchN=!0):(this.switchU=i&&this.parser.options.ecmaVersion>=6,this.switchV=!1,this.switchN=i&&this.parser.options.ecmaVersion>=9)},Re.prototype.raise=function(e){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+e)},Re.prototype.at=function(e,t){void 0===t&&(t=!1);var n=this.source,r=n.length;if(e>=r)return-1;var i=n.charCodeAt(e);if(!t&&!this.switchU||i<=55295||i>=57344||e+1>=r)return i;var a=n.charCodeAt(e+1);return a>=56320&&a<=57343?(i<<10)+a-56613888:i},Re.prototype.nextIndex=function(e,t){void 0===t&&(t=!1);var n=this.source,r=n.length;if(e>=r)return r;var i,a=n.charCodeAt(e);return!t&&!this.switchU||a<=55295||a>=57344||e+1>=r||(i=n.charCodeAt(e+1))<56320||i>57343?e+1:e+2},Re.prototype.current=function(e){return void 0===e&&(e=!1),this.at(this.pos,e)},Re.prototype.lookahead=function(e){return void 0===e&&(e=!1),this.at(this.nextIndex(this.pos,e),e)},Re.prototype.advance=function(e){void 0===e&&(e=!1),this.pos=this.nextIndex(this.pos,e)},Re.prototype.eat=function(e,t){return void 0===t&&(t=!1),this.current(t)===e&&(this.advance(t),!0)},Re.prototype.eatChars=function(e,t){void 0===t&&(t=!1);for(var n=this.pos,r=0,i=e;r-1&&this.raise(e.start,"Duplicate regular expression flag"),"u"===o&&(r=!0),"v"===o&&(i=!0)}this.options.ecmaVersion>=15&&r&&i&&this.raise(e.start,"Invalid regular expression flag")},we.validateRegExpPattern=function(e){this.regexp_pattern(e),!e.switchN&&this.options.ecmaVersion>=9&&function(e){for(var t in e)return!0;return!1}(e.groupNames)&&(e.switchN=!0,this.regexp_pattern(e))},we.regexp_pattern=function(e){e.pos=0,e.lastIntValue=0,e.lastStringValue="",e.lastAssertionIsQuantifiable=!1,e.numCapturingParens=0,e.maxBackReference=0,e.groupNames=Object.create(null),e.backReferenceNames.length=0,e.branchID=null,this.regexp_disjunction(e),e.pos!==e.source.length&&(e.eat(41)&&e.raise("Unmatched ')'"),(e.eat(93)||e.eat(125))&&e.raise("Lone quantifier brackets")),e.maxBackReference>e.numCapturingParens&&e.raise("Invalid escape");for(var t=0,n=e.backReferenceNames;t=16;for(t&&(e.branchID=new Oe(e.branchID,null)),this.regexp_alternative(e);e.eat(124);)t&&(e.branchID=e.branchID.sibling()),this.regexp_alternative(e);t&&(e.branchID=e.branchID.parent),this.regexp_eatQuantifier(e,!0)&&e.raise("Nothing to repeat"),e.eat(123)&&e.raise("Lone quantifier brackets")},we.regexp_alternative=function(e){for(;e.pos=9&&(n=e.eat(60)),e.eat(61)||e.eat(33))return this.regexp_disjunction(e),e.eat(41)||e.raise("Unterminated group"),e.lastAssertionIsQuantifiable=!n,!0}return e.pos=t,!1},we.regexp_eatQuantifier=function(e,t){return void 0===t&&(t=!1),!!this.regexp_eatQuantifierPrefix(e,t)&&(e.eat(63),!0)},we.regexp_eatQuantifierPrefix=function(e,t){return e.eat(42)||e.eat(43)||e.eat(63)||this.regexp_eatBracedQuantifier(e,t)},we.regexp_eatBracedQuantifier=function(e,t){var n=e.pos;if(e.eat(123)){var r=0,i=-1;if(this.regexp_eatDecimalDigits(e)&&(r=e.lastIntValue,e.eat(44)&&this.regexp_eatDecimalDigits(e)&&(i=e.lastIntValue),e.eat(125)))return-1!==i&&i=16){var n=this.regexp_eatModifiers(e),r=e.eat(45);if(n||r){for(var i=0;i-1&&e.raise("Duplicate regular expression modifiers")}if(r){var o=this.regexp_eatModifiers(e);n||o||58!==e.current()||e.raise("Invalid regular expression modifiers");for(var s=0;s-1||n.indexOf(c)>-1)&&e.raise("Duplicate regular expression modifiers")}}}}if(e.eat(58)){if(this.regexp_disjunction(e),e.eat(41))return!0;e.raise("Unterminated group")}}e.pos=t}return!1},we.regexp_eatCapturingGroup=function(e){if(e.eat(40)){if(this.options.ecmaVersion>=9?this.regexp_groupSpecifier(e):63===e.current()&&e.raise("Invalid group"),this.regexp_disjunction(e),e.eat(41))return e.numCapturingParens+=1,!0;e.raise("Unterminated group")}return!1},we.regexp_eatModifiers=function(e){for(var t="",n=0;-1!==(n=e.current())&&Me(n);)t+=w(n),e.advance();return t},we.regexp_eatExtendedAtom=function(e){return e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)||this.regexp_eatInvalidBracedQuantifier(e)||this.regexp_eatExtendedPatternCharacter(e)},we.regexp_eatInvalidBracedQuantifier=function(e){return this.regexp_eatBracedQuantifier(e,!0)&&e.raise("Nothing to repeat"),!1},we.regexp_eatSyntaxCharacter=function(e){var t=e.current();return!!Fe(t)&&(e.lastIntValue=t,e.advance(),!0)},we.regexp_eatPatternCharacters=function(e){for(var t=e.pos,n=0;-1!==(n=e.current())&&!Fe(n);)e.advance();return e.pos!==t},we.regexp_eatExtendedPatternCharacter=function(e){var t=e.current();return!(-1===t||36===t||t>=40&&t<=43||46===t||63===t||91===t||94===t||124===t||(e.advance(),0))},we.regexp_groupSpecifier=function(e){if(e.eat(63)){this.regexp_eatGroupName(e)||e.raise("Invalid group");var t=this.options.ecmaVersion>=16,n=e.groupNames[e.lastStringValue];if(n)if(t)for(var r=0,i=n;r=11,r=e.current(n);return e.advance(n),92===r&&this.regexp_eatRegExpUnicodeEscapeSequence(e,n)&&(r=e.lastIntValue),function(e){return d(e,!0)||36===e||95===e}(r)?(e.lastIntValue=r,!0):(e.pos=t,!1)},we.regexp_eatRegExpIdentifierPart=function(e){var t=e.pos,n=this.options.ecmaVersion>=11,r=e.current(n);return e.advance(n),92===r&&this.regexp_eatRegExpUnicodeEscapeSequence(e,n)&&(r=e.lastIntValue),function(e){return p(e,!0)||36===e||95===e||8204===e||8205===e}(r)?(e.lastIntValue=r,!0):(e.pos=t,!1)},we.regexp_eatAtomEscape=function(e){return!!(this.regexp_eatBackReference(e)||this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)||e.switchN&&this.regexp_eatKGroupName(e))||(e.switchU&&(99===e.current()&&e.raise("Invalid unicode escape"),e.raise("Invalid escape")),!1)},we.regexp_eatBackReference=function(e){var t=e.pos;if(this.regexp_eatDecimalEscape(e)){var n=e.lastIntValue;if(e.switchU)return n>e.maxBackReference&&(e.maxBackReference=n),!0;if(n<=e.numCapturingParens)return!0;e.pos=t}return!1},we.regexp_eatKGroupName=function(e){if(e.eat(107)){if(this.regexp_eatGroupName(e))return e.backReferenceNames.push(e.lastStringValue),!0;e.raise("Invalid named reference")}return!1},we.regexp_eatCharacterEscape=function(e){return this.regexp_eatControlEscape(e)||this.regexp_eatCControlLetter(e)||this.regexp_eatZero(e)||this.regexp_eatHexEscapeSequence(e)||this.regexp_eatRegExpUnicodeEscapeSequence(e,!1)||!e.switchU&&this.regexp_eatLegacyOctalEscapeSequence(e)||this.regexp_eatIdentityEscape(e)},we.regexp_eatCControlLetter=function(e){var t=e.pos;if(e.eat(99)){if(this.regexp_eatControlLetter(e))return!0;e.pos=t}return!1},we.regexp_eatZero=function(e){return 48===e.current()&&!Ve(e.lookahead())&&(e.lastIntValue=0,e.advance(),!0)},we.regexp_eatControlEscape=function(e){var t=e.current();return 116===t?(e.lastIntValue=9,e.advance(),!0):110===t?(e.lastIntValue=10,e.advance(),!0):118===t?(e.lastIntValue=11,e.advance(),!0):102===t?(e.lastIntValue=12,e.advance(),!0):114===t&&(e.lastIntValue=13,e.advance(),!0)},we.regexp_eatControlLetter=function(e){var t=e.current();return!!Ge(t)&&(e.lastIntValue=t%32,e.advance(),!0)},we.regexp_eatRegExpUnicodeEscapeSequence=function(e,t){void 0===t&&(t=!1);var n,r=e.pos,i=t||e.switchU;if(e.eat(117)){if(this.regexp_eatFixedHexDigits(e,4)){var a=e.lastIntValue;if(i&&a>=55296&&a<=56319){var o=e.pos;if(e.eat(92)&&e.eat(117)&&this.regexp_eatFixedHexDigits(e,4)){var s=e.lastIntValue;if(s>=56320&&s<=57343)return e.lastIntValue=1024*(a-55296)+(s-56320)+65536,!0}e.pos=o,e.lastIntValue=a}return!0}if(i&&e.eat(123)&&this.regexp_eatHexDigits(e)&&e.eat(125)&&((n=e.lastIntValue)>=0&&n<=1114111))return!0;i&&e.raise("Invalid unicode escape"),e.pos=r}return!1},we.regexp_eatIdentityEscape=function(e){if(e.switchU)return!!this.regexp_eatSyntaxCharacter(e)||!!e.eat(47)&&(e.lastIntValue=47,!0);var t=e.current();return!(99===t||e.switchN&&107===t||(e.lastIntValue=t,e.advance(),0))},we.regexp_eatDecimalEscape=function(e){e.lastIntValue=0;var t=e.current();if(t>=49&&t<=57){do{e.lastIntValue=10*e.lastIntValue+(t-48),e.advance()}while((t=e.current())>=48&&t<=57);return!0}return!1};function Be(e){return Ge(e)||95===e}function Ue(e){return Be(e)||Ve(e)}function Ve(e){return e>=48&&e<=57}function Ke(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function je(e){return e>=65&&e<=70?e-65+10:e>=97&&e<=102?e-97+10:e-48}function He(e){return e>=48&&e<=55}we.regexp_eatCharacterClassEscape=function(e){var t=e.current();if(function(e){return 100===e||68===e||115===e||83===e||119===e||87===e}(t))return e.lastIntValue=-1,e.advance(),1;var n=!1;if(e.switchU&&this.options.ecmaVersion>=9&&((n=80===t)||112===t)){var r;if(e.lastIntValue=-1,e.advance(),e.eat(123)&&(r=this.regexp_eatUnicodePropertyValueExpression(e))&&e.eat(125))return n&&2===r&&e.raise("Invalid property name"),r;e.raise("Invalid property name")}return 0},we.regexp_eatUnicodePropertyValueExpression=function(e){var t=e.pos;if(this.regexp_eatUnicodePropertyName(e)&&e.eat(61)){var n=e.lastStringValue;if(this.regexp_eatUnicodePropertyValue(e)){var r=e.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(e,n,r),1}}if(e.pos=t,this.regexp_eatLoneUnicodePropertyNameOrValue(e)){var i=e.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(e,i)}return 0},we.regexp_validateUnicodePropertyNameAndValue=function(e,t,n){N(e.unicodeProperties.nonBinary,t)||e.raise("Invalid property name"),e.unicodeProperties.nonBinary[t].test(n)||e.raise("Invalid property value")},we.regexp_validateUnicodePropertyNameOrValue=function(e,t){return e.unicodeProperties.binary.test(t)?1:e.switchV&&e.unicodeProperties.binaryOfStrings.test(t)?2:void e.raise("Invalid property name")},we.regexp_eatUnicodePropertyName=function(e){var t=0;for(e.lastStringValue="";Be(t=e.current());)e.lastStringValue+=w(t),e.advance();return""!==e.lastStringValue},we.regexp_eatUnicodePropertyValue=function(e){var t=0;for(e.lastStringValue="";Ue(t=e.current());)e.lastStringValue+=w(t),e.advance();return""!==e.lastStringValue},we.regexp_eatLoneUnicodePropertyNameOrValue=function(e){return this.regexp_eatUnicodePropertyValue(e)},we.regexp_eatCharacterClass=function(e){if(e.eat(91)){var t=e.eat(94),n=this.regexp_classContents(e);return e.eat(93)||e.raise("Unterminated character class"),t&&2===n&&e.raise("Negated character class may contain strings"),!0}return!1},we.regexp_classContents=function(e){return 93===e.current()?1:e.switchV?this.regexp_classSetExpression(e):(this.regexp_nonEmptyClassRanges(e),1)},we.regexp_nonEmptyClassRanges=function(e){for(;this.regexp_eatClassAtom(e);){var t=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassAtom(e)){var n=e.lastIntValue;!e.switchU||-1!==t&&-1!==n||e.raise("Invalid character class"),-1!==t&&-1!==n&&t>n&&e.raise("Range out of order in character class")}}},we.regexp_eatClassAtom=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatClassEscape(e))return!0;if(e.switchU){var n=e.current();(99===n||He(n))&&e.raise("Invalid class escape"),e.raise("Invalid escape")}e.pos=t}var r=e.current();return 93!==r&&(e.lastIntValue=r,e.advance(),!0)},we.regexp_eatClassEscape=function(e){var t=e.pos;if(e.eat(98))return e.lastIntValue=8,!0;if(e.switchU&&e.eat(45))return e.lastIntValue=45,!0;if(!e.switchU&&e.eat(99)){if(this.regexp_eatClassControlLetter(e))return!0;e.pos=t}return this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)},we.regexp_classSetExpression=function(e){var t,n=1;if(this.regexp_eatClassSetRange(e));else if(t=this.regexp_eatClassSetOperand(e)){2===t&&(n=2);for(var r=e.pos;e.eatChars([38,38]);)38!==e.current()&&(t=this.regexp_eatClassSetOperand(e))?2!==t&&(n=1):e.raise("Invalid character in character class");if(r!==e.pos)return n;for(;e.eatChars([45,45]);)this.regexp_eatClassSetOperand(e)||e.raise("Invalid character in character class");if(r!==e.pos)return n}else e.raise("Invalid character in character class");for(;;)if(!this.regexp_eatClassSetRange(e)){if(!(t=this.regexp_eatClassSetOperand(e)))return n;2===t&&(n=2)}},we.regexp_eatClassSetRange=function(e){var t=e.pos;if(this.regexp_eatClassSetCharacter(e)){var n=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassSetCharacter(e)){var r=e.lastIntValue;return-1!==n&&-1!==r&&n>r&&e.raise("Range out of order in character class"),!0}e.pos=t}return!1},we.regexp_eatClassSetOperand=function(e){return this.regexp_eatClassSetCharacter(e)?1:this.regexp_eatClassStringDisjunction(e)||this.regexp_eatNestedClass(e)},we.regexp_eatNestedClass=function(e){var t=e.pos;if(e.eat(91)){var n=e.eat(94),r=this.regexp_classContents(e);if(e.eat(93))return n&&2===r&&e.raise("Negated character class may contain strings"),r;e.pos=t}if(e.eat(92)){var i=this.regexp_eatCharacterClassEscape(e);if(i)return i;e.pos=t}return null},we.regexp_eatClassStringDisjunction=function(e){var t=e.pos;if(e.eatChars([92,113])){if(e.eat(123)){var n=this.regexp_classStringDisjunctionContents(e);if(e.eat(125))return n}else e.raise("Invalid escape");e.pos=t}return null},we.regexp_classStringDisjunctionContents=function(e){for(var t=this.regexp_classString(e);e.eat(124);)2===this.regexp_classString(e)&&(t=2);return t},we.regexp_classString=function(e){for(var t=0;this.regexp_eatClassSetCharacter(e);)t++;return 1===t?1:2},we.regexp_eatClassSetCharacter=function(e){var t=e.pos;if(e.eat(92))return!(!this.regexp_eatCharacterEscape(e)&&!this.regexp_eatClassSetReservedPunctuator(e)&&(e.eat(98)?(e.lastIntValue=8,0):(e.pos=t,1)));var n=e.current();return!(n<0||n===e.lookahead()&&function(e){return 33===e||e>=35&&e<=38||e>=42&&e<=44||46===e||e>=58&&e<=64||94===e||96===e||126===e}(n)||function(e){return 40===e||41===e||45===e||47===e||e>=91&&e<=93||e>=123&&e<=125}(n)||(e.advance(),e.lastIntValue=n,0))},we.regexp_eatClassSetReservedPunctuator=function(e){var t=e.current();return!!function(e){return 33===e||35===e||37===e||38===e||44===e||45===e||e>=58&&e<=62||64===e||96===e||126===e}(t)&&(e.lastIntValue=t,e.advance(),!0)},we.regexp_eatClassControlLetter=function(e){var t=e.current();return!(!Ve(t)&&95!==t||(e.lastIntValue=t%32,e.advance(),0))},we.regexp_eatHexEscapeSequence=function(e){var t=e.pos;if(e.eat(120)){if(this.regexp_eatFixedHexDigits(e,2))return!0;e.switchU&&e.raise("Invalid escape"),e.pos=t}return!1},we.regexp_eatDecimalDigits=function(e){var t=e.pos,n=0;for(e.lastIntValue=0;Ve(n=e.current());)e.lastIntValue=10*e.lastIntValue+(n-48),e.advance();return e.pos!==t},we.regexp_eatHexDigits=function(e){var t=e.pos,n=0;for(e.lastIntValue=0;Ke(n=e.current());)e.lastIntValue=16*e.lastIntValue+je(n),e.advance();return e.pos!==t},we.regexp_eatLegacyOctalEscapeSequence=function(e){if(this.regexp_eatOctalDigit(e)){var t=e.lastIntValue;if(this.regexp_eatOctalDigit(e)){var n=e.lastIntValue;t<=3&&this.regexp_eatOctalDigit(e)?e.lastIntValue=64*t+8*n+e.lastIntValue:e.lastIntValue=8*t+n}else e.lastIntValue=t;return!0}return!1},we.regexp_eatOctalDigit=function(e){var t=e.current();return He(t)?(e.lastIntValue=t-48,e.advance(),!0):(e.lastIntValue=0,!1)},we.regexp_eatFixedHexDigits=function(e,t){var n=e.pos;e.lastIntValue=0;for(var r=0;r=this.input.length?this.finishToken(v.eof):e.override?e.override(this):void this.readToken(this.fullCharCodeAtPos())},$e.readToken=function(e){return d(e,this.options.ecmaVersion>=6)||92===e?this.readWord():this.getTokenFromCode(e)},$e.fullCharCodeAt=function(e){var t=this.input.charCodeAt(e);if(t<=55295||t>=56320)return t;var n=this.input.charCodeAt(e+1);return n<=56319||n>=57344?t:(t<<10)+n-56613888},$e.fullCharCodeAtPos=function(){return this.fullCharCodeAt(this.pos)},$e.skipBlockComment=function(){var e=this.options.onComment&&this.curPosition(),t=this.pos,n=this.input.indexOf("*/",this.pos+=2);if(-1===n&&this.raise(this.pos-2,"Unterminated comment"),this.pos=n+2,this.options.locations)for(var r=void 0,i=t;(r=S(this.input,i,this.pos))>-1;)++this.curLine,i=this.lineStart=r;this.options.onComment&&this.options.onComment(!0,this.input.slice(t+2,n),t,this.pos,e,this.curPosition())},$e.skipLineComment=function(e){for(var t=this.pos,n=this.options.onComment&&this.curPosition(),r=this.input.charCodeAt(this.pos+=e);this.pos8&&e<14||e>=5760&&T.test(String.fromCharCode(e))))break e;++this.pos}}},$e.finishToken=function(e,t){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var n=this.type;this.type=e,this.value=t,this.updateContext(n)},$e.readToken_dot=function(){var e=this.input.charCodeAt(this.pos+1);if(e>=48&&e<=57)return this.readNumber(!0);var t=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&46===e&&46===t?(this.pos+=3,this.finishToken(v.ellipsis)):(++this.pos,this.finishToken(v.dot))},$e.readToken_slash=function(){var e=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):61===e?this.finishOp(v.assign,2):this.finishOp(v.slash,1)},$e.readToken_mult_modulo_exp=function(e){var t=this.input.charCodeAt(this.pos+1),n=1,r=42===e?v.star:v.modulo;return this.options.ecmaVersion>=7&&42===e&&42===t&&(++n,r=v.starstar,t=this.input.charCodeAt(this.pos+2)),61===t?this.finishOp(v.assign,n+1):this.finishOp(r,n)},$e.readToken_pipe_amp=function(e){var t=this.input.charCodeAt(this.pos+1);return t===e?this.options.ecmaVersion>=12&&61===this.input.charCodeAt(this.pos+2)?this.finishOp(v.assign,3):this.finishOp(124===e?v.logicalOR:v.logicalAND,2):61===t?this.finishOp(v.assign,2):this.finishOp(124===e?v.bitwiseOR:v.bitwiseAND,1)},$e.readToken_caret=function(){return 61===this.input.charCodeAt(this.pos+1)?this.finishOp(v.assign,2):this.finishOp(v.bitwiseXOR,1)},$e.readToken_plus_min=function(e){var t=this.input.charCodeAt(this.pos+1);return t===e?45!==t||this.inModule||62!==this.input.charCodeAt(this.pos+2)||0!==this.lastTokEnd&&!b.test(this.input.slice(this.lastTokEnd,this.pos))?this.finishOp(v.incDec,2):(this.skipLineComment(3),this.skipSpace(),this.nextToken()):61===t?this.finishOp(v.assign,2):this.finishOp(v.plusMin,1)},$e.readToken_lt_gt=function(e){var t=this.input.charCodeAt(this.pos+1),n=1;return t===e?(n=62===e&&62===this.input.charCodeAt(this.pos+2)?3:2,61===this.input.charCodeAt(this.pos+n)?this.finishOp(v.assign,n+1):this.finishOp(v.bitShift,n)):33!==t||60!==e||this.inModule||45!==this.input.charCodeAt(this.pos+2)||45!==this.input.charCodeAt(this.pos+3)?(61===t&&(n=2),this.finishOp(v.relational,n)):(this.skipLineComment(4),this.skipSpace(),this.nextToken())},$e.readToken_eq_excl=function(e){var t=this.input.charCodeAt(this.pos+1);return 61===t?this.finishOp(v.equality,61===this.input.charCodeAt(this.pos+2)?3:2):61===e&&62===t&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(v.arrow)):this.finishOp(61===e?v.eq:v.prefix,1)},$e.readToken_question=function(){var e=this.options.ecmaVersion;if(e>=11){var t=this.input.charCodeAt(this.pos+1);if(46===t){var n=this.input.charCodeAt(this.pos+2);if(n<48||n>57)return this.finishOp(v.questionDot,2)}if(63===t)return e>=12&&61===this.input.charCodeAt(this.pos+2)?this.finishOp(v.assign,3):this.finishOp(v.coalesce,2)}return this.finishOp(v.question,1)},$e.readToken_numberSign=function(){var e=35;if(this.options.ecmaVersion>=13&&(++this.pos,d(e=this.fullCharCodeAtPos(),!0)||92===e))return this.finishToken(v.privateId,this.readWord1());this.raise(this.pos,"Unexpected character '"+w(e)+"'")},$e.getTokenFromCode=function(e){switch(e){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(v.parenL);case 41:return++this.pos,this.finishToken(v.parenR);case 59:return++this.pos,this.finishToken(v.semi);case 44:return++this.pos,this.finishToken(v.comma);case 91:return++this.pos,this.finishToken(v.bracketL);case 93:return++this.pos,this.finishToken(v.bracketR);case 123:return++this.pos,this.finishToken(v.braceL);case 125:return++this.pos,this.finishToken(v.braceR);case 58:return++this.pos,this.finishToken(v.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(v.backQuote);case 48:var t=this.input.charCodeAt(this.pos+1);if(120===t||88===t)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(111===t||79===t)return this.readRadixNumber(8);if(98===t||66===t)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(e);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(e);case 124:case 38:return this.readToken_pipe_amp(e);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(e);case 60:case 62:return this.readToken_lt_gt(e);case 61:case 33:return this.readToken_eq_excl(e);case 63:return this.readToken_question();case 126:return this.finishOp(v.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,"Unexpected character '"+w(e)+"'")},$e.finishOp=function(e,t){var n=this.input.slice(this.pos,this.pos+t);return this.pos+=t,this.finishToken(e,n)},$e.readRegexp=function(){for(var e,t,n=this.pos;;){this.pos>=this.input.length&&this.raise(n,"Unterminated regular expression");var r=this.input.charAt(this.pos);if(b.test(r)&&this.raise(n,"Unterminated regular expression"),e)e=!1;else{if("["===r)t=!0;else if("]"===r&&t)t=!1;else if("/"===r&&!t)break;e="\\"===r}++this.pos}var i=this.input.slice(n,this.pos);++this.pos;var a=this.pos,o=this.readWord1();this.containsEsc&&this.unexpected(a);var s=this.regexpState||(this.regexpState=new Re(this));s.reset(n,i,o),this.validateRegExpFlags(s),this.validateRegExpPattern(s);var c=null;try{c=new RegExp(i,o)}catch(e){}return this.finishToken(v.regexp,{pattern:i,flags:o,value:c})},$e.readInt=function(e,t,n){for(var r=this.options.ecmaVersion>=12&&void 0===t,i=n&&48===this.input.charCodeAt(this.pos),a=this.pos,o=0,s=0,c=0,l=null==t?1/0:t;c=97?u-97+10:u>=65?u-65+10:u>=48&&u<=57?u-48:1/0)>=e)break;s=u,o=o*e+d}}return r&&95===s&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===a||null!=t&&this.pos-a!==t?null:o},$e.readRadixNumber=function(e){var t=this.pos;this.pos+=2;var n=this.readInt(e);return null==n&&this.raise(this.start+2,"Expected number in radix "+e),this.options.ecmaVersion>=11&&110===this.input.charCodeAt(this.pos)?(n=qe(this.input.slice(t,this.pos)),++this.pos):d(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(v.num,n)},$e.readNumber=function(e){var t=this.pos;e||null!==this.readInt(10,void 0,!0)||this.raise(t,"Invalid number");var n=this.pos-t>=2&&48===this.input.charCodeAt(t);n&&this.strict&&this.raise(t,"Invalid number");var r=this.input.charCodeAt(this.pos);if(!n&&!e&&this.options.ecmaVersion>=11&&110===r){var i=qe(this.input.slice(t,this.pos));return++this.pos,d(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(v.num,i)}n&&/[89]/.test(this.input.slice(t,this.pos))&&(n=!1),46!==r||n||(++this.pos,this.readInt(10),r=this.input.charCodeAt(this.pos)),69!==r&&101!==r||n||(43!==(r=this.input.charCodeAt(++this.pos))&&45!==r||++this.pos,null===this.readInt(10)&&this.raise(t,"Invalid number")),d(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var a,o=(a=this.input.slice(t,this.pos),n?parseInt(a,8):parseFloat(a.replace(/_/g,"")));return this.finishToken(v.num,o)},$e.readCodePoint=function(){var e;if(123===this.input.charCodeAt(this.pos)){this.options.ecmaVersion<6&&this.unexpected();var t=++this.pos;e=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,e>1114111&&this.invalidStringToken(t,"Code point out of bounds")}else e=this.readHexChar(4);return e},$e.readString=function(e){for(var t="",n=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var r=this.input.charCodeAt(this.pos);if(r===e)break;92===r?(t+=this.input.slice(n,this.pos),t+=this.readEscapedChar(!1),n=this.pos):8232===r||8233===r?(this.options.ecmaVersion<10&&this.raise(this.start,"Unterminated string constant"),++this.pos,this.options.locations&&(this.curLine++,this.lineStart=this.pos)):(x(r)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return t+=this.input.slice(n,this.pos++),this.finishToken(v.string,t)};var ze={};$e.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(e){if(e!==ze)throw e;this.readInvalidTemplateToken()}this.inTemplateElement=!1},$e.invalidStringToken=function(e,t){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw ze;this.raise(e,t)},$e.readTmplToken=function(){for(var e="",t=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var n=this.input.charCodeAt(this.pos);if(96===n||36===n&&123===this.input.charCodeAt(this.pos+1))return this.pos!==this.start||this.type!==v.template&&this.type!==v.invalidTemplate?(e+=this.input.slice(t,this.pos),this.finishToken(v.template,e)):36===n?(this.pos+=2,this.finishToken(v.dollarBraceL)):(++this.pos,this.finishToken(v.backQuote));if(92===n)e+=this.input.slice(t,this.pos),e+=this.readEscapedChar(!0),t=this.pos;else if(x(n)){switch(e+=this.input.slice(t,this.pos),++this.pos,n){case 13:10===this.input.charCodeAt(this.pos)&&++this.pos;case 10:e+="\n";break;default:e+=String.fromCharCode(n)}this.options.locations&&(++this.curLine,this.lineStart=this.pos),t=this.pos}else++this.pos}},$e.readInvalidTemplateToken=function(){for(;this.pos=48&&t<=55){var r=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],i=parseInt(r,8);return i>255&&(r=r.slice(0,-1),i=parseInt(r,8)),this.pos+=r.length-1,t=this.input.charCodeAt(this.pos),"0"===r&&56!==t&&57!==t||!this.strict&&!e||this.invalidStringToken(this.pos-1-r.length,e?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(i)}return x(t)?(this.options.locations&&(this.lineStart=this.pos,++this.curLine),""):String.fromCharCode(t)}},$e.readHexChar=function(e){var t=this.pos,n=this.readInt(16,e);return null===n&&this.invalidStringToken(t,"Bad character escape sequence"),n},$e.readWord1=function(){this.containsEsc=!1;for(var e="",t=!0,n=this.pos,r=this.options.ecmaVersion>=6;this.pose.__proto__);return acornPrivateClassElements=function(t){if(t.prototype.parsePrivateName)return t;const n=(t=>{if(t.acorn)return t.acorn;const n=requireAcorn();if(0!=n.version.indexOf("6.")&&0==n.version.indexOf("6.0.")&&0!=n.version.indexOf("7."))throw new Error(`acorn-private-class-elements requires acorn@^6.1.0 or acorn@7.0.0, not ${n.version}`);for(let r=t;r&&r!==n.Parser;r=e(r))if(r!==n.Parser)throw new Error("acorn-private-class-elements does not support mixing different acorn copies");return n})(t);return t=class extends t{_branch(){return this.__branch=this.__branch||new t({ecmaVersion:this.options.ecmaVersion},this.input),this.__branch.end=this.end,this.__branch.pos=this.pos,this.__branch.type=this.type,this.__branch.value=this.value,this.__branch.containsEsc=this.containsEsc,this.__branch}parsePrivateClassElementName(e){e.computed=!1,e.key=this.parsePrivateName(),"constructor"==e.key.name&&this.raise(e.key.start,"Classes may not have a private element named constructor");const t={get:"set",set:"get"}[e.kind],n=this._privateBoundNames;return Object.prototype.hasOwnProperty.call(n,e.key.name)&&n[e.key.name]!==t&&this.raise(e.start,"Duplicate private element"),n[e.key.name]=e.kind||!0,delete this._unresolvedPrivateNames[e.key.name],e.key}parsePrivateName(){const e=this.startNode();return e.name=this.value,this.next(),this.finishNode(e,"PrivateIdentifier"),"never"==this.options.allowReserved&&this.checkUnreserved(e),e}getTokenFromCode(e){if(35===e){++this.pos;const e=this.readWord1();return this.finishToken(this.privateIdentifierToken,e)}return super.getTokenFromCode(e)}parseClass(e,t){const n=this._outerPrivateBoundNames;this._outerPrivateBoundNames=this._privateBoundNames,this._privateBoundNames=Object.create(this._privateBoundNames||null);const r=this._outerUnresolvedPrivateNames;this._outerUnresolvedPrivateNames=this._unresolvedPrivateNames,this._unresolvedPrivateNames=Object.create(null);const i=super.parseClass(e,t),a=this._unresolvedPrivateNames;if(this._privateBoundNames=this._outerPrivateBoundNames,this._outerPrivateBoundNames=n,this._unresolvedPrivateNames=this._outerUnresolvedPrivateNames,this._outerUnresolvedPrivateNames=r,this._unresolvedPrivateNames)Object.assign(this._unresolvedPrivateNames,a);else{const e=Object.keys(a);e.length&&(e.sort((e,t)=>a[e]-a[t]),this.raise(a[e[0]],"Usage of undeclared private name"))}return i}parseClassSuper(e){const t=this._privateBoundNames;this._privateBoundNames=this._outerPrivateBoundNames;const n=this._unresolvedPrivateNames;this._unresolvedPrivateNames=this._outerUnresolvedPrivateNames;const r=super.parseClassSuper(e);return this._privateBoundNames=t,this._unresolvedPrivateNames=n,r}parseSubscript(e,t,r,i,a,o){const s=this.options.ecmaVersion>=11&&n.tokTypes.questionDot,c=this._branch();if(!(c.eat(n.tokTypes.dot)||s&&c.eat(n.tokTypes.questionDot))||c.type!=this.privateIdentifierToken)return super.parseSubscript.apply(this,arguments);let l=!1;this.eat(n.tokTypes.dot)||(this.expect(n.tokTypes.questionDot),l=!0);let u=this.startNodeAt(t,r);return u.object=e,u.computed=!1,s&&(u.optional=l),this.type==this.privateIdentifierToken?("Super"==e.type&&this.raise(this.start,"Cannot access private element on super"),u.property=this.parsePrivateName(),this._privateBoundNames&&this._privateBoundNames[u.property.name]||(this._unresolvedPrivateNames||this.raise(u.property.start,"Usage of undeclared private name"),this._unresolvedPrivateNames[u.property.name]=u.property.start)):u.property=this.parseIdent(!0),this.finishNode(u,"MemberExpression")}parseMaybeUnary(e,t){const n=super.parseMaybeUnary(e,t);return"delete"==n.operator&&"MemberExpression"==n.argument.type&&"PrivateIdentifier"==n.argument.property.type&&this.raise(n.start,"Private elements may not be deleted"),n}},t.prototype.privateIdentifierToken=new n.TokenType("privateIdentifier"),t},acornPrivateClassElements}function requireAcornClassFields(){if(hasRequiredAcornClassFields)return acornClassFields;hasRequiredAcornClassFields=1;const e=requireAcornPrivateClassElements();return acornClassFields=function(t){const n=(t.acorn||requireAcorn()).tokTypes;return t=e(t),class extends t{_maybeParseFieldValue(e){if(this.eat(n.eq)){const t=this._inFieldValue;this._inFieldValue=!0,this.type===n.name&&"await"===this.value&&(this.inAsync||this.options.allowAwaitOutsideFunction)?e.value=this.parseAwait():e.value=this.parseExpression(),this._inFieldValue=t}else e.value=null}parseClassElement(e){if(this.options.ecmaVersion>=8&&(this.type==n.name||this.type.keyword||this.type==this.privateIdentifierToken||this.type==n.bracketL||this.type==n.string||this.type==n.num)){const e=this._branch();if(e.type==n.bracketL){let t=0;do{e.eat(n.bracketL)?++t:e.eat(n.bracketR)?--t:e.next()}while(t>0)}else e.next(!0);let t=e.type==n.eq||e.type==n.semi;if(!t&&e.canInsertSemicolon()&&(t=e.type!=n.parenL),t){const e=this.startNode();return this.type==this.privateIdentifierToken?this.parsePrivateClassElementName(e):this.parsePropertyName(e),("Identifier"===e.key.type&&"constructor"===e.key.name||"Literal"===e.key.type&&"constructor"===e.key.value)&&this.raise(e.key.start,"Classes may not have a field called constructor"),this.enterScope(67),this._maybeParseFieldValue(e),this.exitScope(),this.finishNode(e,"PropertyDefinition"),this.semicolon(),e}}return super.parseClassElement.apply(this,arguments)}parseIdent(e,t){const n=super.parseIdent(e,t);return this._inFieldValue&&"arguments"==n.name&&this.raise(n.start,"A class field initializer may not contain arguments"),n}}},acornClassFields}var acornClassFieldsExports=requireAcornClassFields(),__req_acorn_class_fields=getDefaultExportFromCjs(acornClassFieldsExports);const lineBreak=/\r\n?|\n|\u2028|\u2029/;class DestructuringErrors{constructor(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1}}const tsPredefinedType={any:"TSAnyKeyword",bigint:"TSBigIntKeyword",boolean:"TSBooleanKeyword",never:"TSNeverKeyword",null:"TSNullKeyword",number:"TSNumberKeyword",object:"TSObjectKeyword",string:"TSStringKeyword",symbol:"TSSymbolKeyword",undefined:"TSUndefinedKeyword",unknown:"TSUnknownKeyword",void:"TSVoidKeyword"},tsDeclaration={interface:1,type:2,enum:4,declare:8},tsTypeOperator={typeof:1,keyof:2,infer:4},tsExprMarkup={as:1,"!":2},tsPlugin=e=>class extends e{constructor(...e){super(...e),this.reservedWords=/^(?:enum)$/,this.reservedWordsStrict=this.reservedWords}finishNode(e,t){return t.startsWith("TS")&&(this.options.sourceType="ts"),this.finishNodeAt.call(this,e,t,this.lastTokEnd,this.lastTokEndLoc)}computeLocByOffset(e){return this.options.locations?getLineInfo(this.input,e):void 0}startNodeAtNode(e){return this.startNodeAt(e.start,this.computeLocByOffset(e.start))}tsPreparePreview(){const{pos:e,curLine:t,type:n,value:r,end:i,start:a,endLoc:o,startLoc:s,scopeStack:c,lastTokStartLoc:l,lastTokEndLoc:u,lastTokEnd:d,lastTokStart:p,context:m}=this;return()=>{this.pos=e,this.curLine=t,this.type=n,this.value=r,this.end=i,this.start=a,this.endLoc=o,this.startLoc=s,this.scopeStack=c,this.lastTokStartLoc=l,this.lastTokEndLoc=u,this.lastTokEnd=d,this.lastTokStart=p,this.context=m}}_isStartOfTypeParameters(){return this.value&&60===this.value.charCodeAt(0)}_isEndOfTypeParameters(){return this.value&&62===this.value.charCodeAt(0)}_hasPrecedingLineBreak(){return lineBreak.test(this.input.slice(this.lastTokEnd,this.start))}parseExpressionStatement(e,t){return"Identifier"===t.type?this._parseTSDeclaration(e,t):super.parseExpressionStatement(e,t)}parseBindingAtom(){const e=super.parseBindingAtom();return this.eat(types$1.colon)&&(e.typeAnnotation=this.parseTSTypeAnnotation(!1),e.end=e.typeAnnotation.end,this.options.locations&&(e.loc.end=e.typeAnnotation.loc.end)),e}parseMaybeDefault(e,t,n){return n||(n=this.parseBindingAtom(),this.eat(types$1.question)&&(n.optional=!0),this.eat(types$1.colon)&&(n.typeAnnotation=this.parseTSTypeAnnotation(!1),n.end=n.typeAnnotation.end,this.options.locations&&(n.loc.end=n.typeAnnotation.loc.end))),super.parseMaybeDefault(e,t,n)}parseMaybeAssign(e,t,n){let r=super.parseMaybeAssign(e,t,n);return r=this._parseMaybeTSExpression(r),r}parseFunctionParams(e){return e.typeParameters=this.parseMaybeTSTypeParameterDeclaration(),super.parseFunctionParams(e)}parseFunctionBody(e,t){this.eat(types$1.colon)&&(e.returnType=this.parseTSTypeAnnotation(!1)),super.parseFunctionBody(e,t)}parseParenAndDistinguishExpression(e){const t=this.start,n=this.startLoc,r=this.options.ecmaVersion>=8;let i;if(this.options.ecmaVersion>=6){this.next();const a=this.start,o=this.startLoc,s=[];let c=!0,l=!1;const u=new DestructuringErrors,d=this.yieldPos,p=this.awaitPos;let m;for(this.yieldPos=0,this.awaitPos=0;this.type!==types$1.parenR;){if(c?c=!1:this.expect(types$1.comma),r&&this.afterTrailingComma(types$1.parenR,!0)){l=!0;break}if(this.type===types$1.ellipsis){m=this.start,s.push(this.parseParenItem(this.parseRestBinding())),this.type===types$1.comma&&this.raise(this.start,"Comma is not permitted after the rest element");break}s.push(this.parseMaybeAssign(!1,u,this.parseParenItem)),this.type===types$1.colon&&this.parseTSTypeAnnotation()}const f=this.start,_=this.startLoc;if(this.expect(types$1.parenR),e&&!this.canInsertSemicolon()){const e=this._branch();try{e.parseTSTypeAnnotation()&&e.eat(types$1.arrow)&&this.parseTSTypeAnnotation()}catch{}if(this.eat(types$1.arrow))return this.checkPatternErrors(u,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=d,this.awaitPos=p,this.parseParenArrowList(t,n,s)}s.length&&!l||this.unexpected(this.lastTokStart),m&&this.unexpected(m),this.checkExpressionErrors(u,!0),this.yieldPos=d||this.yieldPos,this.awaitPos=p||this.awaitPos,s.length>1?(i=this.startNodeAt(a,o),i.expressions=s,this.finishNodeAt(i,"SequenceExpression",f,_)):i=s[0]}else i=this.parseParenExpression();if(this.options.preserveParens){const e=this.startNodeAt(t,n);return e.expression=i,this.finishNode(e,"ParenthesizedExpression")}return i}parseSubscript(e){const t=this._branch();if(this._isStartOfTypeParameters())try{t.parseTSTypeParameterInstantiation()&&t.eat(types$1.parenL)&&(e.typeParameters=this.parseTSTypeParameterInstantiation())}catch{}return super.parseSubscript.apply(this,arguments)}parseExpression(){const e=this.type===types$1.parenL,t=e?this.start:-1;let n=super.parseExpression();return e?(n.extra={parenthesized:e,parenStart:t},n):(n=this._parseMaybeTSExpression(n),n)}parseParenItem(e){return e=super.parseParenItem(e),this._parseMaybeTSExpression(e)}parseTSTypeAnnotation(e=!0){e&&this.expect(types$1.colon);const t=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc);return this._parseTSTypeAnnotation(t),this.finishNode(t,"TSTypeAnnotation")}_parseTSType(){const e=this._parseNonConditionalType();return this.type!==types$1._extends||this._hasPrecedingLineBreak()?e:this.parseTSConditionalType(e)}_parseTSTypeAnnotation(e){e.typeAnnotation=this._parseTSType()}_parsePrimaryType(){let e;switch(this.type){case types$1.name:e=this.value in tsPredefinedType?this.parseTSPredefinedType():this.parseTSTypeReference();break;case types$1.braceL:e=this.parseTSTypeLiteral();break;case types$1._void:case types$1._null:e=this.parseTSPredefinedType();break;case types$1.parenL:e=this.parseTSParenthesizedType();break;case types$1.bracketL:e=this.parseTSTupleType();break;case types$1.num:case types$1.string:case types$1._true:case types$1._false:e=this.parseTSLiteralType(this.type);break;case types$1._import:e=this.parseTSImportType(!1);break;default:return}for(;this.type===types$1.bracketL;)e=this._parseMaybeTSArrayType(e);return e}_parseNonConditionalType(){let e;switch(this.type){case types$1.name:switch(tsTypeOperator[this.value]){case tsTypeOperator.infer:e=this.parseTSInferType();break;case tsTypeOperator.keyof:e=this.parseTSKeyofType();break;default:e=this._parseTSUnionTypeOrIntersectionType()}break;case types$1._new:e=this.parseTSConstructorType();break;case types$1.parenL:const t=this.tsPreparePreview(),n=this._isStartOfTSFunctionType();t(),e=n?this.parseTSFunctionType():this.parseTSParenthesizedType();break;case types$1.relational:e=this._isStartOfTypeParameters()?this.parseTSFunctionType():this.unexpected();break;case types$1._typeof:e=this.parseTSTypeofType();break;default:e=this._parseTSUnionTypeOrIntersectionType()}return e||this.unexpected()}_parseTSDeclaration(e,t){switch(tsDeclaration[t.name]){case tsDeclaration.interface:if(this.type===types$1.name)return this.parseTSInterfaceDeclaration();break;case tsDeclaration.type:if(this.type===types$1.name)return this.parseTSTypeAliasDeclaration()}return super.parseExpressionStatement(e,t)}parseTSTypeReference(){const e=this.startNode();let t=this.parseIdent();return this.type===types$1.dot&&(t=this.parseTSQualifiedName(t)),e.typeName=t,this._isStartOfTypeParameters()&&(e.typeParameters=this.parseTSTypeParameterInstantiation()),this.finishNode(e,"TSTypeReference"),e}parseTSPredefinedType(){const e=this.startNode(),t=this.value;return this.next(),this.finishNode(e,tsPredefinedType[t]),e}parseTSLiteralType(e){const t=this.startNode(),n=this.parseLiteral(this.value);return e!==types$1._true&&e!==types$1._false||(n.value=e===types$1._true),t.literal=n,this.finishNode(t,"TSLiteralType")}parseTSTupleType(){const e=this.startNode(),t=[];this.eat(types$1.bracketL);let n=!0;for(;!this.eat(types$1.bracketR);)switch(n?n=!1:this.expect(types$1.comma),this.type){case types$1.name:const e=this.parseTSTypeReference();this.type===types$1.question?t.push(this.parseTSOptionalType(e)):t.push(e);break;case types$1.ellipsis:t.push(this.parseTSRestType());break;case types$1.bracketR:break;default:this.unexpected()}return e.elementTypes=t,this.finishNode(e,"TSTupleType")}parseTSOptionalType(e){const t=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc);return this.expect(types$1.question),t.typeAnnotation=e,this.finishNode(t,"TSOptionalType")}parseTSRestType(){const e=this.startNode();return this.expect(types$1.ellipsis),this._parseTSTypeAnnotation(e),this.finishNode(e,"TSRestType")}_parseMaybeTSArrayType(e){const t=this.startNodeAtNode(e);return this.expect(types$1.bracketL),this.eat(types$1.bracketR)?this.parseTSArrayType(t,e):this.parseTSIndexedAccessType(t,e)}parseTSArrayType(e,t){return e.elementType=t,this.finishNode(e,"TSArrayType")}parseTSIndexedAccessType(e,t){return e.objectType=t,e.indexType=this._parseTSType(),this.expect(types$1.bracketR),this.type===types$1.bracketL?this._parseMaybeTSArrayType(e):this.finishNode(e,"TSIndexedAccessType")}_isStartOfTSFunctionType(){switch(this.nextToken(),this.type){case types$1.parenR:case types$1.ellipsis:return!0;case types$1.name:case types$1._this:switch(this.nextToken(),this.type){case types$1.colon:case types$1.comma:case types$1.question:return!0;case types$1.parenR:return this.nextToken(),this.type===types$1.arrow;default:return!1}case types$1.braceL:case types$1.bracketL:switch(this.type===types$1.braceL?this.parseObj(!0):this.parseBindingAtom(),this.type){case types$1.colon:case types$1.comma:case types$1.question:return!0;case types$1.parenR:return this.nextToken(),this.type===types$1.arrow;default:return!1}default:return!1}}parseTSFunctionType(){const e=this.startNode(),t=Object.create(null);return e.typeParameters=this.parseMaybeTSTypeParameterDeclaration(),this.parseFunctionParams(t),e.parameters=t.params,this.expect(types$1.arrow),e.typeAnnotation=this.parseTSTypeAnnotation(!1),this.finishNode(e,"TSFunctionType")}parseTSParenthesizedType(){const e=this.startNode();for(this.expect(types$1.parenL),this._parseTSTypeAnnotation(e),this.expect(types$1.parenR);this.eat(types$1.bracketL);)this.expect(types$1.bracketR);return this.finishNode(e,"TSParenthesizedType")}parseTSUnionType(e){const t=e?this.startNodeAtNode(e):this.startNode(),n=[];for(e&&n.push(e);this.eat(types$1.bitwiseOR);)n.push(this._parseTSIntersectionTypeOrPrimaryType());return 1===n.length?e:(t.types=n,this.finishNode(t,"TSUnionType"))}parseTSIntersectionType(e){const t=e?this.startNodeAtNode(e):this.startNode(),n=[];for(e&&n.push(e);this.eat(types$1.bitwiseAND);)n.push(this._parsePrimaryType());return 1===n.length?e:(t.types=n,this.finishNode(t,"TSIntersectionType"))}_parseTSIntersectionTypeOrPrimaryType(){this.eat(types$1.bitwiseAND);const e=this._parsePrimaryType();return this.type===types$1.bitwiseAND?this.parseTSIntersectionType(e):e}_parseTSUnionTypeOrIntersectionType(){this.eat(types$1.bitwiseOR);const e=this._parseTSIntersectionTypeOrPrimaryType();return this.type===types$1.bitwiseOR?this.parseTSUnionType(e):e}parseTSConditionalType(e){const t=this.startNodeAtNode(e);return t.checkType=e,this.expect(types$1._extends),t.extendsType=this._parseNonConditionalType(),this.expect(types$1.question),t.trueType=this._parseNonConditionalType(),this.expect(types$1.colon),t.falseType=this._parseNonConditionalType(),this.finishNode(t,"TSConditionalType")}parseTSInferType(){const e=this.startNode();return this.next(),e.typeParameter=this.parseTSTypeParameter(),this.finishNode(e,"TSInferType")}parseTSKeyofType(){const e=this.startNode();return this.next(),e.typeAnnotation=this.parseTSTypeAnnotation(!1),this.finishNode(e,"TSTypeOperator")}parseTSTypeQuery(){const e=this.startNode();return this.next(),e.exprName=this.parseIdent(),this.finishNode(e,"TSTypeQuery")}parseTSTypeofType(){const e=this.parseTSTypeQuery();if(this.eat(types$1.bracketL)){const t=this.startNode();return this.parseTSIndexedAccessType(t,e)}return e}parseTSImportType(e){const t=this.startNode();if(t.isTypeOf=e,this.expect(types$1._import),this.expect(types$1.parenL),t.parameter=this.parseTSLiteralType(this.type),this.expect(types$1.parenR),this.eat(types$1.dot)){let e=this.parseIdent();this.type===types$1.dot&&(e=this.parseTSQualifiedName(e)),t.qualifier=e}return this.finishNode(t,"TSImportType")}parseTSQualifiedName(e){let t=this.startNodeAtNode(e);return t.left=e,this.expect(types$1.dot),t.right=this.parseIdent(),t=this.finishNode(t,"TSQualifiedName"),this.type===types$1.dot&&(t=this.parseTSQualifiedName(t)),t}parseTSConstructorType(){const e=this.startNode();return this.expect(types$1._new),e.typeParameters=this.parseMaybeTSTypeParameterDeclaration(),this.expect(types$1.parenL),e.parameters=this.parseBindingList(types$1.parenR,!1,this.options.ecmaVersion>=8),this.expect(types$1.arrow),e.typeAnnotation=this.parseTSTypeAnnotation(!1),this.finishNode(e,"TSConstructorType")}parseTSConstructSignatureDeclaration(){const e=this.startNode();return this.expect(types$1._new),e.typeParameters=this.parseMaybeTSTypeParameterDeclaration(),this.expect(types$1.parenL),e.parameters=this.parseBindingList(types$1.parenR,!1,this.options.ecmaVersion>=8),this.eat(types$1.colon)&&(e.typeAnnotation=this.parseTSTypeAnnotation(!1)),this.finishNode(e,"TSConstructSignatureDeclaration")}parseTSTypeLiteral(){return this._parseObjectLikeType("TSTypeLiteral","members")}parseTSTypeAliasDeclaration(){const e=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc);return e.id=this.parseIdent(),e.typeParameters=this.parseMaybeTSTypeParameterDeclaration(),this.expect(types$1.eq),this._parseTSTypeAnnotation(e),this.semicolon(),this.finishNode(e,"TSTypeAliasDeclaration")}parseTSInterfaceDeclaration(){const e=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc);if(e.id=this.parseIdent(),e.typeParameters=this.parseMaybeTSTypeParameterDeclaration(),this.eat(types$1._extends)){const t=[];do{t.push(this.parseTSExpressionWithTypeArguments())}while(this.eat(types$1.comma));e.heritage=t}return e.body=this._parseObjectLikeType("TSInterfaceBody","body"),this.semicolon(),this.finishNode(e,"TSInterfaceDeclaration")}parseTSExpressionWithTypeArguments(){const e=this.startNode();let t=this.parseIdent();if(this.eat(types$1.dot)&&(t=this.parseTSQualifiedName(t)),e.expr=t,this._isStartOfTypeParameters()){const t=this.parseTSTypeParameterInstantiation();e.typeParameters=t,e.end=t.end,this.options.locations&&(e.loc.end=t.loc.end)}return this.finishNode(e,"TSExpressionWithTypeArguments")}parseTSTypeParameter(){const e=this.startNode();return this.type===types$1.name?(e.name=this.value,this.next()):this.unexpected(),this.eat(types$1._extends)&&(e.constraint=this._parseTSType()),this.eat(types$1.eq)&&(e.default=this._parseTSType()),this.finishNode(e,"TSTypeParameter")}parseMaybeTSTypeParameterDeclaration(){if(this._isStartOfTypeParameters()){const e=this.startNode(),t=[];let n=!0;for(this.next();!this.eat(types$1.relational)&&(n?n=!1:this.expect(types$1.comma),!this._isEndOfTypeParameters());)t.push(this.parseTSTypeParameter());return e.params=t,this.finishNode(e,"TSTypeParameterDeclaration")}}parseTSTypeParameterInstantiation(){const e=this.startNode(),t=[];this.next();let n=!0;for(;this.value&&!this._isEndOfTypeParameters()||this.type===types$1.comma;)n?n=!1:this.expect(types$1.comma),t.push(this._parseTSType());return this._isEndOfTypeParameters()&&(this.value.length>1?this.value=this.value.slice(1):this.next()),e.params=t,this.finishNode(e,"TSTypeParameterInstantiation")}parseMaybeTSTypeParameterInstantiation(){if(this._isStartOfTypeParameters())return this.parseTSTypeParameterInstantiation()}_parseObjectLikeType(e,t){const n=this.startNode();this.expect(types$1.braceL);const r=[];for(;!this.eat(types$1.braceR);)switch(this.type){case types$1.name:const e=this.parseIdent();switch(this.type){case types$1.parenL:case types$1.relational:r.push(this.parseTSMethodSignature(e));break;case types$1.colon:case types$1.semi:case types$1.comma:case types$1.braceR:case types$1.question:r.push(this.parseTSPropertySignature(e));break;default:if(this._hasPrecedingLineBreak()){r.push(this.parseTSPropertySignature(e));continue}this.unexpected()}break;case types$1.bracketL:const t=this.tsPreparePreview();if(this.nextToken(),this.type===types$1.name)switch(this.nextToken(),this.type){case types$1.colon:t(),r.push(this.parseTSIndexSignature());break;case types$1._in:if(0===r.length)return t(),this.parseTSMappedType();t(),r.push(this.parseTSPropertySignature(null,!0));break;default:t(),r.push(this.parseTSPropertySignature(null,!0))}else t(),r.push(this.parseTSPropertySignature(null,!0));break;case types$1._new:r.push(this.parseTSConstructSignatureDeclaration());break;default:this.unexpected()}return n[t]=r,this.finishNode(n,e)}parseTSMethodSignature(e){const t=this.startNodeAtNode(e);return t.key=e,this.eat(types$1.question)&&(t.optional=!0),t.typeParameters=this.parseMaybeTSTypeParameterDeclaration(),this.expect(types$1.parenL),t.parameters=this.parseBindingList(types$1.parenR,!1,this.options.ecmaVersion>=8),this.type===types$1.colon&&(t.typeAnnotation=this.parseTSTypeAnnotation(!0)),this.eat(types$1.comma)||this.eat(types$1.semi),this.finishNode(t,"TSMethodSignature")}parseTSPropertySignature(e,t=!1){let n;return t?(n=this.startNode(),this.expect(types$1.bracketL),n.key=this.parseExpression(),this.expect(types$1.bracketR)):(n=this.startNodeAtNode(e),n.key=e),n.computed=t,this.eat(types$1.question)&&(n.optional=!0),this.type===types$1.colon&&(n.typeAnnotation=this.parseTSTypeAnnotation(!0)),this.eat(types$1.comma)||this.eat(types$1.semi),this.finishNode(n,"TSPropertySignature")}parseTSIndexSignature(){const e=this.startNode();this.expect(types$1.bracketL);const t=this.parseIdent();return t.typeAnnotation=this.parseTSTypeAnnotation(!0),t.end=t.typeAnnotation.end,this.options.locations&&(t.loc.end=t.typeAnnotation.loc.end),e.index=t,this.expect(types$1.bracketR),e.typeAnnotation=this.parseTSTypeAnnotation(!0),this.eat(types$1.comma)||this.eat(types$1.semi),this.finishNode(e,"TSIndexSignature")}parseTSMappedType(){const e=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc);return this.expect(types$1.bracketL),e.typeParameter=this._parseTSTypeParameterInTSMappedType(),this.expect(types$1.bracketR),this.eat(types$1.question)&&(e.optional=!0),this.type===types$1.colon&&(e.typeAnnotation=this.parseTSTypeAnnotation(!0)),this.semicolon(),this.expect(types$1.braceR),this.finishNode(e,"TSMappedType")}_parseTSTypeParameterInTSMappedType(){const e=this.startNode();return this.type===types$1.name?(e.name=this.value,this.next()):this.unexpected(),this.expect(types$1._in),e.constraint=this._parseNonConditionalType(),this.finishNode(e,"TSTypeParameter")}_parseMaybeTSExpression(e){return this.type===types$1.prefix&&tsExprMarkup[this.value]===tsExprMarkup["!"]&&(e=this.parseTSNonNullExpression(e)),this.type===types$1.name&&tsExprMarkup[this.value]===tsExprMarkup.as&&(e=this.parseTSAsExpression(e)),e}parseTSAsExpression(e){let t=e;for(;this.type===types$1.name&&tsExprMarkup[this.value]===tsExprMarkup.as;){const e=this.startNodeAtNode(t);this.next(),e.expression=t,this._parseTSTypeAnnotation(e),t=this.finishNode(e,"TSAsExpression")}return e}parseTSNonNullExpression(e){let t=e;for(;this.type===types$1.prefix&&tsExprMarkup[this.value]===tsExprMarkup["!"];){const e=this.startNodeAtNode(t);e.expression=t,this.next(),t=this.finishNode(e,"TSNonNullExpression")}return t}},TypeParser=Parser.extend(tsPlugin,__req_acorn_class_fields);class SourceTypedParser extends SourceParser{parse(e,t,n,r){try{TypeParser.parse(e,createAcornParserOptions(DEFAULT_ECMA_VERSION,t.errors,n))}catch(e){if(e instanceof SyntaxError&&(e=new FatalSyntaxError(positionToSourceLocation(e.loc,n?.sourceFile),e.toString())),r)throw e;return t.errors.push(e),null}const i=libExports.parse(e,{...defaultBabelOptions,sourceFilename:n?.sourceFile,errorRecovery:r??!0});if(i.errors?.length)return i.errors.filter(e=>e instanceof SyntaxError).forEach(e=>{t.errors.push(new FatalSyntaxError(positionToSourceLocation(e.loc,n?.sourceFile),e.toString()))}),null;const a=i.program;t.prelude!==e&&checkForAnyDeclaration(a,t);const o=checkForTypeErrors(a,t);return transformBabelASTToESTreeCompliantAST(o),o}toString(){return"SourceTypedParser"}}function checkForAnyDeclaration(e,t){function n(e){return"true"===e||void 0===e}const r=n(t.languageOptions.typedAllowAnyInVariables),i=n(t.languageOptions.typedAllowAnyInParameters),a=n(t.languageOptions.typedAllowAnyInReturnType),o=n(t.languageOptions.typedAllowAnyInTypeAnnotationParameters),s=n(t.languageOptions.typedAllowAnyInTypeAnnotationReturnType);function c(e,n){n.loc&&t.errors.push(new FatalSyntaxError(n.loc,e))}function l(e){return"TSAnyKeyword"===e?.typeAnnotation?.type||void 0===e?.typeAnnotation}r&&i&&a||e.body.forEach(function e(t){switch(t.type){case"VariableDeclaration":t.declarations.forEach(n=>{const i=n.id?.typeAnnotation;!r&&l(i)&&c('Usage of "any" in variable declaration is not allowed.',t),n.init&&e(n.init)});break;case"FunctionDeclaration":if(!i||!a){const n=t;n.params?.forEach(e=>{!i&&l(e.typeAnnotation)&&c('Usage of "any" in function parameter is not allowed.',e)}),!a&&l(n.returnType)&&c('Usage of "any" in function return type is not allowed.',t),e(t.body)}break;case"ArrowFunctionExpression":if(!i||!a){const n=t;n.params?.forEach(e=>{!i&&l(e.typeAnnotation)&&c('Usage of "any" in arrow function parameter is not allowed.',e)}),!a&&l(n.returnType)&&c('Usage of "any" in arrow function return type is not allowed.',n),!a&&n.params?.some(e=>l(e.typeAnnotation))&&c('Usage of "any" in arrow function return type is not allowed.',n),e(t.body)}break;case"ReturnStatement":t.argument&&e(t.argument);break;case"BlockStatement":t.body.forEach(e)}}),o&&s||e.body.forEach(function e(t){if(t)switch(t.type){case"VariableDeclaration":t.declarations.forEach(t=>{const n=t.id?.typeAnnotation;e(n)});break;case"TSTypeAnnotation":{const n=t;if("TSFunctionType"===n.typeAnnotation?.type){n.typeAnnotation.parameters?.forEach(t=>{!o&&l(t.typeAnnotation)&&c('Usage of "any" in type annotation\'s function parameter is not allowed.',t),t.typeAnnotation&&e(t.typeAnnotation)});const t=n.typeAnnotation.typeAnnotation;!s&&l(t)&&c('Usage of "any" in type annotation\'s function return type is not allowed.',n),e(t)}break}case"FunctionDeclaration":if(!o||!s){const n=t;o||n.params?.forEach(t=>{e(t.typeAnnotation)}),e(n.returnType)}break;case"BlockStatement":t.body.forEach(e)}})}function parse$4(e,t,n,r){let i;switch(t.chapter){case Chapter.FULL_JS:i=new FullJSParser;break;case Chapter.FULL_TS:i=new FullTSParser;break;default:i=t.variant===Variant.TYPED?new SourceTypedParser(t.chapter,t.variant):new SourceParser(t.chapter,t.variant)}const a=i.parse(e,t,n,r);return a&&i.validate(a,t,r)?a:null}var parser=Object.freeze({__proto__:null,parse:parse$4});const globalIdNames=["native","callIfFuncAndRightArgs","boolOrErr","wrap","unaryOp","binaryOp","throwIfTimeout","setProp","getProp","builtins"];function getNativeIds(e,t){const n={};for(const e of globalIdNames)n[e]=identifier(getUniqueId(t,e));return n}function getUniqueId(e,t="unique"){for(;e.has(t);){const e=t.slice(0,-1),n=t[t.length-1],r=Number(n);Number.isNaN(r)||9===r?t+="0":t=e+String(r+1)}return e.add(t),t}function getIdentifiersInNativeStorage(e){const t=new Set(...e.builtins.keys());return e.previousProgramsIdentifiers.forEach(e=>t.add(e)),t}function getIdentifiersInProgram(e){const t=new Set;return simple(e,{Identifier(e){t.add(e.name)},Pattern(e){"Identifier"===e.type?t.add(e.name):"MemberExpression"===e.type&&"Identifier"===e.object.type&&t.add(e.object.name)}}),t}function getFunctionDeclarationNamesInProgram(e){const t=new Set;return simple(e,{FunctionDeclaration(e){e.id&&"Identifier"===e.id.type&&t.add(e.id.name)}}),t}class Declaration{constructor(e){this.isConstant=e,this.accessedBeforeDeclaration=!1}}function validateAndAnnotate(e,t){const n=new Map,r=new Map;function i(e){const t=new Map;for(const n of e.body)"VariableDeclaration"===n.type?t.set(getSourceVariableDeclaration(n).id.name,new Declaration("const"===n.kind)):"FunctionDeclaration"===n.type&&(assert(!!n.id,"Encountered a FunctionDeclaration node without an identifier. This should have been caught when parsing."),t.set(n.id.name,new Declaration(!0)));r.set(e,!1),n.set(e,t)}function a(e){n.set(e,new Map(e.params.map(e=>[e.name,new Declaration(!1)]))),r.set(e,!1)}function o(e,r){const i=e.name,a=r[r.length-2];for(let o=r.length-1;o>=0;o--){const s=r[o],c=n.get(s);if(c?.has(i)){c.get(i).accessedBeforeDeclaration=!0,"AssignmentExpression"===a.type&&a.left===e&&(c.get(i).isConstant&&t.errors.push(new ConstAssignmentError(a,i)),"ForStatement"===s.type&&s.init!==a&&s.update!==a&&t.errors.push(new NoAssignmentToForVariableError(a)));break}}}ancestor(e,{Program:i,BlockStatement:i,FunctionDeclaration:a,ArrowFunctionExpression:a,ForStatement(e,t){const i=e.init;"VariableDeclaration"===i.type&&(n.set(e,new Map([[getSourceVariableDeclaration(i).id.name,new Declaration("const"===i.kind)]])),r.set(e,!1))}});const s={...base,VariableDeclarator(e,t,n){e.init&&n(e.init,t,"Expression")}};return ancestor(e,{VariableDeclaration(e,t){const r=t[t.length-2],{name:i}=getSourceVariableDeclaration(e).id,a=n.get(r).get(i).accessedBeforeDeclaration;e.typability=a?"Untypable":"NotYetTyped"},Identifier:o,FunctionDeclaration(e,t){const n=t[t.length-2];e.typability=r.get(n)?"Untypable":"NotYetTyped"},Pattern(e,t){"Identifier"===e.type?o(e,t):"MemberExpression"===e.type&&"Identifier"===e.object.type&&o(e.object,t)},CallExpression(e,t){for(let e=t.length-1;e>=0;e--){const n=t[e];if(r.has(n)){r.set(n,!0);break}}}},s),e}function checkProgramForUndefinedVariables(e,t){return checkForUndefinedVariables(e,t,getNativeIds(e,new Set([...getIdentifiersInProgram(e),...getIdentifiersInNativeStorage(t.nativeStorage)])),!1)}function checkForUndefinedVariables(e,t,n,r){const i=t.prelude?getFunctionDeclarationNamesInProgram(parse$4(t.prelude,t)):new Set,a=t.runtime.environments[0].head||{},o=t.nativeStorage.builtins,s=new Map;function c(e){const t=new Set;for(const n of e.body)if("VariableDeclaration"===n.type){const{id:{name:e}}=getSourceVariableDeclaration(n);t.add(e)}else if("FunctionDeclaration"===n.type){if(null===n.id)throw new Error("Encountered a FunctionDeclaration node without an identifier. This should have been caught when parsing.");t.add(n.id.name)}else if("ImportDeclaration"===n.type)for(const e of n.specifiers)t.add(e.local.name);s.set(e,t)}function l(e,t){s.set(e,new Set(e.params.map(e=>"Identifier"===e.type?e.name:e.argument.name)))}const u=new Map;ancestor(e,{Program:c,BlockStatement:c,FunctionDeclaration:l,ArrowFunctionExpression:l,ForStatement(e){const t=e.init;if("VariableDeclaration"===t.type){const{id:{name:n}}=getSourceVariableDeclaration(t);s.set(e,new Set([n]))}},Identifier(e,t){u.set(e,[...t])},Pattern(e,t){"Identifier"===e.type?u.set(e,[...t]):"MemberExpression"===e.type&&"Identifier"===e.object.type&&u.set(e.object,[...t])}});const d=new Set(Object.values(n).map(({name:e})=>e));for(const[e,n]of u){const c=e.name,l=n.some(e=>s.get(e)?.has(c));if(!l&&(!t.nativeStorage.previousProgramsIdentifiers.has(c)&&!o.has(c)&&!(i.has(c)||c in a||d.has(c)||r)))throw new UndefinedVariableError(c,e)}}class Stack{constructor(){this.storage=[]}push(...e){for(const t of e)this.storage.push(t)}pop(){return this.storage.pop()}peek(){if(!this.isEmpty())return this.storage[this.size()-1]}size(){return this.storage.length}isEmpty(){return 0===this.size()}getStack(){return[...this.storage]}some(e){return this.storage.some(e)}setTo(e){this.storage=e.storage}}class Control extends Stack{constructor(e){super(),this.numEnvDependentItems=0,e&&this.push(e)}canAvoidEnvInstr(){return 0===this.numEnvDependentItems}getNumEnvDependentItems(){return this.numEnvDependentItems}pop(){const e=super.pop();return void 0!==e&&isEnvDependent(e)&&this.numEnvDependentItems--,e}push(...e){const t=Control.simplifyBlocksWithoutDeclarations(...e);t.forEach(e=>{isEnvDependent(e)&&this.numEnvDependentItems++}),super.push(...t)}static simplifyBlocksWithoutDeclarations(...e){const t=[];return e.forEach(e=>{if(isNode(e)&&isBlockStatement(e)&&hasNoDeclarations(e.body)){const n=statementSequence(e.body,e.loc);t.push(n)}else t.push(e)}),t}copy(){const e=new Control,t=super.getStack();return e.push(...t),e}}class Stash extends Stack{constructor(){super()}copy(){const e=new Stash,t=super.getStack();return e.push(...t),e}}function evaluate(e,t,n){try{checkProgramForUndefinedVariables(e,t)}catch(e){return t.errors.push(e),new CseError(e)}transform(e);try{return t.runtime.isRunning=!0,t.runtime.control=new Control(e),t.runtime.stash=new Stash,runCSEMachine(t,t.runtime.control,t.runtime.stash,n.envSteps,n.stepLimit,n.isPrelude)}catch(e){return new CseError(e)}finally{t.runtime.isRunning=!1}}function resumeEvaluate(e){try{return e.runtime.isRunning=!0,runCSEMachine(e,e.runtime.control,e.runtime.stash,-1,-1)}catch(e){return new CseError(e)}finally{e.runtime.isRunning=!1}}function evaluateImports(e,t){try{const[n]=filterImportDeclarations(e),r=currentEnvironment(t);for(const[e,i]of n){const n=t.nativeStorage.loadedModules[e];for(const e of i)for(const i of e.specifiers){let e;switch(declareIdentifier(t,i.local.name,i,r),i.type){case"ImportSpecifier":e=n[getSpecifierName(i.imported)];break;case"ImportDefaultSpecifier":e=n.default;break;case"ImportNamespaceSpecifier":e=n}defineVariable(t,i.local.name,e,!0,i)}}}catch(e){handleRuntimeError(t,e)}}function CSEResultPromise(e,t){return new Promise(n=>{n(t instanceof CSEBreak?{status:"suspended-cse-eval",context:e}:t instanceof CseError?{context:e,status:"error"}:{status:"finished",context:e,value:t})})}function runCSEMachine(e,t,n,r,i,a=!1){const o=generateCSEMachineStateStream(e,t,n,r,i,a);for(const e of o);return n.peek()}function*generateCSEMachineStateStream(e,t,n,r,i,a=!1){e.runtime.break=!1,e.runtime.nodes=[];let o=0,s=t.peek();for(void 0!==s&&isNode(s)&&e.runtime.nodes.unshift(s);void 0!==s;){if(!a&&o===r)return void(yield{stash:n,control:t,steps:o});if(!a&&o===i)break;isNode(s)&&"DebuggerStatement"===s.type&&-1===r&&e.runtime.breakpointSteps.push(o),!a&&envChanging(s)&&e.runtime.changepointSteps.push(o+1),t.pop(),isNode(s)?(e.runtime.nodes.shift(),e.runtime.nodes.unshift(s),checkEditorBreakpoints(e,s),callEvaluator(s,e,t,n,a),e.runtime.break&&e.runtime.debuggerOn):isInstr(s)&&callEvaluator(s,e,t,n,a),t.isEmpty()&&n.isEmpty()&&n.push(void 0),s=t.peek(),o+=1;const c=n.peek(),l=e.pendingStreamFnStack[e.pendingStreamFnStack.length-1]?.[1];if(Array.isArray(c)&&2===c.length&&void 0!==l&&t.size()===l){const t=e.pendingStreamFnStack.pop()?.[0];void 0!==t&&(e.streamLineage.get(t)||e.streamLineage.set(t,[]),e.streamLineage.get(t)?.push(c.id))}a||(e.runtime.envStepsTotal=o),yield{stash:n,control:t,steps:o}}}function callEvaluator(e,t,n,r,i){isNode(e)?cmdEvaluators[e.type]({command:e,context:t,control:n,stash:r,isPrelude:i}):isInstr(e)&&cmdEvaluators[e.instrType]({command:e,context:t,control:n,stash:r,isPrelude:i})}const cmdEvaluators={BlockStatement({command:e,context:t,control:n}){const r=n.peek();!r||isInstr(r)&&r.instrType===InstrType.ENVIRONMENT||n.canAvoidEnvInstr()||n.push(envInstr(currentEnvironment(t),e));const i=createBlockEnvironment(t,"blockEnvironment");declareFunctionsAndVariables(t,e,i),pushEnvironment(t,i);const a=statementSequence(e.body,e.loc);n.push(a)},BreakStatement({command:e,control:t}){t.push(breakInstr(e))},ContinueStatement({command:e,control:t}){t.push(contInstr(e))},DebuggerStatement({context:e}){e.runtime.break=!0},ExpressionStatement({command:e,context:t,control:n,stash:r,isPrelude:i}){callEvaluator(e.expression,t,n,r,i)},ForStatement({command:e,control:t}){const n=e.init,r=e.test,i=e.update;if("VariableDeclaration"===n.type&&"let"===n.kind){const{id:a}=getSourceVariableDeclaration(n);t.push(blockStatement([n,forStatement(assignmentExpression(a,identifier(a.name,e.loc),e.loc),r,i,blockStatement([variableDeclaration([variableDeclarator(identifier(`_copy_of_${a.name}`,e.loc),identifier(a.name,e.loc),e.loc)],"const",e.loc),blockStatement([variableDeclaration([variableDeclarator(identifier(a.name,e.loc),identifier(`_copy_of_${a.name}`,e.loc),e.loc)],"const",e.loc),e.body],e.loc)],e.loc),e.loc)],e.loc))}else hasBreakStatement(e.body)&&t.push(breakMarkerInstr(e)),t.push(forInstr(n,r,i,e.body,e)),t.push(r),t.push(popInstr(e)),t.push(n),t.push(identifier("undefined",e.loc))},FunctionDeclaration({command:e,control:t}){const n=blockArrowFunction(e.params,e.body,e.loc),r=constantDeclaration(e.id.name,n,e.loc);t.push(r)},IfStatement({command:e,control:t}){t.push(...reduceConditional(e))},ImportDeclaration(){},Program({command:e,context:t,control:n,isPrelude:r}){for(;"global"!==currentEnvironment(t).name&&"programEnvironment"!==currentEnvironment(t).name&&"prelude"!==currentEnvironment(t).name;)popEnvironment(t);if(!hasNoDeclarations(e.body)||!hasNoImportDeclarations(e.body)){if("programEnvironment"!==currentEnvironment(t).name){const e=createProgramEnvironment(t,r);pushEnvironment(t,e)}const n=currentEnvironment(t);evaluateImports(e,t),declareFunctionsAndVariables(t,e,n)}if(1===e.body.length)n.push(...handleSequence(e.body));else{const t=statementSequence(e.body,e.loc);n.push(t)}},ReturnStatement({command:e,control:t}){const n=t.peek();n&&isInstr(n)&&n.instrType===InstrType.MARKER?t.pop():t.push(resetInstr(e)),e.argument&&t.push(e.argument)},StatementSequence({command:e,context:t,control:n,stash:r,isPrelude:i}){1===e.body.length?callEvaluator(e.body[0],t,n,r,i):n.push(...handleSequence(e.body))},VariableDeclaration({command:e,control:t}){const{init:n,id:r}=getSourceVariableDeclaration(e);t.push(popInstr(e)),t.push(assmtInstr(r.name,e)),t.push(n)},WhileStatement({command:e,control:t}){hasBreakStatement(e.body)&&t.push(breakMarkerInstr(e)),t.push(whileInstr(e.test,e.body,e)),t.push(e.test),t.push(identifier("undefined",e.loc))},ArrayExpression({command:e,control:t}){const n=e.elements,r=n.length;t.push(arrLitInstr(r,e));for(let e=r-1;e>=0;e--)t.push(n[e])},ArrowFunctionExpression({command:e,context:t,stash:n,isPrelude:r}){const i=Closure.makeFromArrowFunction(e,currentEnvironment(t),t,!0,r);n.push(i)},AssignmentExpression({command:e,control:t}){if("MemberExpression"===e.left.type)t.push(arrAssmtInstr(e)),t.push(e.right),t.push(e.left.property),t.push(e.left.object);else if("Identifier"===e.left.type){const n=e.left;t.push(assmtInstr(n.name,e)),t.push(e.right)}},BinaryExpression({command:e,control:t}){t.push(binOpInstr(e.operator,e)),t.push(e.right),t.push(e.left)},CallExpression({command:e,control:t}){t.push(appInstr(e.arguments.length,e));for(let n=e.arguments.length-1;n>=0;n--)t.push(e.arguments[n]);t.push(e.callee)},ConditionalExpression({command:e,control:t}){t.push(...reduceConditional(e))},Identifier({command:e,context:t,stash:n}){n.push(getVariable(t,e.name,e))},Literal({command:e,stash:t}){t.push(e.value)},LogicalExpression({command:e,control:t}){"&&"===e.operator?t.push(conditionalExpression(e.left,e.right,literal$1(!1),e.loc)):t.push(conditionalExpression(e.left,literal$1(!0),e.right,e.loc))},MemberExpression({command:e,control:t}){t.push(arrAccInstr(e)),t.push(e.property),t.push(e.object)},SpreadElement({command:e,control:t}){const n=e.argument;t.push(spreadInstr(n)),t.push(n)},UnaryExpression({command:e,control:t}){t.push(unOpInstr(e.operator,e)),t.push(e.argument)},[InstrType.APPLICATION]({command:e,context:t,control:n,stash:r}){checkStackOverFlow(t,n);const i=[];for(let t=0;t0){const n=createEnvironment(t,a,i,e.srcNode);pushEnvironment(t,n)}else t.runtime.environments.unshift(a.environment);if(0===a.node.params.length&&t.pendingStreamFnStack.push([a.id,null!==t.runtime.control?t.runtime.control.size():0]),isSimpleFunction(a.node)){const e=a.node.body.body[0];n.push(e.argument??identifier("undefined",e.loc))}else n.peek()&&n.push(markerInstr(e.srcNode)),n.push(a.node.body);return}try{const n=callIfFuncAndRightArgs(a,e.srcNode.loc?.start?.line??-1,e.srcNode.loc?.start?.column??-1,null,void 0,...i);isStreamFn(a,n)&&Object.defineProperties(n[1],{environment:{value:currentEnvironment(t),writable:!0}});const o=e=>{if(lodashExports.isArray(e)&&!isEnvArray(e)){for(const t of e)o(t);handleArrayCreation(t,e)}};o(n),r.push(n)}catch(e){handleRuntimeError(t,e)}},[InstrType.ARRAY_ACCESS]({command:e,context:t,stash:n}){const r=n.pop(),i=n.pop();try{checkoutofRange(e.srcNode,r,t.chapter),checkArray(e.srcNode,i,t.chapter)}catch(e){handleRuntimeError(t,e)}r>=i.length?n.push(void 0):n.push(i[r])},[InstrType.ARRAY_LITERAL]({command:e,context:t,stash:n}){const r=e.arity,i=[];for(let e=0;e=0;e--)if(a[e].instrType===InstrType.APPLICATION){a[e].numOfArgs+=i.length-1;break}},[InstrType.UNARY_OP]({command:e,context:t,stash:n}){const r=n.pop();try{checkUnaryExpression(e.srcNode,e.symbol,r,t.chapter)}catch(e){handleRuntimeError(t,e)}n.push(evaluateUnaryExpression(e.symbol,r))},[InstrType.WHILE]({command:e,context:t,control:n,stash:r}){const i=r.pop();try{checkIfStatement(e.srcNode,i,t.chapter)}catch(e){handleRuntimeError(t,e)}i&&(n.push(e),n.push(e.test),hasContinueStatement(e.body)&&n.push(contMarkerInstr(e.srcNode)),valueProducing(e.body)||n.push(identifier("undefined",e.body.loc)),n.push(e.body),n.push(popInstr(e.srcNode)))}};var interpreter=Object.freeze({__proto__:null,CSEResultPromise:CSEResultPromise,Control:Control,Stash:Stash,evaluate:evaluate,generateCSEMachineStateStream:generateCSEMachineStateStream,resumeEvaluate:resumeEvaluate});const closureToJS=(e,t)=>{function n(){const n=[...arguments],r=callExpression(literal$1(e,e.node.loc),n.map(e=>primitive(e))),i={...t,runtime:{...t.runtime,nodes:[...t.runtime.nodes],breakpointSteps:[...t.runtime.breakpointSteps],changepointSteps:[...t.runtime.changepointSteps],debuggerOn:!1}};i.runtime.control=new Control,i.runtime.control.push(envInstr(currentEnvironment(t),r),r),i.runtime.stash=new Stash;const a=generateCSEMachineStateStream(i,i.runtime.control,i.runtime.stash,-1,-1);for(const e of a);return t.runtime.objectCount=i.runtime.objectCount,i.runtime.stash.peek()}return Object.defineProperty(n,"name",{value:e.functionName}),Object.setPrototypeOf(n,()=>{}),Object.defineProperty(n,"Inherits",{value:e=>{n.prototype=Object.create(e.prototype),n.prototype.constructor=n}}),n.toString=()=>generate$1(e.originalNode),n.call=(e,...t)=>n.apply(e,t),n};class Callable extends Function{constructor(e){return super(),Object.setPrototypeOf(e,new.target.prototype)}}class Closure extends Callable{constructor(e,t,n,r){super(function(...e){return a.apply(this,e)}),this.node=e,this.environment=t,this.originalNode=e,this.id=uniqueId(n),currentEnvironment(n).heap.add(this);const i=this.node.params.map(e=>"RestElement"===e.type?"..."+e.argument.name:e.name);this.functionName=i.join(", "),(1!==i.length||i[0].startsWith("..."))&&(this.functionName="("+this.functionName+")"),this.functionName+=" => ...";const a=closureToJS(this,n);this.fun=a,this.predefined=r??!1}static makeFromArrowFunction(e,t,n,r,i){const a=isBlockStatement(e.body)||isStatementSequence(e.body)?r&&!hasReturnStatement(e.body)?blockStatement([...e.body.body,returnStatement(identifier("undefined",e.body.loc),e.body.loc)],e.body.loc):e.body:blockStatement([returnStatement(e.body,e.body.loc)],e.body.loc),o=new Closure(blockArrowFunction(e.params,a,e.loc),t,n,i);return o.originalNode=e,o}toString(){return generate$1(this.originalNode)}}function isArrayLike(e){return"string"==typeof e.replPrefix&&"string"==typeof e.replSuffix&&"function"==typeof e.replArrayContents}function stringify$9(e,t=2,n=80){if("string"==typeof t)throw new InternalRuntimeError(`${stringify$9.name} with arbitrary indent string not supported`);let r=t;return t>10&&(r=10),lineTreeToString(stringDagToLineTree(valueToStringDag(e),r,n))}function typeToString(e){return niceTypeToString(e)}function niceTypeToString(e,t={_next:0}){function n(e){return niceTypeToString(e,t)}switch(e.kind){case"primitive":return e.name;case"variable":return e.constraint&&"none"!==e.constraint?e.constraint:(e.name in t||(t[e.name]="T"+t._next++),t[e.name]);case"list":return`List<${n(e.elementType)}>`;case"array":return`Array<${n(e.elementType)}>`;case"pair":const r=n(e.headType);return"list"===e.tailType.kind&&r===n(e.tailType.elementType)?`List<${r}>`:`[${n(e.headType)}, ${n(e.tailType)}]`;case"function":let i=e.parameterTypes.map(n).join(", ");return 1===e.parameterTypes.length&&"function"!==e.parameterTypes[0].kind||(i=`(${i})`),`${i} -> ${n(e.returnType)}`;default:return"Unable to infer type"}}function valueToStringDag(e){const t=new Map,n=new Map;function r(e,r,i,o){const s=n.get(e);if(void 0!==s)return[s,!1];t.set(e,t.size);const c=r.map(a);let l=i.length+o.length+2*Math.max(0,c.length-1),u=!1;for(let e=0;ee[0]),prefix:i,suffix:o,length:l};return u||n.set(e,d),[d,u]}function i(e){const t=e.split("\n");return 1===t.length?[{type:"terminal",str:t[0],length:t[0].length},!1]:[{type:"multiline",lines:t,length:1/0},!1]}function a(e){if(null===e)return[{type:"terminal",str:"null",length:4},!1];if(void 0===e)return[{type:"terminal",str:"undefined",length:9},!1];if(t.has(e))return[{type:"terminal",str:"...",length:13},!0];if(e instanceof Closure)return i(e.toString());if("string"==typeof e){const t=JSON.stringify(e);return[{type:"terminal",str:t,length:t.length},!1]}return"function"==typeof e.toReplString?i(callIfFuncAndRightArgs(e.toReplString.bind(e),-1,-1,null,void 0)):"object"!=typeof e?i(e.toString()):t.size>MAX_LIST_DISPLAY_LENGTH?[{type:"terminal",str:"...",length:14},!1]:Array.isArray(e)?2===e.length?function(e){const r=n.get(e);if(void 0!==r)return[r,!1];t.set(e,t.size);const i=e,[o,s]=a(i[0]),[c,l]=a(i[1]),u=s||l;t.delete(e);const d={type:"pair",head:o,tail:c,length:o.length+c.length+4};return u||n.set(e,d),[d,u]}(e):r(e,e,"[","]"):isArrayLike(e)?r(e,e.replArrayContents(),e.replPrefix,e.replSuffix):Object.getPrototypeOf(e)===Object.prototype?function(e){const r=n.get(e);if(void 0!==r)return[r,!1];t.set(e,t.size);const i=Object.entries(e),o=i.map(e=>a(e[1]));let s=2+2*Math.max(0,i.length-1)+2*i.length,c=!1;const l=[];for(let e=0;e({type:"line",line:{type:"terminal",str:e,length:e.length}})),suffixRest:"",suffixLast:""};else if("pair"===a.type){const t=e(a.head),i=e(a.tail);s=a.length-2>n||"line"!==t.type||"line"!==i.type?{type:"block",prefixFirst:r,prefixRest:"",block:[t,i],suffixRest:",",suffixLast:"]"}:{type:"line",line:a}}else if("arraylike"===a.type){const r=a.elems.map(e);s=a.length-a.prefix.length-a.suffix.length>n||r.some(e=>"line"!==e.type)?{type:"block",prefixFirst:a.prefix+" ".repeat(Math.max(0,t-a.prefix.length)),prefixRest:" ".repeat(Math.max(a.prefix.length,t)),block:r,suffixRest:",",suffixLast:a.suffix}:{type:"line",line:a}}else{if("kvpair"!==a.type)throw"up";{const t=e(a.value);s=a.length>n||"line"!==t.type?{type:"block",prefixFirst:"",prefixRest:"",block:[{type:"line",line:{type:"terminal",str:JSON.stringify(a.key),length:0}},t],suffixRest:":",suffixLast:""}:{type:"line",line:a}}}return i.set(a,s),s}(e)}function stringDagToSingleLine(e){return function e(t,n){if("multiline"===t.type)throw"Tried to format multiline string as single line string";if("terminal"===t.type)n.push(t.str);else if("pair"===t.type)n.push("["),e(t.head,n),n.push(", "),e(t.tail,n),n.push("]");else if("kvpair"===t.type)n.push(JSON.stringify(t.key)),n.push(": "),e(t.value,n);else if("arraylike"===t.type){n.push(t.prefix),t.elems.length>0&&e(t.elems[0],n);for(let r=1;rstringify$9(e.value));t.write(n.join(", ")),t.write(")")}}}explain(){const e=e=>generate$1(e,{generator:this.customGenerator});return"Maximum call stack size exceeded\n "+this.calls.map(t=>e(t)+"..").join(" ")}elaborate(){return"TODO"}}MaximumStackLimitExceededError.MAX_CALLS_TO_SHOW=3;class CallingNonFunctionValueError extends RuntimeSourceError{constructor(e,t){super(t),this.callee=e}explain(){return`Calling non-function value ${stringify$9(this.callee)}.`}elaborate(){const e=this.callee,t=stringify$9(e),n=`Because ${t} is not a function, you cannot run ${t}(${this.node.arguments.map(generate$1).join(", ")}).`;return Number.isFinite(e)?`${n} If you were planning to perform multiplication by ${t}, you need to use the * operator.`:n}}class UndefinedVariableError extends RuntimeSourceError{constructor(e,t){super(t),this.varname=e}explain(){return`Name ${this.varname} not declared.`}elaborate(){return`Before you can read the value of ${this.varname}, you need to declare it as a variable or a constant. You can do this using the let or const keywords.`}}class UnassignedVariableError extends RuntimeSourceError{constructor(e,t){super(t),this.varname=e}explain(){return`Name ${this.varname} declared later in current scope but not yet assigned`}elaborate(){return`If you're trying to access the value of ${this.varname} from an outer scope, please rename the inner ${this.varname}. An easy way to avoid this issue in future would be to avoid declaring any variables or constants with the name ${this.varname} in the same scope.`}}class InvalidNumberOfArgumentsError extends RuntimeSourceError{constructor(e,t,n,r,i=!1){super(e),this.expected=t,this.got=n,this.funcName=r,this.hasVarArgs=i,this.calleeStr=generate$1(e.callee)}explain(){return`${void 0!==this.funcName?`${this.funcName}: `:""}Expected ${this.expected} ${this.hasVarArgs?"or more ":""}arguments, but got ${this.got}.`}elaborate(){const e=this.calleeStr,t=1===this.expected?"":"s";return`Try calling function ${e} again, but with ${this.expected} argument${t} instead. Remember that arguments are separated by a ',' (comma).`}}class VariableRedeclarationError extends RuntimeSourceError{constructor(e,t,n){super(e),this.varname=t,this.writable=n}explain(){return`Redeclaring name ${this.varname}.`}elaborate(){if(this.writable){const e=`Since ${this.varname} has already been declared, you can assign a value to it without re-declaring.`;let t="";switch(this.node.type){case"FunctionDeclaration":t="("+this.node.params.map(generate$1).join(",")+") => {...";break;case"VariableDeclaration":{const{init:e}=getSourceVariableDeclaration(this.node);t=generate$1(e);break}}return`${e} As such, you can just do\n\n\t${this.varname} = ${t};\n`}return`You will need to declare another variable, as ${this.varname} is read-only.`}}class ConstAssignmentError extends RuntimeSourceError{constructor(e,t){super(e),this.varname=t}explain(){return`Cannot assign new value to constant ${this.varname}.`}elaborate(){return`As ${this.varname} was declared as a constant, its value cannot be changed. You will have to declare a new variable.`}}class GetPropertyError extends RuntimeSourceError{constructor(e,t,n){super(e),this.obj=t,this.prop=n}explain(){return`Cannot read property ${this.prop} of ${stringify$9(this.obj)}.`}elaborate(){return"TODO"}}class GetInheritedPropertyError extends RuntimeSourceError{constructor(e,t,n){super(e),this.obj=t,this.prop=n}explain(){return`Cannot read inherited property ${this.prop} of ${stringify$9(this.obj)}.`}elaborate(){return"TODO"}}class SetPropertyError extends RuntimeSourceError{constructor(e,t,n){super(e),this.obj=t,this.prop=n}explain(){return`Cannot assign property ${this.prop} of ${stringify$9(this.obj)}.`}elaborate(){return"TODO"}}var errors=Object.freeze({__proto__:null,BuiltInFunctionError:BuiltInFunctionError,CallingNonFunctionValueError:CallingNonFunctionValueError,ConstAssignmentError:ConstAssignmentError,ExceptionError:ExceptionError,GetInheritedPropertyError:GetInheritedPropertyError,GetPropertyError:GetPropertyError,InterruptedError:InterruptedError,InvalidNumberOfArgumentsError:InvalidNumberOfArgumentsError,MaximumStackLimitExceededError:MaximumStackLimitExceededError,SetPropertyError:SetPropertyError,UnassignedVariableError:UnassignedVariableError,UndefinedVariableError:UndefinedVariableError,VariableRedeclarationError:VariableRedeclarationError});class Heap{constructor(){this.storage=null}add(...e){this.storage??(this.storage=new Set);for(const t of e)this.storage.add(t)}contains(e){return this.storage?.has(e)??!1}size(){return this.storage?.size??0}move(e,t){return!!this.contains(e)&&(this.storage.delete(e),t.add(e),!0)}getHeap(){return new Set(this.storage)}}const isInstr=e=>"instrType"in e,isNode=e=>"type"in e,isReturnStatement=e=>"ReturnStatement"===e.type,isIfStatement=e=>"IfStatement"===e.type,isBlockStatement=e=>"BlockStatement"===e.type,isStatementSequence=e=>isNode(e)&&"StatementSequence"===e.type,isRestElement=e=>"RestElement"===e.type,uniqueId=e=>""+e.runtime.objectCount++,isEnvArray=e=>Array.isArray(e)&&{}.hasOwnProperty.call(e,"id")&&{}.hasOwnProperty.call(e,"environment"),isStreamFn=(e,t)=>!(null==t||!Array.isArray(t)||2!==t.length)&&lodashExports.isFunction(e)&&!(e instanceof Closure)&&("stream"===e.name||{}.hasOwnProperty.call(e,"environment")),handleArrayCreation=(e,t,n)=>{const r=n??currentEnvironment(e);Object.defineProperties(t,{id:{value:uniqueId(e)},environment:{value:r,writable:!0}}),r.heap.add(t)},handleSequence=e=>{const t=[];let n=!1;for(const r of e)isImportDeclaration(r)||(valueProducing(r)&&(n?t.push(popInstr(r)):n=!0),t.push(r));return t.reverse()},reduceConditional=e=>[branchInstr(e.consequent,e.alternate,e),e.test],valueProducing=e=>{const t=e.type;return"VariableDeclaration"!==t&&"FunctionDeclaration"!==t&&"ContinueStatement"!==t&&"BreakStatement"!==t&&"DebuggerStatement"!==t&&("BlockStatement"!==t||e.body.some(valueProducing))},envChanging=e=>{if(isNode(e)){const t=e.type;return"Program"===t||"BlockStatement"===t||"ArrowFunctionExpression"===t||"ExpressionStatement"===t&&"ArrowFunctionExpression"===e.expression.type}if(isInstr(e)){const t=e.instrType;return t===InstrType.ENVIRONMENT||t===InstrType.ARRAY_LITERAL||t===InstrType.ASSIGNMENT||t===InstrType.ARRAY_ASSIGNMENT||t===InstrType.APPLICATION&&e.numOfArgs>0}return!0},isSimpleFunction=e=>{if("BlockStatement"!==e.body.type&&"StatementSequence"!==e.body.type)return!0;{const t=e.body;return 1===t.body.length&&"ReturnStatement"===t.body[0].type}},currentEnvironment=e=>e.runtime.environments[0],createEnvironment=(e,t,n,r)=>{const i={name:isIdentifier(r.callee)?r.callee.name:t.declaredName??t.functionName,tail:t.environment,head:{},heap:new Heap,id:uniqueId(e),callExpression:{...r,arguments:n.map(primitive)}};return t.node.params.forEach((t,r)=>{if(isRestElement(t)){const a=n.slice(r);handleArrayCreation(e,a,i),i.head[t.argument.name]=a}else i.head[t.name]=n[r]}),i},popEnvironment=e=>e.runtime.environments.shift(),pushEnvironment=(e,t)=>{e.runtime.environments.unshift(t),e.runtime.environmentTree.insert(t)},createBlockEnvironment=(e,t="blockEnvironment")=>({name:t,tail:currentEnvironment(e),head:{},heap:new Heap,id:uniqueId(e)}),createProgramEnvironment=(e,t)=>createBlockEnvironment(e,t?"prelude":"programEnvironment"),UNASSIGNED_CONST=Symbol("const declaration"),UNASSIGNED_LET=Symbol("let declaration");function declareIdentifier(e,t,n,r,i=!1){if(r.head.hasOwnProperty(t)){const i=Object.getOwnPropertyDescriptors(r.head);return isVariableDeclaration$1(n)?handleRuntimeError(e,new VariableRedeclarationError(n,t,!!i[t].writable)):(assert(!1===i[t].writable,`${n.type} should not be reassignable`),handleRuntimeError(e,new VariableRedeclarationError(n,t,i[t].writable)))}return r.head[t]=i?UNASSIGNED_CONST:UNASSIGNED_LET,r}function declareVariables(e,t,n){const r="const"===t.kind;for(const i of extractDeclarations(t))declareIdentifier(e,i.name,t,n,r)}function declareFunctionsAndVariables(e,t,n){for(const r of t.body)switch(r.type){case"VariableDeclaration":declareVariables(e,r,n);break;case"FunctionDeclaration":declareIdentifier(e,r.id.name,r,n,!0)}}function defineVariable(e,t,n,r=!1,i){const a=currentEnvironment(e);return a.head[t]!==UNASSIGNED_CONST&&a.head[t]!==UNASSIGNED_LET?handleRuntimeError(e,new VariableRedeclarationError(i,t,!r)):(r&&n instanceof Closure&&(n.declaredName=t),Object.defineProperty(a.head,t,{value:n,writable:!r,enumerable:!0}),a)}const getVariable=(e,t,n)=>{let r=currentEnvironment(e);for(;r;){if(r.head.hasOwnProperty(t))return r.head[t]===UNASSIGNED_CONST||r.head[t]===UNASSIGNED_LET?handleRuntimeError(e,new UnassignedVariableError(t,n)):r.head[t];r=r.tail}return handleRuntimeError(e,new UndefinedVariableError(t,n))},setVariable=(e,t,n,r)=>{let i=currentEnvironment(e);for(;i;){if(i.head.hasOwnProperty(t)){if(i.head[t]===UNASSIGNED_CONST||i.head[t]===UNASSIGNED_LET)break;return Object.getOwnPropertyDescriptors(i.head)[t].writable?void(i.head[t]=n):handleRuntimeError(e,new ConstAssignmentError(r,t))}i=i.tail}return handleRuntimeError(e,new UndefinedVariableError(t,r))};function handleRuntimeError(e,t){throw e.errors.push(t),t}const checkNumberOfArguments=(e,t,n,r)=>{if(t instanceof Closure){const i=t.node.params,a="RestElement"===i[i.length-1]?.type;if(a?i.length-1>n.length:i.length!==n.length)return handleRuntimeError(e,new InvalidNumberOfArgumentsError(r,a?i.length-1:i.length,n.length,void 0,a))}else{if(isCallWithCurrentContinuation(t))return 1!==n.length?handleRuntimeError(e,new InvalidNumberOfArgumentsError(r,1,n.length,void 0,!1)):void 0;if(t instanceof Continuation)return;{const i=null!=t.minArgsNeeded;if(i?t.minArgsNeeded>n.length:t.length!==n.length)return handleRuntimeError(e,new InvalidNumberOfArgumentsError(r,i?t.minArgsNeeded:t.length,n.length,void 0,i))}}},checkStackOverFlow=(e,t)=>{if(t.size()>1e5){const t=[];let n=0;for(let r=0;n{let t=!0;return t=t&&hasReturnStatement(e.consequent),e.alternate&&(isIfStatement(e.alternate)?t=t&&hasReturnStatementIf(e.alternate):(isBlockStatement(e.alternate)||isStatementSequence(e.alternate))&&(t=t&&hasReturnStatement(e.alternate))),t},hasReturnStatement=e=>{let t=!1;for(const n of e.body)isReturnStatement(n)?t=!0:isIfStatement(n)?t=t||hasReturnStatementIf(n):(isBlockStatement(n)||isStatementSequence(n))&&(t=t&&hasReturnStatement(n));return t};function nodeVisitor(e,t){switch(e.type){case"BlockStatement":case"StatementSequence":case"Program":return e.body.some(e=>nodeVisitor(e,t));case"IfStatement":{const{consequent:n,alternate:r}=e;return!!nodeVisitor(n,t)||!!r&&nodeVisitor(r,t)}default:return e.type===t}}const hasBreakStatement=e=>nodeVisitor(e,"BreakStatement"),hasContinueStatement=e=>nodeVisitor(e,"ContinueStatement"),envCalculators={ArrayExpression:({elements:e})=>e.some(isEnvDependent),ArrowFunctionExpression:!0,AssignmentExpression:["left","right"],BlockStatement:({body:e})=>e.some(isEnvDependent),BinaryExpression:["left","right"],BreakStatement:!1,CallExpression:e=>[e.callee,...e.arguments].some(isEnvDependent),ConditionalExpression:["alternate","consequent","test"],ContinueStatement:!1,DebuggerStatement:!1,ExpressionStatement:"expression",ForStatement:["body","init","test","update"],FunctionDeclaration:!0,Identifier:!0,IfStatement:["alternate","consequent","test"],ImportDeclaration:({specifiers:e})=>e.some(isEnvDependent),ImportDefaultSpecifier:!0,ImportSpecifier:!0,Literal:!1,LogicalExpression:["left","right"],MemberExpression:["object","property"],Program:({body:e})=>e.some(isEnvDependent),ReturnStatement:"argument",StatementSequence:({body:e})=>e.some(isEnvDependent),UnaryExpression:"argument",VariableDeclaration:!0,WhileStatement:["body","test"],[InstrType.APPLICATION]:!0,[InstrType.ARRAY_ACCESS]:!1,[InstrType.ARRAY_ASSIGNMENT]:!1,[InstrType.ARRAY_LITERAL]:!0,[InstrType.ASSIGNMENT]:!0,[InstrType.BINARY_OP]:!1,[InstrType.BRANCH]:["alternate","consequent"],[InstrType.BREAK_MARKER]:!1,[InstrType.CONTINUE]:!1,[InstrType.CONTINUE_MARKER]:!1,[InstrType.ENVIRONMENT]:!1,[InstrType.MARKER]:!1,[InstrType.POP]:!1,[InstrType.RESET]:!1,[InstrType.SPREAD]:!1,[InstrType.UNARY_OP]:!1,[InstrType.WHILE]:["body","test"],[InstrType.FOR]:["body","init","test","update"]};function isEnvDependent(e){if(null==e)return!1;if(void 0!==e.isEnvDependent)return e.isEnvDependent;let t;switch(isNode(e)?t=envCalculators[e.type]:isInstr(e)&&(t=envCalculators[e.instrType]),typeof t){case"boolean":e.isEnvDependent=t;break;case"string":e.isEnvDependent=isEnvDependent(e[t]);break;case"function":e.isEnvDependent=t(e);break;case"undefined":e.isEnvDependent=!1;break;default:if(!Array.isArray(t))throw new Error(`Invalid setter for ${e}: ${t}`);e.isEnvDependent=t.some(t=>isEnvDependent(e[t]))}return e.isEnvDependent}const _Call_cc=class e extends Function{constructor(){super()}static get(){return e.instance}toString(){return"call/cc"}};_Call_cc.instance=new _Call_cc;let Call_cc=_Call_cc;const call_with_current_continuation=Call_cc.get();function isCallWithCurrentContinuation(e){return e===call_with_current_continuation}class Continuation extends Function{constructor(e,t,n,r){super(),this.control=t.copy(),this.stash=n.copy(),this.env=[...r],this.id=uniqueId(e)}getControl(){return this.control.copy()}getStash(){return this.stash.copy()}getEnv(){return[...this.env]}toString(){return"continuation"}equals(e){return this===e}}function makeDummyContCallExpression(e,t){return{type:"CallExpression",optional:!1,callee:{type:"Identifier",name:e},arguments:[{type:"Identifier",name:t}]}}const nonAlphanumericCharEncoding={_:"_","/":"$",".":"$$$$dot$$$$","-":"$$$$dash$$$$"},transformFilePathToValidFunctionName=e=>`__${Object.entries(nonAlphanumericCharEncoding).reduce((e,[t,n])=>r=>e(r).replaceAll(t,n),e=>e)(e)}__`,transformFunctionNameToInvokedFunctionResultVariableName=e=>`_${e}_`,isAlphanumeric=e=>null!==/[a-zA-Z0-9]/i.exec(e),validateFilePath=e=>{if(e.includes("//"))return new ConsecutiveSlashesInFilePathError(e);for(const t of e)if(!isAlphanumeric(t)&&!(t in nonAlphanumericCharEncoding))return new IllegalCharInFilePathError(e);return null};class ModuleInternalError extends InternalRuntimeError{constructor(e,t,n){super(`Error(s) occured when executing the module '${e}'.`,t),this.moduleName=e,this.error=n}elaborate(){return"You may need to contact with the author for this module to fix this error."}}class ImportError extends SourceErrorWithNode{constructor(){super(...arguments),this.type=ErrorType.IMPORT,this.severity=ErrorSeverity.ERROR}}const _ModuleConnectionError=class e extends ImportError{explain(){return e.message}elaborate(){return e.elaboration}};_ModuleConnectionError.message="Unable to get modules.",_ModuleConnectionError.elaboration="You should check your Internet connection, and ensure you have used the correct module path.";let ModuleConnectionError=_ModuleConnectionError;class ModuleNotFoundError extends ImportError{constructor(e,t){super(t),this.moduleName=e}explain(){return`Module '${this.moduleName}' not found.`}elaborate(){return"You should check your import declarations, and ensure that all are valid modules."}}class WrongChapterForModuleError extends ImportError{constructor(e,t,n,r){super(r),this.moduleName=e,this.required=t,this.actual=n}explain(){const e=getChapterName(this.required),t=getChapterName(this.actual);return`${this.moduleName} needs at least ${e}, but you are using ${t}`}elaborate(){return this.explain()}}class UndefinedNamespaceImportError extends ImportError{constructor(e,t){super(t),this.moduleName=e}explain(){return`'${this.moduleName}' does not export any symbols!`}elaborate(){return"Check your imports and make sure what you're trying to import exists!"}}class UndefinedImportError extends UndefinedNamespaceImportError{constructor(e,t,n){super(t,n),this.symbol=e}explain(){return`'${this.moduleName}' does not contain a definition for '${this.symbol}'`}}class UndefinedDefaultImportError extends UndefinedImportError{constructor(e,t){super("default",e,t)}explain(){return`'${this.moduleName}' does not have a default export!`}}class CircularImportError extends ImportError{constructor(e){super(void 0),this.filePathsInCycle=e}explain(){return`Circular import detected: ${this.filePathsInCycle.map(e=>`'${e}'`).reverse().join(" -> ")}.`}elaborate(){return"Break the circular import cycle by removing imports from any of the offending files."}}class InvalidFilePathError extends ImportError{constructor(e){super(void 0),this.filePath=e}}class IllegalCharInFilePathError extends InvalidFilePathError{explain(){const e=Object.keys(nonAlphanumericCharEncoding).map(e=>`'${e}'`).join(", ");return`File path '${this.filePath}' must only contain alphanumeric chars and/or ${e}.`}elaborate(){return"Rename the offending file path to only use valid chars."}}class ConsecutiveSlashesInFilePathError extends InvalidFilePathError{explain(){return`File path '${this.filePath}' cannot contain consecutive slashes '//'.`}elaborate(){return"Remove consecutive slashes from the offending file path."}}class DuplicateImportNameError extends ImportError{constructor(e){super(void 0),this.nodes=e,this.locString=e.map(({loc:e})=>{const{source:t,start:n}=e??UNKNOWN_LOCATION;return`(${t??"Unknown File"}:${n.line}:${n.column})`}).join(", ")}get location(){return this.nodes[0].loc??UNKNOWN_LOCATION}explain(){return`Source does not support different imports from Source modules being given the same name. The following are the offending imports: ${this.locString}`}elaborate(){return"You cannot have different symbols across different files being given the same declared name, for example: `import { foo as a } from 'one_module';` and `import { bar as a } from 'another_module';\n You also cannot have different symbols from the same module with the same declared name, for example: `import { foo as a } from 'one_module';` and `import { bar as a } from 'one_module'; "}}const defaultAnalysisOptions={allowUndefinedImports:!1,throwOnDuplicateNames:!0};function analyzeImportsAndExports(e,t,n,{nativeStorage:{loadedModules:r}},i={}){const a=new Dict,o=lodashExports.mapValues(r,e=>new Set(Object.keys(e)));for(const r of[...n,t]){const t=e[r];o[r]=new Set;for(const e of t.body){if("ExportDefaultDeclaration"===e.type){i.allowUndefinedImports||(assert(!o[r].has("default"),"Multiple default exports should've been caught by the parser"),o[r].add("default"));continue}if("ExportNamedDeclaration"===e.type){if(e.declaration){i.allowUndefinedImports||getIdsFromDeclaration(e.declaration).forEach(e=>{o[r].add(e.name)});continue}for(const t of e.specifiers)o[r].add(getSpecifierName(t.exported));if(!e.source)continue}else if(!isModuleDeclaration(e))continue;const t=getModuleDeclarationSource(e),n=o[t];if("ExportAllDeclaration"!==e.type)for(const r of e.specifiers){if(i.throwOnDuplicateNames&&"ExportSpecifier"!==r.type&&isSourceModule(t)){const e=r.local.name;a.setdefault(e,new ArrayMap).add(t,r)}if(i.allowUndefinedImports)continue;if("ImportNamespaceSpecifier"===r.type){if(0===n.size)throw new UndefinedNamespaceImportError(t,r);continue}const e=getImportedName(r);if(!n.has(e)){if("default"===e)throw new UndefinedDefaultImportError(t,r);throw new UndefinedImportError(e,t,r)}}else if(!i.allowUndefinedImports){if(0===n.size)throw new UndefinedNamespaceImportError(t,e);if(e.exported)o[r].add(getSpecifierName(e.exported));else for(const e of n)"default"!==e&&o[r].add(e)}}}if(i.throwOnDuplicateNames)for(const[,e]of a){if(e.size>1){const t=e.flatMap((e,t)=>t);throw new DuplicateImportNameError(t)}const[[,t]]=e,[n,r]=lodashExports.partition(t,isNamespaceSpecifier),i=new Set(r.map(getImportedName));if(n.length>0&&r.length>0||i.size>1){const e=[...r,...n];throw new DuplicateImportNameError(e)}}}const isSourceModule=e=>!e.startsWith(".")&&!e.startsWith("/"),createEmptyModuleContexts=()=>new Proxy({},{get:(e,t)=>{if("string"==typeof t)return t in e||(e[t]={state:null,tabs:null}),e[t]}});function array_test(e){return void 0===Array.isArray?e instanceof Array:Array.isArray(e)}function pair$7(e,t){return[e,t]}function is_pair$7(e){return array_test(e)&&2===e.length}function head$7(e){if(!is_pair$7(e))throw new InvalidParameterTypeError("pair",e,head$7.name);return e[0]}function tail$7(e){if(!is_pair$7(e))throw new InvalidParameterTypeError("pair",e,tail$7.name);return e[1]}function set_head$5(e,t){if(!is_pair$7(e))throw new InvalidParameterTypeError("pair",e,set_head$5.name);e[0]=t}function set_tail$5(e,t){if(!is_pair$7(e))throw new InvalidParameterTypeError("pair",e,set_tail$5.name);e[1]=t}function is_null$7(e){return null===e}function list$7(...e){return e.reduceRight((e,t)=>pair$7(t,e),null)}function is_list$7(e){for(;is_pair$7(e);)e=tail$7(e);return is_null$7(e)}function list_to_vector(e){const t=[];return for_each$7(e=>t.push(e),e),t}function vector_to_list(e){return list$7(...e)}function accumulate$7(e,t,n){return function n(r,i){return is_null$7(r)?i(t):n(tail$7(r),t=>i(e(head$7(r),t)))}(n,e=>e)}function append$7(e,t){return function e(t,n,r){return is_null$7(t)?r(n):e(tail$7(t),n,e=>r(pair$7(head$7(t),e)))}(e,t,e=>e)}function build_list$7(e,t){return assertNumberWithinRange(t,build_list$7.name,0),assertFunctionOfLength(e,1,build_list$7.name),function t(n,r){return n<0?r:t(n-1,pair$7(e(n),r))}(t-1,null)}function enum_list$7(e,t){return assertNumberWithinRange(e,{func_name:enum_list$7.name,param_name:"start",integer:!1}),assertNumberWithinRange(t,enum_list$7.name,e,void 0,!1,"end"),build_list$7(t=>t+e,Math.floor(t-e)+1)}function filter$7(e,t){return accumulate$7((t,n)=>e(t)?pair$7(t,n):n,list$7(),t)}function for_each$7(e,t){return!!is_null$7(t)||(e(head$7(t)),for_each$7(e,tail$7(t)))}function length$8(e){if(!is_list$7(e))throw new InvalidParameterTypeError("list",e,length$8.name);return accumulate$7((e,t)=>t+1,0,e)}function list_ref$7(e,t){if(is_null$7(e))throw new GeneralRuntimeError(`${list_ref$7.name}: Index ${t} is out of bounds.`);let n=e,r=t;for(;r>0;){const e=tail$7(n);if(is_null$7(e))throw new GeneralRuntimeError(`${list_ref$7.name}: Index ${t} is out of bounds.`);n=e,r--}return head$7(n)}function map$7(e,t){return accumulate$7((t,n)=>pair$7(e(t),n),list$7(),t)}function member$7(e,t){return is_null$7(t)?null:e===head$7(t)?t:member$7(e,tail$7(t))}function remove$7(e,t){return is_null$7(t)?t:head$7(t)===e?tail$7(t):pair$7(head$7(t),remove$7(e,tail$7(t)))}function remove_all$7(e,t){return filter$7(t=>t!==e,t)}function reverse$7(e){return function e(t,n){return is_null$7(t)?n:e(tail$7(t),pair$7(head$7(t),n))}(e,null)}function rawDisplayList(e,t,n){const r=new Set,i=new Map;class a{constructor(e){this.listNode=e,this.replPrefix="list(",this.replSuffix=")"}replArrayContents(){return list_to_vector(this.listNode)}}function o(e){return i.get(e)||e}const s=[t];for(let e=0;e0;){const e=s.pop();if(!is_pair$7(e))continue;const t=head$7(e),n=tail$7(e);let r;if(c(n)){const e=i.get(n);r=is_null$7(e)||e instanceof a?new a(pair$7(t,n)):pair$7(t,n)}else r=is_null$7(n)?new a(pair$7(t,n)):pair$7(t,n);i.set(e,r)}for(const e of i.values())if(is_pair$7(e))set_head$5(e,o(head$7(e))),set_tail$5(e,o(tail$7(e)));else if(e instanceof a){set_head$5(e.listNode,o(head$7(e.listNode)));let t=o(tail$7(e.listNode));t instanceof a&&(t=t.listNode),set_tail$5(e.listNode,t)}return e(o(t),n),t}var list$8=Object.freeze({__proto__:null,accumulate:accumulate$7,append:append$7,build_list:build_list$7,enum_list:enum_list$7,filter:filter$7,for_each:for_each$7,head:head$7,is_list:is_list$7,is_null:is_null$7,is_pair:is_pair$7,length:length$8,list:list$7,list_ref:list_ref$7,list_to_vector:list_to_vector,map:map$7,member:member$7,pair:pair$7,rawDisplayList:rawDisplayList,remove:remove$7,remove_all:remove_all$7,reverse:reverse$7,set_head:set_head$5,set_tail:set_tail$5,tail:tail$7,vector_to_list:vector_to_list});const listPrelude='\n\n// equal computes the structural equality\n// over its arguments\n\nfunction equal(xs, ys) {\n return is_pair(xs)\n ? (is_pair(ys) &&\n equal(head(xs), head(ys)) &&\n equal(tail(xs), tail(ys)))\n : is_null(xs)\n ? is_null(ys)\n : is_number(xs)\n ? (is_number(ys) && xs === ys)\n : is_boolean(xs)\n ? (is_boolean(ys) && ((xs && ys) || (!xs && !ys)))\n : is_string(xs)\n ? (is_string(ys) && xs === ys)\n : is_undefined(xs)\n ? is_undefined(ys)\n : is_function(xs)\n // we know now that xs is a function,\n // but we use an if check anyway to make use of the type predicate\n ? (is_function(ys) && xs === ys)\n : false;\n}\n\n\n// returns the length of a given argument list\n// assumes that the argument is a list\n\nfunction $length(xs, acc) {\n return is_null(xs) ? acc : $length(tail(xs), acc + 1);\n}\nfunction length(xs) {\n return $length(xs, 0);\n}\n\n// map applies first arg f, assumed to be a unary function,\n// to the elements of the second argument, assumed to be a list.\n// f is applied element-by-element:\n// map(f, list(1, 2)) results in list(f(1), f(2))\n\nfunction $map(f, xs, acc) {\n return is_null(xs)\n ? reverse(acc)\n : $map(f, tail(xs), pair(f(head(xs)), acc));\n}\nfunction map(f, xs) {\n return $map(f, xs, null);\n}\n\n// build_list takes a a function fun as first argument, \n// and a nonnegative integer n as second argument,\n// build_list returns a list of n elements, that results from\n// applying fun to the numbers from 0 to n-1.\n\nfunction $build_list(i, fun, already_built) {\n return i < 0 ? already_built : $build_list(i - 1, fun, pair(fun(i), already_built));\n}\n\nfunction build_list(fun, n) {\n return $build_list(n - 1, fun, null);\n}\n\n// for_each applies first arg fun, assumed to be a unary function,\n// to the elements of the second argument, assumed to be a list.\n// fun is applied element-by-element:\n// for_each(fun, list(1, 2)) results in the calls fun(1) and fun(2).\n// for_each returns true.\n\nfunction for_each(fun, xs) {\n if (is_null(xs)) {\n return true;\n } else {\n fun(head(xs));\n return for_each(fun, tail(xs));\n }\n}\n\n// list_to_string returns a string that represents the argument list.\n// It applies itself recursively on the elements of the given list.\n// When it encounters a non-list, it applies to_string to it.\n\nfunction $list_to_string(xs, cont) {\n return is_null(xs)\n ? cont("null")\n : is_pair(xs)\n ? $list_to_string(\n head(xs),\n x => $list_to_string(\n tail(xs),\n y => cont("[" + x + "," + y + "]")))\n : cont(stringify(xs));\n}\n\nfunction list_to_string(xs) {\n return $list_to_string(xs, x => x);\n}\n\n// reverse reverses the argument, assumed to be a list\n\nfunction $reverse(original, reversed) {\n return is_null(original)\n ? reversed\n : $reverse(tail(original), pair(head(original), reversed));\n}\n\nfunction reverse(xs) {\n return $reverse(xs, null);\n}\n\n// append first argument, assumed to be a list, to the second argument.\n// In the result null at the end of the first argument list\n// is replaced by the second argument, regardless what the second\n// argument consists of.\n\nfunction $append(xs, ys, cont) {\n return is_null(xs)\n ? cont(ys)\n : $append(tail(xs), ys, zs => cont(pair(head(xs), zs)));\n}\n\nfunction append(xs, ys) {\n return $append(xs, ys, xs => xs);\n}\n\n// member looks for a given first-argument element in the\n// second argument, assumed to be a list. It returns the first\n// postfix sublist that starts with the given element. It returns null if the\n// element does not occur in the list\n\nfunction member(v, xs) {\n return is_null(xs)\n ? null\n\t : v === head(xs)\n\t ? xs\n\t : member(v, tail(xs));\n}\n\n// removes the first occurrence of a given first-argument element\n// in second-argument, assmed to be a list. Returns the original\n// list if there is no occurrence.\n\nfunction $remove(v, xs, acc) {\n // Ensure that typechecking of append and reverse are done independently\n const app = append;\n const rev = reverse;\n return is_null(xs)\n ? app(rev(acc), xs)\n : v === head(xs)\n ? app(rev(acc), tail(xs))\n : $remove(v, tail(xs), pair(head(xs), acc));\n}\n\nfunction remove(v, xs) {\n return $remove(v, xs, null);\n}\n\n// Similar to remove, but removes all instances of v\n// instead of just the first\n\nfunction $remove_all(v, xs, acc) {\n // Ensure that typechecking of append and reverse are done independently\n const app = append;\n const rev = reverse;\n return is_null(xs)\n ? app(rev(acc), xs)\n : v === head(xs)\n ? $remove_all(v, tail(xs), acc)\n : $remove_all(v, tail(xs), pair(head(xs), acc));\n}\n\nfunction remove_all(v, xs) {\n return $remove_all(v, xs, null);\n}\n\n// filter returns the sublist of elements of the second argument\n// (assumed to be a list), for which the given predicate function\n// returns true.\n\nfunction $filter(pred, xs, acc) {\n return is_null(xs)\n ? reverse(acc)\n : pred(head(xs))\n ? $filter(pred, tail(xs), pair(head(xs), acc))\n : $filter(pred, tail(xs), acc);\n}\n\nfunction filter(pred, xs) {\n return $filter(pred, xs, null);\n}\n\n// enumerates numbers starting from start, assumed to be a number,\n// using a step size of 1, until the number exceeds end, assumed\n// to be a number\n\nfunction $enum_list(start, end, acc) {\n // Ensure that typechecking of reverse are done independently\n const rev = reverse;\n return start > end\n ? rev(acc)\n : $enum_list(start + 1, end, pair(start, acc));\n}\n\nfunction enum_list(start, end) {\n return $enum_list(start, end, null);\n}\n\n// Returns the item in xs (assumed to be a list) at index n,\n// assumed to be a nonnegative integer.\n// Note: the first item is at position 0\n\nfunction list_ref(xs, n) {\n return n === 0\n ? head(xs)\n : list_ref(tail(xs), n - 1);\n}\n\n// accumulate applies an operation op (assumed to be a binary function)\n// to elements of sequence (assumed to be a list) in a right-to-left order.\n// first apply op to the last element and initial, resulting in r1, then to\n// the second-last element and r1, resulting in r2, etc, and finally\n// to the first element and r_n-1, where n is the length of the\n// list.\n// accumulate(op, zero, list(1, 2, 3)) results in\n// op(1, op(2, op(3, zero)))\n\nfunction $accumulate(f, initial, xs, cont) {\n return is_null(xs)\n ? cont(initial)\n : $accumulate(f, initial, tail(xs), x => cont(f(head(xs), x)));\n}\n\nfunction accumulate(f, initial, xs) {\n return $accumulate(f, initial, xs, x => x);\n}\n';function rawDisplay(e,t,n){return console.log((void 0===t?"":t+" ")+e.toString()),e}function error_message(e,...t){const n=(void 0===t[0]?"":t[0]+" ")+stringify$9(e);throw new GeneralRuntimeError(`Error: ${n}`)}function timed(e,t,n,r){return(...e)=>{const i=get_time$9(),a=t(...e),o=get_time$9()-i;return r("Duration: "+Math.round(o)+"ms","",n),a}}function is_number$9(e){return"number"==typeof e}function is_undefined$9(e){return void 0===e}function is_string$9(e){return"string"==typeof e}function is_boolean$9(e){return"boolean"==typeof e}function is_object(e){return"object"==typeof e||is_function$9(e)}function is_function$9(e){return"function"==typeof e}function is_NaN(e){return is_number$9(e)&&isNaN(e)}function has_own_property(e,t){return e.hasOwnProperty(t)}function is_array$5(e){return e instanceof Array}function array_length$5(e){return e.length}function parse_int$9(e,t){if("string"!=typeof e)throw new InvalidParameterTypeError("string",e,parse_int$9.name,"str");return assertNumberWithinRange(t,parse_int$9.name,2,36,!0,"radix"),parseInt(e,t)}function char_at$9(e,t){if("string"!=typeof e)throw new InvalidParameterTypeError("string",e,char_at$9.name,"str");if(assertNumberWithinRange(t,char_at$9.name,0,void 0,!0,"index"),!(t>=e.length))return e[t]}function arity$9(e){if(e instanceof Closure){const t=e.node.params;return"RestElement"===t[t.length-1]?.type?t.length-1:t.length}if("function"==typeof e)return e.length;throw new InvalidParameterTypeError("function",e,arity$9.name)}function get_time$9(){return(new Date).getTime()}function equal$7(e,t){return is_pair$7(e)?is_pair$7(t)&&equal$7(head$7(e),head$7(t))&&equal$7(tail$7(e),tail$7(t)):is_null$7(e)?is_null$7(t):is_number$9(e)?is_number$9(t)&&e===t:is_boolean$9(e)?is_boolean$9(t)&&(e&&t||!e&&!t):is_string$9(e)?is_string$9(t)&&e===t:is_undefined$9(e)?is_undefined$9(t):!!is_function$9(e)&&is_function$9(t)&&e===t}var misc=Object.freeze({__proto__:null,arity:arity$9,array_length:array_length$5,char_at:char_at$9,equal:equal$7,error_message:error_message,get_time:get_time$9,has_own_property:has_own_property,is_NaN:is_NaN,is_array:is_array$5,is_boolean:is_boolean$9,is_function:is_function$9,is_number:is_number$9,is_object:is_object,is_string:is_string$9,is_undefined:is_undefined$9,parse_int:parse_int$9,rawDisplay:rawDisplay,timed:timed});class ParseError extends RuntimeSourceError{constructor(e,t,n){super(n),this.explanation=`${t}: ${e}`}explain(){return this.explanation}}function unreachable(){console.error(oneLine` + UNREACHABLE CODE REACHED! + Please file an issue at + https://github.com/source-academy/js-slang/issues + if you see this. + `)}function hasDeclarationAtToplevel(e){return e.some(isDeclaration)}const transformers={ArrayExpression({elements:e}){return vector_to_list(["array_expression",vector_to_list(e.map(this.transform))])},ArrowFunctionExpression({body:e,params:t}){return vector_to_list(["lambda_expression",vector_to_list(t.map(this.transform)),"BlockStatement"===e.type?this.makeBlockIfNeeded(e.body):vector_to_list(["return_statement",this.transform(e)])])},AssignmentExpression(e){if("Identifier"===e.left.type)return vector_to_list(["assignment",this.transform(e.left),this.transform(e.right)]);if("MemberExpression"===e.left.type)return vector_to_list(["object_assignment",this.transform(e.left),this.transform(e.right)]);throw unreachable(),new ParseError("Invalid assignment",this.funcName,e)},BinaryExpression(e){return vector_to_list(["binary_operator_combination",e.operator,this.transform(e.left),this.transform(e.right)])},BlockStatement({body:e}){return this.makeBlockIfNeeded(e)},BreakStatement:()=>vector_to_list(["break_statement"]),CallExpression({callee:e,arguments:t}){return vector_to_list(["application",this.transform(e),vector_to_list(t.map(this.transform))])},ClassDeclaration(e){return vector_to_list(["class_declaration",vector_to_list(["name",e.id?.name,e.superClass?this.transform(e.superClass):null,e.body.body.map(this.transform)])])},ConditionalExpression(e){return vector_to_list(["conditional_expression",this.transform(e.test),this.transform(e.consequent),this.transform(e.alternate)])},ContinueStatement:()=>vector_to_list(["continue_statement"]),ExportDefaultDeclaration(e){return vector_to_list(["export_default_declaration",this.transform(e.declaration)])},ExportNamedDeclaration({declaration:e,specifiers:t}){return vector_to_list(["export_named_declaration",e?this.transform(e):t.map(this.transform)])},ExportSpecifier:e=>vector_to_list(["name",getSpecifierName(e.exported)]),ExpressionStatement({expression:e}){return this.transform(e)},ForStatement(e){return vector_to_list(["for_loop",this.transform(e.init),this.transform(e.test),this.transform(e.update),this.transform(e.body)])},FunctionDeclaration({id:e,params:t,body:n}){return vector_to_list(["function_declaration",this.transform(e),vector_to_list(t.map(this.transform)),this.makeBlockIfNeeded(n.body)])},FunctionExpression({body:{body:e},params:t}){return vector_to_list(["lambda_expression",vector_to_list(t.map(this.transform)),this.makeBlockIfNeeded(e)])},Identifier:({name:e})=>vector_to_list(["name",e]),IfStatement(e){return vector_to_list(["conditional_statement",this.transform(e.test),this.transform(e.consequent),null==e.alternate?this.makeSequenceIfNeeded([]):this.transform(e.alternate)])},ImportDeclaration(e){return vector_to_list(["import_declaration",vector_to_list(e.specifiers.map(this.transform)),e.source.value])},ImportDefaultSpecifier:()=>vector_to_list(["default"]),ImportSpecifier:e=>vector_to_list(["name",getSpecifierName(e.imported)]),Literal:({value:e})=>vector_to_list(["literal",e]),LogicalExpression(e){return vector_to_list(["logical_composition",e.operator,this.transform(e.left),this.transform(e.right)])},MemberExpression(e){return vector_to_list(["object_access",this.transform(e.object),e.computed||"Identifier"!==e.property.type?this.transform(e.property):vector_to_list(["property",e.property.name])])},MethodDefinition(e){return vector_to_list(["method_definition",e.kind,e.static,this.transform(e.key),this.transform(e.value)])},NewExpression({callee:e,arguments:t}){return vector_to_list(["new_expression",this.transform(e),vector_to_list(t.map(this.transform))])},ObjectExpression({properties:e}){return vector_to_list(["object_expression",vector_to_list(e.map(this.transform))])},Program({body:e}){return this.makeSequenceIfNeeded(e)},Property(e){return vector_to_list(["key_value_pair","Identifier"===e.key.type?vector_to_list(["property",e.key.name]):this.transform(e.key),this.transform(e.value)])},RestElement({argument:e}){return vector_to_list(["rest_element",this.transform(e)])},ReturnStatement(e){return vector_to_list(["return_statement",this.transform(e.argument)])},SpreadElement({argument:e}){return vector_to_list(["spread_element",this.transform(e)])},StatementSequence({body:e}){return this.makeSequenceIfNeeded(e)},Super:()=>vector_to_list(["super_expression"]),ThisExpression:()=>vector_to_list(["this_expression"]),ThrowStatement({argument:e}){return vector_to_list(["throw_statement",this.transform(e)])},TryStatement(e){return vector_to_list(["try_statement",this.transform(e.block),e.handler?vector_to_list(["name",e.handler.param.name]):null,e.handler?this.transform(e.handler.body):null])},UnaryExpression({operator:e,argument:t}){return vector_to_list(["unary_operator_combination","-"===e?"-unary":e,this.transform(t)])},VariableDeclaration(e){const{id:t,init:n}=getSourceVariableDeclaration(e);if("let"===e.kind)return vector_to_list(["variable_declaration",this.transform(t),this.transform(n)]);if("const"===e.kind)return vector_to_list(["constant_declaration",this.transform(t),this.transform(n)]);throw unreachable(),new ParseError(`Invalid declaration kind for VariableDeclaration: ${e.kind}`,this.funcName,e)},WhileStatement({test:e,body:t}){return vector_to_list(["while_loop",this.transform(e),this.transform(t)])}};function parse$3(e,t){t.chapter=libraryParserLanguage;const n=parse$4(e,t);if(t.errors.length>0)throw new ParseError(t.errors[0].explain(),parse$3.name);function r(e){if(!(e.type in transformers))throw unreachable(),new ParseError(`Cannot transform unknown node type: ${e.type}`,parse$3.name,e);return transformers[e.type].call({funcName:parse$3.name,transform:r,makeBlockIfNeeded:a,makeSequenceIfNeeded:i},e)}function i(e){return 1===e.length?r(e[0]):vector_to_list(["sequence",vector_to_list(e.map(r))])}function a(e){return hasDeclarationAtToplevel(e)?vector_to_list(["block",i(e)]):i(e)}if(n)return r(n);throw unreachable(),new ParseError("Invalid parse",parse$3.name)}function tokenize$3(e,t,n){try{return vector_to_list(SourceParser.tokenize(e,t).map(t=>e.substring(t.start,t.end)))}catch(e){if(n)throw new ParseError(e.message,tokenize$3.name);throw e}}function createStreamPair(e,t){return pair$7(e,wrap(t,!1,"() => ..."))}function stream$5(...e){if(0===e.length)return null;const[t,...n]=e;return createStreamPair(t,()=>stream$5(...n))}function list_to_stream$5(e){return is_null$7(e)?null:createStreamPair(head$7(e),()=>list_to_stream$5(tail$7(e)))}function stream_tail$5(e){if(!is_pair$7(e))throw new InvalidParameterTypeError("non-empty stream",e,stream_tail$5.name);const t=tail$7(e);if("function"!=typeof t||0!==arity$9(t))throw new InvalidParameterTypeError("stream",e,stream_tail$5.name);return t()}function is_stream$5(e){if(is_null$7(e))return!0;if(!is_pair$7(e))return!1;const t=tail$7(e);return"function"==typeof t&&0===arity$9(t)&&is_stream$5(t())}function integers_from$5(e){return pair$7(e,()=>integers_from$5(e+1))}function build_stream$5(e,t){return function n(r){return r>=t?null:pair$7(e(r),()=>n(r+1))}(0)}function stream_map$5(e,t){return is_null$7(t)?null:pair$7(e(head$7(t)),()=>stream_map$5(e,stream_tail$5(t)))}function stream_filter$5(e,t){return is_null$7(t)?null:e(head$7(t))?pair$7(head$7(t),()=>stream_filter$5(e,stream_tail$5(t))):stream_filter$5(e,stream_tail$5(t))}function stream_for_each$5(e,t){return!!is_null$7(t)||(e(head$7(t)),stream_for_each$5(e,stream_tail$5(t)))}function stream_accumulate(e,t,n){let r=t,i=n;for(;!is_null$7(i);)r=e(head$7(i),r),i=stream_tail$5(i);return r}function stream_length$5(e){return stream_accumulate((e,t)=>t+1,0,e)}function stream_ref$5(e,t){for(let n=0;nstream_append$5(stream_tail$5(e),t))}function stream_to_list$5(e){return is_null$7(e)?null:pair$7(head$7(e),stream_to_list$5(stream_tail$5(e)))}var stream$6=Object.freeze({__proto__:null,build_stream:build_stream$5,integers_from:integers_from$5,is_stream:is_stream$5,list_to_stream:list_to_stream$5,stream:stream$5,stream_accumulate:stream_accumulate,stream_append:stream_append$5,stream_filter:stream_filter$5,stream_for_each:stream_for_each$5,stream_length:stream_length$5,stream_map:stream_map$5,stream_ref:stream_ref$5,stream_tail:stream_tail$5,stream_to_list:stream_to_list$5});const streamPrelude="\n\n// Supporting streams in the Scheme style, following\n// \"stream discipline\"\n\n// stream_tail returns the second component of the given pair\n// throws an error if the argument is not a pair\n\nfunction stream_tail(xs) {\n if (is_pair(xs)) {\n const the_tail = tail(xs);\n if (is_function(the_tail)) {\n return the_tail();\n } else {\n error(the_tail,\n 'stream_tail(xs) expects a function as ' +\n 'the tail of the argument pair xs, ' +\n 'but encountered ');\n }\n } else {\n error(xs, 'stream_tail(xs) expects a pair as ' +\n 'argument xs, but encountered ');\n }\n}\n\n// is_stream recurses down the stream and checks that it ends with the\n// empty list null\n\nfunction is_stream(xs) {\n return is_null(xs) ||\n (is_pair(xs) &&\n is_function(tail(xs)) &&\n arity(tail(xs)) === 0 &&\n is_stream(stream_tail(xs)));\n}\n\n// A stream is either null or a pair whose tail is\n// a nullary function that returns a stream.\n\nfunction list_to_stream(xs) {\n return is_null(xs)\n ? null\n : pair(head(xs),\n () => list_to_stream(tail(xs)));\n}\n\n// stream_to_list transforms a given stream to a list\n// Lazy? No: stream_to_list needs to force the whole stream\nfunction stream_to_list(xs) {\n return is_null(xs)\n ? null\n : pair(head(xs), stream_to_list(stream_tail(xs)));\n}\n\n// stream_length returns the length of a given argument stream\n// throws an exception if the argument is not a stream\n// Lazy? No: The function needs to explore the whole stream\nfunction stream_length(xs) {\n return is_null(xs)\n ? 0\n : 1 + stream_length(stream_tail(xs));\n}\n\n// stream_map applies first arg f to the elements of the second\n// argument, assumed to be a stream.\n// f is applied element-by-element:\n// stream_map(f,list_to_stream(list(1,2)) results in\n// the same as list_to_stream(list(f(1),f(2)))\n// stream_map throws an exception if the second argument is not a\n// stream, and if the second argument is a nonempty stream and the\n// first argument is not a function.\n// Lazy? Yes: The argument stream is only explored as forced by\n// the result stream.\nfunction stream_map(f, s) {\n return is_null(s)\n ? null\n : pair(f(head(s)),\n () => stream_map(f, stream_tail(s)));\n}\n\n// build_stream takes a function fun as first argument, \n// and a nonnegative integer n as second argument,\n// build_stream returns a stream of n elements, that results from\n// applying fun to the numbers from 0 to n-1.\n// Lazy? Yes: The result stream forces the applications of fun\n// for the next element\nfunction build_stream(fun, n) {\n function build(i) {\n return i >= n\n ? null\n : pair(fun(i),\n () => build(i + 1));\n }\n return build(0);\n}\n\n// stream_for_each applies first arg fun to the elements of the stream\n// passed as second argument. fun is applied element-by-element:\n// for_each(fun,list_to_stream(list(1, 2,null))) results in the calls fun(1)\n// and fun(2).\n// stream_for_each returns true.\n// stream_for_each throws an exception if the second argument is not a\n// stream, and if the second argument is a nonempty stream and the\n// first argument is not a function.\n// Lazy? No: stream_for_each forces the exploration of the entire stream\nfunction stream_for_each(fun, xs) {\n if (is_null(xs)) {\n return true;\n } else {\n fun(head(xs));\n return stream_for_each(fun, stream_tail(xs));\n }\n}\n\n// stream_reverse reverses the argument stream\n// stream_reverse throws an exception if the argument is not a stream.\n// Lazy? No: stream_reverse forces the exploration of the entire stream\nfunction stream_reverse(xs) {\n function rev(original, reversed) {\n return is_null(original)\n ? reversed\n : rev(stream_tail(original),\n pair(head(original), () => reversed));\n }\n return rev(xs, null);\n}\n\n// stream_append appends first argument stream and second argument stream.\n// In the result, null at the end of the first argument stream\n// is replaced by the second argument stream\n// stream_append throws an exception if the first argument is not a\n// stream.\n// Lazy? Yes: the result stream forces the actual append operation\nfunction stream_append(xs, ys) {\n return is_null(xs)\n ? ys\n : pair(head(xs),\n () => stream_append(stream_tail(xs), ys));\n}\n\n// stream_member looks for a given first-argument element in a given\n// second argument stream. It returns the first postfix substream\n// that starts with the given element. It returns null if the\n// element does not occur in the stream\n// Lazy? Sort-of: stream_member forces the stream only until the element is found.\nfunction stream_member(x, s) {\n return is_null(s)\n ? null\n : head(s) === x\n ? s\n : stream_member(x, stream_tail(s));\n}\n\n// stream_remove removes the first occurrence of a given first-argument element\n// in a given second-argument list. Returns the original list\n// if there is no occurrence.\n// Lazy? Yes: the result stream forces the construction of each next element\nfunction stream_remove(v, xs) {\n return is_null(xs)\n ? null\n : v === head(xs)\n ? stream_tail(xs)\n : pair(head(xs),\n () => stream_remove(v, stream_tail(xs)));\n}\n\n// stream_remove_all removes all instances of v instead of just the first.\n// Lazy? Yes: the result stream forces the construction of each next element\nfunction stream_remove_all(v, xs) {\n return is_null(xs)\n ? null\n : v === head(xs)\n ? stream_remove_all(v, stream_tail(xs))\n : pair(head(xs), () => stream_remove_all(v, stream_tail(xs)));\n}\n\n// filter returns the substream of elements of given stream s\n// for which the given predicate function p returns true.\n// Lazy? Yes: The result stream forces the construction of\n// each next element. Of course, the construction\n// of the next element needs to go down the stream\n// until an element is found for which p holds.\nfunction stream_filter(p, s) {\n return is_null(s)\n ? null\n : p(head(s))\n ? pair(head(s),\n () => stream_filter(p, stream_tail(s)))\n : stream_filter(p, stream_tail(s));\n}\n\n// enumerates numbers starting from start,\n// using a step size of 1, until the number\n// exceeds end.\n// Lazy? Yes: The result stream forces the construction of\n// each next element\nfunction enum_stream(start, end) {\n return start > end\n ? null\n : pair(start,\n () => enum_stream(start + 1, end));\n}\n\n// integers_from constructs an infinite stream of integers\n// starting at a given number n\n// Lazy? Yes: The result stream forces the construction of\n// each next element\nfunction integers_from(n) {\n return pair(n,\n () => integers_from(n + 1));\n}\n\n// eval_stream constructs the list of the first n elements\n// of a given stream s\n// Lazy? Sort-of: eval_stream only forces the computation of\n// the first n elements, and leaves the rest of\n// the stream untouched.\nfunction eval_stream(s, n) {\n function es(s, n) {\n return n === 1 \n ? list(head(s))\n : pair(head(s), \n es(stream_tail(s), n - 1));\n }\n return n === 0 \n ? null\n : es(s, n);\n}\n\n// Returns the item in stream s at index n (the first item is at position 0)\n// Lazy? Sort-of: stream_ref only forces the computation of\n// the first n elements, and leaves the rest of\n// the stream untouched.\nfunction stream_ref(s, n) {\n return n === 0\n ? head(s)\n : stream_ref(stream_tail(s), n - 1);\n}\n";class EnvTree{constructor(){this._root=null,this.map=new Map}get root(){return this._root}insert(e){const t=e.tail;if(null===t)null===this._root&&(this._root=new EnvTreeNode(e,null),this.map.set(e,this._root));else{const n=this.map.get(t);if(n){const t=new EnvTreeNode(e,n);n.addChild(t),this.map.set(e,t)}}}getTreeNode(e){return this.map.get(e)}}class EnvTreeNode{constructor(e,t){this.environment=e,this.parent=t,this._children=[]}get children(){return this._children}resetChildren(e){this.clearChildren(),this.addChildren(e),e.forEach(e=>e.parent=this)}clearChildren(){this._children=[]}addChildren(e){this._children.push(...e)}addChild(e){return this._children.push(e),e}}const createEmptyRuntime=()=>({break:!1,debuggerOn:!0,isRunning:!1,environmentTree:new EnvTree,environments:[],value:void 0,nodes:[],control:null,stash:null,objectCount:0,envSteps:-1,envStepsTotal:0,breakpointSteps:[],changepointSteps:[]}),createEmptyDebugger=()=>({observers:{callbacks:Array()},status:!1,state:{it:function*(){}()}}),createGlobalEnvironment=()=>({tail:null,name:"global",head:{},heap:new Heap,id:"-1"}),createNativeStorage=()=>({builtins:new Map,previousProgramsIdentifiers:new Set,operators:new Map(Object.entries(operators)),maxExecTime:JSSLANG_PROPERTIES.maxExecTime,evaller:null,loadedModules:{},loadedModuleTypes:{}}),createEmptyContext=(e,t=Variant.DEFAULT,n={},r,i)=>({chapter:e,externalSymbols:r,errors:[],externalContext:i,runtime:createEmptyRuntime(),numberOfOuterEnvironments:1,prelude:null,pendingStreamFnStack:[],streamLineage:new Map,debugger:createEmptyDebugger(),nativeStorage:createNativeStorage(),executionMethod:"auto",variant:t,languageOptions:n,moduleContexts:createEmptyModuleContexts(),unTypecheckedCode:[],typeEnvironment:createTypeEnvironment(e),previousPrograms:[],shouldIncreaseEvaluationTimeout:!1}),ensureGlobalEnvironmentExist=e=>{if(e.runtime||(e.runtime=createEmptyRuntime()),e.runtime.environments||(e.runtime.environments=[]),e.runtime.environmentTree||(e.runtime.environmentTree=new EnvTree),0===e.runtime.environments.length){const t=createGlobalEnvironment();e.runtime.environments.push(t),e.runtime.environmentTree.insert(t)}};function defineSymbol(e,t,n){const r=e.runtime.environments[0];t in r.head||Object.defineProperty(r.head,t,{value:n,writable:!1,enumerable:!0}),e.nativeStorage.builtins.set(t,n);const i=e.typeEnvironment[0];i.declKindMap.has(t)||(i.typeMap.set(t,tForAll(tVar("T1"))),i.declKindMap.set(t,"const"))}function defineBuiltin(e,t,n,r){if("function"==typeof n){const a=t.split("(")[0].trim(),o=(i=t).includes("(")?i.split("(")[1].split(")")[0].split(",").map(e=>e.trim()):[],s=wrap(n,r,`function ${t} {\n\t[implementation hidden]\n}`,null,a);n.funName=a,n.funParameters=o,defineSymbol(e,a,s)}else defineSymbol(e,t,n);var i}const importExternalSymbols=(e,t)=>{ensureGlobalEnvironmentExist(e),t.forEach(t=>{defineSymbol(e,t,GLOBAL[t])})};function importBuiltins(e,t={}){ensureGlobalEnvironmentExist(e);const n=(n,...r)=>(t.rawDisplay??defaultBuiltIns.rawDisplay)(n,r[0],e.externalContext),r=(e,...t)=>{if(1===t.length&&void 0!==t[0]&&"string"!=typeof t[0])throw new InvalidParameterTypeError("string",t[0],r.name,"second argument");return n(stringify$9(e),t[0]),e},i=(e,...t)=>{if(1===t.length&&void 0!==t[0]&&"string"!=typeof t[0])throw new InvalidParameterTypeError("string",t[0],i.name,"second argument");return rawDisplayList(r,e,t[0])},a=n=>{const r=Date.now(),i=(t.prompt??defaultBuiltIns.prompt)(n,"",e.externalContext);return e.nativeStorage.maxExecTime+=Date.now()-r,i};if(e.chapter>=1){defineBuiltin(e,"get_time()",get_time$9),defineBuiltin(e,"display(val, prepend = undefined)",r,1),defineBuiltin(e,"raw_display(str, prepend = undefined)",n,1),defineBuiltin(e,"stringify(val, indent = 2, maxLineLength = 80)",stringify$9,1),defineBuiltin(e,"error(str, prepend = undefined)",error_message,1),defineBuiltin(e,"prompt(str)",a),defineBuiltin(e,"is_number(val)",is_number$9),defineBuiltin(e,"is_string(val)",is_string$9),defineBuiltin(e,"is_function(val)",is_function$9),defineBuiltin(e,"is_boolean(val)",is_boolean$9),defineBuiltin(e,"is_undefined(val)",is_undefined$9),defineBuiltin(e,"parse_int(str, radix)",parse_int$9),defineBuiltin(e,"char_at(str, index)",char_at$9),defineBuiltin(e,"arity(f)",arity$9),defineBuiltin(e,"undefined",void 0),defineBuiltin(e,"NaN",NaN),defineBuiltin(e,"Infinity",1/0);const t=Object.getOwnPropertyNames(Math),i=[..."abcdefghijklmnopqrstuvwxyz"];for(const n of t){const t=Math[n];if("function"==typeof t){let r,a;"max"===n||"min"===n?(r="...values",a=0):r=i.slice(0,t.length).join(", "),defineBuiltin(e,`math_${n}(${r})`,t,a)}else defineBuiltin(e,`math_${n}`,t)}}e.chapter>=2&&(defineBuiltin(e,"pair(left, right)",pair$7),defineBuiltin(e,"is_pair(val)",is_pair$7),defineBuiltin(e,"head(xs)",head$7),defineBuiltin(e,"tail(xs)",tail$7),defineBuiltin(e,"is_null(val)",is_null$7),defineBuiltin(e,"list(...values)",list$7,0),defineBuiltin(e,"draw_data(...xs)",(...n)=>((t.visualiseList??defaultBuiltIns.visualiseList)(n,e.externalContext),n[0]),1),defineBuiltin(e,"display_list(val, prepend = undefined)",i,0),defineBuiltin(e,"is_list(val)",is_list$7)),e.chapter>=3&&(defineBuiltin(e,"set_head(xs, val)",set_head$5),defineBuiltin(e,"set_tail(xs, val)",set_tail$5),defineBuiltin(e,"array_length(arr)",array_length$5),defineBuiltin(e,"is_array(val)",is_array$5),defineBuiltin(e,"stream(...values)",stream$5,0)),e.chapter>=4&&(defineBuiltin(e,"parse(program_string)",t=>parse$3(t,createContext(e.chapter))),defineBuiltin(e,"tokenize(program_string)",t=>tokenize$3(t,createContext(e.chapter),!0)),defineBuiltin(e,"apply_in_underlying_javascript(fun, args)",(e,t)=>e.apply(e,list_to_vector(t))),e.chapter>=4&&defineBuiltin(e,"call_cc(f)",e.variant===Variant.EXPLICIT_CONTROL?call_with_current_continuation:e=>{throw new Error("call_cc is only available in Explicit-Control variant")})),e.chapter===Chapter.LIBRARY_PARSER&&(defineBuiltin(e,"is_object(val)",is_object),defineBuiltin(e,"is_NaN(val)",is_NaN),defineBuiltin(e,"has_own_property(obj, prop)",has_own_property),defineBuiltin(e,"alert(val)",n=>{const r=Date.now();(t.alert??defaultBuiltIns.alert)(n,"",e.externalContext),e.nativeStorage.maxExecTime+=Date.now()-r}),defineBuiltin(e,"timed(fun)",n=>timed(e,n,e.externalContext,t.rawDisplay??defaultBuiltIns.rawDisplay)))}function importPrelude(e){let t="";e.chapter>=2&&(t+=listPrelude,t+=localImportPrelude),e.chapter>=3&&(t+=streamPrelude),""!==t&&(e.prelude=t)}const defaultBuiltIns={rawDisplay:rawDisplay,prompt:rawDisplay,alert:rawDisplay,visualiseList:e=>{throw new GeneralRuntimeError("List visualizer is not enabled")}},createContext=(e=Chapter.SOURCE_1,t=Variant.DEFAULT,n={},r=[],i,a={})=>{if(e===Chapter.FULL_JS||e===Chapter.FULL_TS)return{...createContext(Chapter.SOURCE_4,t,n,r,i,a),chapter:e};const o=createEmptyContext(e,t,n,r,i);return importBuiltins(o,a),importPrelude(o),importExternalSymbols(o,r),o};var createContext$1=Object.freeze({__proto__:null,EnvTree:EnvTree,EnvTreeNode:EnvTreeNode,createEmptyContext:createEmptyContext,createGlobalEnvironment:createGlobalEnvironment,default:createContext,defaultBuiltIns:defaultBuiltIns,defineBuiltin:defineBuiltin,defineSymbol:defineSymbol,ensureGlobalEnvironmentExist:ensureGlobalEnvironmentExist,importBuiltins:importBuiltins,importExternalSymbols:importExternalSymbols});function findIdentifierNode(e,t,n){const r=findNodeAt(e,void 0,void 0,function(e,t){const r=t.loc,i=t.type;return!(!i||!r)&&"Identifier"===i&&r.start.line===n.line&&r.start.column<=n.column&&r.end.column>=n.column},customWalker);return r?.node}function findDeclarationNode(e,t){const n=findAncestors(e,t);if(!n)return;const r=[];for(const e of n)if(recursive(e,void 0,{BlockStatement(e,n,r){containsNode(e,t)&&e.body.map(e=>r(e,n))},ForStatement(e,n,r){containsNode(e,t)&&(r(e.init,n),r(e.body,n))},FunctionDeclaration(e,n,i){if(e.id&&e.id.name===t.name)r.push(e.id);else if(containsNode(e,t)){const a=e.params.find(e=>e.name===t.name);a?r.push(a):i(e.body,n)}},ArrowFunctionExpression(e,n,i){if(containsNode(e,t)){const a=e.params.find(e=>e.name===t.name);a?r.push(a):i(e.body,n)}},VariableDeclarator(e,n,i){e.id.name===t.name&&r.push(e.id)},ImportSpecifier(e,n,i){getSpecifierName(e.imported)===t.name&&r.push(e.imported)}}),r.length>0)return r.shift()}function containsNode(e,t){const n=e.loc,r=t.loc;return null!=n&&null!=r&&isInLoc(r.start.line,r.start.column,n)&&isInLoc(r.end.line,r.end.column,n)}function isInLoc(e,t,n){return null!=n&&(n.start.linee||(n.start.line===e&&n.end.line>e?n.start.column<=t:(n.start.line=t))}function findAncestors(e,t){let n=[];return ancestor(e,{Identifier:(e,r)=>{t.name===e.name&&t.loc===e.loc&&(n=Object.assign([],r).reverse(),n.shift())},VariablePattern:(e,r)=>{t.name===e.name&&t.loc===e.loc&&(n=Object.assign([],r).reverse())}},customWalker),n}const customWalker={...base,ImportSpecifier(e,t,n){n(e.imported,t,"Expression")}};function scopeVariables(e,t){if(void 0===e)throw new Error("Program to scope was undefined");const n={type:"BlockFrame",loc:e.loc,enclosingLoc:void 0===t?e.loc:t,children:[]};if(null==e.body)return n;const r=getDefinitionStatements(e.body),i=getBlockStatements(e.body),a=getForStatements(e.body),o=getIfStatements(e.body),s=getWhileStatements(e.body),c=r.filter(e=>isVariableDeclaration(e)),l=[];simple(e,{ArrowFunctionExpression(e){null!=e.loc&&l.push(e)}});const u=scopeIfStatements(o),d=scopeWhileStatements(s),p=a.map(e=>scopeForStatement(e)),m=r.filter(e=>!isVariableDeclaration(e)).map(e=>scopeFunctionDeclaration(e)),f=m.map(e=>e.definition),_=m.map(e=>e.body),h=c.map(e=>scopeVariableDeclaration(e)),g=i.map(e=>scopeVariables(e));let y=l.map(e=>scopeArrowFunction(e));return y=getBlockFramesInCurrentBlockFrame(y,n.enclosingLoc,[...g,...p,...d,...u,..._,...y]),n.children=[...h,...f,..._,...y,...u,...d,...p,...g],n.children.sort(sortByLoc),n}function scopeVariableDeclaration(e){return{name:e.declarations[0].id.name,type:"DefinitionNode",loc:e.declarations[0].id.loc}}function scopeFunctionDeclaration(e){assert(!!e.id,"Encountered a FunctionDeclaration node without an identifier. This should have been caught when parsing.");const t={name:e.id.name,type:"DefinitionNode",loc:e.id.loc},n=e.params.map(e=>({name:e.name,type:"DefinitionNode",loc:e.loc})),r=scopeVariables(e.body,e.loc);return r.children=[...n,...r.children],{definition:t,body:r}}function scopeArrowFunction(e){const t=e.params.map(e=>({name:e.name,type:"DefinitionNode",loc:e.loc})),n="BlockStatement"===e.body.type?scopeVariables(e.body,e.loc):scopeVariables({type:"BlockStatement",loc:e.body.loc,body:[{type:"ExpressionStatement",expression:e.body}]},e.loc);return n.children=[...t,...n.children],n}function scopeIfStatements(e){return e.map(e=>scopeIfStatement(e)).reduce((e,t)=>[...e,...t],[])}function scopeIfStatement(e){const t=e.consequent;return null==e.alternate?[scopeVariables(t)]:"BlockStatement"===e.alternate.type?[scopeVariables(t),scopeVariables(e.alternate)]:[scopeVariables(t),...scopeIfStatement(e.alternate)]}function scopeWhileStatements(e){return e.map(e=>scopeVariables(e.body))}function scopeForStatement(e){const t=(e.init?.declarations||[]).map(e=>({type:"DefinitionNode",name:e.id.name,loc:e.id.loc})),n=scopeVariables(e.body,e.loc);return n.children=[...t,...n.children],n}function getScopeHelper(e,t,n){const r=getBlockFromLoc(e,scopeVariables(t)),i=r.loc,a=r.children.filter(isBlockFrame).map(e=>getChildBlocksWithDefinitions(e,n)).reduce((e,t)=>[...e,...t],[]).map(e=>e.enclosingLoc);if(i&&0===a.length)return[i];const o=[];let s=a.shift();return o.push({start:i.start,end:s.start}),a.map(e=>{o.push({start:s.end,end:e.start}),s=e}),o.push({start:s.end,end:i.end}),o}function getChildBlocksWithDefinitions(e,t){return 0!==e.children.filter(isDefinitionNode).filter(e=>e.name===t).length?[e]:e.children.filter(isBlockFrame).map(e=>getChildBlocksWithDefinitions(e,t)).reduce((e,t)=>[...e,...t],[])}function getAllOccurrencesInScopeHelper(e,t,n){const r=getBlockFromLoc(e,scopeVariables(t)),i=getAllIdentifiers(t,n),a=r.children.filter(isBlockFrame);return[...getNodeLocsInCurrentBlockFrame(i,r.enclosingLoc,a),...a.map(e=>getAllOccurencesInChildScopes(n,e,i)).reduce((e,t)=>[...e,...t],[])]}function getAllOccurencesInChildScopes(e,t,n){if(0!==t.children.filter(isDefinitionNode).filter(t=>t.name===e).length)return[];const r=t.children.filter(isBlockFrame);return[...getNodeLocsInCurrentBlockFrame(n,t.enclosingLoc,r),...r.map(t=>getAllOccurencesInChildScopes(e,t,n)).reduce((e,t)=>[...e,...t],[])]}function getBlockFromLoc(e,t){let n=null,r=t.children.filter(isBlockFrame),i=r.some(t=>isPartOf(e,t.enclosingLoc));for(;i;)n=t,t=r.filter(t=>isPartOf(e,t.enclosingLoc))[0],r=t.children.filter(isBlockFrame),i=r.some(t=>isPartOf(e,t.enclosingLoc));return null!=n&&0!==n.children.filter(isDefinitionNode).filter(e=>notEmpty(e.loc)).filter(t=>areLocsEqual(t.loc,e)).length?n:t}function getAllIdentifiers(e,t){const n=[];return simple(e,{Identifier(e){notEmpty(e.loc)&&e.name===t&&n.push(e)},Pattern(e){"Identifier"===e.type?e.name===t&&n.push(e):"MemberExpression"===e.type&&"Identifier"===e.object.type&&e.object.name===t&&n.push(e.object)}}),n}function getBlockStatements(e){return e.filter(e=>"BlockStatement"===e.type)}function getDefinitionStatements(e){return e.filter(e=>"FunctionDeclaration"===e.type||"VariableDeclaration"===e.type)}function getIfStatements(e){return e.filter(e=>"IfStatement"===e.type)}function getForStatements(e){return e.filter(e=>"ForStatement"===e.type)}function getWhileStatements(e){return e.filter(e=>"WhileStatement"===e.type)}function isVariableDeclaration(e){return"VariableDeclaration"===e.type}function isBlockFrame(e){return"BlockFrame"===e.type}function isDefinitionNode(e){return"DefinitionNode"===e.type}function notEmpty(e){return null!=e}function sortByLoc(e,t){return null==e.loc&&null==t.loc?0:null==e.loc?-1:null==t.loc||e.loc.start.line>t.loc.start.line?1:e.loc.start.linee.loc).filter(notEmpty).filter(e=>isPartOf(e,t)).filter(e=>!n.map(e=>e.enclosingLoc).filter(notEmpty).map(t=>isPartOf(e,t)).some(e=>!0===e))}function getBlockFramesInCurrentBlockFrame(e,t,n){return e.filter(e=>notEmpty(e.enclosingLoc)).filter(e=>isPartOf(e.enclosingLoc,t)).filter(e=>!n.map(e=>e.enclosingLoc).filter(notEmpty).map(t=>isPartOf(e.enclosingLoc,t)&&!areLocsEqual(e.enclosingLoc,t)).some(e=>!0===e))}function areLocsEqual(e,t){return e.start.line===t.start.line&&e.start.column===t.start.column&&e.end.line===t.end.line&&e.end.column===t.end.column}ArrayBuffer.transfer||(ArrayBuffer.transfer=(e,t)=>{if(!(e instanceof ArrayBuffer))throw new TypeError("Source must be an instance of ArrayBuffer");if(t<=e.byteLength)return e.slice(0,t);const n=new Uint8Array(e),r=new Uint8Array(new ArrayBuffer(t));return r.set(n),r.buffer});class Buffer{constructor(){this._capacity=32,this.cursor=0,this._written=0,this._buffer=new ArrayBuffer(this._capacity),this._view=new DataView(this._buffer)}maybeExpand(e){if(!(this.cursor+e=this._capacity;)this._capacity*=2;this._buffer=ArrayBuffer.transfer(this._buffer,this._capacity),this._view=new DataView(this._buffer)}}updateWritten(){this._written=Math.max(this._written,this.cursor)}get(e,t){const n=this._view[`get${e?"I":"Ui"}nt${t}`](this.cursor,!0);return this.cursor+=t/8,n}getI(e){return this.get(!0,e)}getU(e){return this.get(!1,e)}getF(e){const t=this._view[`getFloat${e}`](this.cursor,!0);return this.cursor+=e/8,t}put(e,t,n){this.maybeExpand(n/8),this._view[`set${t?"I":"Ui"}nt${n}`](this.cursor,e,!0),this.cursor+=n/8,this.updateWritten()}putI(e,t){this.put(t,!0,e)}putU(e,t){this.put(t,!1,e)}putF(e,t){this.maybeExpand(e/8),this._view[`setFloat${e}`](this.cursor,t,!0),this.cursor+=e/8,this.updateWritten()}putA(e){this.maybeExpand(e.byteLength),new Uint8Array(this._buffer,this.cursor,e.byteLength).set(e),this.cursor+=e.byteLength,this.updateWritten()}align(e){const t=this.cursor%e;0!==t&&(this.cursor+=e-t)}asArray(){return new Uint8Array(this._buffer.slice(0,this._written))}get written(){return this._written}}var OpCodes=(e=>(e[e.NOP=0]="NOP",e[e.LDCI=1]="LDCI",e[e.LGCI=2]="LGCI",e[e.LDCF32=3]="LDCF32",e[e.LGCF32=4]="LGCF32",e[e.LDCF64=5]="LDCF64",e[e.LGCF64=6]="LGCF64",e[e.LDCB0=7]="LDCB0",e[e.LDCB1=8]="LDCB1",e[e.LGCB0=9]="LGCB0",e[e.LGCB1=10]="LGCB1",e[e.LGCU=11]="LGCU",e[e.LGCN=12]="LGCN",e[e.LGCS=13]="LGCS",e[e.POPG=14]="POPG",e[e.POPB=15]="POPB",e[e.POPF=16]="POPF",e[e.ADDG=17]="ADDG",e[e.ADDF=18]="ADDF",e[e.SUBG=19]="SUBG",e[e.SUBF=20]="SUBF",e[e.MULG=21]="MULG",e[e.MULF=22]="MULF",e[e.DIVG=23]="DIVG",e[e.DIVF=24]="DIVF",e[e.MODG=25]="MODG",e[e.MODF=26]="MODF",e[e.NOTG=27]="NOTG",e[e.NOTB=28]="NOTB",e[e.LTG=29]="LTG",e[e.LTF=30]="LTF",e[e.GTG=31]="GTG",e[e.GTF=32]="GTF",e[e.LEG=33]="LEG",e[e.LEF=34]="LEF",e[e.GEG=35]="GEG",e[e.GEF=36]="GEF",e[e.EQG=37]="EQG",e[e.EQF=38]="EQF",e[e.EQB=39]="EQB",e[e.NEWC=40]="NEWC",e[e.NEWA=41]="NEWA",e[e.LDLG=42]="LDLG",e[e.LDLF=43]="LDLF",e[e.LDLB=44]="LDLB",e[e.STLG=45]="STLG",e[e.STLB=46]="STLB",e[e.STLF=47]="STLF",e[e.LDPG=48]="LDPG",e[e.LDPF=49]="LDPF",e[e.LDPB=50]="LDPB",e[e.STPG=51]="STPG",e[e.STPB=52]="STPB",e[e.STPF=53]="STPF",e[e.LDAG=54]="LDAG",e[e.LDAB=55]="LDAB",e[e.LDAF=56]="LDAF",e[e.STAG=57]="STAG",e[e.STAB=58]="STAB",e[e.STAF=59]="STAF",e[e.BRT=60]="BRT",e[e.BRF=61]="BRF",e[e.BR=62]="BR",e[e.JMP=63]="JMP",e[e.CALL=64]="CALL",e[e.CALLT=65]="CALLT",e[e.CALLP=66]="CALLP",e[e.CALLTP=67]="CALLTP",e[e.CALLV=68]="CALLV",e[e.CALLTV=69]="CALLTV",e[e.RETG=70]="RETG",e[e.RETF=71]="RETF",e[e.RETB=72]="RETB",e[e.RETU=73]="RETU",e[e.RETN=74]="RETN",e[e.DUP=75]="DUP",e[e.NEWENV=76]="NEWENV",e[e.POPENV=77]="POPENV",e[e.NEWCP=78]="NEWCP",e[e.NEWCV=79]="NEWCV",e[e.NEGG=80]="NEGG",e[e.NEGF=81]="NEGF",e[e.NEQG=82]="NEQG",e[e.NEQF=83]="NEQF",e[e.NEQB=84]="NEQB",e[e.ARRAY_LEN=1e3]="ARRAY_LEN",e[e.DISPLAY=1001]="DISPLAY",e[e.DRAW_DATA=1002]="DRAW_DATA",e[e.ERROR=1003]="ERROR",e[e.IS_ARRAY=1004]="IS_ARRAY",e[e.IS_BOOL=1005]="IS_BOOL",e[e.IS_FUNC=1006]="IS_FUNC",e[e.IS_NULL=1007]="IS_NULL",e[e.IS_NUMBER=1008]="IS_NUMBER",e[e.IS_STRING=1009]="IS_STRING",e[e.IS_UNDEFINED=1010]="IS_UNDEFINED",e[e.MATH_ABS=1011]="MATH_ABS",e[e.MATH_ACOS=1012]="MATH_ACOS",e[e.MATH_ACOSH=1013]="MATH_ACOSH",e[e.MATH_ASIN=1014]="MATH_ASIN",e[e.MATH_ASINH=1015]="MATH_ASINH",e[e.MATH_ATAN=1016]="MATH_ATAN",e[e.MATH_ATAN2=1017]="MATH_ATAN2",e[e.MATH_ATANH=1018]="MATH_ATANH",e[e.MATH_CBRT=1019]="MATH_CBRT",e[e.MATH_CEIL=1020]="MATH_CEIL",e[e.MATH_CLZ32=1021]="MATH_CLZ32",e[e.MATH_COS=1022]="MATH_COS",e[e.MATH_COSH=1023]="MATH_COSH",e[e.MATH_EXP=1024]="MATH_EXP",e[e.MATH_EXPM1=1025]="MATH_EXPM1",e[e.MATH_FLOOR=1026]="MATH_FLOOR",e[e.MATH_FROUND=1027]="MATH_FROUND",e[e.MATH_HYPOT=1028]="MATH_HYPOT",e[e.MATH_IMUL=1029]="MATH_IMUL",e[e.MATH_LOG=1030]="MATH_LOG",e[e.MATH_LOG1P=1031]="MATH_LOG1P",e[e.MATH_LOG2=1032]="MATH_LOG2",e[e.MATH_LOG10=1033]="MATH_LOG10",e[e.MATH_MAX=1034]="MATH_MAX",e[e.MATH_MIN=1035]="MATH_MIN",e[e.MATH_POW=1036]="MATH_POW",e[e.MATH_RANDOM=1037]="MATH_RANDOM",e[e.MATH_ROUND=1038]="MATH_ROUND",e[e.MATH_SIGN=1039]="MATH_SIGN",e[e.MATH_SIN=1040]="MATH_SIN",e[e.MATH_SINH=1041]="MATH_SINH",e[e.MATH_SQRT=1042]="MATH_SQRT",e[e.MATH_TAN=1043]="MATH_TAN",e[e.MATH_TANH=1044]="MATH_TANH",e[e.MATH_TRUNC=1045]="MATH_TRUNC",e[e.PARSE_INT=1046]="PARSE_INT",e[e.RUNTIME=1047]="RUNTIME",e[e.STREAM=1048]="STREAM",e[e.STRINGIFY=1049]="STRINGIFY",e[e.PROMPT=1050]="PROMPT",e[e.DISPLAY_LIST=1051]="DISPLAY_LIST",e[e.CHAR_AT=1052]="CHAR_AT",e[e.ARITY=1053]="ARITY",e[e.EXECUTE=2e3]="EXECUTE",e[e.TEST_AND_SET=2001]="TEST_AND_SET",e[e.CLEAR=2002]="CLEAR",e))(OpCodes||{});const OPCODE_MAX=84;function getInstructionSize(e){switch(e){case 42:case 43:case 44:case 45:case 47:case 46:case 64:case 65:case 76:case 78:case 79:return 2;case 48:case 49:case 50:case 51:case 53:case 52:case 66:case 67:case 68:case 69:return 3;case 1:case 2:case 3:case 4:case 13:case 40:case 61:case 60:case 62:case 63:return 5;case 5:case 6:return 9;default:return 1}}const SVM_MAGIC=1342549165,MAJOR_VER=0,MINOR_VER=0;let UTF8_ENCODER;function writeHeader(e,t,n){e.cursor=0,e.putU(32,SVM_MAGIC),e.putU(16,MAJOR_VER),e.putU(16,MINOR_VER),e.putU(32,t),e.putU(32,n)}function writeStringConstant(e,t){void 0===UTF8_ENCODER&&(UTF8_ENCODER=new TextEncoder);const n=UTF8_ENCODER.encode(t);e.align(4),e.putU(16,1),e.putU(32,n.byteLength+1),e.putA(n),e.putU(8,0)}function serialiseFunction(e){const[t,n,r,i]=e,a=[],o=new Buffer;o.putU(8,t),o.putU(8,n),o.putU(8,r),o.putU(8,0);const s=i.map(e=>getInstructionSize(e[0])).reduce((e,t)=>(e.push(e[e.length-1]+t),e),[0]);for(const[e,t]of i.map((e,t)=>[e,t])){if(e[0]<0||e[0]>OPCODE_MAX)throw new Error(`Invalid opcode ${e[0].toString()}`);const n=e[0];switch(o.putU(8,n),n){case OpCodes.LDCI:case OpCodes.LGCI:if(!Number.isInteger(e[1]))throw new Error(`Non-integral operand to LDCI/LDGI: ${e[1]} (this is a compiler bug)`);o.putI(32,e[1]);break;case OpCodes.LDCF32:case OpCodes.LGCF32:o.putF(32,e[1]);break;case OpCodes.LDCF64:case OpCodes.LGCF64:o.putF(64,e[1]);break;case OpCodes.LGCS:a.push({offset:o.cursor,referent:["string",e[1]]}),o.putU(32,0);break;case OpCodes.NEWC:a.push({offset:o.cursor,referent:["function",e[1][0]]}),o.putU(32,0);break;case OpCodes.LDLG:case OpCodes.LDLF:case OpCodes.LDLB:case OpCodes.STLG:case OpCodes.STLF:case OpCodes.STLB:case OpCodes.CALL:case OpCodes.CALLT:case OpCodes.NEWENV:case OpCodes.NEWCP:case OpCodes.NEWCV:o.putU(8,e[1]);break;case OpCodes.LDPG:case OpCodes.LDPF:case OpCodes.LDPB:case OpCodes.STPG:case OpCodes.STPF:case OpCodes.STPB:case OpCodes.CALLP:case OpCodes.CALLTP:case OpCodes.CALLV:case OpCodes.CALLTV:o.putU(8,e[1]),o.putU(8,e[2]);break;case OpCodes.BRF:case OpCodes.BRT:case OpCodes.BR:const n=s[t+e[1]]-s[t+1];o.putI(32,n);break;case OpCodes.JMP:throw new Error("JMP assembling not implemented")}}const c=o.asArray();if(c.byteLength-4!==s[s.length-1])throw new Error(`Assembler bug: calculated function length ${s[s.length-1]} is different from actual length ${c.byteLength-4}`);return{binary:o.asArray(),holes:a,finalOffset:null}}function assemble(e){const[t,n]=e,r=n.map(serialiseFunction),i=[...new Set([].concat(...r.map(e=>e.holes.filter(e=>"string"===e.referent[0]).map(e=>e.referent[1]))))],a=new Buffer;a.cursor=16;const o=new Map;for(const e of i)a.align(4),o.set(e,a.cursor),writeStringConstant(a,e);const s=a.cursor;for(const e of r)a.align(4),e.finalOffset=a.cursor,a.cursor+=e.binary.byteLength;for(const e of r){const t=new DataView(e.binary.buffer);for(const n of e.holes){let e;if(e="string"===n.referent[0]?o.get(n.referent[1]):r[n.referent[1]].finalOffset,!e)throw new Error(`Assembler bug: missing string/function: ${JSON.stringify(n)}`);t.setUint32(n.offset,e,!0)}}a.cursor=s;for(const e of r){if(a.align(4),a.cursor!==e.finalOffset)throw new Error("Assembler bug: function offset changed");a.putA(e.binary)}return a.cursor=0,writeHeader(a,r[t].finalOffset,i.length),a.asArray()}const PRIMITIVE_FUNCTION_NAMES=["accumulate","append","array_length","build_list","build_stream","display","draw_data","enum_list","enum_stream","equal","error","eval_stream","filter","for_each","head","integers_from","is_array","is_boolean","is_function","is_list","is_null","is_number","is_pair","is_stream","is_string","is_undefined","length","list","list_ref","list_to_stream","list_to_string","map","math_abs","math_acos","math_acosh","math_asin","math_asinh","math_atan","math_atan2","math_atanh","math_cbrt","math_ceil","math_clz32","math_cos","math_cosh","math_exp","math_expm1","math_floor","math_fround","math_hypot","math_imul","math_log","math_log1p","math_log2","math_log10","math_max","math_min","math_pow","math_random","math_round","math_sign","math_sin","math_sinh","math_sqrt","math_tan","math_tanh","math_trunc","member","pair","parse_int","remove","remove_all","reverse","get_time","set_head","set_tail","stream","stream_append","stream_filter","stream_for_each","stream_length","stream_map","stream_member","stream_ref","stream_remove","stream_remove_all","stream_reverse","stream_tail","stream_to_list","tail","stringify","prompt","display_list","char_at","arity"],VARARGS_NUM_ARGS=-1;OpCodes.TEST_AND_SET,OpCodes.CLEAR,OpCodes.EXECUTE,OpCodes.MODG,OpCodes.DISPLAY,OpCodes.MODG,OpCodes.ERROR,OpCodes.MODG,OpCodes.MATH_MAX,OpCodes.MODG,OpCodes.MATH_MIN,OpCodes.NOTG,OpCodes.MATH_HYPOT,OpCodes.NOTG,OpCodes.DRAW_DATA,OpCodes.NOTG,OpCodes.PROMPT,OpCodes.MODG,OpCodes.DISPLAY_LIST,OpCodes.MATH_RANDOM,Math.random,OpCodes.RUNTIME,OpCodes.ARRAY_LEN,OpCodes.IS_ARRAY,OpCodes.IS_BOOL,OpCodes.IS_FUNC,OpCodes.IS_NULL,OpCodes.IS_NUMBER,OpCodes.IS_STRING,OpCodes.IS_UNDEFINED,OpCodes.MATH_ABS,Math.abs,OpCodes.MATH_ACOS,Math.acos,OpCodes.MATH_ACOSH,Math.acosh,OpCodes.MATH_ASIN,Math.asin,OpCodes.MATH_ASINH,Math.asinh,OpCodes.MATH_ATAN,Math.atan,OpCodes.MATH_ATANH,Math.atanh,OpCodes.MATH_CBRT,Math.cbrt,OpCodes.MATH_CEIL,Math.ceil,OpCodes.MATH_CLZ32,Math.clz32,OpCodes.MATH_COS,Math.cos,OpCodes.MATH_COSH,Math.cosh,OpCodes.MATH_EXP,Math.exp,OpCodes.MATH_EXPM1,Math.expm1,OpCodes.MATH_FLOOR,Math.floor,OpCodes.MATH_FROUND,Math.fround,OpCodes.MATH_LOG,Math.log,OpCodes.MATH_LOG1P,Math.log1p,OpCodes.MATH_LOG2,Math.log2,OpCodes.MATH_LOG10,Math.log10,OpCodes.MATH_ROUND,Math.round,OpCodes.MATH_SIGN,Math.sign,OpCodes.MATH_SIN,Math.sin,OpCodes.MATH_SINH,Math.sinh,OpCodes.MATH_SQRT,Math.sqrt,OpCodes.MATH_TAN,Math.tan,OpCodes.MATH_TANH,Math.tanh,OpCodes.MATH_TRUNC,Math.trunc,OpCodes.STRINGIFY,OpCodes.ARITY,OpCodes.MATH_ATAN2,Math.atan2,OpCodes.MATH_IMUL,Math.imul,OpCodes.MATH_POW,Math.pow,OpCodes.PARSE_INT,OpCodes.CHAR_AT,OpCodes.DISPLAY,OpCodes.DRAW_DATA,OpCodes.ERROR,OpCodes.PROMPT,OpCodes.DISPLAY_LIST;const CONSTANT_PRIMITIVES=[["undefined",void 0],["Infinity",1/0],["NaN",NaN],["math_E",Math.E],["math_LN2",Math.LN2],["math_LN10",Math.LN10],["math_LOG2E",Math.LOG2E],["math_LOG10E",Math.LOG10E],["math_PI",Math.PI],["math_SQRT1_2",Math.SQRT1_2],["math_SQRT2",Math.SQRT2]],VALID_UNARY_OPERATORS={"!":OpCodes.NOTG,"-":OpCodes.NEGG},VALID_BINARY_OPERATORS={"+":OpCodes.ADDG,"-":OpCodes.SUBG,"*":OpCodes.MULG,"/":OpCodes.DIVG,"%":OpCodes.MODG,"<":OpCodes.LTG,">":OpCodes.GTG,"<=":OpCodes.LEG,">=":OpCodes.GEG,"===":OpCodes.EQG,"!==":OpCodes.NEQG};let SVMFunctions=[];function updateFunction(e,t,n){const r=SVMFunctions[e];r[0]=t,r[3]=n}let functionCode=[];function addNullaryInstruction(e){const t=[e];functionCode.push(t)}function addUnaryInstruction(e,t){const n=[e,t];functionCode.push(n)}function addBinaryInstruction(e,t,n){const r=[e,t,n];functionCode.push(r)}let toCompile=[];function popToCompile(){const e=toCompile.pop();if(!e)throw new Error("Unable to compile");return e}function pushToCompile(e){toCompile.push(e)}function makeToCompileTask(e,t,n){return[e,t,n]}function toCompileTaskBody(e){return e[0]}function toCompileTaskFunctionAddress(e){return e[1]}function toCompileTaskIndexTable(e){return e[2]}function makeEmptyIndexTable(){return[]}function makeIndexTableWithPrimitivesAndInternals(e){const t=new Map;for(let e=0;e=0;t--)if(e[t].has(n)){const r=e.length-1-t,{index:i,isVar:a,type:o}=e[t].get(n);return{envLevel:r,index:i,isVar:a,type:o}}throw new UndefinedVariableError(n,t)}let toplevel=!0;const toplevelReturnNodes=new Set(["Literal","UnaryExpression","BinaryExpression","CallExpression","Identifier","ArrayExpression","LogicalExpression","MemberExpression","AssignmentExpression","ArrowFunctionExpression","IfStatement","VariableDeclaration"]);function continueToCompile(){for(;0!==toCompile.length;){const e=popToCompile(),t=toCompileTaskFunctionAddress(e),n=toCompileTaskIndexTable(e),r=toCompileTaskBody(e);r.isFunctionBlock=!0;const{maxStackSize:i}=compile$1(r,n,!0);updateFunction(t[0],i,functionCode),functionCode=[],toplevel=!1}}function extractAndRenameNames(e,t,n=!0){const r=new Map;for(const i of e.body)if("VariableDeclaration"===i.type){let{id:{name:e}}=getSourceVariableDeclaration(i);if(n){const n=(i.loc??UNKNOWN_LOCATION).start,a=e;do{e=`${e}-${n.line}-${n.column}`}while(t.has(e));r.set(a,e)}const a="let"===i.kind,o=t.size;t.set(e,{index:o,isVar:a})}else if("FunctionDeclaration"===i.type){const e=i;if(null===e.id)throw new Error("Encountered a FunctionDeclaration node without an identifier. This should have been caught when parsing.");let a=e.id.name;if(n){const n=(e.loc??UNKNOWN_LOCATION).start,i=a;do{a=`${a}-${n.line}-${n.column}`}while(t.has(a));r.set(i,a)}const o=!1,s=t.size;t.set(a,{index:s,isVar:o})}renameVariables(e,r);for(const n of e.body){if("BlockStatement"===n.type&&extractAndRenameNames(n,t,!0),"IfStatement"===n.type){let e=n;for(;"IfStatement"===e.type;){const{consequent:n,alternate:r}=e;extractAndRenameNames(n,t,!0),e=r}extractAndRenameNames(e,t,!0)}"WhileStatement"===n.type&&extractAndRenameNames(n.body,t,!0)}return t}function renameVariables(e,t){if(0===t.size)return;let n=!0;function r(e,t,n){const r=getLocalsInScope(e),i=new Set(t);for(const e of r)t.add(e);for(const r of e.body)n(r,t);for(const e of r)i.has(e)||t.delete(e)}recursive(e,new Set,{VariablePattern(e,n,r){const i=e.name;n.has(i)||t.has(i)&&(e.name=t.get(i))},Identifier(e,n,r){const i=e.name;n.has(i)||t.has(i)&&(e.name=t.get(i))},BlockStatement(e,t,i){if(n){n=!1;for(const n of e.body)i(n,t)}else r(e,t,i)},IfStatement(e,t,n){n(e.test,t);let i=e;for(;"IfStatement"===i.type;){const{consequent:e,alternate:a}=i;r(e,t,n),n(i.test,t),i=a}r(i,t,n)},Function(e,t,n){if("FunctionDeclaration"===e.type){if(null===e.id)throw new Error("Encountered a FunctionDeclaration node without an identifier. This should have been caught when parsing.");n(e.id,t)}const r=new Set(t),i=new Set;for(const t of e.params){const e=t;i.add(e.name)}for(const e of i)t.add(e);n(e.body,t,"ArrowFunctionExpression"===e.type&&e.expression?"Expression":"Statement");for(const e of i)r.has(e)||t.delete(e)},WhileStatement(e,t,n){n(e.test,t),r(e.body,t,n)}})}function getLocalsInScope(e){const t=new Set;for(const n of e.body)if("VariableDeclaration"===n.type){const{id:{name:e}}=getSourceVariableDeclaration(n);t.add(e)}else if("FunctionDeclaration"===n.type){if(null===n.id)throw new Error("Encountered a FunctionDeclaration node without an identifier. This should have been caught when parsing.");const e=n.id.name;t.add(e)}return t}function compileArguments(e,t){let n=0;for(let r=0;r(addNullaryInstruction(OpCodes.POPENV),loopTracker[loopTracker.length-1][BREAK_INDEX].push(functionCode.length),addUnaryInstruction(OpCodes.BR,NaN),{maxStackSize:0,insertFlag:n}),CallExpression(e,t,n,r=!1){let i=0,a="normal",o=NaN;if("Identifier"===e.callee.type){const n=e.callee,{envLevel:r,index:i,type:s}=indexOf(t,n);"primitive"===s||"internal"===s?(a=s,o=i):0===r?addUnaryInstruction(OpCodes.LDLG,i):addBinaryInstruction(OpCodes.LDPG,i,r)}else({maxStackSize:i}=compile$1(e.callee,t,!1));let s=compileArguments(e.arguments,t);return"primitive"===a?addBinaryInstruction(r?OpCodes.CALLTP:OpCodes.CALLP,o,e.arguments.length):"internal"===a?addBinaryInstruction(r?OpCodes.CALLTV:OpCodes.CALLV,o,e.arguments.length):(addUnaryInstruction(r?OpCodes.CALLT:OpCodes.CALL,e.arguments.length),s++),{maxStackSize:Math.max(i,s,1),insertFlag:n}},ConditionalExpression(e,t,n,r=!1){const{test:i,consequent:a,alternate:o}=e,{maxStackSize:s}=compile$1(i,t,!1);addUnaryInstruction(OpCodes.BRF,NaN);const c=functionCode.length-1,{maxStackSize:l}=compile$1(a,t,n,r);let u=NaN;n||(addUnaryInstruction(OpCodes.BR,NaN),u=functionCode.length-1),functionCode[c][1]=functionCode.length-c;const{maxStackSize:d}=compile$1(o,t,n,r);return n||(functionCode[u][1]=functionCode.length-u),{maxStackSize:Math.max(s,l,d),insertFlag:!1}},ContinueStatement:(e,t,n)=>(loopTracker[loopTracker.length-1][CONT_INDEX].push(functionCode.length),addUnaryInstruction(OpCodes.BR,NaN),{maxStackSize:0,insertFlag:n}),DebuggerStatement(){throw new Error("DebuggerStatements are not supported")},ExpressionStatement:({expression:e},t,n)=>compile$1(e,t,n),ForStatement(){throw new Error("ForStatements are not supported")},FunctionDeclaration(e,t,n){if(null===e.id)throw new Error("Encountered a FunctionDeclaration node without an identifier. This should have been caught when parsing.");return compile$1(constantDeclaration(e.id.name,arrowFunctionExpression(e.params,e.body)),t,n)},Identifier(e,t,n){let r,i,a;try{({envLevel:r,index:i,type:a}=indexOf(t,e)),"primitive"===a?addUnaryInstruction(OpCodes.NEWCP,i):"internal"===a?addUnaryInstruction(OpCodes.NEWCV,i):0===r?addUnaryInstruction(OpCodes.LDLG,i):addBinaryInstruction(OpCodes.LDPG,i,r)}catch(e){const t=CONSTANT_PRIMITIVES.filter(t=>t[0]===e.name);if(0===t.length)throw e;if("number"==typeof t[0][1])addUnaryInstruction(OpCodes.LGCF32,t[0][1]);else{if(void 0!==t[0][1])throw new Error("Unknown primitive constant");addNullaryInstruction(OpCodes.LGCU)}}return{maxStackSize:1,insertFlag:n}},IfStatement({test:e,consequent:t,alternate:n},r,i){const{maxStackSize:a}=compile$1(e,r,!1);addUnaryInstruction(OpCodes.BRF,NaN);const o=functionCode.length-1,{maxStackSize:s}=compile$1(t,r,!1);addUnaryInstruction(OpCodes.BR,NaN);const c=functionCode.length-1;functionCode[o][1]=functionCode.length-o;const{maxStackSize:l}=compile$1(n,r,!1);return functionCode[c][1]=functionCode.length-c,{maxStackSize:Math.max(a,s,l),insertFlag:i}},Literal({value:e},t,n){if(null===e)addNullaryInstruction(OpCodes.LGCN);else switch(typeof e){case"boolean":addNullaryInstruction(e?OpCodes.LGCB1:OpCodes.LGCB0);break;case"number":Number.isInteger(e)&&-2147483648<=e&&e<=2147483647?addUnaryInstruction(OpCodes.LGCI,e):addUnaryInstruction(OpCodes.LGCF64,e);break;case"string":addUnaryInstruction(OpCodes.LGCS,e);break;default:throw new Error(`Unsupported literal: ${e}`)}return{maxStackSize:1,insertFlag:n}},LogicalExpression(e,t,n,r=!1){if("&&"===e.operator){const{maxStackSize:i}=compile$1(conditionalExpression(e.left,e.right,literal$1(!1)),t,!1,r);return{maxStackSize:i,insertFlag:n}}if("||"===e.operator){const{maxStackSize:i}=compile$1(conditionalExpression(e.left,literal$1(!0),e.right),t,!1,r);return{maxStackSize:i,insertFlag:n}}throw new Error(`Unsupported operation in LogicalExpression ${e.operator}`)},MemberExpression(e,t,n){if(e.computed){const{maxStackSize:r}=compile$1(e.object,t,!1),{maxStackSize:i}=compile$1(e.property,t,!1);return addNullaryInstruction(OpCodes.LDAG),{maxStackSize:Math.max(r,1+i),insertFlag:n}}throw new Error("Property accesses on MemberExpressions are not supported")},ObjectExpression(){throw new Error("ObjectExpressions are unsupported")},Program:compileStatements,Property(){throw new Error("Properties are not supported")},ReturnStatement(e,t){if(loopTracker.length>0)throw new Error("return not allowed in loops");const{maxStackSize:n}=compile$1(e.argument,t,!1,!0);return{maxStackSize:n,insertFlag:!0}},UnaryExpression(e,t,n){const r=VALID_UNARY_OPERATORS[e.operator];if(void 0!==r){const{maxStackSize:i}=compile$1(e.argument,t,!1);return addNullaryInstruction(r),{maxStackSize:i,insertFlag:n}}throw new Error(`Unsupported UnaryExpression operator ${e.operator}`)},VariableDeclaration(e,t,n){if("const"===e.kind||"let"===e.kind){const{id:r,init:i}=getSourceVariableDeclaration(e),{envLevel:a,index:o}=indexOf(t,r),{maxStackSize:s}=compile$1(i,t,!1);return 0===a?addUnaryInstruction(OpCodes.STLG,o):addBinaryInstruction(OpCodes.STPG,o,a),addNullaryInstruction(OpCodes.LGCU),{maxStackSize:s,insertFlag:n}}throw new Error("var VariableDeclarations not supported")},WhileStatement(e,t,n){const r=e,i=r.isFor,a=functionCode.length,{maxStackSize:o}=compile$1(r.test,t,!1);addUnaryInstruction(OpCodes.BRF,NaN);const s=functionCode.length-1;loopTracker.push([i?"for":"while",[],[],NaN]);const c=extractAndRenameNames(r.body,new Map);addUnaryInstruction(OpCodes.NEWENV,c.size);const l=extendIndexTable(t,c),u=r.body;u.isLoopBlock=!0;const{maxStackSize:d}=compile$1(u,l,!1);i||(loopTracker[loopTracker.length-1][CONT_DEST_INDEX]=functionCode.length),addNullaryInstruction(OpCodes.POPENV);const p=functionCode.length;addUnaryInstruction(OpCodes.BR,a-p),functionCode[s][1]=functionCode.length-s;const m=loopTracker.pop();for(const e of m[BREAK_INDEX])functionCode[e][1]=functionCode.length-e;for(const e of m[CONT_INDEX])functionCode[e][1]=m[CONT_DEST_INDEX]-e;return addNullaryInstruction(OpCodes.LGCU),{maxStackSize:Math.max(o,d),insertFlag:n}}},compile$1=(e,t,n,r=!1)=>{const i=compilers[e.type];if(!i)throw new Error(`${e.type}s are not supported`);const{maxStackSize:a,insertFlag:o}=i(e,t,n,r);let s=a;return o&&("ReturnStatement"===e.type||toplevel&&toplevelReturnNodes.has(e.type)?addNullaryInstruction(OpCodes.RETG):"Program"===e.type||"ExpressionStatement"===e.type||"BlockStatement"===e.type||"FunctionDeclaration"===e.type||(s+=1,addNullaryInstruction(OpCodes.LGCU),addNullaryInstruction(OpCodes.RETG))),{maxStackSize:s,insertFlag:o}};function compileToIns(e,t,n){SVMFunctions=[],functionCode=[],toCompile=[],loopTracker=[],toplevel=!0,transformForLoopsToWhileLoops(e),insertEmptyElseBlocks(e);const r=extractAndRenameNames(e,new Map),i=[NaN,r.size,0,[]];return SVMFunctions[0]=i,pushToCompile(makeToCompileTask(e,[0],extendIndexTable(makeIndexTableWithPrimitivesAndInternals(n),r))),continueToCompile(),[0,SVMFunctions]}function transformForLoopsToWhileLoops(e){simple(e,{ForStatement(e){const{test:t,body:n,init:r,update:i}=e;let a=n;if("VariableDeclaration"===r.type){const{id:{name:e}}=getSourceVariableDeclaration(r),t="copy-of-"+e,i=blockStatement([constantDeclaration(e,identifier(t),r.loc),n]);a=blockStatement([constantDeclaration(t,identifier(e),r.loc),i])}const o=r&&"VariableDeclaration"===r.type?r:expressionStatement(r),s=expressionStatement(i),c=blockStatement([a,s]),l=whileStatement(c,t);l.isFor=!0;const u=[o,l],d=e;d.body=u,d.type="BlockStatement"}})}function insertEmptyElseBlocks(e){simple(e,{IfStatement(e){e.alternate??(e.alternate={type:"BlockStatement",body:[]})}})}var _freeGlobal,hasRequired_freeGlobal,_root,hasRequired_root,_Symbol,hasRequired_Symbol,_getRawTag,hasRequired_getRawTag,_objectToString,hasRequired_objectToString,_baseGetTag,hasRequired_baseGetTag,isObject_1,hasRequiredIsObject,isFunction_1,hasRequiredIsFunction,_coreJsData,hasRequired_coreJsData,_isMasked,hasRequired_isMasked,_toSource,hasRequired_toSource,_baseIsNative,hasRequired_baseIsNative,_getValue,hasRequired_getValue,_getNative,hasRequired_getNative,_defineProperty,hasRequired_defineProperty,_baseAssignValue,hasRequired_baseAssignValue,_createBaseFor,hasRequired_createBaseFor,_baseFor,hasRequired_baseFor,_baseTimes,hasRequired_baseTimes,isObjectLike_1,hasRequiredIsObjectLike,_baseIsArguments,hasRequired_baseIsArguments,isArguments_1,hasRequiredIsArguments,isArray_1,hasRequiredIsArray;function require_freeGlobal(){if(hasRequired_freeGlobal)return _freeGlobal;hasRequired_freeGlobal=1;var e="object"==typeof commonjsGlobal&&commonjsGlobal&&commonjsGlobal.Object===Object&&commonjsGlobal;return _freeGlobal=e}function require_root(){if(hasRequired_root)return _root;hasRequired_root=1;var e=require_freeGlobal(),t="object"==typeof self&&self&&self.Object===Object&&self,n=e||t||Function("return this")();return _root=n}function require_Symbol(){if(hasRequired_Symbol)return _Symbol;hasRequired_Symbol=1;var e=require_root().Symbol;return _Symbol=e}function require_getRawTag(){if(hasRequired_getRawTag)return _getRawTag;hasRequired_getRawTag=1;var e=require_Symbol(),t=Object.prototype,n=t.hasOwnProperty,r=t.toString,i=e?e.toStringTag:void 0;return _getRawTag=function(e){var t=n.call(e,i),a=e[i];try{e[i]=void 0;var o=!0}catch(e){}var s=r.call(e);return o&&(t?e[i]=a:delete e[i]),s}}function require_objectToString(){if(hasRequired_objectToString)return _objectToString;hasRequired_objectToString=1;var e=Object.prototype.toString;return _objectToString=function(t){return e.call(t)}}function require_baseGetTag(){if(hasRequired_baseGetTag)return _baseGetTag;hasRequired_baseGetTag=1;var e=require_Symbol(),t=require_getRawTag(),n=require_objectToString(),r=e?e.toStringTag:void 0;return _baseGetTag=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":r&&r in Object(e)?t(e):n(e)}}function requireIsObject(){return hasRequiredIsObject||(hasRequiredIsObject=1,isObject_1=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}),isObject_1}function requireIsFunction(){if(hasRequiredIsFunction)return isFunction_1;hasRequiredIsFunction=1;var e=require_baseGetTag(),t=requireIsObject();return isFunction_1=function(n){if(!t(n))return!1;var r=e(n);return"[object Function]"==r||"[object GeneratorFunction]"==r||"[object AsyncFunction]"==r||"[object Proxy]"==r}}function require_coreJsData(){if(hasRequired_coreJsData)return _coreJsData;hasRequired_coreJsData=1;var e=require_root()["__core-js_shared__"];return _coreJsData=e}function require_isMasked(){if(hasRequired_isMasked)return _isMasked;hasRequired_isMasked=1;var e,t=require_coreJsData(),n=(e=/[^.]+$/.exec(t&&t.keys&&t.keys.IE_PROTO||""))?"Symbol(src)_1."+e:"";return _isMasked=function(e){return!!n&&n in e}}function require_toSource(){if(hasRequired_toSource)return _toSource;hasRequired_toSource=1;var e=Function.prototype.toString;return _toSource=function(t){if(null!=t){try{return e.call(t)}catch(e){}try{return t+""}catch(e){}}return""}}function require_baseIsNative(){if(hasRequired_baseIsNative)return _baseIsNative;hasRequired_baseIsNative=1;var e=requireIsFunction(),t=require_isMasked(),n=requireIsObject(),r=require_toSource(),i=/^\[object .+?Constructor\]$/,a=Function.prototype,o=Object.prototype,s=a.toString,c=o.hasOwnProperty,l=RegExp("^"+s.call(c).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");return _baseIsNative=function(a){return!(!n(a)||t(a))&&(e(a)?l:i).test(r(a))}}function require_getValue(){return hasRequired_getValue?_getValue:(hasRequired_getValue=1,_getValue=function(e,t){return null==e?void 0:e[t]})}function require_getNative(){if(hasRequired_getNative)return _getNative;hasRequired_getNative=1;var e=require_baseIsNative(),t=require_getValue();return _getNative=function(n,r){var i=t(n,r);return e(i)?i:void 0}}function require_defineProperty(){if(hasRequired_defineProperty)return _defineProperty;hasRequired_defineProperty=1;var e=require_getNative(),t=function(){try{var t=e(Object,"defineProperty");return t({},"",{}),t}catch(e){}}();return _defineProperty=t}function require_baseAssignValue(){if(hasRequired_baseAssignValue)return _baseAssignValue;hasRequired_baseAssignValue=1;var e=require_defineProperty();return _baseAssignValue=function(t,n,r){"__proto__"==n&&e?e(t,n,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[n]=r}}function require_createBaseFor(){return hasRequired_createBaseFor||(hasRequired_createBaseFor=1,_createBaseFor=function(e){return function(t,n,r){for(var i=-1,a=Object(t),o=r(t),s=o.length;s--;){var c=o[e?s:++i];if(!1===n(a[c],c,a))break}return t}}),_createBaseFor}function require_baseFor(){if(hasRequired_baseFor)return _baseFor;hasRequired_baseFor=1;var e=require_createBaseFor()();return _baseFor=e}function require_baseTimes(){return hasRequired_baseTimes||(hasRequired_baseTimes=1,_baseTimes=function(e,t){for(var n=-1,r=Array(e);++n-1&&t%1==0&&t-1&&e%1==0&&e<=9007199254740991})}function require_baseIsTypedArray(){if(hasRequired_baseIsTypedArray)return _baseIsTypedArray;hasRequired_baseIsTypedArray=1;var e=require_baseGetTag(),t=requireIsLength(),n=requireIsObjectLike(),r={};return r["[object Float32Array]"]=r["[object Float64Array]"]=r["[object Int8Array]"]=r["[object Int16Array]"]=r["[object Int32Array]"]=r["[object Uint8Array]"]=r["[object Uint8ClampedArray]"]=r["[object Uint16Array]"]=r["[object Uint32Array]"]=!0,r["[object Arguments]"]=r["[object Array]"]=r["[object ArrayBuffer]"]=r["[object Boolean]"]=r["[object DataView]"]=r["[object Date]"]=r["[object Error]"]=r["[object Function]"]=r["[object Map]"]=r["[object Number]"]=r["[object Object]"]=r["[object RegExp]"]=r["[object Set]"]=r["[object String]"]=r["[object WeakMap]"]=!1,_baseIsTypedArray=function(i){return n(i)&&t(i.length)&&!!r[e(i)]}}function require_baseUnary(){return hasRequired_baseUnary?_baseUnary:(hasRequired_baseUnary=1,_baseUnary=function(e){return function(t){return e(t)}})}isBuffer.exports;var _nodeUtil={exports:{}},hasRequired_nodeUtil,isTypedArray_1,hasRequiredIsTypedArray,_arrayLikeKeys,hasRequired_arrayLikeKeys,_isPrototype,hasRequired_isPrototype,_overArg,hasRequired_overArg,_nativeKeys,hasRequired_nativeKeys,_baseKeys,hasRequired_baseKeys,isArrayLike_1,hasRequiredIsArrayLike,keys_1,hasRequiredKeys,_baseForOwn,hasRequired_baseForOwn,_listCacheClear,hasRequired_listCacheClear,eq_1,hasRequiredEq,_assocIndexOf,hasRequired_assocIndexOf,_listCacheDelete,hasRequired_listCacheDelete,_listCacheGet,hasRequired_listCacheGet,_listCacheHas,hasRequired_listCacheHas,_listCacheSet,hasRequired_listCacheSet,_ListCache,hasRequired_ListCache,_stackClear,hasRequired_stackClear,_stackDelete,hasRequired_stackDelete,_stackGet,hasRequired_stackGet,_stackHas,hasRequired_stackHas,_Map,hasRequired_Map,_nativeCreate,hasRequired_nativeCreate,_hashClear,hasRequired_hashClear,_hashDelete,hasRequired_hashDelete,_hashGet,hasRequired_hashGet,_hashHas,hasRequired_hashHas,_hashSet,hasRequired_hashSet,_Hash,hasRequired_Hash,_mapCacheClear,hasRequired_mapCacheClear,_isKeyable,hasRequired_isKeyable,_getMapData,hasRequired_getMapData,_mapCacheDelete,hasRequired_mapCacheDelete,_mapCacheGet,hasRequired_mapCacheGet,_mapCacheHas,hasRequired_mapCacheHas,_mapCacheSet,hasRequired_mapCacheSet,_MapCache,hasRequired_MapCache,_stackSet,hasRequired_stackSet,_Stack,hasRequired_Stack,_setCacheAdd,hasRequired_setCacheAdd,_setCacheHas,hasRequired_setCacheHas,_SetCache,hasRequired_SetCache,_arraySome,hasRequired_arraySome,_cacheHas,hasRequired_cacheHas,_equalArrays,hasRequired_equalArrays,_Uint8Array,hasRequired_Uint8Array,_mapToArray,hasRequired_mapToArray,_setToArray,hasRequired_setToArray,_equalByTag,hasRequired_equalByTag,_arrayPush,hasRequired_arrayPush,_baseGetAllKeys,hasRequired_baseGetAllKeys,_arrayFilter,hasRequired_arrayFilter,stubArray_1,hasRequiredStubArray,_getSymbols,hasRequired_getSymbols,_getAllKeys,hasRequired_getAllKeys,_equalObjects,hasRequired_equalObjects,_DataView,hasRequired_DataView,_Promise,hasRequired_Promise,_Set,hasRequired_Set,_WeakMap,hasRequired_WeakMap,_getTag,hasRequired_getTag,_baseIsEqualDeep,hasRequired_baseIsEqualDeep,_baseIsEqual,hasRequired_baseIsEqual,_baseIsMatch,hasRequired_baseIsMatch,_isStrictComparable,hasRequired_isStrictComparable,_getMatchData,hasRequired_getMatchData,_matchesStrictComparable,hasRequired_matchesStrictComparable,_baseMatches,hasRequired_baseMatches,isSymbol_1,hasRequiredIsSymbol,_isKey,hasRequired_isKey,memoize_1,hasRequiredMemoize,_memoizeCapped,hasRequired_memoizeCapped,_stringToPath,hasRequired_stringToPath,_arrayMap,hasRequired_arrayMap,_baseToString,hasRequired_baseToString,toString_1,hasRequiredToString,_castPath,hasRequired_castPath,_toKey,hasRequired_toKey,_baseGet,hasRequired_baseGet,get_1,hasRequiredGet,_baseHasIn,hasRequired_baseHasIn,_hasPath,hasRequired_hasPath,hasIn_1,hasRequiredHasIn,_baseMatchesProperty,hasRequired_baseMatchesProperty,identity_1,hasRequiredIdentity,_baseProperty,hasRequired_baseProperty,_basePropertyDeep,hasRequired_basePropertyDeep,property_1,hasRequiredProperty,_baseIteratee,hasRequired_baseIteratee,mapValues_1,hasRequiredMapValues;function require_nodeUtil(){return hasRequired_nodeUtil||(hasRequired_nodeUtil=1,e=_nodeUtil,t=_nodeUtil.exports,n=require_freeGlobal(),r=t&&!t.nodeType&&t,i=r&&e&&!e.nodeType&&e,a=i&&i.exports===r&&n.process,o=function(){try{return i&&i.require&&i.require("util").types||a&&a.binding&&a.binding("util")}catch(e){}}(),e.exports=o),_nodeUtil.exports;var e,t,n,r,i,a,o}function requireIsTypedArray(){if(hasRequiredIsTypedArray)return isTypedArray_1;hasRequiredIsTypedArray=1;var e=require_baseIsTypedArray(),t=require_baseUnary(),n=require_nodeUtil(),r=n&&n.isTypedArray,i=r?t(r):e;return isTypedArray_1=i}function require_arrayLikeKeys(){if(hasRequired_arrayLikeKeys)return _arrayLikeKeys;hasRequired_arrayLikeKeys=1;var e=require_baseTimes(),t=requireIsArguments(),n=requireIsArray(),r=requireIsBuffer(),i=require_isIndex(),a=requireIsTypedArray(),o=Object.prototype.hasOwnProperty;return _arrayLikeKeys=function(s,c){var l=n(s),u=!l&&t(s),d=!l&&!u&&r(s),p=!l&&!u&&!d&&a(s),m=l||u||d||p,f=m?e(s.length,String):[],_=f.length;for(var h in s)!c&&!o.call(s,h)||m&&("length"==h||d&&("offset"==h||"parent"==h)||p&&("buffer"==h||"byteLength"==h||"byteOffset"==h)||i(h,_))||f.push(h);return f}}function require_isPrototype(){if(hasRequired_isPrototype)return _isPrototype;hasRequired_isPrototype=1;var e=Object.prototype;return _isPrototype=function(t){var n=t&&t.constructor;return t===("function"==typeof n&&n.prototype||e)}}function require_overArg(){return hasRequired_overArg||(hasRequired_overArg=1,_overArg=function(e,t){return function(n){return e(t(n))}}),_overArg}function require_nativeKeys(){if(hasRequired_nativeKeys)return _nativeKeys;hasRequired_nativeKeys=1;var e=require_overArg()(Object.keys,Object);return _nativeKeys=e}function require_baseKeys(){if(hasRequired_baseKeys)return _baseKeys;hasRequired_baseKeys=1;var e=require_isPrototype(),t=require_nativeKeys(),n=Object.prototype.hasOwnProperty;return _baseKeys=function(r){if(!e(r))return t(r);var i=[];for(var a in Object(r))n.call(r,a)&&"constructor"!=a&&i.push(a);return i}}function requireIsArrayLike(){if(hasRequiredIsArrayLike)return isArrayLike_1;hasRequiredIsArrayLike=1;var e=requireIsFunction(),t=requireIsLength();return isArrayLike_1=function(n){return null!=n&&t(n.length)&&!e(n)}}function requireKeys(){if(hasRequiredKeys)return keys_1;hasRequiredKeys=1;var e=require_arrayLikeKeys(),t=require_baseKeys(),n=requireIsArrayLike();return keys_1=function(r){return n(r)?e(r):t(r)}}function require_baseForOwn(){if(hasRequired_baseForOwn)return _baseForOwn;hasRequired_baseForOwn=1;var e=require_baseFor(),t=requireKeys();return _baseForOwn=function(n,r){return n&&e(n,r,t)}}function require_listCacheClear(){return hasRequired_listCacheClear?_listCacheClear:(hasRequired_listCacheClear=1,_listCacheClear=function(){this.__data__=[],this.size=0})}function requireEq(){return hasRequiredEq?eq_1:(hasRequiredEq=1,eq_1=function(e,t){return e===t||e!=e&&t!=t})}function require_assocIndexOf(){if(hasRequired_assocIndexOf)return _assocIndexOf;hasRequired_assocIndexOf=1;var e=requireEq();return _assocIndexOf=function(t,n){for(var r=t.length;r--;)if(e(t[r][0],n))return r;return-1}}function require_listCacheDelete(){if(hasRequired_listCacheDelete)return _listCacheDelete;hasRequired_listCacheDelete=1;var e=require_assocIndexOf(),t=Array.prototype.splice;return _listCacheDelete=function(n){var r=this.__data__,i=e(r,n);return!(i<0||(i==r.length-1?r.pop():t.call(r,i,1),--this.size,0))},_listCacheDelete}function require_listCacheGet(){if(hasRequired_listCacheGet)return _listCacheGet;hasRequired_listCacheGet=1;var e=require_assocIndexOf();return _listCacheGet=function(t){var n=this.__data__,r=e(n,t);return r<0?void 0:n[r][1]},_listCacheGet}function require_listCacheHas(){if(hasRequired_listCacheHas)return _listCacheHas;hasRequired_listCacheHas=1;var e=require_assocIndexOf();return _listCacheHas=function(t){return e(this.__data__,t)>-1}}function require_listCacheSet(){if(hasRequired_listCacheSet)return _listCacheSet;hasRequired_listCacheSet=1;var e=require_assocIndexOf();return _listCacheSet=function(t,n){var r=this.__data__,i=e(r,t);return i<0?(++this.size,r.push([t,n])):r[i][1]=n,this},_listCacheSet}function require_ListCache(){if(hasRequired_ListCache)return _ListCache;hasRequired_ListCache=1;var e=require_listCacheClear(),t=require_listCacheDelete(),n=require_listCacheGet(),r=require_listCacheHas(),i=require_listCacheSet();function a(e){var t=-1,n=null==e?0:e.length;for(this.clear();++tu))return!1;var p=c.get(r),m=c.get(i);if(p&&m)return p==i&&m==r;var f=-1,_=!0,h=2&a?new e:void 0;for(c.set(r,i),c.set(i,r);++f{try{return await timeoutPromise(e(t,n),1e4,n)}catch(e){if("undefined"!=typeof window&&e instanceof TypeError||"MODULE_NOT_FOUND"===e.code||"test"===process.env.NODE_ENV&&"ERR_UNSUPPORTED_ESM_URL_SCHEME"===e.code)throw new ModuleConnectionError(n);throw e}}}function getDocsImporter(){if("test"===process.env.NODE_ENV)return async e=>await import(e);if("undefined"!=typeof window)try{return new Function("path","return import(`${path}?q=${Date.now()}`, { with: { type: 'json'} })")}catch{}return async(e,t)=>{const n=await fetch(e);if(200!==n.status&&304!==n.status)throw new ModuleConnectionError(t);return{default:await n.json()}}}const docsImporter=wrapImporter(getDocsImporter()),defaultDocsImporter=(e,t)=>docsImporter(`${MODULES_STATIC_URL}/jsons/${e}.json`,t),manifestImporter=wrapImporter(getDocsImporter()),defaultManifestImporter=()=>manifestImporter(`${MODULES_STATIC_URL}/modules.json`);function getBundleAndTabImporter(){return"test"===process.env.NODE_ENV?e=>import(e):"undefined"!=typeof window?new Function("path","return import(`${path}?q=${Date.now()}`)"):e=>Promise.resolve(require(e))}const bundleAndTabImporter=wrapImporter(getBundleAndTabImporter()),defaultSourceBundleImporter=(e,t)=>bundleAndTabImporter(`${MODULES_STATIC_URL}/bundles/${e}.js`,t),defaultSourceTabImporter=(e,t)=>bundleAndTabImporter(`${MODULES_STATIC_URL}/tabs/${e}.js`,t),chapter_1={get_time:get_time$9,error_message:error_message,is_number:is_number$9,is_string:is_string$9,is_function:is_function$9,is_boolean:is_boolean$9,is_undefined:is_undefined$9,parse_int:parse_int$9,char_at:char_at$9,arity:arity$9,undefined:void 0,NaN:NaN,Infinity:1/0},chapter_2={...chapter_1,pair:pair$7,is_pair:is_pair$7,head:head$7,tail:tail$7,is_null:is_null$7,list:list$7,is_list:is_list$7},chapter_3={...chapter_2,set_head:set_head$5,set_tail:set_tail$5,array_length:array_length$5,is_array:is_array$5,stream:stream$5},chapter_4={...chapter_3,parse:(e,t)=>parse$3(e,createContext(t)),tokenize:(e,t)=>tokenize$3(e,createContext(t)),apply_in_underlying_javascript:(e,t)=>e.apply(e,list_to_vector(t))},chapter_library_parser={...chapter_4,is_object:is_object,is_NaN:is_NaN,has_own_property:has_own_property};var index={[Chapter.SOURCE_1]:chapter_1,[Chapter.SOURCE_2]:chapter_2,[Chapter.SOURCE_3]:chapter_3,[Chapter.SOURCE_4]:chapter_4,[Chapter.LIBRARY_PARSER]:chapter_library_parser},stdlib=Object.freeze({__proto__:null,chapter_1:chapter_1,chapter_2:chapter_2,chapter_3:chapter_3,chapter_4:chapter_4,chapter_library_parser:chapter_library_parser,default:index,list:list$8,misc:misc,stream:stream$6});function getRequireProvider(e){const t={"js-slang":{...jsslang,dist:{createContext:createContext$1,"cse-machine":{interpreter:interpreter},errors:{base:errorBase,errors:errors,rttcErrors:rttcErrors},parser:{parser:parser},stdlib:stdlib,types:types,utils:{assert:assert$1,stringify:stringify$a,rttc:rttc}},context:e}};return(e,n)=>{const r=e.split("/"),i=(t,r)=>{if(0===r.length)return t;const a=t[r[0]];if(void 0!==a)return i(a,r.splice(1));throw new InternalRuntimeError(`Dynamic require of ${e} is not supported`,n)};return i(t,r)}}function getManifestLoader(){let e,t=null;async function n(n=defaultManifestImporter){return void 0!==e?e!==n&&(e=n,t=null):e=n,null!==t||({default:t}=await n()),t}return n.reset=()=>{t=null},n}function getMemoizedDocsLoader(){const e=new Map;let t;async function n(n,r,i=defaultDocsImporter){if(void 0===t?t=i:t!==i&&(t=i,e.clear()),e.has(n))return e.get(n);try{const{default:t}=await i(n);return e.set(n,t),t}catch(e){if(r)throw e;return console.warn(`Failed to load documentation for ${n}:`,e),null}}return n.cache=e,n}const memoizedLoadModuleManifestAsync=getManifestLoader(),memoizedLoadModuleDocsAsync=getMemoizedDocsLoader();async function loadModuleTabsAsync(e,t=defaultSourceTabImporter){return Promise.all(e.map(async e=>{const{default:n}=await t(e);return n}))}async function loadModuleBundleAsync(e,t,n=defaultSourceBundleImporter,r){try{const{default:i}=await n(e,r),a=i(getRequireProvider(t));return mapValues(a,(t,n)=>{if("function"!=typeof t)return t;const r=t.name;return wrap(t,!1,`function ${r} {\n\t[Function from ${e}\n\tImplementation hidden]\n}`,e,r??n)})}catch(t){if(t instanceof ModuleConnectionError)throw t;throw console.error(`Internal error while loading module ${e}:`,t),new ModuleInternalError(e,t,r)}}async function initModuleContextAsync(e,t,n){e in t.moduleContexts?null===t.moduleContexts[e].tabs&&n&&(t.moduleContexts[e].tabs=await loadModuleTabsAsync(n)):t.moduleContexts[e]={state:null,tabs:n?await loadModuleTabsAsync(n):null}}async function loadSourceModules(e,t,{loadTabs:n=!0,sourceBundleImporter:r}={}){const i=await Promise.all(Object.values(e).map(async({name:e,tabs:i,requires:a,node:o})=>{if(void 0!==a&&t.chapter(await initModuleContextAsync(e,t),[e,await loadModuleBundleAsync(e,t,n)]))),i=Object.fromEntries(r);e.forEach(e=>{t.nativeStorage.loadedModuleTypes[e]=i[e].type_map})}const createPairCallExpression=(e,t)=>callExpression(identifier("pair"),[e,t]),createListCallExpression=e=>callExpression(identifier("list"),e),createImportedNameDeclaration=(e,t,n)=>{const r=callExpression(identifier(accessExportFunctionName),[identifier(e),literal$1(n)]);return constantDeclaration(t.name,r)},createInvokedFunctionResultVariableDeclaration=(e,t,n)=>{const r=callExpression(identifier(e),n);return constantDeclaration(t,r)};function hoistAndMergeImports(e){const[t,n]=lodashExports.partition(e.body,isImportDeclaration),r=new Dict;t.forEach(e=>{const t=getModuleDeclarationSource(e);if(!isSourceModule(t))return;const{namespaces:n,regularSpecifiers:i,defaultSpecifiers:a}=r.setdefault(t,{regularSpecifiers:new Dict,defaultSpecifiers:new Set,namespaces:new Set});e.specifiers.forEach(e=>{const t=e.local.name;switch(e.type){case"ImportNamespaceSpecifier":n.add(t);break;case"ImportDefaultSpecifier":a.add(t);break;case"ImportSpecifier":{const n=getSpecifierName(e.imported);i.setdefault(n,new Set).add(t);break}}})});const i=r.flatMap((e,{regularSpecifiers:t,defaultSpecifiers:n,namespaces:r})=>{const i=[];r.forEach(t=>{i.push(importDeclaration(e,[importNamespaceSpecifier(t)]))});const a=[];if(t.forEach((e,t)=>{t.forEach(t=>{a.push(importSpecifier(e,t))})}),n.size>0){const[t,...r]=n;a.unshift(importDefaultSpecifier(t)),r.forEach(t=>{i.push(importDeclaration(e,[importDefaultSpecifier(t)]))})}return(a.length>0||0===i.length)&&i.push(importDeclaration(e,a)),i});e.body=[...i,...n]}function removeExports(e){e.body=mapAndFilter(e.body,e=>{switch(e.type){case"ExportDefaultDeclaration":return"FunctionDeclaration"===e.declaration.type||"ClassDeclaration"===e.declaration.type?e.declaration:void 0;case"ExportNamedDeclaration":return e.declaration?e.declaration:void 0;case"ExportAllDeclaration":return;default:return e}})}const getInvokedFunctionResultVariableNameToImportSpecifiersMap=(e,t)=>{const n={};return e.forEach(e=>{if(!isImportDeclaration(e))return;const r=getModuleDeclarationSource(e);if(isSourceModule(r))return;const i=posix.resolve(t,r),a=transformFilePathToValidFunctionName(i),o=transformFunctionNameToInvokedFunctionResultVariableName(a);void 0===n[o]&&(n[o]=[]),n[o].push(...e.specifiers)}),n},getIdentifier=e=>{switch(e.type){case"FunctionDeclaration":return assert(null!==e.id,"Encountered a FunctionDeclaration node without an identifier. This should have been caught when parsing."),e.id;case"VariableDeclaration":const t=e.declarations[0].id;return assert("Identifier"===t.type,`Expected variable name to be an Identifier, but was ${t.type} instead.`),t;case"ClassDeclaration":throw new InternalRuntimeError("Exporting of class is not supported.",e)}},getExportedNameToIdentifierMap=e=>{const t={};return e.forEach(e=>{if("ExportNamedDeclaration"===e.type)if(e.declaration){const n=getIdentifier(e.declaration);if(null===n)return;const r=n.name;t[r]=n}else e.specifiers.forEach(e=>{const n=getSpecifierName(e.exported),r=e.local;t[n]=r})}),t},getDefaultExportExpression=(e,t)=>{let n=null;return void 0!==t.default&&(n=t.default,delete t.default),e.forEach(e=>{if("ExportDefaultDeclaration"===e.type)if(assert(null===n,"Encountered multiple default exports!"),isDeclaration(e.declaration)){const t=getIdentifier(e.declaration);if(null===t)return;n=t}else n=e.declaration}),n},createAccessImportStatements=e=>{const t=[];for(const[n,r]of Object.entries(e))r.forEach(e=>{let r;switch(e.type){case"ImportSpecifier":r=createImportedNameDeclaration(n,e.local,getSpecifierName(e.imported));break;case"ImportDefaultSpecifier":r=createImportedNameDeclaration(n,e.local,defaultExportLookupName);break;case"ImportNamespaceSpecifier":throw new Error("Namespace imports are not supported.")}t.push(r)});return t},createReturnListArguments=e=>Object.entries(e).map(([e,t])=>{const n=literal$1(e);return createPairCallExpression(n,t)}),removeDirectives=e=>e.filter(e=>!isDirective(e)),removeModuleDeclarations=e=>{const t=[];return e.forEach(e=>{if(isStatement(e))t.push(e);else switch(e.type){case"ImportDeclaration":break;case"ExportNamedDeclaration":e.declaration&&t.push(e.declaration);break;case"ExportDefaultDeclaration":isDeclaration(e.declaration)&&t.push(e.declaration);break;case"ExportAllDeclaration":throw new Error("Not implemented yet.")}}),t},transformProgramToFunctionDeclaration=(e,t)=>{const n=e.body.filter(isModuleDeclaration),r=posix.resolve(t,".."),i=getInvokedFunctionResultVariableNameToImportSpecifiersMap(n,r),a=createAccessImportStatements(i),o=getExportedNameToIdentifierMap(n),s=getDefaultExportExpression(n,o)??literal$1(null),c=createListCallExpression(createReturnListArguments(o)),l=returnStatement(createPairCallExpression(s,c)),u=[...a,...removeModuleDeclarations(removeDirectives(e.body)),l],d=transformFilePathToValidFunctionName(t),p=Object.keys(i).map(e=>identifier(e));return functionDeclaration(identifier(d),p,blockStatement(u))},getSourceModuleImports=e=>Object.values(e).flatMap(e=>e.body.filter(e=>{if(!isImportDeclaration(e))return!1;const t=getModuleDeclarationSource(e);return isSourceModule(t)})),defaultBundler=(e,t,n)=>{const r=e[t],i=posix.resolve(t,".."),a=r.body.filter(isModuleDeclaration),o=getInvokedFunctionResultVariableNameToImportSpecifiersMap(a,i),s=createAccessImportStatements(o),c={};for(const[n,r]of Object.entries(e)){if(n===t)continue;const e=transformProgramToFunctionDeclaration(r,n),i=e.id?.name;assert(void 0!==i,"A transformed function declaration is missing its name. This should never happen."),c[i]=e}const l=[];n.forEach(e=>{if(e===t)return;const n=transformFilePathToValidFunctionName(e),r=transformFunctionNameToInvokedFunctionResultVariableName(n),i=c[n],a=i.params.filter(isIdentifier);assert(a.length===i.params.length,"Function declaration contains non-Identifier AST nodes as params. This should never happen.");const o=createInvokedFunctionResultVariableDeclaration(n,r,a);l.push(o)});const u=getSourceModuleImports(e),d={...r,body:[...u,...Object.values(c),...l,...s,...r.body]};return hoistAndMergeImports(d),removeExports(d),d};class DirectedGraph{constructor(){this.differentKeysError=new Error("The keys of the adjacency list & the in-degree maps are not the same. This should never occur."),this.adjacencyList=new Map}addEdge(e,t){if(e===t)throw new InternalRuntimeError("Edges that connect a node to itself are not allowed.");const n=this.adjacencyList.get(e)??new Set;n.add(t),this.adjacencyList.set(e,n),this.adjacencyList.has(t)||this.adjacencyList.set(t,new Set)}hasEdge(e,t){if(e===t)throw new InternalRuntimeError("Edges that connect a node to itself are not allowed.");return(this.adjacencyList.get(e)??new Set).has(t)}calculateInDegrees(){const e=new Map;for(const t of this.adjacencyList.values())for(const n of t){const t=e.get(n)??0;e.set(n,t+1)}for(const t of this.adjacencyList.keys())e.has(t)||e.set(t,0);return e}findCycle(e){let t=null;for(const[n,r]of e)if(0!==r){t=n;break}assert(null!==t,"There are no cycles in this graph. This should never happen.");const n=[t];for(;;){const t=n[n.length-1],r=this.adjacencyList.get(t);if(void 0===r)throw this.differentKeysError;assert(r.size>0,`Node '${t}' has no incoming edges. This should never happen.`);let i=null;for(const t of r)if(0!==e.get(t)){i=t;break}assert(null!==i,`None of the neighbours of node '${t}' are part of the same cycle. This should never happen.`);const a=n.indexOf(i),o=-1!==a;if(n.push(i),o)return n.slice(a)}}getTopologicalOrder(){let e=0;const t=this.calculateInDegrees(),n=[],r=[];for(const[e,n]of t)0===n&&r.push(e);for(;;){const i=r.shift();if(void 0===i)break;e++,n.push(i);const a=this.adjacencyList.get(i);if(void 0===a)throw this.differentKeysError;for(const e of a){const n=t.get(e);if(void 0===n)throw this.differentKeysError;t.set(e,n-1),0===t.get(e)&&r.push(e)}}return e!==this.adjacencyList.size?{isValidTopologicalOrderFound:!1,topologicalOrder:null,firstCycleFound:this.findCycle(t)}:{isValidTopologicalOrderFound:!0,topologicalOrder:n,firstCycleFound:null}}}const defaultResolutionOptions={extensions:["js"],manifestImporter:void 0};async function resolveFile(e,t,n,r=defaultResolutionOptions){if(isSourceModule(t)){const e=await memoizedLoadModuleManifestAsync(r.manifestImporter);if(!(t in e))return;return{type:"source",name:t,...e[t]}}const i=posix.resolve(e,"..",t);let a=await n(i);if(void 0!==a)return{type:"local",absPath:i,contents:a};if(r.extensions)for(const e of r.extensions){const t=`${i}.${e}`;if(a=await n(t),void 0!==a)return{type:"local",absPath:t,contents:a}}}class LinkerError extends Error{}const defaultLinkerOptions={resolverOptions:defaultResolutionOptions};async function parseProgramsAndConstructImportGraph(e,t,n,r=defaultLinkerOptions,i){const a=new DirectedGraph,o={},s={},c={};let l;function u(){let e=null;if(o[t]){const n=o[t];if(0===n.body.length)return!1;[e]=n.body}else{if(void 0===l)return!1;e=parseAt(l,0)}return null!==e&&(isDirective(e)?"enable verbose"===e.directive:"Literal"===e.type&&"enable verbose"===e.value)}try{if(l=await e(t),void 0===l)throw new ModuleNotFoundError(t);await async function t(l,u){const d=parse$4(u,n,i?{sourceFile:l}:{});if(!d)throw new LinkerError;o[l]=d,s[l]=u,await Promise.all(mapAndFilter(d.body,n=>{switch(n.type){case"ExportNamedDeclaration":if(!n.source)return;case"ImportDeclaration":case"ExportAllDeclaration":return async function(n,i){const s=getModuleDeclarationSource(i),l=await resolveFile(n,s,e,r.resolverOptions);if(!l)throw new ModuleNotFoundError(s,i);if("source"===l.type)return void(s in c||(c[s]={...l,node:i}));const{absPath:u,contents:d}=l;if(u===n)throw new CircularImportError([u,u]);i.source.value=u,a.addEdge(u,n),u in o||await t(u,d)}(l,n);default:return}}))}(t,l);const d=a.getTopologicalOrder();if(d.isValidTopologicalOrderFound)return{ok:!0,topoOrder:d.topologicalOrder,programs:o,sourceModulesToImport:c,files:s,verboseErrors:u()};n.errors.push(new CircularImportError(d.firstCycleFound))}catch(e){e instanceof LinkerError||n.errors.push(e)}return{ok:!1,verboseErrors:u()}}async function preprocessFileImports(e,t,n,r={},i=defaultBundler){const a=r?.importOptions;if(n.variant===Variant.TYPED)try{await loadSourceModuleTypes(new Set(["rune","curve"]),n,a?.sourceBundleImporter)}catch(e){return n.errors.push(e),{ok:!1,verboseErrors:!1}}const o=await parseProgramsAndConstructImportGraph(e,t,n,a,!!r?.shouldAddFileName);if(!o.ok)return o;const{programs:s,topoOrder:c,sourceModulesToImport:l}=o;try{await loadSourceModules(l,n,a);const o=await parseProgramsAndConstructImportGraph(e,t,n,a,!!r?.shouldAddFileName);return o.ok?(analyzeImportsAndExports(s,t,c,n,a),{ok:!0,program:i(s,t,c,n),files:o.files,verboseErrors:o.verboseErrors}):o}catch(e){return n.errors.push(e),{ok:!1,verboseErrors:o.verboseErrors}}}function isFunction(e){return"FunctionDeclaration"===e.type||"FunctionExpression"===e.type||"ArrowFunctionExpression"===e.type}function isLoop(e){return"WhileStatement"===e.type||"ForStatement"===e.type}function isDummyName(e){return"✖"===e}const KEYWORD_SCORE=2e4,keywordsInBlock={FunctionDeclaration:[{name:"function",meta:"keyword",score:KEYWORD_SCORE}],VariableDeclaration:[{name:"const",meta:"keyword",score:KEYWORD_SCORE}],AssignmentExpression:[{name:"let",meta:"keyword",score:KEYWORD_SCORE}],WhileStatement:[{name:"while",meta:"keyword",score:KEYWORD_SCORE}],IfStatement:[{name:"if",meta:"keyword",score:KEYWORD_SCORE},{name:"else",meta:"keyword",score:KEYWORD_SCORE}],ForStatement:[{name:"for",meta:"keyword",score:KEYWORD_SCORE}]},keywordsInLoop={BreakStatement:[{name:"break",meta:"keyword",score:KEYWORD_SCORE}],ContinueStatement:[{name:"continue",meta:"keyword",score:KEYWORD_SCORE}]},keywordsInFunction={ReturnStatement:[{name:"return",meta:"keyword",score:KEYWORD_SCORE}]};function getKeywords(e,t,n){const r=findIdentifierNode(e,n,t);if(!r)return[];const i=findAncestors(e,r);if(!i)return[];if("ForStatement"===i[0].type&&r===i[0].init)return n.chapter>=syntaxBlacklist.AssignmentExpression?keywordsInBlock.AssignmentExpression:[];const a=[];function o(e){Object.entries(e).filter(([e])=>n.chapter>=syntaxBlacklist[e]).forEach(([e,t])=>a.push(...t))}return"ExpressionStatement"===i[0].type&&(i[0].loc??UNKNOWN_LOCATION).start===(r.loc??UNKNOWN_LOCATION).start&&(o(keywordsInBlock),i.some(e=>isFunction(e))&&o(keywordsInFunction),i.some(e=>isLoop(e))&&o(keywordsInLoop)),a}async function getProgramNames(e,t,n,r={}){function i(e,t){return e.line0;){const e=o.shift();isFunction(e)&&s.push(...e.params);const t=getNodeChildren(e);for(const e of t)isImportDeclaration(e)&&s.push(e),isDeclaration(e)&&s.push(e),a(e.loc)&&o.push(e)}for(const e of s)if(cursorInIdentifier(e,e=>a(e.loc)))return[[],!1];const c={};let l=0;for(const e of s){const t=await getNames$1(e,e=>a(e.loc),r);t.forEach(e=>{c[e.name]={...e,score:l},l++})}return[Object.values(c),!0]}function isNotNull(e){return null!==e}function isNotNullOrUndefined(e){return void 0!==e&&isNotNull(e)}function getNodeChildren(e){switch(e.type){case"Program":case"BlockStatement":return e.body;case"WhileStatement":return[e.test,e.body];case"ForStatement":return[e.init,e.test,e.update,e.body].filter(isNotNullOrUndefined);case"ExpressionStatement":return[e.expression];case"IfStatement":const t=[e.test,e.consequent];return isNotNullOrUndefined(e.alternate)&&t.push(e.alternate),t;case"ReturnStatement":return e.argument?[e.argument]:[];case"FunctionDeclaration":case"ArrowFunctionExpression":case"FunctionExpression":return[e.body];case"VariableDeclaration":return e.declarations.flatMap(getNodeChildren);case"VariableDeclarator":return e.init?[e.init]:[];case"UnaryExpression":return[e.argument];case"BinaryExpression":case"LogicalExpression":case"AssignmentExpression":return[e.left,e.right];case"ConditionalExpression":return[e.test,e.alternate,e.consequent];case"CallExpression":case"NewExpression":return[...e.arguments,e.callee];case"ArrayExpression":return e.elements.filter(isNotNull);case"MemberExpression":return[e.object,e.property];case"Property":return[e.key,e.value];case"ObjectExpression":return[...e.properties];default:return[]}}function cursorInIdentifier(e,t){switch(e.type){case"VariableDeclaration":for(const n of e.declarations)if(t(n.id))return!0;return!1;case"FunctionDeclaration":return!!e.id&&t(e.id);case"Identifier":return t(e);default:return!1}}function docsToHtml(e,t){const n=getImportedName(e),r=n===e.local.name?"":`Imported as ${e.local.name}\n`;switch(t.kind){case"function":{let e;return e=0===t.params.length?"()":`(${t.params.map(([e,t])=>`${e}: ${t}`).join(", ")})`,`

${n}${e} → {${t.retType}}

${r}${t.description}
`}case"variable":return`

${n}: ${t.type}

${r}${t.description}
`;case"unknown":return`

${n}: unknown

${r}No description available
`}}async function getNames$1(e,t,n={}){switch(e.type){case"ImportDeclaration":const r=e.specifiers.filter(e=>!isDummyName(e.local.name)),i=getModuleDeclarationSource(e);if(!isSourceModule(i))return r.map(e=>"ImportNamespaceSpecifier"===e.type?{name:e.local.name,meta:"import",docHTML:`Namespace import of '${i}'`}:{name:e.local.name,meta:"import",docHTML:`Import '${getImportedName(e)}' from '${i}'`});try{const[e,t]=lodashExports.partition(r,isNamespaceSpecifier),a=await memoizedLoadModuleManifestAsync(n.manifestImporter);if(!(i in a)){const n=e.map(e=>({name:e.local.name,meta:"import",docHTML:`Namespace import of unknown module '${i}'`})),r=t.map(e=>({name:e.local.name,meta:"import",docHTML:`Import from unknown module '${i}'`}));return n.concat(r)}const o=e.map(e=>({name:e.local.name,meta:"import",docHTML:`Namespace import of '${i}'`}));if(0===t.length)return o;const s=await memoizedLoadModuleDocsAsync(i,!0,n.docsImporter);return o.concat(t.map(e=>{const t=getImportedName(e);return void 0===s[t]?{name:e.local.name,meta:"import",docHTML:`No documentation available for ${t} from '${i}'`}:{name:e.local.name,meta:"import",docHTML:docsToHtml(e,s[t])}}))}catch{return r.map(e=>({name:e.local.name,meta:"import",docHTML:`Unable to retrieve documentation for '${i}'`}))}case"VariableDeclaration":const a=[];for(const n of e.declarations){const r=n.id.name;!r||isDummyName(r)||n.init&&!isFunction(n.init)&&t(n.init)||("const"===e.kind&&n.init&&isFunction(n.init)?a.push({name:r,meta:"func"}):a.push({name:r,meta:e.kind}))}return a;case"FunctionDeclaration":return e.id&&!isDummyName(e.id.name)?[{name:e.id.name,meta:"func"}]:[];case"Identifier":return isDummyName(e.name)?[]:[{name:e.name,meta:"param"}];default:return[]}}class StepperBaseNode{constructor(e,t,n,r,i){this.type=e,this.leadingComments=t,this.trailingComments=n,this.loc=r,this.range=i}toReplString(){return generate(this)}}class StepperLiteral extends StepperBaseNode{constructor(e,t,n,r,i,a){super("Literal",n,r,i,a),this.value=e,this.raw=t}static create(e){return new StepperLiteral(e.value,e.raw,e.leadingComments,e.trailingComments,e.loc,e.range)}isContractible(){return!1}isOneStepPossible(){return!1}contract(){throw new InternalRuntimeError("Cannot contract Literal",this)}oneStep(){throw new InternalRuntimeError("Cannot oneStep Literal",this)}substitute(){return this}freeNames(){return[]}allNames(){return[]}rename(e,t){return new StepperLiteral(this.value,this.raw,this.leadingComments,this.trailingComments,this.loc,this.range)}}const undefinedNode=new StepperLiteral("undefined","undefined");class StepperVariableDeclarator extends StepperBaseNode{constructor(e,t,n,r,i,a){super("VariableDeclarator",n,r,i,a),this.id=e,this.init=t}static create(e){return new StepperVariableDeclarator(convert(e.id),e.init?convert(e.init):e.init,e.leadingComments,e.trailingComments,e.loc,e.range)}isContractible(e){return!!this.init&&this.init.isContractible(e)}isOneStepPossible(e){return!!this.init&&this.init.isOneStepPossible(e)}contract(e){return new StepperVariableDeclarator(this.id,this.init.oneStep(e),this.leadingComments,this.trailingComments,this.loc,this.range)}oneStep(e){return new StepperVariableDeclarator(this.id,this.init.oneStep(e),this.leadingComments,this.trailingComments,this.loc,this.range)}substitute(e,t,n){return new StepperVariableDeclarator(this.id,this.init.substitute(e,t,n),this.leadingComments,this.trailingComments,this.loc,this.range)}freeNames(){return this.init.freeNames()}allNames(){return this.init.allNames()}rename(e,t){return new StepperVariableDeclarator(this.id.rename(e,t),this.init.rename(e,t),this.leadingComments,this.trailingComments,this.loc,this.range)}}class StepperVariableDeclaration extends StepperBaseNode{constructor(e,t,n,r,i,a){super("VariableDeclaration",n,r,i,a),this.declarations=e,this.kind=t}static create(e){return new StepperVariableDeclaration(e.declarations.map(StepperVariableDeclarator.create),e.kind,e.leadingComments,e.trailingComments,e.loc,e.range)}isContractible(){return!1}isOneStepPossible(e){return this.declarations.map(t=>t.isOneStepPossible(e)).reduce((e,t)=>e||t,!1)}contract(e){return e.preRedex=[this],e.postRedex=[],undefinedNode}contractEmpty(e){e.preRedex=[this],e.postRedex=[]}oneStep(e){for(let t=0;tr.substitute(e,t,n)),this.kind,this.leadingComments,this.trailingComments,this.loc,this.range)}freeNames(){return Array.from(new Set(this.declarations.flatMap(e=>e.freeNames())))}allNames(){return Array.from(new Set(this.declarations.flatMap(e=>e.allNames())))}rename(e,t){return new StepperVariableDeclaration(this.declarations.map(n=>n.rename(e,t)),this.kind,this.leadingComments,this.trailingComments,this.loc,this.range)}}function getFreshName(e,t){const n=new Set([t,e].flat());return e.map(e=>{const t=/(.*)_(\d+)$/;let r=e;do{const n=r.match(t);if(n){const e=parseInt(n[2],10)+1;r=n[1]+"_"+e.toString()}else r=e+"_1"}while(n.has(r));return n.add(r),r})}function assignMuTerms(e){return e.map(e=>e.init&&"ArrowFunctionExpression"===e.init.type?new StepperVariableDeclarator(e.id,e.init.assignName(e.id.name)):e)}const customGenerator={...GENERATOR,ArrowFunctionExpression(e,t){e.name?t.write(e.name):GENERATOR.ArrowFunctionExpression.call(this,e,t)},CallExpression(e,t){const n=e.callee;"ArrowFunctionExpression"===n.type&&n.name?GENERATOR.CallExpression.call(this,{...e,callee:{type:"Identifier",name:n.name}},t):GENERATOR.CallExpression.call(this,e,t)}};function generate(e,t){return generate$1(e,{...t,generator:customGenerator})}class StepperArrayExpression extends StepperBaseNode{constructor(e,t,n,r,i){super("ArrayExpression",t,n,r,i),this.elements=e}static create(e){return new StepperArrayExpression(e.elements.map(e=>e?convert(e):null),e.leadingComments,e.trailingComments,e.loc,e.range)}isContractible(){return!1}isOneStepPossible(e){return this.elements.some(t=>t?.isOneStepPossible(e))}contract(e){throw e.preRedex=[this],new InternalRuntimeError("Array expressions cannot be contracted",this)}oneStep(e){if(this.isContractible())return this.contract(e);for(let t=0;tr?r.substitute(e,t,n):null),this.leadingComments,this.trailingComments,this.loc,this.range)}freeNames(){const e=this.elements.filter(e=>null!==e).flatMap(e=>e.freeNames());return Array.from(new Set(e))}allNames(){const e=this.elements.filter(e=>null!==e).flatMap(e=>e.allNames());return Array.from(new Set(e))}rename(e,t){return new StepperArrayExpression(this.elements.map(n=>n?n.rename(e,t):null),this.leadingComments,this.trailingComments,this.loc,this.range)}}class StepperArrowFunctionExpression extends StepperBaseNode{constructor(e,t,n,r=!0,i=!1,a=!1,o,s,c,l){super("ArrowFunctionExpression",o,s,c,l),this.params=e,this.body=t,this.name=n,this.expression=r,this.generator=i,this.async=a}static create(e){return new StepperArrowFunctionExpression(e.params.map(e=>convert(e)),convert(e.body),void 0,e.expression,e.generator,e.async,e.leadingComments,e.trailingComments,e.loc,e.range)}isContractible(){return!1}isOneStepPossible(){return!1}contract(){throw new InternalRuntimeError("Cannot contract an arrow function expression",this)}oneStep(){throw new InternalRuntimeError("Cannot step an arrow function expression",this)}assignName(e){return new StepperArrowFunctionExpression(this.params,this.body,e,this.expression,this.generator,this.async,this.leadingComments,this.trailingComments,this.loc,this.range)}scanAllDeclarationNames(){const e=this.params.map(e=>e.name);let t=[];return"BlockStatement"===this.body.type&&(t=this.body.body.filter(e=>"VariableDeclaration"===e.type).flatMap(e=>e.declarations.map(e=>e.id.name))),[...e,...t]}substitute(e,t,n,r){const i=t.freeNames(),a=this.scanAllDeclarationNames(),o=i.filter(e=>a.includes(e));let s=new Set([this.allNames(),r??[]].flat());o.forEach(e=>s.delete(e));const c=Array.from(s),l=getFreshName(o,c).reduce((e,t,n)=>e.rename(o[n],t),this);return l.scanAllDeclarationNames().includes(e.name)?l:new StepperArrowFunctionExpression(l.params,l.body.substitute(e,t,n,l.params.flatMap(e=>e.allNames())),l.name,l.expression,l.generator,l.async,l.leadingComments,l.trailingComments,l.loc,l.range)}freeNames(){const e=mapAndFilter(this.params,e=>isIdentifier(e)?e.name:void 0);return this.body.freeNames().filter(t=>!e.includes(t))}allNames(){const e=mapAndFilter(this.params,e=>isIdentifier(e)?e.name:void 0);return Array.from(new Set([e,this.body.allNames()].flat()))}rename(e,t){return new StepperArrowFunctionExpression(this.params.map(n=>n.rename(e,t)),this.body.rename(e,t),this.name,this.expression,this.generator,this.async,this.leadingComments,this.trailingComments,this.loc,this.range)}}function isStepperValue(e){switch(e.type){case"Literal":case"ArrowFunctionExpression":case"ArrayExpression":return!0;case"Identifier":return"undefined"===e.name;default:return!1}}function getStepperNodeValue(e){switch(e.type){case"Literal":return e.value;case"ArrowFunctionExpression":return()=>{};case"ArrayExpression":return[];default:return}}class StepperBinaryExpression extends StepperBaseNode{constructor(e,t,n,r,i,a,o){super("BinaryExpression",r,i,a,o),this.operator=e,this.left=t,this.right=n}static create(e){return new StepperBinaryExpression(e.operator,convert(e.left),convert(e.right),e.leadingComments,e.trailingComments,e.loc,e.range)}isContractible(e){const t=!this.left.isOneStepPossible(e),n=!this.right.isOneStepPossible(e);if(!t||!n)return!1;if(isStepperValue(this.left)&&isStepperValue(this.right)){const e=getStepperNodeValue(this.left),t=getStepperNodeValue(this.right);checkBinaryExpression(this,this.operator,Chapter.SOURCE_2,[e,t])}if("Literal"!==this.left.type||"Literal"!==this.right.type)return!1;const r=typeof this.left.value,i=typeof this.right.value;return("string"===r&&"string"===i&&["+","===","!==","<",">","<=",">="].includes(this.operator)||!("number"!==r||"number"!==i||!["*","+","/","-","===","!==","<",">","<=",">=","%"].includes(this.operator)))&&(()=>(e.preRedex=[this],!0))()}isOneStepPossible(e){return this.left.isOneStepPossible(e)||this.right.isOneStepPossible(e)||this.isContractible(e)}contract(e){e.preRedex=[this],assert("Literal"===this.left.type&&"Literal"===this.right.type,"BinaryExpression cannot be contracted unless both sides are Literals");const t=this.left.value,n=this.right.value,r=this.operator,i="&&"===r?t&&n:"||"===r?t||n:"+"===r&&"number"==typeof t&&"number"==typeof n||"+"===r&&"string"==typeof t&&"string"==typeof n?t+n:"-"===r?t-n:"*"===r?t*n:"%"===r?t%n:"/"===r?t/n:"==="===r?t===n:"!=="===r?t!==n:"<"===r?t="===r?t>=n:t>n;let a=new StepperLiteral(i,"string"==typeof i?'"'+i+'"':null!==i?i.toString():"null",void 0,void 0,this.loc,this.range);return e.postRedex=[a],a}oneStep(e){return this.isContractible(e)?this.contract(e):this.left.isOneStepPossible(e)?new StepperBinaryExpression(this.operator,this.left.oneStep(e),this.right):new StepperBinaryExpression(this.operator,this.left,this.right.oneStep(e))}substitute(e,t,n){return new StepperBinaryExpression(this.operator,this.left.substitute(e,t,n),this.right.substitute(e,t,n),this.leadingComments,this.trailingComments,this.loc,this.range)}freeNames(){return Array.from(new Set([this.left.freeNames(),this.right.freeNames()].flat()))}allNames(){return Array.from(new Set([this.left.allNames(),this.right.allNames()].flat()))}rename(e,t){return new StepperBinaryExpression(this.operator,this.left.rename(e,t),this.right.rename(e,t),this.leadingComments,this.trailingComments,this.loc,this.range)}}class StepperConditionalExpression extends StepperBaseNode{constructor(e,t,n,r,i,a,o){super("ConditionalExpression",r,i,a,o),this.test=e,this.consequent=t,this.alternate=n}static create(e){return new StepperConditionalExpression(convert(e.test),convert(e.consequent),convert(e.alternate),e.leadingComments,e.trailingComments,e.loc,e.range)}isContractible(e){return"Literal"===this.test.type&&(checkIfStatement(this,this.test.value),e.preRedex=[this],!0)}isOneStepPossible(e){return this.isContractible(e)||this.test.isOneStepPossible(e)}contract(e){if(e.preRedex=[this],"Literal"!==this.test.type||"boolean"!=typeof this.test.value)throw new InternalRuntimeError("Cannot contract ConditionalExpression with non-boolean literal test",this);const t=this.test.value?this.consequent:this.alternate;return e.postRedex=[t],t}oneStep(e){return this.isContractible(e)?this.contract(e):new StepperConditionalExpression(this.test.oneStep(e),this.consequent,this.alternate,this.leadingComments,this.trailingComments,this.loc,this.range)}substitute(e,t,n){return new StepperConditionalExpression(this.test.substitute(e,t,n),this.consequent.substitute(e,t,n),this.alternate.substitute(e,t,n),this.leadingComments,this.trailingComments,this.loc,this.range)}freeNames(){return Array.from(new Set([...this.test.freeNames(),...this.consequent.freeNames(),...this.alternate.freeNames()]))}allNames(){return Array.from(new Set([...this.test.allNames(),...this.consequent.allNames(),...this.alternate.allNames()]))}rename(e,t){return new StepperConditionalExpression(this.test.rename(e,t),this.consequent.rename(e,t),this.alternate.rename(e,t),this.leadingComments,this.trailingComments,this.loc,this.range)}}class StepperBlockStatement extends StepperBaseNode{constructor(e,t,n,r,i,a){super("BlockStatement",n,r,i,a),this.body=e,this.innerComments=t}static create(e){return new StepperBlockStatement(e.body.map(e=>convert(e)),e.innerComments,e.leadingComments,e.trailingComments,e.loc,e.range)}isContractible(e){return 0===this.body.length||1===this.body.length&&!this.body[0].isContractible(e)}isOneStepPossible(){return!0}contract(e){if(0===this.body.length)return e.preRedex=[this],e.postRedex=[],undefinedNode;if(1===this.body.length)return e.preRedex=[this],e.postRedex=[this.body[0]],this.body[0];throw new InternalRuntimeError("Cannot contract BlockStatement with body length > 1",this)}contractEmpty(e){e.preRedex=[this],e.postRedex=[]}oneStep(e){if(this.isContractible(e))return this.contract(e);if("ReturnStatement"===this.body[0].type){const t=this.body[0];return e.preRedex=[this],e.postRedex=[t],t}if(this.body[0].isOneStepPossible(e)){const t=this.body[0].oneStep(e),n=this.body.slice(1);return new StepperBlockStatement(t===undefinedNode?n:[t,n].flat(),this.innerComments,this.leadingComments,this.trailingComments,this.loc,this.range)}if("VariableDeclaration"===this.body[0].type){const t=assignMuTerms(this.body[0].declarations),n=this.body.slice(1).map(n=>t.filter(e=>e.init).reduce((t,n)=>t.substitute(n.id,n.init,e),n)),r=new StepperBlockStatement(n,this.innerComments,this.leadingComments,this.trailingComments,this.loc,this.range);return e.preRedex=[this.body[0]],e.postRedex=t.map(e=>e.id),r}if("FunctionDeclaration"===this.body[0].type){const t=this.body[0].getArrowFunctionExpression(),n=this.body[0].id,r=this.body.slice(1).map(r=>r.substitute(n,t,e)),i=new StepperBlockStatement(r,this.innerComments,this.leadingComments,this.trailingComments,this.loc,this.range);return e.preRedex=[this.body[0]],e.postRedex=r,i}const t=this.body[0];if(this.body.length>=2&&"ReturnStatement"===this.body[1].type){e.preRedex=[this.body[0]];const t=this.body.slice(1);return e.postRedex=[],new StepperBlockStatement(t,this.innerComments,this.leadingComments,this.trailingComments,this.loc,this.range)}if(this.body.length>=2&&this.body[1].isOneStepPossible(e)){const n=this.body[1].oneStep(e),r=this.body.slice(2);return new StepperBlockStatement(n===undefinedNode?[t,r].flat():[t,n,r].flat(),this.innerComments,this.leadingComments,this.trailingComments,this.loc,this.range)}if(this.body.length>=2&&"VariableDeclaration"===this.body[1].type){const n=assignMuTerms(this.body[1].declarations),r=this.body.slice(2).map(t=>n.filter(e=>e.init).reduce((t,n)=>t.substitute(n.id,n.init,e),t)),i=new StepperBlockStatement([t,r].flat(),this.innerComments,this.leadingComments,this.trailingComments,this.loc,this.range);return e.preRedex=[this.body[1]],e.postRedex=n.map(e=>e.id),i}if(this.body.length>=2&&"FunctionDeclaration"===this.body[1].type){const n=this.body[1].getArrowFunctionExpression(),r=this.body[1].id,i=this.body.slice(2).map(t=>t.substitute(r,n,e)),a=new StepperBlockStatement([t,i].flat(),this.innerComments,this.leadingComments,this.trailingComments,this.loc,this.range);return e.preRedex=[this.body[1]],e.postRedex=i,a}return this.body[0].contractEmpty(e),new StepperBlockStatement(this.body.slice(1),this.innerComments,this.leadingComments,this.trailingComments,this.loc,this.range)}substitute(e,t,n,r){const i=t.freeNames(),a=this.scanAllDeclarationNames(),o=i.filter(e=>a.includes(e));let s=new Set([this.allNames(),r??[]].flat());o.forEach(e=>s.delete(e));const c=Array.from(s),l=getFreshName(o,c).reduce((e,t,n)=>e.rename(o[n],t),this);return l.scanAllDeclarationNames().includes(e.name)?l:new StepperBlockStatement(l.body.map(r=>r.substitute(e,t,n)),this.innerComments,this.leadingComments,this.trailingComments,this.loc,this.range)}scanAllDeclarationNames(){return this.body.filter(e=>"VariableDeclaration"===e.type||"FunctionDeclaration"===e.type).flatMap(e=>"VariableDeclaration"===e.type?e.declarations.map(e=>e.id.name):[e.id.name])}freeNames(){const e=new Set(this.body.flatMap(e=>e.freeNames()));return this.scanAllDeclarationNames().forEach(t=>e.delete(t)),Array.from(e)}allNames(){return Array.from(new Set(this.body.flatMap(e=>e.allNames())))}rename(e,t){return new StepperBlockStatement(this.body.map(n=>n.rename(e,t)),this.innerComments,this.leadingComments,this.trailingComments,this.loc,this.range)}}class StepperBlockExpression extends StepperBaseNode{constructor(e,t,n,r,i,a){super("BlockStatement",n,r,i,a),this.body=e,this.innerComments=t}static create(e){return new StepperBlockExpression(e.body.map(e=>convert(e)))}isContractible(e){return 0===this.body.length||1===this.body.length&&!this.body[0].isOneStepPossible(e)||"ReturnStatement"===this.body[0].type}isOneStepPossible(e){return this.isContractible(e)||this.body[0].isOneStepPossible(e)||this.body.length>=2}contract(e){if(0===this.body.length||1===this.body.length&&!this.body[0].isOneStepPossible(e))return e.preRedex=[this],e.postRedex=[],undefinedNode;if("ReturnStatement"===this.body[0].type){const t=this.body[0];return t.contract(e),t.argument||undefinedNode}throw new InternalRuntimeError("Cannot contract ineligible BlockExpression",this)}oneStep(e){if(this.isContractible(e))return this.contract(e);if(this.body[0].isOneStepPossible(e)){const t=this.body[0].oneStep(e),n=this.body.slice(1);return new StepperBlockExpression(t===undefinedNode?n:[t,...n],this.innerComments,this.leadingComments,this.trailingComments,this.loc,this.range)}if("VariableDeclaration"===this.body[0].type){const t=assignMuTerms(this.body[0].declarations),n=this.body.slice(1).map(n=>t.filter(e=>e.init).reduce((t,n)=>t.substitute(n.id,n.init,e),n)),r=new StepperBlockExpression(n,this.innerComments,this.leadingComments,this.trailingComments,this.loc,this.range);return e.preRedex=[this.body[0]],e.postRedex=t.map(e=>e.id),r}if("FunctionDeclaration"===this.body[0].type){const t=this.body[0].getArrowFunctionExpression(),n=this.body[0].id,r=this.body.slice(1).map(r=>r.substitute(n,t,e)),i=new StepperBlockExpression(r,this.innerComments,this.leadingComments,this.trailingComments,this.loc,this.range);return e.preRedex=[this.body[0]],e.postRedex=r,i}const t=this.body[0];if(this.body.length>=2&&"ReturnStatement"===this.body[1].type){e.preRedex=[this.body[0]];const t=this.body.slice(1);return e.postRedex=[],new StepperBlockExpression(t,this.innerComments,this.leadingComments,this.trailingComments,this.loc,this.range)}if(this.body.length>=2&&this.body[1].isOneStepPossible(e)){const n=this.body[1].oneStep(e),r=this.body.slice(2);return new StepperBlockExpression(n===undefinedNode?[t,r].flat():[t,n,r].flat(),this.innerComments,this.leadingComments,this.trailingComments,this.loc,this.range)}if(this.body.length>=2&&"VariableDeclaration"===this.body[1].type){const n=assignMuTerms(this.body[1].declarations),r=this.body.slice(2).map(t=>n.filter(e=>e.init).reduce((t,n)=>t.substitute(n.id,n.init,e),t)),i=new StepperBlockExpression([t,r].flat(),this.innerComments,this.leadingComments,this.trailingComments,this.loc,this.range);return e.preRedex=[this.body[1]],e.postRedex=n.map(e=>e.id),i}if(this.body.length>=2&&"FunctionDeclaration"===this.body[1].type){const n=this.body[1].getArrowFunctionExpression(),r=this.body[1].id,i=this.body.slice(2).map(t=>t.substitute(r,n,e)),a=new StepperBlockExpression([t,i].flat(),this.innerComments,this.leadingComments,this.trailingComments,this.loc,this.range);return e.preRedex=[this.body[1]],e.postRedex=i,a}return this.body[0].contractEmpty(e),new StepperBlockExpression(this.body.slice(1),this.innerComments,this.leadingComments,this.trailingComments,this.loc,this.range)}substitute(e,t,n){const r=t.freeNames(),i=this.scanAllDeclarationNames(),a=r.filter(e=>i.includes(e)),o=new Set(this.allNames());a.forEach(e=>o.delete(e));const s=Array.from(o),c=getFreshName(a,s).reduce((e,t,n)=>e.rename(a[n],t),this);return c.scanAllDeclarationNames().includes(e.name)?c:new StepperBlockExpression(c.body.map(r=>r.substitute(e,t,n)),c.innerComments,c.leadingComments,c.trailingComments,c.loc,c.range)}scanAllDeclarationNames(){return this.body.flatMap(e=>{switch(e.type){case"VariableDeclaration":return e.declarations.map(e=>e.id.name);case"FunctionDeclaration":return[e.id.name];default:return[]}})}freeNames(){const e=new Set(this.body.flatMap(e=>e.freeNames()));return this.scanAllDeclarationNames().forEach(t=>e.delete(t)),Array.from(e)}allNames(){return Array.from(new Set(this.body.flatMap(e=>e.allNames())))}rename(e,t){return new StepperBlockExpression(this.body.map(n=>n.rename(e,t)),this.innerComments,this.leadingComments,this.trailingComments,this.loc,this.range)}}class StepperFunctionApplication extends StepperBaseNode{constructor(e,t,n=!1,r,i,a,o){super("CallExpression",r,i,a,o),this.callee=e,this.optional=n,this.arguments=t}static create(e){return new StepperFunctionApplication(convert(e.callee),e.arguments.map(e=>convert(e)),e.optional,e.leadingComments,e.trailingComments,e.loc,e.range)}isContractible(e){if(!("ArrowFunctionExpression"===this.callee.type||"Identifier"===this.callee.type&&isBuiltinFunction(this.callee.name))){if(!this.callee.isOneStepPossible(e)&&this.arguments.every(t=>!t.isOneStepPossible(e)))throw new CallingNonFunctionValueError(this.callee,this);return!1}if("ArrowFunctionExpression"===this.callee.type){const e=this.callee;if(e.params.length!==this.arguments.length)throw new InvalidNumberOfArgumentsError(this,e.params.length,this.arguments.length)}return this.arguments.every(t=>!t.isOneStepPossible(e))}isOneStepPossible(e){return!!this.isContractible(e)||!!this.callee.isOneStepPossible(e)||this.arguments.some(t=>t.isOneStepPossible(e))}contract(e){if(e.preRedex=[this],!this.isContractible(e))throw new InternalRuntimeError("Trying to contract ineliglble CallExpression",this);if("Identifier"===this.callee.type){const t=this.callee.name;if(isBuiltinFunction(t)){const n=getBuiltinFunction(t,this);return e.postRedex=[n],n}throw new GeneralRuntimeError(`Unknown builtin function: ${t}`,this)}if("ArrowFunctionExpression"!==this.callee.type)throw new CallingNonFunctionValueError(this.callee,this);const t=this.callee,n=this.arguments;let r=t.body;if(r instanceof StepperBlockStatement){const e=t.body;r=0===e.body.length?new StepperBlockExpression([]):"ReturnStatement"===e.body[0].type?e.body[0].argument:new StepperBlockExpression(e.body)}else r=t.body;return t.name&&!this.callee.scanAllDeclarationNames().includes(t.name)&&(r=r.substitute({type:"Identifier",name:t.name},t,e)),t.params.forEach((t,i)=>{r=r.substitute(t,n[i],e)}),e.postRedex=[r],r}oneStep(e){if(this.isContractible(e))return this.contract(e);if(this.callee.isOneStepPossible(e))return new StepperFunctionApplication(this.callee.oneStep(e),this.arguments,this.optional,this.leadingComments,this.trailingComments,this.loc,this.range);for(let t=0;tr.substitute(e,t,n)),this.optional,this.leadingComments,this.trailingComments,this.loc,this.range)}freeNames(){return Array.from(new Set([...this.callee.freeNames(),...this.arguments.flatMap(e=>e.freeNames())]))}allNames(){return Array.from(new Set([...this.callee.allNames(),...this.arguments.flatMap(e=>e.allNames())]))}rename(e,t){return new StepperFunctionApplication(this.callee.rename(e,t),this.arguments.map(n=>n.rename(e,t)),this.optional,this.leadingComments,this.trailingComments,this.loc,this.range)}}class StepperIdentifier extends StepperBaseNode{constructor(e,t,n,r,i){super("Identifier",t,n,r,i),this.name=e}static create(e){return new StepperIdentifier(e.name,e.leadingComments,e.trailingComments,e.loc,e.range)}isContractible(){if("undefined"!==this.name&&!isBuiltinFunction(this.name))throw new UnassignedVariableError(this.name,this);return!1}isOneStepPossible(){if("undefined"!==this.name&&!isBuiltinFunction(this.name))throw new UnassignedVariableError(this.name,this);return!1}contract(){throw new InternalRuntimeError("Cannot contract Identifier",this)}oneStep(){throw new InternalRuntimeError("Cannot oneStep Identifier",this)}substitute(e,t,n){return e.name===this.name?(n.postRedex.push(t),t):this}freeNames(){return[this.name]}allNames(){return[this.name]}rename(e,t){return e===this.name?new StepperIdentifier(t,this.leadingComments,this.trailingComments,this.loc,this.range):this}}class StepperLogicalExpression extends StepperBaseNode{constructor(e,t,n,r,i,a,o){super("LogicalExpression",r,i,a,o),this.operator=e,this.left=t,this.right=n}static create(e){return new StepperLogicalExpression(e.operator,convert(e.left),convert(e.right),e.leadingComments,e.trailingComments,e.loc,e.range)}isContractible(e){return"Literal"===this.left.type&&(checkIfStatement(this,this.left.value),e.preRedex=[this],!0)}isOneStepPossible(e){return this.isContractible(e)||this.left.isOneStepPossible(e)||this.right.isOneStepPossible(e)}contract(e){e.preRedex=[this],assert("Literal"===this.left.type,"Left operand must be a literal to contract");const t=this.left.value;if("&&"!==this.operator||t){if("||"===this.operator&&t){let t=new StepperLiteral(!0,void 0,this.leadingComments,this.trailingComments,this.loc,this.range);return e.postRedex=[t],t}return this.right}{let t=new StepperLiteral(!1,void 0,this.leadingComments,this.trailingComments,this.loc,this.range);return e.postRedex=[t],t}}oneStep(e){if(this.isContractible(e))return this.contract(e);if(this.left.isOneStepPossible(e))return new StepperLogicalExpression(this.operator,this.left.oneStep(e),this.right,this.leadingComments,this.trailingComments,this.loc,this.range);if(this.right.isOneStepPossible(e))return new StepperLogicalExpression(this.operator,this.left,this.right.oneStep(e),this.leadingComments,this.trailingComments,this.loc,this.range);throw new InternalRuntimeError("Cannot oneStep ineligible LogicalExpression",this)}substitute(e,t,n){return new StepperLogicalExpression(this.operator,this.left.substitute(e,t,n),this.right.substitute(e,t,n),this.leadingComments,this.trailingComments,this.loc,this.range)}freeNames(){return Array.from(new Set([this.left.freeNames(),this.right.freeNames()].flat()))}allNames(){return Array.from(new Set([this.left.allNames(),this.right.allNames()].flat()))}rename(e,t){return new StepperLogicalExpression(this.operator,this.left.rename(e,t),this.right.rename(e,t),this.leadingComments,this.trailingComments,this.loc,this.range)}}class StepperUnaryExpression extends StepperBaseNode{constructor(e,t,n,r,i,a){super("UnaryExpression",n,r,i,a),this.operator=e,this.argument=t,this.prefix=!0}static createLiteral(e){if("-"===e.operator&&"Literal"===e.argument.type&&"number"==typeof e.argument.value&&e.argument.value>0)return new StepperLiteral(-e.argument.value,(-e.argument.value).toString(),e.leadingComments,e.trailingComments,e.loc,e.range)}static create(e){return StepperUnaryExpression.createLiteral(e)||new StepperUnaryExpression(e.operator,convert(e.argument),e.leadingComments,e.trailingComments,e.loc,e.range)}isContractible(e){if(this.argument.isOneStepPossible(e))return!1;if(isStepperValue(this.argument)){const e=getStepperNodeValue(this.argument);checkUnaryExpression(this,this.operator,e)}if("Literal"!==this.argument.type)return!1;const t=typeof this.argument.value;return("!"===this.operator&&"boolean"===t||"-"===this.operator&&"number"===t)&&(()=>(e.preRedex=[this],!0))()}isOneStepPossible(e){return this.argument.isOneStepPossible(e)||this.isContractible(e)}contract(e){e.preRedex=[this],assert("Literal"===this.argument.type,"UnaryExpressions cannot be contracted if the argument is not a Literal");const t=this.argument.value;switch(this.operator){case"!":{const n=new StepperLiteral(!t,t?"false":"true",this.leadingComments,this.trailingComments,this.loc,this.range);return e.postRedex=[n],n}case"-":{const n=new StepperLiteral(-t,(-t).toString(),this.leadingComments,this.trailingComments,this.loc,this.range);return e.postRedex=[n],n}case"typeof":{const n=typeof t,r=new StepperLiteral(n,n,this.leadingComments,this.trailingComments,this.loc,this.range);return e.postRedex=[r],r}default:throw new GeneralRuntimeError(`Unsupported operator ${this.operator} in tracer`,this)}}oneStep(e){if(this.isContractible(e))return this.contract(e);const t=new StepperUnaryExpression(this.operator,this.argument.oneStep(e),this.leadingComments,this.trailingComments,this.loc,this.range);return StepperUnaryExpression.createLiteral(t)||t}substitute(e,t,n){const r=new StepperUnaryExpression(this.operator,this.argument.substitute(e,t,n),this.leadingComments,this.trailingComments,this.loc,this.range);return StepperUnaryExpression.createLiteral(r)||r}freeNames(){return this.argument.freeNames()}allNames(){return this.argument.allNames()}rename(e,t){return new StepperUnaryExpression(this.operator,this.argument.rename(e,t),this.leadingComments,this.trailingComments,this.loc,this.range)}}class StepperProgram extends StepperBaseNode{constructor(e,t,n,r,i,a){super("Program",n,r,i,a),this.body=e,this.comments=t,this.sourceType="module"}isContractible(){return!1}isOneStepPossible(e){return 0!==this.body.length&&(this.body[0].isOneStepPossible(e)||this.body.length>=2||1===this.body.length&&("VariableDeclaration"===this.body[0].type||"FunctionDeclaration"===this.body[0].type))}contract(){throw new InternalRuntimeError("contract not implemented for Program",this)}oneStep(e){if(this.body[0].isOneStepPossible(e)){const t=this.body[0].oneStep(e),n=this.body.slice(1);return new StepperProgram(t===undefinedNode?[n].flat():[t,n].flat())}if("VariableDeclaration"===this.body[0].type){const t=assignMuTerms(this.body[0].declarations),n=this.body.slice(1).map(n=>t.filter(e=>e.init).reduce((t,n)=>t.substitute(n.id,n.init,e),n)),r=new StepperProgram(n);return e.preRedex=[this.body[0]],e.postRedex=n,r}if("FunctionDeclaration"===this.body[0].type){const t=this.body[0].getArrowFunctionExpression(),n=this.body[0].id,r=this.body.slice(1).map(r=>r.substitute(n,t,e)),i=new StepperProgram(r);return e.preRedex=[this.body[0]],e.postRedex=r,i}const t=this.body[0];if(this.body.length>=2&&this.body[1].isOneStepPossible(e)){const n=this.body[1].oneStep(e),r=this.body.slice(2);return new StepperProgram(n===undefinedNode?[t,r].flat():[t,n,r].flat())}if(this.body.length>=2&&"VariableDeclaration"===this.body[1].type){const n=assignMuTerms(this.body[1].declarations),r=this.body.slice(2).map(t=>n.filter(e=>e.init).reduce((t,n)=>t.substitute(n.id,n.init,e),t)),i=new StepperProgram([t,r].flat());return e.preRedex=[this.body[1]],e.postRedex=n.map(e=>e.id),i}if(this.body.length>=2&&"FunctionDeclaration"===this.body[1].type){const n=this.body[1].getArrowFunctionExpression(),r=this.body[1].id,i=this.body.slice(2).map(t=>t.substitute(r,n,e)),a=new StepperProgram([t,i].flat());return e.preRedex=[this.body[1]],e.postRedex=i,a}return this.body[0].contractEmpty(e),new StepperProgram(this.body.slice(1))}static create(e){return new StepperProgram(e.body.map(e=>convert(e)),e.comments,e.leadingComments,e.trailingComments,e.loc,e.range)}substitute(e,t,n){return new StepperProgram(this.body.map(r=>r.substitute(e,t,n)))}scanAllDeclarationNames(){return this.body.filter(e=>"VariableDeclaration"===e.type||"FunctionDeclaration"===e.type).flatMap(e=>"VariableDeclaration"===e.type?e.declarations.map(e=>e.id.name):[e.id.name])}freeNames(){const e=new Set(this.body.flatMap(e=>e.freeNames()));return this.scanAllDeclarationNames().forEach(t=>e.delete(t)),Array.from(e)}allNames(){return Array.from(new Set(this.body.flatMap(e=>e.allNames())))}rename(e,t){return new StepperProgram(this.body.map(n=>n.rename(e,t)))}}class StepperExpressionStatement extends StepperBaseNode{constructor(e,t,n,r,i){super("ExpressionStatement",t,n,r,i),this.expression=e}static create(e){return new StepperExpressionStatement(convert(e.expression),e.leadingComments,e.trailingComments,e.loc,e.range)}isContractible(e){return this.expression.isContractible(e)}isOneStepPossible(e){return this.expression.isOneStepPossible(e)}contract(e){return new StepperExpressionStatement(this.expression.oneStep(e),this.leadingComments,this.trailingComments,this.loc,this.range)}contractEmpty(e){e.preRedex=[this],e.postRedex=[]}oneStep(e){return new StepperExpressionStatement(this.expression.oneStep(e),this.leadingComments,this.trailingComments,this.loc,this.range)}substitute(e,t,n){return new StepperExpressionStatement(this.expression.substitute(e,t,n),this.leadingComments,this.trailingComments,this.loc,this.range)}freeNames(){return this.expression.freeNames()}allNames(){return this.expression.allNames()}rename(e,t){return new StepperExpressionStatement(this.expression.rename(e,t),this.leadingComments,this.trailingComments,this.loc,this.range)}}class StepperFunctionDeclaration extends StepperBaseNode{constructor(e,t,n,r,i,a,o,s,c){super("FunctionDeclaration",a,o,s,c),this.id=e,this.body=t,this.params=n,this.generator=r,this.async=i,this.body=t}static create(e){return new StepperFunctionDeclaration(convert(e.id),convert(e.body),e.params.map(e=>convert(e)),e.generator,e.async,e.leadingComments,e.trailingComments,e.loc,e.range)}isContractible(){return!1}isOneStepPossible(){return!1}getArrowFunctionExpression(){return new StepperArrowFunctionExpression(this.params,this.body,this.id.name,!1,this.async,this.generator)}contract(e){return e.preRedex=[this],e.postRedex=[],undefinedNode}contractEmpty(e){e.preRedex=[this],e.postRedex=[]}oneStep(e){return this.contract(e)}scanAllDeclarationNames(){return[...this.params.map(e=>e.name),...this.body.body.filter(e=>"VariableDeclaration"===e.type||"FunctionDeclaration"===e.type).flatMap(e=>"VariableDeclaration"===e.type?e.declarations.map(e=>e.id.name):[e.id.name])]}substitute(e,t,n,r){const i=t.freeNames(),a=this.scanAllDeclarationNames(),o=i.filter(e=>a.includes(e));let s=new Set([this.allNames(),r??[]].flat());o.forEach(e=>s.delete(e));const c=Array.from(s),l=getFreshName(o,c).reduce((e,t,n)=>e.rename(o[n],t),this);return l.scanAllDeclarationNames().includes(e.name)?l:new StepperFunctionDeclaration(this.id,l.body.substitute(e,t,n,l.params.flatMap(e=>e.allNames())),l.params,this.generator,this.async,this.leadingComments,this.trailingComments,this.loc,this.range)}freeNames(){const e=this.params.filter(e=>"Identifier"===e.type).map(e=>e.name);return this.body.freeNames().filter(t=>!e.includes(t))}allNames(){const e=this.params.filter(e=>"Identifier"===e.type).map(e=>e.name);return Array.from(new Set([e,this.body.allNames()].flat()))}rename(e,t){return new StepperFunctionDeclaration(this.id.rename(e,t),this.body.rename(e,t),this.params.map(n=>n.rename(e,t)),this.generator,this.async,this.leadingComments,this.trailingComments,this.loc,this.range)}}class StepperIfStatement extends StepperBaseNode{constructor(e,t,n,r,i,a,o){super("IfStatement",r,i,a,o),this.test=e,this.consequent=t,this.alternate=n}static create(e){return new StepperIfStatement(convert(e.test),convert(e.consequent),e.alternate?convert(e.alternate):null,e.leadingComments,e.trailingComments,e.loc,e.range)}isContractible(){return this.test instanceof StepperLiteral}contract(e){assert(this.test instanceof StepperLiteral,"Cannot contract non-literal test",this),e.preRedex=[this];const t=this.test.value?this.consequent:this.alternate||undefinedNode;if(t instanceof StepperBlockStatement)return e.postRedex=[t],new StepperBlockStatement([new StepperExpressionStatement(undefinedNode,void 0,void 0,this.loc,this.range),...t.body],t.innerComments,this.leadingComments,this.trailingComments,this.loc,this.range);if(t instanceof StepperIfStatement)return t;throw new Error("Cannot contract to non-block statement")}isOneStepPossible(e){return this.isContractible()||this.test.isOneStepPossible(e)}oneStep(e){return assert(this.isOneStepPossible(e),"Tried to oneStep ineligible IfStatement",this),this.isContractible()?this.contract(e):new StepperIfStatement(this.test.oneStep(e),this.consequent,this.alternate,this.leadingComments,this.trailingComments,this.loc,this.range)}substitute(e,t,n){return new StepperIfStatement(this.test.substitute(e,t,n),this.consequent.substitute(e,t,n),this.alternate?this.alternate.substitute(e,t,n):null,this.leadingComments,this.trailingComments,this.loc,this.range)}contractEmpty(e){e.preRedex=[this],e.postRedex=[]}freeNames(){const e=new Set([...this.test.freeNames(),...this.consequent.freeNames(),...this.alternate?this.alternate.freeNames():[]]);return Array.from(e)}allNames(){const e=new Set([...this.test.allNames(),...this.consequent.allNames(),...this.alternate?this.alternate.allNames():[]]);return Array.from(e)}rename(e,t){return new StepperIfStatement(this.test.rename(e,t),this.consequent.rename(e,t),this.alternate?this.alternate.rename(e,t):null,this.leadingComments,this.trailingComments,this.loc,this.range)}}class StepperReturnStatement extends StepperBaseNode{constructor(e,t,n,r,i){super("ReturnStatement",t,n,r,i),this.argument=e}static create(e){return new StepperReturnStatement(e.argument?convert(e.argument):null,e.leadingComments,e.trailingComments,e.loc,e.range)}isContractible(){return!0}isOneStepPossible(){return!0}contract(e){return assert(!!this.argument,"Cannot contract return statement without argument",this),e.preRedex=[this],e.postRedex=[this.argument],this.argument}contractEmpty(e){e.preRedex=[this],e.postRedex=[]}oneStep(e){return assert(!!this.argument,"Cannot step return statement without argument",this),this.contract(e)}substitute(e,t,n){return new StepperReturnStatement(this.argument?this.argument.substitute(e,t,n):null,this.leadingComments,this.trailingComments,this.loc,this.range)}freeNames(){return this.argument?this.argument.freeNames():[]}allNames(){return this.argument?this.argument.allNames():[]}rename(e,t){return new StepperReturnStatement(this.argument?this.argument.rename(e,t):null,this.leadingComments,this.trailingComments,this.loc,this.range)}}class StepperDebuggerStatement extends StepperBaseNode{constructor(e,t,n,r){super("DebuggerStatement",e,t,n,r)}static create(e){return new StepperDebuggerStatement(e.leadingComments,e.trailingComments,e.loc,e.range)}isContractible(){return!0}isOneStepPossible(){return!0}contractEmpty(e){e.preRedex=[this],e.postRedex=[]}contract(){return undefinedNode}oneStep(e){return this.contractEmpty(e),undefinedNode}substitute(e,t){return this}freeNames(){return[]}allNames(){return[]}rename(e,t){return this}}const nodeConverters={Literal:e=>StepperLiteral.create(e),UnaryExpression:e=>StepperUnaryExpression.create(e),BinaryExpression:e=>StepperBinaryExpression.create(e),LogicalExpression:e=>StepperLogicalExpression.create(e),FunctionDeclaration:e=>StepperFunctionDeclaration.create(e),ExpressionStatement:e=>StepperExpressionStatement.create(e),ConditionalExpression:e=>StepperConditionalExpression.create(e),ArrowFunctionExpression:e=>StepperArrowFunctionExpression.create(e),ArrayExpression:e=>StepperArrayExpression.create(e),CallExpression:e=>StepperFunctionApplication.create(e),ReturnStatement:e=>StepperReturnStatement.create(e),Program:e=>StepperProgram.create(e),VariableDeclaration:e=>StepperVariableDeclaration.create(e),VariableDeclarator:e=>StepperVariableDeclarator.create(e),Identifier:e=>"NaN"===e.name?new StepperLiteral(NaN,"NaN"):"Infinity"===e.name?new StepperLiteral(1/0,"Infinity"):StepperIdentifier.create(e),BlockStatement:e=>StepperBlockStatement.create(e),IfStatement:e=>StepperIfStatement.create(e),DebuggerStatement:e=>StepperDebuggerStatement.create(e)},explainers={ArrowFunctionExpression:()=>{throw new Error("Not implemented.")},BinaryExpression:e=>`Binary expression ${generate(e)} evaluated`,BlockStatement:e=>0===e.body.length?"Empty block expression evaluated":`${generate(e.body[0])} finished evaluating`,CallExpression(e){if("ArrowFunctionExpression"!==e.callee.type&&"Identifier"!==e.callee.type)throw new Error("`callee` should be function expression.");if("Identifier"===e.callee.type&&isBuiltinFunction(e.callee.name))return`${e.callee.name} runs`;const t=e.callee;if(0===t.params.length)return"BlockStatement"!==t.body.type||t.name?generate(t)+" runs":"() => {...} runs";const n=t.params.map(e=>e.name).join(", "),r=e.arguments.map(e=>generate(e)).join(", ");let i="";return i="BlockStatement"!==t.body.type||t.name?generate(t):1===t.params.length?`${n} => {...}`:`(${n}) => {...}`,`${r} substituted into ${n} of ${i}`},ConditionalExpression(e){const t=e.test;assert("Literal"===t.type,"Invalid conditional contraction. `test` should be literal.");const n=t.value;if("boolean"!=typeof n)throw new Error("Invalid conditional contraction. `test` should be boolean, got "+typeof n+" instead.");return!0===n?"Conditional expression evaluated, condition is true, consequent evaluated":"Conditional expression evaluated, condition is false, alternate evaluated"},DebuggerStatement:()=>"Debugger statement reached",ExpressionStatement:e=>`${generate(e.expression)} finished evaluating`,FunctionDeclaration:e=>`Function ${e.id.name} declared, parameter(s) ${e.params.map(e=>generate(e))} required`,IfStatement(e){if(e.test instanceof StepperLiteral)return e.test.value?"If statement evaluated, condition true, proceed to if block":"If statement evaluated, condition false, proceed to else block";throw new Error("Not implemented")},LogicalExpression(e){if("&&"===e.operator)return!0===e.left.value?"AND operation evaluated, left of operator is true, continue evaluating right of operator":"AND operation evaluated, left of operator is false, stop evaluation";if("||"===e.operator)return!0===e.left.value?"OR operation evaluated, left of operator is true, stop evaluation":"OR operation evaluated, left of operator is false, continue evaluating right of operator";throw new Error(`Invalid operator for LogicalExpression: ${e.operator}`)},ReturnStatement:e=>(assert(!!e.argument,"return argument should not be empty"),`${generate(e.argument)} returned`),UnaryExpression(e){if("-"===e.operator)return"Unary expression evaluated, value "+JSON.stringify(e.argument.value)+" negated.";if("!"===e.operator)return"Unary expression evaluated, boolean "+JSON.stringify(e.argument.value)+" negated.";throw new Error("Unsupported unary operator "+e.operator)},VariableDeclaration:e=>"const"===e.kind?"Constant "+e.declarations.map(e=>e.id.name).join(", ")+" declared and substituted into the rest of block":"..."};function convert(e){const t=nodeConverters[e.type];return t?t(e):undefinedNode}function explain(e){return e.type in explainers?explainers[e.type](e):"..."}const auxiliaryBuiltinFunctions={__access_export__:{definition:e=>{const t=parse$6('\n (exports, lookup_name) => {\n if (lookup_name === "default") {\n return head(exports);\n } else {\n const named_exports = tail(exports);\n return __access_named_export__(named_exports, lookup_name);\n }\n }\n ',{ecmaVersion:10}).body[0].expression;return new StepperFunctionApplication(StepperArrowFunctionExpression.create(t),e)},arity:2},__access_named_export__:{definition:e=>{const t=parse$6("\n (named_exports, lookup_name) => {\n if (is_null(named_exports)) {\n return undefined;\n } else {\n const name = head(head(named_exports));\n const identifier = tail(head(named_exports));\n if (name === lookup_name) {\n return identifier;\n } else {\n return __access_named_export__(tail(named_exports), lookup_name);\n }\n }\n }\n ",{ecmaVersion:10}).body[0].expression;return new StepperFunctionApplication(StepperArrowFunctionExpression.create(t),e)},arity:2}},listBuiltinFunctions={pair:{definition:e=>new StepperArrayExpression([e[0],e[1]]),arity:2},is_pair:{definition:e=>new StepperLiteral("ArrayExpression"===e[0].type&&2===e[0].elements.length),arity:1},head:{definition:e=>e[0].elements[0],arity:1},tail:{definition:e=>e[0].elements[1],arity:1},is_null:{definition:e=>new StepperLiteral("Literal"===e[0].type&&null===e[0].value),arity:1},is_list:{definition:e=>{const t=e=>null===e||"Literal"===e.type&&null===e.value||"ArrayExpression"===e.type&&2===e.elements.length&&t(e.elements[1]);return new StepperLiteral(t(e[0]))},arity:1},draw_data:{definition:e=>e[0],arity:0},equal:{definition:e=>{const t=parse$6("\n (xs, ys) => is_pair(xs) \n ? is_pair(ys) && equal(head(xs), head(ys)) && equal(tail(xs), tail(ys)) \n : is_null(xs) ? is_null(ys) : is_number(xs) ? is_number(ys) && xs === ys \n : is_boolean(xs) ? is_boolean(ys) && (xs && ys || !xs && !ys) \n : is_string(xs) ? is_string(ys) && xs === ys \n : is_undefined(xs) ? is_undefined(ys) \n : is_function(xs) ? is_function(ys) && xs === ys : fals\n ",{ecmaVersion:10}).body[0].expression;return new StepperFunctionApplication(StepperArrowFunctionExpression.create(t),e)},arity:2},list:{definition:e=>0===e.length?new StepperLiteral(null):listBuiltinFunctions.pair.definition([e[0],listBuiltinFunctions.list.definition(e.slice(1))]),arity:0},length:{definition:e=>new StepperFunctionApplication(new StepperIdentifier("$length"),[...e,new StepperLiteral(0)]),arity:1},$length:{definition:e=>{const t=parse$6("\n (xs, acc) => is_null(xs) ? acc : $length(tail(xs), acc + 1);\n ",{ecmaVersion:10}).body[0].expression;return new StepperFunctionApplication(StepperArrowFunctionExpression.create(t),e)},arity:2},build_list:{definition:e=>new StepperFunctionApplication(new StepperIdentifier("$build_list"),[new StepperBinaryExpression("-",e[1],new StepperLiteral(1)),e[0],new StepperLiteral(null)]),arity:2},$build_list:{definition:e=>{const t=parse$6(" \n (i, fun, already_built) => i < 0 ? already_built : $build_list(i - 1, fun, pair(fun(i), already_built));",{ecmaVersion:10}).body[0].expression;return new StepperFunctionApplication(StepperArrowFunctionExpression.create(t),e)},arity:3},for_each:{definition:e=>{const t=parse$6(" (fun, xs) =>\n {\n if (is_null(xs)) {\n return true;\n } else {\n fun(head(xs));\n return for_each(fun, tail(xs));\n } \n }\n ",{ecmaVersion:10}).body[0].expression;return new StepperFunctionApplication(StepperArrowFunctionExpression.create(t),e)},arity:2},list_to_string:{definition:e=>new StepperFunctionApplication(new StepperIdentifier("$list_to_string"),[e[0],new StepperArrowFunctionExpression([new StepperIdentifier("x")],new StepperIdentifier("x"))]),arity:1},$list_to_string:{definition:e=>{const t=parse$6('\n (xs, cont) => is_null(xs) ? cont("null") : is_pair(xs) ? $list_to_string(head(xs),\n x => $list_to_string(tail(xs), y => cont("[" + x + "," + y + "]"))) : cont(stringify(xs)) \n ',{ecmaVersion:10}).body[0].expression;return new StepperFunctionApplication(StepperArrowFunctionExpression.create(t),e)},arity:2},append:{definition:e=>new StepperFunctionApplication(new StepperIdentifier("$append"),[...e,new StepperArrowFunctionExpression([new StepperIdentifier("xs")],new StepperIdentifier("xs"))]),arity:2},$append:{definition:e=>{const t=parse$6("\n (xs, ys, cont) => is_null(xs) ? cont(ys) : $append(tail(xs), ys, zs => cont(pair(head(xs), zs)));\n ",{ecmaVersion:10}).body[0].expression;return new StepperFunctionApplication(StepperArrowFunctionExpression.create(t),e)},arity:3},reverse:{definition:e=>new StepperFunctionApplication(new StepperIdentifier("$reverse"),[...e,new StepperLiteral(null)]),arity:1},$reverse:{definition:e=>{const t=parse$6("\n (original, reversed) => is_null(original) ? reversed : $reverse(tail(original), pair(head(original), reversed));\n ",{ecmaVersion:10}).body[0].expression;return new StepperFunctionApplication(StepperArrowFunctionExpression.create(t),e)},arity:2},member:{definition:e=>{const t=parse$6("\n (v, xs) => is_null(xs)\n ? null\n : (v === head(xs))\n ? xs\n : member(v, tail(xs));\n ",{ecmaVersion:10}).body[0].expression;return new StepperFunctionApplication(StepperArrowFunctionExpression.create(t),e)},arity:2},remove:{definition:e=>new StepperFunctionApplication(new StepperIdentifier("$remove"),[...e,new StepperLiteral(null)]),arity:2},$remove:{definition:e=>{const t=parse$6("\n (v, xs, acc) => is_null(xs)\n ? append(reverse(acc), xs)\n : v === head(xs)\n ? append(reverse(acc), tail(xs))\n : $remove(v, tail(xs), pair(head(xs), acc));\n ",{ecmaVersion:10}).body[0].expression;return new StepperFunctionApplication(StepperArrowFunctionExpression.create(t),e)},arity:3},remove_all:{definition:e=>new StepperFunctionApplication(new StepperIdentifier("$remove_all"),[...e,new StepperLiteral(null)]),arity:2},$remove_all:{definition:e=>{const t=parse$6("\n (v, xs, acc) => is_null(xs)\n ? append(reverse(acc), xs)\n : v === head(xs)\n ? $remove_all(v, tail(xs), acc)\n : $remove_all(v, tail(xs), pair(head(xs), acc));\n ",{ecmaVersion:10}).body[0].expression;return new StepperFunctionApplication(StepperArrowFunctionExpression.create(t),e)},arity:3},enum_list:{definition:e=>new StepperFunctionApplication(new StepperIdentifier("$enum_list"),[...e,new StepperLiteral(null)]),arity:2},$enum_list:{definition:e=>{const t=parse$6("\n (start, end, acc) => start > end\n ? reverse(acc)\n : $enum_list(start + 1, end, pair(start, acc));\n ",{ecmaVersion:10}).body[0].expression;return new StepperFunctionApplication(StepperArrowFunctionExpression.create(t),e)},arity:3},list_ref:{definition:e=>{const t=parse$6("\n (xs, n) => n === 0\n ? head(xs)\n : list_ref(tail(xs), n - 1);\n ",{ecmaVersion:10}).body[0].expression;return new StepperFunctionApplication(StepperArrowFunctionExpression.create(t),e)},arity:2},map:{definition:e=>new StepperFunctionApplication(new StepperIdentifier("$map"),[...e,new StepperLiteral(null)]),arity:2},$map:{definition:e=>{const t=parse$6("\n (f, xs, acc) => is_null(xs) ? reverse(acc) : $map(f, tail(xs), pair(f(head(xs)), acc));\n ",{ecmaVersion:10}).body[0].expression;return new StepperFunctionApplication(StepperArrowFunctionExpression.create(t),e)},arity:3},filter:{definition:e=>new StepperFunctionApplication(new StepperIdentifier("$filter"),[...e,new StepperLiteral(null)]),arity:2},$filter:{definition:e=>{const t=parse$6("\n (pred, xs, acc) => is_null(xs) ? reverse(acc) : pred(head(xs)) ? $filter(pred, tail(xs), pair(head(xs), acc)) : $filter(pred, tail(xs), acc);\n ",{ecmaVersion:10}).body[0].expression;return new StepperFunctionApplication(StepperArrowFunctionExpression.create(t),e)},arity:3},accumulate:{definition:e=>new StepperFunctionApplication(new StepperIdentifier("$accumulate"),[...e,new StepperArrowFunctionExpression([new StepperIdentifier("x")],new StepperIdentifier("x"))]),arity:3},$accumulate:{definition:e=>{const t=parse$6("\n (f, initial, xs, cont) => is_null(xs)\n ? cont(initial)\n : $accumulate(f, initial, tail(xs), x => cont(f(head(xs), x)));\n ",{ecmaVersion:10}).body[0].expression;return new StepperFunctionApplication(StepperArrowFunctionExpression.create(t),e)},arity:4},display_list:{definition:e=>e[0],arity:1}},miscBuiltinFunctions={arity:{definition:e=>{if(e[0]instanceof StepperArrowFunctionExpression)return new StepperLiteral(e[0].params.length);if(e[0]instanceof StepperIdentifier){if(e[0].name.startsWith("math_")){const t=Math[e[0].name.split("_")[1]];if("function"!=typeof t)throw new GeneralRuntimeError("arity expects a function as argument");return new StepperLiteral(t.length)}if(e[0].name in listBuiltinFunctions)return new StepperLiteral(listBuiltinFunctions[e[0].name].arity);if(e[0].name in miscBuiltinFunctions)return new StepperLiteral(miscBuiltinFunctions[e[0].name].arity)}throw new GeneralRuntimeError("arity expects a function as argument")},arity:1},char_at:{definition:e=>{const t=e[0].value,n=e[1].value;return new StepperLiteral(t.charAt(n))},arity:2},display:{definition:e=>e[0],arity:1},error:{definition:e=>{const t=e[0].value;throw new Error(t)},arity:1},get_time:{definition:e=>new StepperLiteral(Date.now()),arity:0},is_boolean:{definition:e=>new StepperLiteral("boolean"==typeof e[0].value),arity:1},is_function:{definition:e=>new StepperLiteral(e[0]instanceof StepperArrowFunctionExpression||e[0]instanceof StepperIdentifier&&isBuiltinFunction(e[0].name)),arity:1},is_number:{definition:e=>new StepperLiteral("number"==typeof e[0].value),arity:1},is_string:{definition:e=>new StepperLiteral("string"==typeof e[0].value),arity:1},is_undefined:{definition:e=>new StepperLiteral(void 0===e[0].value),arity:1},parse_int:{definition:e=>{const t=e[0].value,n=e.length>1?e[1].value:10;return new StepperLiteral(parseInt(t,n))},arity:2},prompt:{definition:e=>{const t=e[0].value,n=window.prompt(t);return new StepperLiteral(null!==n?n:null)},arity:0},stringify:{definition:e=>{const t=e[0];let n;return n=t instanceof StepperLiteral?JSON.stringify(t.value):t.toString(),new StepperLiteral(n)},arity:1}},builtinFunctions={...listBuiltinFunctions,...miscBuiltinFunctions,...auxiliaryBuiltinFunctions};function prelude(e,t){let n=convert(e);return Object.getOwnPropertyNames(Math).filter(e=>e in Math&&"function"!=typeof Math[e]).forEach(e=>{n=n.substitute(new StepperIdentifier("math_"+e),new StepperLiteral(Math[e]),t)}),n}function getBuiltinFunction(e,t){const n=t.arguments;if(e.startsWith("math_")){const r=e.split("_")[1];if(r in Math){const i=Math[r],a=n.map(e=>e.value);a.forEach(n=>{if("number"!=typeof n&&"bigint"!=typeof n)throw new InvalidParameterTypeError("number",n,e,void 0,t)});const o=i(...a);return new StepperLiteral(o,o)}}const r=builtinFunctions[e];if(r.arity!==n.length&&"list"!==e)throw new InvalidNumberOfArgumentsError(t,r.arity,n.length);return r.definition(n)}function isBuiltinFunction(e){return e.startsWith("math_")||Object.keys(builtinFunctions).includes(e)}function getSteps(e,t,{stepLimit:n}){const r={preRedex:[],postRedex:[]},i=prelude(e,r),a=[],o=void 0===n?1e3:n%2==0?n:n+1;let s=!1,c=1;a.push({ast:i,markers:[{explanation:"Start of evaluation"}]});try{checkProgramForUndefinedVariables(e,t)}catch(e){return a.push({ast:i,markers:[{redexType:"beforeMarker",explanation:e instanceof UndefinedVariableError?`Line ${e.location.start.line}: Name ${e.varname} not declared.`:String(e)}]}),a}let l=function e(t){try{if(t.isOneStepPossible(r)){const n=t.oneStep(r),i=r.preRedex.map(explain),s=r.preRedex.map((e,t)=>({redex:e,redexType:"beforeMarker",explanation:i[t]}));if(c+=1,c>=o)return t;a.push({ast:t,markers:s});const l=r.postRedex.length>0?r.postRedex.map((e,t)=>({redex:e,redexType:"afterMarker",explanation:i[t]})):[{redexType:"afterMarker",explanation:i[0]}];return c+=1,c>=o?t:(a.push({ast:n,markers:l}),r.preRedex=[],r.postRedex=[],e(n))}return t}catch(e){if(!(e instanceof RuntimeSourceError))throw e;const n=parseError([e]);return s=!0,a.push({ast:t,markers:[{redexType:"beforeMarker",explanation:n}]}),t}}(i);return c>=o?(a.push({ast:l,markers:[{explanation:"Maximum number of steps exceeded"}]}),a):("Program"===l.type&&0===l.body.length&&(l=new StepperExpressionStatement(undefinedNode)),s?a.push({ast:l,markers:[{explanation:"Evaluation stuck"}]}):a.push({ast:l,markers:[{explanation:"Evaluation complete"}]}),a)}const sandboxedEval=new Function("code",NATIVE_STORAGE_ID,`\n if (${NATIVE_STORAGE_ID}.evaller === null) {\n return eval(code);\n } else {\n return ${NATIVE_STORAGE_ID}.evaller(code);\n }\n`);var _arrayEach,hasRequired_arrayEach,_assignValue,hasRequired_assignValue,_copyObject,hasRequired_copyObject,_baseAssign,hasRequired_baseAssign,_nativeKeysIn,hasRequired_nativeKeysIn,_baseKeysIn,hasRequired_baseKeysIn,keysIn_1,hasRequiredKeysIn,_baseAssignIn,hasRequired_baseAssignIn;function require_arrayEach(){return hasRequired_arrayEach||(hasRequired_arrayEach=1,_arrayEach=function(e,t){for(var n=-1,r=null==e?0:e.length;++n{const r=memberExpression(t,e);return n.flatMap(({specifiers:e})=>e.map(e=>constantDeclaration(e.local.name,isNamespaceSpecifier(e)?r:memberExpression(r,getImportedName(e)))))}),r]}function getGloballyDeclaredIdentifiers(e){return e.body.filter(isVariableDeclaration$1).map(e=>{const{id:{name:t}}=getSourceVariableDeclaration(e);return t})}function getBuiltins(e){const t=[];return e.builtins.forEach((e,n)=>{t.push(constantDeclaration(n,callExpression(memberExpression(memberExpression(identifier(NATIVE_STORAGE_ID),"builtins"),"get"),[literal$1(n)])))}),t}function evallerReplacer(e,t){const n=identifier(getUniqueId(t,"program"));return expressionStatement(assignmentExpression(memberExpression(e,"evaller"),arrowFunctionExpression([n],callExpression(identifier("eval"),[n]))))}function generateFunctionsToStringMap(e){const t=new Map;return simple(e,{ArrowFunctionExpression(e){t.set(e,generate$1(e))},FunctionDeclaration(e){t.set(e,generate$1(e))}}),t}function transformFunctionDeclarationsToArrowFunctions(e,t){simple(e,{FunctionDeclaration(e){const{id:n,params:r,body:i,loc:a}=e;e.type="VariableDeclaration";const o=blockArrowFunction(r,i,a);t.set(o,t.get(e)),e.declarations=[{type:"VariableDeclarator",id:n,init:o}],e.kind="const"}})}function wrapArrowFunctionsToAllowNormalCallsAndNiceToString(e,t,n,r){simple(e,{ArrowFunctionExpression(e){void 0!==t.get(e)&&mutateToCallExpression(e,n.wrap,[{...e},literal$1("RestElement"===e.params[e.params.length-1]?.type),literal$1(t.get(e)),literal$1(r?"prelude":null)])}})}function transformReturnStatementsToAllowProperTailCalls(e){function t(e){switch(e.type){case"LogicalExpression":return logicalExpression(e.operator,e.left,t(e.right),e.loc);case"ConditionalExpression":return conditionalExpression(e.test,t(e.consequent),t(e.alternate),e.loc);case"CallExpression":const{line:n,column:r}=(e.loc??UNKNOWN_LOCATION).start,i=e.loc?.source??null,a="Identifier"===e.callee.type?e.callee.name:"",o=e.arguments;return objectExpression([property("isTail",literal$1(!0)),property("function",e.callee),property("functionName",literal$1(a)),property("arguments",arrayExpression(o)),property("line",literal$1(n)),property("column",literal$1(r)),property("source",literal$1(i))]);default:return objectExpression([property("isTail",literal$1(!1)),property("value",e)])}}simple(e,{ReturnStatement(e){e.argument=t(e.argument)},ArrowFunctionExpression(e){e.expression&&(e.body=t(e.body))}})}function transformCallExpressionsToCheckIfFunction(e,t){simple(e,{CallExpression(e){const{line:n,column:r}=(e.loc??UNKNOWN_LOCATION).start,i=e.loc?.source??null,a=e.arguments;e.arguments=[e.callee,literal$1(n),literal$1(r),literal$1(i),t.native,...a],e.callee=t.callIfFuncAndRightArgs}})}function transformSomeExpressionsToCheckIfBoolean(e,t){function n(e){const{line:n,column:r}=(e.loc??UNKNOWN_LOCATION).start,i=e.loc?.source??null,a="LogicalExpression"===e.type?"left":"test";e[a]=callExpression(t.boolOrErr,[e[a],literal$1(n),literal$1(r),literal$1(i)])}simple(e,{IfStatement:n,ConditionalExpression:n,LogicalExpression:n,ForStatement:n,WhileStatement:n})}function transformUnaryAndBinaryOperationsToFunctionCalls(e,t,n){simple(e,{BinaryExpression(e){const{line:r,column:i}=(e.loc??UNKNOWN_LOCATION).start,a=e.loc?.source??null,{operator:o,left:s,right:c}=e;mutateToCallExpression(e,t.binaryOp,[literal$1(o),literal$1(n),s,c,literal$1(r),literal$1(i),literal$1(a)])},UnaryExpression(e){const{line:n,column:r}=(e.loc??UNKNOWN_LOCATION).start,i=e.loc?.source??null,{operator:a,argument:o}=e;mutateToCallExpression(e,t.unaryOp,[literal$1(a),o,literal$1(n),literal$1(r),literal$1(i)])}})}function getComputedProperty(e,t){return e?t:literal$1(t.name)}function transformPropertyAssignment(e,t){simple(e,{AssignmentExpression(e){if("MemberExpression"===e.left.type){const{object:n,property:r,computed:i,loc:a}=e.left,{line:o,column:s}=(a??UNKNOWN_LOCATION).start,c=a?.source??null;mutateToCallExpression(e,t.setProp,[n,getComputedProperty(i,r),e.right,literal$1(o),literal$1(s),literal$1(c)])}}})}function transformPropertyAccess(e,t){simple(e,{MemberExpression(e){const{object:n,property:r,computed:i,loc:a}=e,{line:o,column:s}=(a??UNKNOWN_LOCATION).start,c=a?.source??null;mutateToCallExpression(e,t.getProp,[n,getComputedProperty(i,r),literal$1(o),literal$1(s),literal$1(c)])}})}function addInfiniteLoopProtection(e,t,n){const r=()=>callExpression(identifier("get_time"),[]);function i(e){const i=[];for(const a of e.body){if("ForStatement"===a.type||"WhileStatement"===a.type){const e=getUniqueId(n,"startTime");if(i.push(constantDeclaration(e,r())),"BlockStatement"===a.body.type){const{line:n,column:i}=(a.loc??UNKNOWN_LOCATION).start,o=a.loc?.source??null;a.body.body.unshift(expressionStatement(callExpression(t.throwIfTimeout,[t.native,identifier(e),r(),literal$1(n),literal$1(i),literal$1(o)])))}}i.push(a)}e.body=i}simple(e,{Program:i,BlockStatement:i})}function wrapWithBuiltins(e,t){return blockStatement([...getBuiltins(t),blockStatement(e)])}function getDeclarationsToAccessTranspilerInternals(e){return Object.entries(e).map(([t,{name:n}])=>{let r;return r="native"===t?identifier(NATIVE_STORAGE_ID):"globals"===t?memberExpression(e.native,"globals"):callExpression(memberExpression(memberExpression(e.native,"operators"),"get"),[literal$1(t)]),constantDeclaration(n,r)})}function transpileToSource(e,t,n,r){if(0===e.body.length)return{transpiled:""};const i=cloneDeep(e),a=new Set([...getIdentifiersInProgram(i),...getIdentifiersInNativeStorage(t.nativeStorage)]),o=getNativeIds(i,a),s=generateFunctionsToStringMap(i);transformReturnStatementsToAllowProperTailCalls(i),transformCallExpressionsToCheckIfFunction(i,o),transformUnaryAndBinaryOperationsToFunctionCalls(i,o,t.chapter),transformSomeExpressionsToCheckIfBoolean(i,o),transformPropertyAssignment(i,o),transformPropertyAccess(i,o),checkForUndefinedVariables(i,t,o,n),transformFunctionDeclarationsToArrowFunctions(i,s),wrapArrowFunctionsToAllowNormalCallsAndNiceToString(i,s,o,r),addInfiniteLoopProtection(i,o,a);const[c,l]=transformImportDeclarations(i,memberExpression(o.native,"loadedModules"));i.body=c.concat(l),getGloballyDeclaredIdentifiers(i).forEach(e=>t.nativeStorage.previousProgramsIdentifiers.add(e));const u=[...getDeclarationsToAccessTranspilerInternals(o),evallerReplacer(o.native,a),expressionStatement(identifier("undefined")),...i.body];i.body=null===t.nativeStorage.evaller?[wrapWithBuiltins(u,t.nativeStorage)]:[blockStatement(u)];const d=new sourceMapExports.SourceMapGenerator({file:"source"});return{transpiled:generate$1(i,{sourceMap:d}),sourceMapJson:d.toJSON()}}function transpileToFullJS(e,t,n){if(0===e.body.length)return{transpiled:""};const r=cloneDeep(e),i=getNativeIds(r,new Set([...getIdentifiersInProgram(r),...getIdentifiersInNativeStorage(t.nativeStorage)]));checkForUndefinedVariables(r,t,i,n);const[a,o]=transformImportDeclarations(r,memberExpression(identifier(NATIVE_STORAGE_ID),"loadedModules"));r.body=a.concat(o),getFunctionDeclarationNamesInProgram(r).forEach(e=>t.nativeStorage.previousProgramsIdentifiers.add(e)),getGloballyDeclaredIdentifiers(r).forEach(e=>t.nativeStorage.previousProgramsIdentifiers.add(e));const s=program([evallerReplacer(identifier(NATIVE_STORAGE_ID),new Set),expressionStatement(identifier("undefined")),...a,...o]),c=new sourceMapExports.SourceMapGenerator({file:"source"});return{transpiled:generate$1(s,{sourceMap:c}),sourceMapJson:c.toJSON()}}function transpile(e,t,n,r=!1){return t.chapter===Chapter.FULL_JS?transpileToFullJS(e,t,!0):t.variant===Variant.NATIVE?transpileToFullJS(e,t,!1):transpileToSource(e,t,r,n)}const ChromeEvalErrorLocator={regex:/eval at.+:(\d+):(\d+)/gm,browser:"Chrome"},FireFoxEvalErrorLocator={regex:/eval:(\d+):(\d+)/gm,browser:"FireFox"},EVAL_LOCATORS=[ChromeEvalErrorLocator,FireFoxEvalErrorLocator],UNDEFINED_VARIABLE_MESSAGES=["is not defined"],ASSIGNMENT_TO_CONST_ERROR_MESSAGES=["invalid assignment to const","Assignment to constant variable","Assignment to const","Redeclaration of const"];function getBrowserType(){const e=navigator.userAgent.toLowerCase();return e.indexOf("chrome")>-1?"Chrome":e.indexOf("firefox")>-1?"FireFox":"Unsupported"}function extractErrorLocation(e,t,n){const r=Array.from(e.matchAll(n.regex));if(r.length){const e=r[0],[n,i]=e.slice(1,3);return{line:parseInt(n)-t,column:parseInt(i)}}}function getErrorLocation(e,t=0){const n=getBrowserType(),r=EVAL_LOCATORS.find(e=>e.browser===n),i=e.stack;return i&&r?extractErrorLocation(i,t,r):i?EVAL_LOCATORS.map(e=>extractErrorLocation(i,t,e)).find(e=>void 0!==e):void 0}async function getPositionWithSourceMap(e,t,n){const r=await sourceMapExports.SourceMapConsumer.with(n,null,n=>n.originalPositionFor({line:e,column:t}));return{line:r.line??-1,column:r.column??-1,identifier:r.name??"UNKNOWN",source:r.source??null}}async function toSourceError(e,t){const n=getErrorLocation(e);if(!n)return new ExceptionError(e,UNKNOWN_LOCATION);let{line:r,column:i}=n,a="UNKNOWN",o=null;t&&-1!==r&&-1!==i&&({line:r,column:i,source:o,identifier:a}=await getPositionWithSourceMap(r,i,t));const s=e.message,c=e=>e.some(e=>s.includes(e));return c(ASSIGNMENT_TO_CONST_ERROR_MESSAGES)?new ConstAssignmentError(locationDummyNode(r,i,o),a):c(UNDEFINED_VARIABLE_MESSAGES)?new UndefinedVariableError(a,locationDummyNode(r,i,o)):new ExceptionError(e,-1===r||-1===i?UNKNOWN_LOCATION:{start:{line:r,column:i},end:{line:-1,column:-1}})}function fullJSEval(code,nativeStorage){return nativeStorage.evaller?nativeStorage.evaller(code):eval(code)}function preparePrelude(e){if(null===e.prelude)return[];const t=e.prelude;e.prelude=null;const n=parse$4(t,e);return null!==n?n.body:void 0}function containsPrevEval(e){return null!=e.nativeStorage.evaller}const fullJSRunner=async(e,t,{isPrelude:n})=>{const r=preparePrelude(t);if(void 0===r)return{status:"error",context:t};const i=containsPrevEval(t)?[]:[...getBuiltins(t.nativeStorage),...r],a=program([...i,evallerReplacer(identifier(NATIVE_STORAGE_ID),new Set)]);let o,s;getFunctionDeclarationNamesInProgram(a).forEach(e=>t.nativeStorage.previousProgramsIdentifiers.add(e)),getGloballyDeclaredIdentifiers(a).forEach(e=>t.nativeStorage.previousProgramsIdentifiers.add(e)),fullJSEval(generate$1(a),t.nativeStorage);try{return({transpiled:o,sourceMapJson:s}=transpile(e,t,n)),{status:"finished",context:t,value:fullJSEval(o,t.nativeStorage)}}catch(e){return t.errors.push(e instanceof RuntimeSourceError?e:await toSourceError(e,s)),{status:"error",context:t}}};let isPreviousCodeTimeoutError=!1;const runners={fulljs:fullJSRunner,"cse-machine":(e,t,n)=>CSEResultPromise(t,evaluate(e,t,n)),substitution:(e,t,n)=>{const r=getSteps(e,t,n);return t.errors.length>0?Promise.resolve({status:"error",context:t}):Promise.resolve({status:"finished",context:t,value:r})},native:async(e,t,n)=>{let r;n.isPrelude||(t.shouldIncreaseEvaluationTimeout&&isPreviousCodeTimeoutError?t.nativeStorage.maxExecTime*=JSSLANG_PROPERTIES.factorToIncreaseBy:t.nativeStorage.maxExecTime=n.originalMaxExecTime);try{let i;({transpiled:i,sourceMapJson:r}=transpile(e,t,n.isPrelude));let a=sandboxedEval(i,t.nativeStorage);return n.isPrelude||(isPreviousCodeTimeoutError=!1),{status:"finished",context:t,value:a}}catch(e){if(e instanceof ExceptionError){if(-1!==e.location.start.line)return t.errors.push(e),{status:"error",context:t};e=e.error}if(e instanceof SourceErrorWithNode)return e instanceof TimeoutError&&(isPreviousCodeTimeoutError=!0),t.errors.push(e),{status:"error",context:t};const n=await toSourceError(e,r);return t.errors.push(n),{status:"error",context:t}}}};function determineVariant(e,t){return t.variant?t.variant:e.variant}function determineExecutionMethod(e,t,n,r){if("auto"!==e.executionMethod)return void(t.executionMethod=e.executionMethod);if("auto"!==t.executionMethod)return;let i;if(r||areBreakpointsSet())i=!1;else{let e=!1;simple(n,{DebuggerStatement(){e=!0}}),i=!e}t.executionMethod=i?"native":"cse-machine"}const HTML_ERROR_HANDLING_SCRIPT_TEMPLATE=' diff --git a/public/languages/directory.json b/public/languages/directory.json new file mode 100644 index 0000000000..aa5e912080 --- /dev/null +++ b/public/languages/directory.json @@ -0,0 +1,38 @@ +[ + { + "id": "source-1", + "name": "Source 1 (Stepper)", + "evaluators": [ + { + "id": "default", + "name": "Default", + "path": "/evaluators/js-slang/SourceStepperEvaluator1.js", + "capabilities": [] + } + ] + }, + { + "id": "source-2", + "name": "Source 2 (Stepper)", + "evaluators": [ + { + "id": "default", + "name": "Default", + "path": "/evaluators/js-slang/SourceStepperEvaluator2.js", + "capabilities": [] + } + ] + }, + { + "id": "python-1", + "name": "Python 1 (Stepper)", + "evaluators": [ + { + "id": "default", + "name": "Default", + "path": "/evaluators/py-slang/PythonStepperEvaluator1.js", + "capabilities": [] + } + ] + } +] diff --git a/public/plugins/directory.json b/public/plugins/directory.json new file mode 100644 index 0000000000..eae8bbc1ca --- /dev/null +++ b/public/plugins/directory.json @@ -0,0 +1,10 @@ +[ + { + "id": "stepper", + "name": "Stepper", + "description": "Visualises the step-by-step substitution evaluation of a program.", + "resolutions": { + "web": "/plugins/stepper/index.mjs" + } + } +] diff --git a/public/plugins/stepper/index.mjs b/public/plugins/stepper/index.mjs new file mode 100644 index 0000000000..5575e69274 --- /dev/null +++ b/public/plugins/stepper/index.mjs @@ -0,0 +1,6 @@ +import{useState as e,useEffect as t,useCallback as r,useSyncExternalStore as n,createElement as s}from"react";import{jsxs as o,jsx as a}from"react/jsx-runtime";import{Slider as i,ButtonGroup as p,Button as l,Classes as c,Divider as d,Card as u,Pre as h,Popover as b,Icon as m}from"@blueprintjs/core";const f={" ":"space",ArrowLeft:"arrowleft",ArrowRight:"arrowright",ArrowUp:"arrowup",ArrowDown:"arrowdown",Escape:"escape",Esc:"escape",esc:"escape",Enter:"enter",Tab:"tab",Backspace:"backspace",Delete:"delete",Insert:"insert",Home:"home",End:"end",PageUp:"pageup",PageDown:"pagedown","+":"plus","-":"minus","*":"asterisk","/":"slash"};function v(e){const t=e.replace("Key","").toLowerCase();return f[e]||t}function y(e,t){return r=>function(e,t,r){const{alt:n,ctrl:s,meta:o,mod:a,shift:i,key:p}=e,{altKey:l,ctrlKey:c,metaKey:d,shiftKey:u,key:h,code:b}=t;if(n!==l)return!1;if(a){if(!c&&!d)return!1}else{if(s!==c)return!1;if(o!==d)return!1}return i===u&&!(!p||(r?v(b)!==v(p):v(h??b)!==v(p)))}(function(e){const t=e.toLowerCase().split("+").map(e=>e.trim()),r={alt:t.includes("alt"),ctrl:t.includes("ctrl"),meta:t.includes("meta"),mod:t.includes("mod"),shift:t.includes("shift")},n=["alt","ctrl","meta","shift","mod"],s=t.find(e=>!n.includes(e));return{...r,key:"[plus]"===s?"+":s}}(e),r,t)}function g(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var x,w={exports:{}}; +/*! + Copyright (c) 2018 Jed Watson. + Licensed under the MIT License (MIT), see + http://jedwatson.github.io/classnames +*/var _,D=(x||(x=1,_=w,function(){var e={}.hasOwnProperty;function t(){for(var e="",t=0;t